sanity 5.9.0-next.8 → 5.9.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.
- package/lib/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +203 -195
- package/lib/_chunks-dts/index.d.ts +15 -12
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +28 -24
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/resources7.js +6 -0
- package/lib/_chunks-es/resources7.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +103 -102
- package/lib/_singletons.js.map +1 -1
- package/lib/index.js +258 -177
- package/lib/index.js.map +1 -1
- package/lib/router.d.ts +4 -4
- package/package.json +19 -19
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react576 from "react";
|
|
2
2
|
import { CSSProperties, Component, ComponentProps, ComponentType, Dispatch, ElementType, ErrorInfo, FC, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, HTMLAttributes, HTMLProps, KeyboardEvent, MutableRefObject, PropsWithChildren, PureComponent, ReactNode, Ref, RefAttributes, RefObject, SVGProps, SetStateAction } from "react";
|
|
3
3
|
import * as _sanity_types44 from "@sanity/types";
|
|
4
4
|
import { ArraySchemaType, AssetMetadataType, AssetSource, AssetSourceSpec, BlockDecoratorDefinition, BlockListDefinition, BlockStyleDefinition, BooleanSchemaType, ConditionalProperty, CrossDatasetReferenceSchemaType, CrossDatasetReferenceValue, CrossDatasetType, CurrentUser, DeprecatedProperty, FieldGroup, File as File$1, FileAsset, FileSchemaType, FileValue, FormNodeValidation, GeopointValue, GlobalDocumentReferenceType, I18nTextRecord, Image, ImageAsset, ImageSchemaType, ImageUrlFitMode, ImageValue, IndexTuple, InitialValueProperty, InitialValueResolverContext, IntrinsicTypeName, KeyedObject, KeyedSegment, MendozaEffectPair, NumberSchemaType, ObjectField, ObjectFieldType, ObjectSchemaType, PatchOperations, Path, PathSegment, PortableTextBlock, PortableTextObject, PortableTextTextBlock, PrepareViewOptions, PreviewValue, Reference, ReferenceSchemaType, ReferenceValue, Role, RuleClass, SanityDocument, SanityDocumentLike, Schema, SchemaType, SchemaTypeDefinition, SearchStrategy, SlugSchemaType, SlugValue, SortOrdering, StrictVersionLayeringOptions, StringSchemaType, TextSchemaType, TransactionLogEventWithEffects, TransactionLogEventWithMutations, UploadState, User, ValidationMarker } from "@sanity/types";
|
|
5
5
|
import { BifurClient } from "@sanity/bifur-client";
|
|
6
6
|
import * as _sanity_client0 from "@sanity/client";
|
|
7
7
|
import { ClientConfig, ClientPerspective, QueryParams, ReleaseDocument, ReleaseDocument as ReleaseDocument$1, SanityClient, SanityDocument as SanityDocument$1, SingleActionResult, SingleMutationResult, StackablePerspective } from "@sanity/client";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _sanity_ui17 from "@sanity/ui";
|
|
9
9
|
import { AvatarPosition, AvatarProps, AvatarSize, AvatarStatus, BadgeProps, BadgeTone, BoxProps, ButtonProps, ButtonTone, CardProps, DialogProps, HotkeysProps, MenuButtonProps, MenuItem, Placement, PopoverProps, ResponsivePaddingProps, ResponsiveWidthProps, Text, TextProps, ThemeColorSchemeKey, ToastParams, TooltipProps } from "@sanity/ui";
|
|
10
10
|
import { FlatNamespace, KeyPrefix, Namespace, TFunction, TFunction as TFunction$1, i18n as i18n$1 } from "i18next";
|
|
11
11
|
import { Observable, OperatorFunction, Subject } from "rxjs";
|
|
@@ -13,7 +13,7 @@ import { IntentLinkProps, IntentParameters, Router, RouterState, SearchParam } f
|
|
|
13
13
|
import { ScrollToOptions } from "@tanstack/react-virtual";
|
|
14
14
|
import * as _sanity_telemetry39 from "@sanity/telemetry";
|
|
15
15
|
import { DRAFTS_FOLDER, DraftId, PublishedId, VERSION_FOLDER, getDraftId, getPublishedId, getVersionFromId, getVersionId, isDraftId, isPublishedId, isVersionId } from "@sanity/client/csm";
|
|
16
|
-
import * as
|
|
16
|
+
import * as sanity__singletons2 from "sanity/_singletons";
|
|
17
17
|
import { DocumentLimitUpsellContextValue, FieldActionsContextValue, HoveredFieldContextValue, LocaleContextValue, SchedulesContext, SingleDocReleaseContextValue } from "sanity/_singletons";
|
|
18
18
|
import { Mutation } from "@sanity/mutator";
|
|
19
19
|
import { CanvasResource, FrameMessages, MediaResource, StudioResource, WindowMessages } from "@sanity/message-protocol";
|
|
@@ -312,7 +312,7 @@ declare class CorsOriginError extends Error {
|
|
|
312
312
|
/** @internal */
|
|
313
313
|
type BetaBadgeProps = Omit<BadgeProps, 'mode' | 'tone'>;
|
|
314
314
|
/** @internal */
|
|
315
|
-
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>):
|
|
315
|
+
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>): react576.JSX.Element;
|
|
316
316
|
/** @internal */
|
|
317
317
|
type CommandListElementType = 'input' | 'list';
|
|
318
318
|
/** @internal */
|
|
@@ -394,7 +394,7 @@ interface CommandListProps<T = any> extends ResponsivePaddingProps {
|
|
|
394
394
|
*
|
|
395
395
|
* @internal
|
|
396
396
|
*/
|
|
397
|
-
declare const CommandList:
|
|
397
|
+
declare const CommandList: react576.NamedExoticComponent<CommandListProps<any> & react576.RefAttributes<CommandListHandle>>;
|
|
398
398
|
type BaseButtonProps = Pick<ButtonProps, 'as' | 'icon' | 'iconRight' | 'justify' | 'loading' | 'mode' | 'paddingY' | 'paddingLeft' | 'selected' | 'tone' | 'type' | 'width'> & {
|
|
399
399
|
size?: 'default' | 'large';
|
|
400
400
|
radius?: 'full';
|
|
@@ -419,13 +419,13 @@ type ButtonProps$1 = BaseButtonProps & (ButtonWithText | IconButton);
|
|
|
419
419
|
*
|
|
420
420
|
* @internal
|
|
421
421
|
*/
|
|
422
|
-
declare const Button:
|
|
422
|
+
declare const Button: react576.ForwardRefExoticComponent<(Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
423
423
|
size?: "default" | "large" | undefined;
|
|
424
424
|
radius?: "full" | undefined;
|
|
425
425
|
} & ButtonWithText & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref"> | Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
426
426
|
size?: "default" | "large" | undefined;
|
|
427
427
|
radius?: "full" | undefined;
|
|
428
|
-
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) &
|
|
428
|
+
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) & react576.RefAttributes<HTMLButtonElement>>;
|
|
429
429
|
/** @internal */
|
|
430
430
|
type MenuButtonProps$1 = Omit<MenuButtonProps, 'popover'> & {
|
|
431
431
|
popover?: Omit<PopoverProps, 'animate' | 'content' | 'open'>;
|
|
@@ -442,7 +442,7 @@ type ContextMenuButtonProps = Pick<ButtonProps$1, 'mode' | 'selected' | 'size' |
|
|
|
442
442
|
*
|
|
443
443
|
* @internal
|
|
444
444
|
*/
|
|
445
|
-
declare const ContextMenuButton:
|
|
445
|
+
declare const ContextMenuButton: react576.ForwardRefExoticComponent<ContextMenuButtonProps & Pick<HTMLProps<HTMLButtonElement>, "disabled" | "hidden" | "onClick"> & react576.RefAttributes<HTMLButtonElement>>;
|
|
446
446
|
/**
|
|
447
447
|
* Indicates the type of document variant, either `draft`, `version` or `published`.
|
|
448
448
|
* Draft documents are prefixed with `drafts.`.
|
|
@@ -462,7 +462,7 @@ declare function getDocumentVariantType(documentId: string): DocumentVariantType
|
|
|
462
462
|
/**
|
|
463
463
|
* @internal
|
|
464
464
|
*/
|
|
465
|
-
declare const Chip:
|
|
465
|
+
declare const Chip: react576.ForwardRefExoticComponent<Omit<Omit<_sanity_ui17.ButtonProps & Omit<react576.HTMLProps<HTMLButtonElement>, "as" | "width">, "ref"> & react576.RefAttributes<HTMLButtonElement>, "ref"> & react576.RefAttributes<unknown>>;
|
|
466
466
|
/**
|
|
467
467
|
*
|
|
468
468
|
* Checks if the document ID `documentId` has the same ID as `equalsDocumentId`,
|
|
@@ -633,7 +633,7 @@ type ReleasesNavMenuItemPropsGetter = (content: {
|
|
|
633
633
|
/**
|
|
634
634
|
* @internal
|
|
635
635
|
*/
|
|
636
|
-
declare const VersionChip:
|
|
636
|
+
declare const VersionChip: react576.NamedExoticComponent<{
|
|
637
637
|
disabled?: boolean | undefined;
|
|
638
638
|
selected: boolean;
|
|
639
639
|
tooltipContent?: ReactNode;
|
|
@@ -660,7 +660,7 @@ declare const ReleaseAvatarIcon: ({
|
|
|
660
660
|
tone
|
|
661
661
|
}: {
|
|
662
662
|
tone: "caution" | "critical" | "default" | "neutral" | "positive" | "primary" | "suggest";
|
|
663
|
-
}) =>
|
|
663
|
+
}) => react576.JSX.Element;
|
|
664
664
|
/** @internal */
|
|
665
665
|
declare function ReleaseAvatar({
|
|
666
666
|
fontSize,
|
|
@@ -679,12 +679,12 @@ declare const VersionInlineBadge: ({
|
|
|
679
679
|
$tone
|
|
680
680
|
}: PropsWithChildren<{
|
|
681
681
|
$tone?: "caution" | "critical" | "default" | "neutral" | "positive" | "primary" | "suggest" | undefined;
|
|
682
|
-
}>) =>
|
|
682
|
+
}>) => react576.JSX.Element;
|
|
683
683
|
/**
|
|
684
684
|
* @internal
|
|
685
685
|
*/
|
|
686
686
|
declare const getVersionInlineBadge: (release?: TargetPerspective | undefined) => FC<{
|
|
687
|
-
children?:
|
|
687
|
+
children?: react576.ReactNode;
|
|
688
688
|
}>;
|
|
689
689
|
interface ObserveDocumentAPIConfig {
|
|
690
690
|
dataset?: string;
|
|
@@ -1005,7 +1005,7 @@ declare const ChangeFieldWrapper: (props: {
|
|
|
1005
1005
|
path: Path;
|
|
1006
1006
|
children: ReactNode;
|
|
1007
1007
|
hasRevertHover: boolean;
|
|
1008
|
-
}) =>
|
|
1008
|
+
}) => react576.JSX.Element;
|
|
1009
1009
|
/** @internal */
|
|
1010
1010
|
interface ChangeIndicatorProps {
|
|
1011
1011
|
path: Path;
|
|
@@ -1014,7 +1014,7 @@ interface ChangeIndicatorProps {
|
|
|
1014
1014
|
withHoverEffect?: boolean;
|
|
1015
1015
|
}
|
|
1016
1016
|
/** @internal */
|
|
1017
|
-
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
1017
|
+
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): react576.JSX.Element;
|
|
1018
1018
|
/** @internal */
|
|
1019
1019
|
interface ConnectorContextValue {
|
|
1020
1020
|
isReviewChangesOpen: boolean;
|
|
@@ -1038,7 +1038,7 @@ declare function ChangeConnectorRoot({
|
|
|
1038
1038
|
onOpenReviewChanges,
|
|
1039
1039
|
onSetFocus,
|
|
1040
1040
|
...restProps
|
|
1041
|
-
}: ChangeConnectorRootProps):
|
|
1041
|
+
}: ChangeConnectorRootProps): react576.JSX.Element;
|
|
1042
1042
|
/** @internal */
|
|
1043
1043
|
type Reported<Value> = [string, Value];
|
|
1044
1044
|
/** @internal */
|
|
@@ -1078,11 +1078,11 @@ interface TrackedArea {
|
|
|
1078
1078
|
type ChangeIndicatorTrackerContextValue = TrackedChange;
|
|
1079
1079
|
declare function ChangeIndicatorsTrackerComponent(props: {
|
|
1080
1080
|
children: React.ReactNode;
|
|
1081
|
-
}):
|
|
1081
|
+
}): react576.JSX.Element;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* @internal
|
|
1084
1084
|
*/
|
|
1085
|
-
declare const ChangeIndicatorsTracker:
|
|
1085
|
+
declare const ChangeIndicatorsTracker: react576.MemoExoticComponent<typeof ChangeIndicatorsTrackerComponent>;
|
|
1086
1086
|
/**
|
|
1087
1087
|
* @internal
|
|
1088
1088
|
*/
|
|
@@ -1107,11 +1107,11 @@ interface CommentDeleteDialogProps {
|
|
|
1107
1107
|
* @beta
|
|
1108
1108
|
* @hidden
|
|
1109
1109
|
*/
|
|
1110
|
-
declare function CommentDeleteDialog(props: CommentDeleteDialogProps):
|
|
1110
|
+
declare function CommentDeleteDialog(props: CommentDeleteDialogProps): react576.JSX.Element;
|
|
1111
1111
|
/**
|
|
1112
1112
|
* @internal
|
|
1113
1113
|
*/
|
|
1114
|
-
declare const CommentDisabledIcon:
|
|
1114
|
+
declare const CommentDisabledIcon: react576.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & react576.RefAttributes<SVGSVGElement>>;
|
|
1115
1115
|
/**
|
|
1116
1116
|
*
|
|
1117
1117
|
* @deprecated Calling `useClient()` without specifying an API version is deprecated - specify a date to prevent breaking changes, e.g. `useClient({apiVersion: "2025-02-07"})`.
|
|
@@ -1206,8 +1206,8 @@ declare function useDialogStack({
|
|
|
1206
1206
|
path?: Path;
|
|
1207
1207
|
}): {
|
|
1208
1208
|
/** Unique ID for this dialog instance */dialogId: string; /** The current top dialog entry */
|
|
1209
|
-
topEntry:
|
|
1210
|
-
stack:
|
|
1209
|
+
topEntry: sanity__singletons2.DialogStackEntry | null; /** The full stack of dialog entries (each has id and path) */
|
|
1210
|
+
stack: sanity__singletons2.DialogStackEntry[]; /** Check if this dialog is on top */
|
|
1211
1211
|
isTop: boolean; /** Close dialogs */
|
|
1212
1212
|
close: () => void;
|
|
1213
1213
|
};
|
|
@@ -3509,7 +3509,7 @@ interface LocaleSource {
|
|
|
3509
3509
|
* @internal
|
|
3510
3510
|
* @hidden
|
|
3511
3511
|
*/
|
|
3512
|
-
declare function LocaleProvider(props: PropsWithChildren):
|
|
3512
|
+
declare function LocaleProvider(props: PropsWithChildren): react576.JSX.Element;
|
|
3513
3513
|
/**
|
|
3514
3514
|
* @internal
|
|
3515
3515
|
* @hidden
|
|
@@ -3525,7 +3525,7 @@ declare function LocaleProviderBase({
|
|
|
3525
3525
|
sourceId: string;
|
|
3526
3526
|
locales: Locale[];
|
|
3527
3527
|
i18next: i18n$1;
|
|
3528
|
-
}>):
|
|
3528
|
+
}>): react576.JSX.Element;
|
|
3529
3529
|
/**
|
|
3530
3530
|
* Defines a resource bundle for a given locale and namespace.
|
|
3531
3531
|
*
|
|
@@ -3729,7 +3729,7 @@ interface TranslationProps {
|
|
|
3729
3729
|
*
|
|
3730
3730
|
* @public
|
|
3731
3731
|
*/
|
|
3732
|
-
declare function Translate(props: TranslationProps):
|
|
3732
|
+
declare function Translate(props: TranslationProps): react576.JSX.Element;
|
|
3733
3733
|
declare module '@sanity/types' {
|
|
3734
3734
|
/**
|
|
3735
3735
|
* Extended validation context that includes internationalization
|
|
@@ -3810,6 +3810,12 @@ interface ValidateDocumentOptions {
|
|
|
3810
3810
|
* fullfil the custom validation. This is 25 by default.
|
|
3811
3811
|
*/
|
|
3812
3812
|
maxFetchConcurrency?: number;
|
|
3813
|
+
/**
|
|
3814
|
+
* The current user, when available. Used when resolving schema `hidden`
|
|
3815
|
+
* conditionals so validation matches what the form shows. If omitted, hidden
|
|
3816
|
+
* is resolved with no user (e.g. CLI or headless validation).
|
|
3817
|
+
*/
|
|
3818
|
+
currentUser?: Omit<CurrentUser, 'role'> | null;
|
|
3813
3819
|
}
|
|
3814
3820
|
/**
|
|
3815
3821
|
* Validates a document against the schema in the given workspace. Returns an
|
|
@@ -3822,6 +3828,7 @@ declare function validateDocument({
|
|
|
3822
3828
|
workspace,
|
|
3823
3829
|
environment,
|
|
3824
3830
|
maxFetchConcurrency,
|
|
3831
|
+
currentUser,
|
|
3825
3832
|
...options
|
|
3826
3833
|
}: ValidateDocumentOptions): Promise<ValidationMarker[]>;
|
|
3827
3834
|
/**
|
|
@@ -3852,7 +3859,7 @@ interface CommentsAuthoringPathProviderProps {
|
|
|
3852
3859
|
* the component re-renders, for example, when the form is temporarily set to `readOnly`
|
|
3853
3860
|
* while reconnecting.
|
|
3854
3861
|
*/
|
|
3855
|
-
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps):
|
|
3862
|
+
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps): react576.JSX.Element;
|
|
3856
3863
|
/**
|
|
3857
3864
|
* @beta
|
|
3858
3865
|
* @hidden
|
|
@@ -4150,7 +4157,7 @@ interface CommentsProviderProps {
|
|
|
4150
4157
|
/**
|
|
4151
4158
|
* @beta
|
|
4152
4159
|
*/
|
|
4153
|
-
declare const CommentsProvider:
|
|
4160
|
+
declare const CommentsProvider: react576.NamedExoticComponent<CommentsProviderProps>;
|
|
4154
4161
|
interface CommentsEnabledProviderProps {
|
|
4155
4162
|
children: ReactNode;
|
|
4156
4163
|
documentId: string;
|
|
@@ -4160,7 +4167,7 @@ interface CommentsEnabledProviderProps {
|
|
|
4160
4167
|
* @beta
|
|
4161
4168
|
* @hidden
|
|
4162
4169
|
*/
|
|
4163
|
-
declare const CommentsEnabledProvider:
|
|
4170
|
+
declare const CommentsEnabledProvider: react576.NamedExoticComponent<CommentsEnabledProviderProps>;
|
|
4164
4171
|
/**
|
|
4165
4172
|
* @beta
|
|
4166
4173
|
* @hidden
|
|
@@ -4173,14 +4180,14 @@ interface CommentsIntentProviderProps {
|
|
|
4173
4180
|
* @beta
|
|
4174
4181
|
* @hidden
|
|
4175
4182
|
*/
|
|
4176
|
-
declare const CommentsIntentProvider:
|
|
4183
|
+
declare const CommentsIntentProvider: react576.NamedExoticComponent<CommentsIntentProviderProps>;
|
|
4177
4184
|
interface CommentsSelectedPathProviderProps {
|
|
4178
4185
|
children: React.ReactNode;
|
|
4179
4186
|
}
|
|
4180
4187
|
/**
|
|
4181
4188
|
* @internal
|
|
4182
4189
|
*/
|
|
4183
|
-
declare const CommentsSelectedPathProvider:
|
|
4190
|
+
declare const CommentsSelectedPathProvider: react576.NamedExoticComponent<CommentsSelectedPathProviderProps>;
|
|
4184
4191
|
/**
|
|
4185
4192
|
* @internal
|
|
4186
4193
|
*/
|
|
@@ -4223,7 +4230,7 @@ declare function ActiveWorkspaceMatcher({
|
|
|
4223
4230
|
LoadingComponent,
|
|
4224
4231
|
NotFoundComponent,
|
|
4225
4232
|
unstable_history: historyProp
|
|
4226
|
-
}: ActiveWorkspaceMatcherProps):
|
|
4233
|
+
}: ActiveWorkspaceMatcherProps): react576.JSX.Element;
|
|
4227
4234
|
/** @internal */
|
|
4228
4235
|
interface WorkspaceLike {
|
|
4229
4236
|
name?: string;
|
|
@@ -4294,7 +4301,7 @@ declare function WorkspacesProvider({
|
|
|
4294
4301
|
children,
|
|
4295
4302
|
basePath,
|
|
4296
4303
|
LoadingComponent
|
|
4297
|
-
}: WorkspacesProviderProps):
|
|
4304
|
+
}: WorkspacesProviderProps): react576.JSX.Element;
|
|
4298
4305
|
/** @internal */
|
|
4299
4306
|
type NormalizedWorkspace = {
|
|
4300
4307
|
workspace: WorkspacesContextValue[number];
|
|
@@ -4340,7 +4347,7 @@ interface AddonDatasetSetupProviderProps {
|
|
|
4340
4347
|
* @beta
|
|
4341
4348
|
* @hidden
|
|
4342
4349
|
*/
|
|
4343
|
-
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean |
|
|
4350
|
+
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean | react576.JSX.Element | Iterable<react576.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react576.ReactNode> | react576.ReactElement<unknown, string | react576.JSXElementConstructor<any>> | react576.ReactPortal | null | undefined> | null | undefined;
|
|
4344
4351
|
/**
|
|
4345
4352
|
* @beta
|
|
4346
4353
|
* @hidden
|
|
@@ -4442,7 +4449,7 @@ declare function ColorSchemeProvider({
|
|
|
4442
4449
|
children,
|
|
4443
4450
|
onSchemeChange,
|
|
4444
4451
|
scheme: schemeProp
|
|
4445
|
-
}: ColorSchemeProviderProps):
|
|
4452
|
+
}: ColorSchemeProviderProps): react576.JSX.Element;
|
|
4446
4453
|
/**
|
|
4447
4454
|
* Uses useSyncExternalStore to ensure that localStorage is accessed in a SSR hydration compatible way
|
|
4448
4455
|
* @internal
|
|
@@ -4450,7 +4457,7 @@ declare function ColorSchemeProvider({
|
|
|
4450
4457
|
declare function ColorSchemeLocalStorageProvider({
|
|
4451
4458
|
children,
|
|
4452
4459
|
onSchemeChange
|
|
4453
|
-
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>):
|
|
4460
|
+
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>): react576.JSX.Element;
|
|
4454
4461
|
/**
|
|
4455
4462
|
* If the `scheme` prop is provided we don't need to setup any logic to handle localStorage
|
|
4456
4463
|
* @internal
|
|
@@ -4495,7 +4502,7 @@ declare function Filters({
|
|
|
4495
4502
|
showTypeFilter
|
|
4496
4503
|
}: {
|
|
4497
4504
|
showTypeFilter?: boolean;
|
|
4498
|
-
}):
|
|
4505
|
+
}): react576.JSX.Element;
|
|
4499
4506
|
interface SearchHeaderProps {
|
|
4500
4507
|
ariaInputLabel?: string;
|
|
4501
4508
|
onClose?: () => void;
|
|
@@ -4503,7 +4510,7 @@ interface SearchHeaderProps {
|
|
|
4503
4510
|
/**
|
|
4504
4511
|
* @internal
|
|
4505
4512
|
*/
|
|
4506
|
-
declare const SearchHeader:
|
|
4513
|
+
declare const SearchHeader: react576.ForwardRefExoticComponent<SearchHeaderProps & react576.RefAttributes<HTMLInputElement>>;
|
|
4507
4514
|
type ItemSelectHandler = (item: Pick<SanityDocumentLike, '_id' | '_type' | 'title'>) => void;
|
|
4508
4515
|
/**
|
|
4509
4516
|
* @internal
|
|
@@ -4531,7 +4538,7 @@ declare function SearchPopover({
|
|
|
4531
4538
|
onOpen,
|
|
4532
4539
|
previewPerspective,
|
|
4533
4540
|
open
|
|
4534
|
-
}: SearchPopoverProps):
|
|
4541
|
+
}: SearchPopoverProps): react576.JSX.Element;
|
|
4535
4542
|
interface SearchResultItemPreviewProps {
|
|
4536
4543
|
documentId: string;
|
|
4537
4544
|
documentType: string;
|
|
@@ -4552,7 +4559,7 @@ declare function SearchResultItemPreview({
|
|
|
4552
4559
|
schemaType,
|
|
4553
4560
|
showBadge,
|
|
4554
4561
|
perspective
|
|
4555
|
-
}: SearchResultItemPreviewProps):
|
|
4562
|
+
}: SearchResultItemPreviewProps): react576.JSX.Element;
|
|
4556
4563
|
/**
|
|
4557
4564
|
* @internal
|
|
4558
4565
|
*/
|
|
@@ -5086,7 +5093,7 @@ declare function SearchProvider({
|
|
|
5086
5093
|
fullscreen,
|
|
5087
5094
|
disabledDocumentIds,
|
|
5088
5095
|
canDisableAction
|
|
5089
|
-
}: SearchProviderProps):
|
|
5096
|
+
}: SearchProviderProps): react576.JSX.Element;
|
|
5090
5097
|
/**
|
|
5091
5098
|
* @internal
|
|
5092
5099
|
*/
|
|
@@ -5111,7 +5118,7 @@ interface SearchButtonProps {
|
|
|
5111
5118
|
/**
|
|
5112
5119
|
* @internal
|
|
5113
5120
|
*/
|
|
5114
|
-
declare const SearchButton:
|
|
5121
|
+
declare const SearchButton: react576.ForwardRefExoticComponent<SearchButtonProps & react576.RefAttributes<HTMLButtonElement>>;
|
|
5115
5122
|
interface SearchDialogProps {
|
|
5116
5123
|
onClose: () => void;
|
|
5117
5124
|
onOpen: () => void;
|
|
@@ -5124,11 +5131,11 @@ declare function SearchDialog({
|
|
|
5124
5131
|
onClose,
|
|
5125
5132
|
onOpen,
|
|
5126
5133
|
open
|
|
5127
|
-
}: SearchDialogProps):
|
|
5134
|
+
}: SearchDialogProps): react576.JSX.Element;
|
|
5128
5135
|
/**
|
|
5129
5136
|
* @hidden
|
|
5130
5137
|
* @beta */
|
|
5131
|
-
declare function StudioLogo(props: LogoProps):
|
|
5138
|
+
declare function StudioLogo(props: LogoProps): react576.JSX.Element;
|
|
5132
5139
|
/**
|
|
5133
5140
|
* @hidden
|
|
5134
5141
|
* @beta */
|
|
@@ -5220,11 +5227,11 @@ interface StudioComponentsPluginOptions {
|
|
|
5220
5227
|
/**
|
|
5221
5228
|
* @hidden
|
|
5222
5229
|
* @beta */
|
|
5223
|
-
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>):
|
|
5230
|
+
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>): react576.JSX.Element;
|
|
5224
5231
|
/**
|
|
5225
5232
|
* @hidden
|
|
5226
5233
|
* @beta */
|
|
5227
|
-
declare function StudioToolMenu(props: ToolMenuProps):
|
|
5234
|
+
declare function StudioToolMenu(props: ToolMenuProps): react576.JSX.Element | null;
|
|
5228
5235
|
/**
|
|
5229
5236
|
* @hidden
|
|
5230
5237
|
* @beta */
|
|
@@ -5235,7 +5242,7 @@ interface ToolLinkProps {
|
|
|
5235
5242
|
/**
|
|
5236
5243
|
* @hidden
|
|
5237
5244
|
* @beta */
|
|
5238
|
-
declare const ToolLink:
|
|
5245
|
+
declare const ToolLink: react576.ForwardRefExoticComponent<Omit<ToolLinkProps & Omit<HTMLProps<HTMLAnchorElement>, "href" | "name">, "ref"> & react576.RefAttributes<HTMLAnchorElement>>;
|
|
5239
5246
|
/**
|
|
5240
5247
|
* @hidden
|
|
5241
5248
|
* @beta */
|
|
@@ -5536,7 +5543,7 @@ type SourceProviderProps = {
|
|
|
5536
5543
|
declare function SourceProvider({
|
|
5537
5544
|
children,
|
|
5538
5545
|
...props
|
|
5539
|
-
}: SourceProviderProps):
|
|
5546
|
+
}: SourceProviderProps): react576.JSX.Element;
|
|
5540
5547
|
/**
|
|
5541
5548
|
* @internal
|
|
5542
5549
|
* @deprecated INTERNAL USE ONLY
|
|
@@ -5648,7 +5655,7 @@ declare function StudioAnnouncementsCard({
|
|
|
5648
5655
|
preHeader,
|
|
5649
5656
|
onCardClick,
|
|
5650
5657
|
onCardDismiss
|
|
5651
|
-
}: StudioAnnouncementCardProps):
|
|
5658
|
+
}: StudioAnnouncementCardProps): react576.JSX.Element;
|
|
5652
5659
|
declare const audienceRoles: readonly ["administrator", "editor", "viewer", "contributor", "developer", "custom"];
|
|
5653
5660
|
type AudienceRole = (typeof audienceRoles)[number];
|
|
5654
5661
|
interface StudioAnnouncementDocument {
|
|
@@ -5688,7 +5695,7 @@ declare function StudioAnnouncementsDialog({
|
|
|
5688
5695
|
announcements,
|
|
5689
5696
|
onClose,
|
|
5690
5697
|
mode
|
|
5691
|
-
}: StudioAnnouncementDialogProps):
|
|
5698
|
+
}: StudioAnnouncementDialogProps): react576.JSX.Element;
|
|
5692
5699
|
/**
|
|
5693
5700
|
* @internal
|
|
5694
5701
|
* @hidden
|
|
@@ -5731,12 +5738,12 @@ interface NavbarContextValue {
|
|
|
5731
5738
|
*</StudioProvider>
|
|
5732
5739
|
* ```
|
|
5733
5740
|
*/
|
|
5734
|
-
declare function StudioLayout():
|
|
5741
|
+
declare function StudioLayout(): react576.JSX.Element;
|
|
5735
5742
|
/**
|
|
5736
5743
|
* @internal
|
|
5737
5744
|
* The default Studio Layout component
|
|
5738
5745
|
* */
|
|
5739
|
-
declare function StudioLayoutComponent():
|
|
5746
|
+
declare function StudioLayoutComponent(): react576.JSX.Element;
|
|
5740
5747
|
/**
|
|
5741
5748
|
* @hidden
|
|
5742
5749
|
* @beta */
|
|
@@ -5754,7 +5761,7 @@ declare function StudioProvider({
|
|
|
5754
5761
|
scheme,
|
|
5755
5762
|
unstable_history: history,
|
|
5756
5763
|
unstable_noAuthBoundary: noAuthBoundary
|
|
5757
|
-
}: StudioProviderProps):
|
|
5764
|
+
}: StudioProviderProps): react576.JSX.Element;
|
|
5758
5765
|
interface UpsellDialogActionsInfo {
|
|
5759
5766
|
feature: 'comments' | 'scheduled_publishing' | 'ai_assist' | 'tasks';
|
|
5760
5767
|
type: 'modal' | 'inspector';
|
|
@@ -5799,7 +5806,7 @@ interface DescriptionSerializerProps {
|
|
|
5799
5806
|
* Not meant for public consumption.
|
|
5800
5807
|
* @internal
|
|
5801
5808
|
*/
|
|
5802
|
-
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps):
|
|
5809
|
+
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps): react576.JSX.Element;
|
|
5803
5810
|
/** @internal */
|
|
5804
5811
|
interface WorkspaceProviderProps {
|
|
5805
5812
|
workspace: Workspace;
|
|
@@ -5834,7 +5841,7 @@ declare function ErrorMessage({
|
|
|
5834
5841
|
message,
|
|
5835
5842
|
path,
|
|
5836
5843
|
stack
|
|
5837
|
-
}: ErrorMessageProps):
|
|
5844
|
+
}: ErrorMessageProps): react576.JSX.Element;
|
|
5838
5845
|
interface WorkspaceLoaderProps {
|
|
5839
5846
|
children: ReactNode;
|
|
5840
5847
|
ConfigErrorsComponent: ComponentType;
|
|
@@ -5850,7 +5857,7 @@ declare function useWorkspaceLoader(activeWorkspace: WorkspaceSummary): Workspac
|
|
|
5850
5857
|
declare function WorkspaceLoaderBoundary({
|
|
5851
5858
|
ConfigErrorsComponent,
|
|
5852
5859
|
...props
|
|
5853
|
-
}: WorkspaceLoaderProps):
|
|
5860
|
+
}: WorkspaceLoaderProps): react576.JSX.Element;
|
|
5854
5861
|
/**
|
|
5855
5862
|
* @beta
|
|
5856
5863
|
* @hidden
|
|
@@ -5927,7 +5934,7 @@ interface CommentsListProps {
|
|
|
5927
5934
|
* @beta
|
|
5928
5935
|
* @hidden
|
|
5929
5936
|
*/
|
|
5930
|
-
declare const CommentsList:
|
|
5937
|
+
declare const CommentsList: react576.NamedExoticComponent<CommentsListProps & react576.RefAttributes<HTMLDivElement>>;
|
|
5931
5938
|
/**
|
|
5932
5939
|
* @internal
|
|
5933
5940
|
*/
|
|
@@ -5970,7 +5977,7 @@ interface CommentInputHandle {
|
|
|
5970
5977
|
* @internal
|
|
5971
5978
|
* @hidden
|
|
5972
5979
|
*/
|
|
5973
|
-
declare const CommentInput:
|
|
5980
|
+
declare const CommentInput: react576.ForwardRefExoticComponent<CommentInputProps & react576.RefAttributes<CommentInputHandle>>;
|
|
5974
5981
|
interface CommentInputContextValue {
|
|
5975
5982
|
canSubmit?: boolean;
|
|
5976
5983
|
closeMentions: () => void;
|
|
@@ -6000,7 +6007,7 @@ interface CommentInlineHighlightSpanProps {
|
|
|
6000
6007
|
/**
|
|
6001
6008
|
* @internal
|
|
6002
6009
|
*/
|
|
6003
|
-
declare const CommentInlineHighlightSpan:
|
|
6010
|
+
declare const CommentInlineHighlightSpan: react576.ForwardRefExoticComponent<Omit<CommentInlineHighlightSpanProps & react576.HTMLProps<HTMLSpanElement>, "ref"> & react576.RefAttributes<HTMLSpanElement>>;
|
|
6004
6011
|
/**
|
|
6005
6012
|
* @internal
|
|
6006
6013
|
* @hidden
|
|
@@ -6138,11 +6145,11 @@ interface CollapseMenuProps {
|
|
|
6138
6145
|
onMenuClose?: () => void;
|
|
6139
6146
|
}
|
|
6140
6147
|
/** @internal */
|
|
6141
|
-
declare const CollapseMenu:
|
|
6148
|
+
declare const CollapseMenu: react576.ForwardRefExoticComponent<CollapseMenuProps & react576.RefAttributes<any>>;
|
|
6142
6149
|
/** @internal */
|
|
6143
|
-
declare const AutoCollapseMenu:
|
|
6144
|
-
menuOptions:
|
|
6145
|
-
} &
|
|
6150
|
+
declare const AutoCollapseMenu: react576.ForwardRefExoticComponent<Omit<CollapseMenuProps, "children" | "collapsed"> & {
|
|
6151
|
+
menuOptions: react576.JSX.Element[];
|
|
6152
|
+
} & react576.RefAttributes<HTMLDivElement>>;
|
|
6146
6153
|
/** @internal */
|
|
6147
6154
|
interface CommonProps extends Omit<ButtonProps$1, 'text' | 'iconRight'> {
|
|
6148
6155
|
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
@@ -6158,7 +6165,7 @@ interface CollapseMenuButtonProps extends CommonProps {
|
|
|
6158
6165
|
text: string;
|
|
6159
6166
|
}
|
|
6160
6167
|
/** @internal */
|
|
6161
|
-
declare const CollapseMenuButton:
|
|
6168
|
+
declare const CollapseMenuButton: react576.ForwardRefExoticComponent<Omit<CollapseMenuButtonProps & Omit<HTMLProps<HTMLButtonElement>, "as" | "size">, "ref"> & react576.RefAttributes<HTMLButtonElement>>;
|
|
6162
6169
|
/** @internal */
|
|
6163
6170
|
declare function useOnScroll(callback: Subscriber<Event>): void;
|
|
6164
6171
|
/** @internal */
|
|
@@ -6175,7 +6182,7 @@ interface ScrollContainerProps<T extends ElementType> extends Omit<HTMLProps<T>,
|
|
|
6175
6182
|
*
|
|
6176
6183
|
* @internal
|
|
6177
6184
|
*/
|
|
6178
|
-
declare const ScrollContainer:
|
|
6185
|
+
declare const ScrollContainer: react576.NamedExoticComponent<Omit<ScrollContainerProps<ElementType>, "ref"> & react576.RefAttributes<HTMLDivElement>>;
|
|
6179
6186
|
/** @internal */
|
|
6180
6187
|
type ScrollEventHandler = (event: Event) => void;
|
|
6181
6188
|
/** @internal */
|
|
@@ -6617,7 +6624,7 @@ interface EventsProviderProps {
|
|
|
6617
6624
|
declare function EventsProvider({
|
|
6618
6625
|
value,
|
|
6619
6626
|
children
|
|
6620
|
-
}: EventsProviderProps):
|
|
6627
|
+
}: EventsProviderProps): react576.JSX.Element;
|
|
6621
6628
|
/**
|
|
6622
6629
|
* @internal
|
|
6623
6630
|
*/
|
|
@@ -6835,7 +6842,7 @@ declare function useDiffAnnotationColor(diff: Diff$1, path?: string | Path): Use
|
|
|
6835
6842
|
declare function ChangeBreadcrumb(props: {
|
|
6836
6843
|
change?: FieldChangeNode;
|
|
6837
6844
|
titlePath: ChangeTitlePath;
|
|
6838
|
-
}):
|
|
6845
|
+
}): react576.JSX.Element;
|
|
6839
6846
|
/** @internal */
|
|
6840
6847
|
interface ChangeListProps {
|
|
6841
6848
|
schemaType: ObjectSchemaType;
|
|
@@ -6856,7 +6863,7 @@ interface ChangeResolverProps {
|
|
|
6856
6863
|
addParentWrapper?: boolean;
|
|
6857
6864
|
}
|
|
6858
6865
|
/** @internal */
|
|
6859
|
-
declare function ChangeResolver(props: ChangeResolverProps):
|
|
6866
|
+
declare function ChangeResolver(props: ChangeResolverProps): react576.JSX.Element | null;
|
|
6860
6867
|
/**
|
|
6861
6868
|
* @internal
|
|
6862
6869
|
* */
|
|
@@ -6864,12 +6871,12 @@ declare function ChangesError({
|
|
|
6864
6871
|
error
|
|
6865
6872
|
}: {
|
|
6866
6873
|
error?: Error | null;
|
|
6867
|
-
}):
|
|
6874
|
+
}): react576.JSX.Element;
|
|
6868
6875
|
/** @internal */
|
|
6869
6876
|
declare function ChangeTitleSegment(props: {
|
|
6870
6877
|
change?: FieldChangeNode;
|
|
6871
6878
|
segment: string | FromToIndex;
|
|
6872
|
-
}):
|
|
6879
|
+
}): react576.JSX.Element;
|
|
6873
6880
|
/**
|
|
6874
6881
|
* @internal
|
|
6875
6882
|
* mapping of events types with a readable key for translation
|
|
@@ -6887,7 +6894,7 @@ interface DiffCardProps {
|
|
|
6887
6894
|
} | boolean;
|
|
6888
6895
|
}
|
|
6889
6896
|
/** @internal */
|
|
6890
|
-
declare const DiffCard:
|
|
6897
|
+
declare const DiffCard: react576.ForwardRefExoticComponent<Omit<DiffCardProps & Omit<HTMLProps<HTMLElement>, "as" | "height">, "ref"> & react576.RefAttributes<unknown>>;
|
|
6891
6898
|
/** @internal */
|
|
6892
6899
|
interface DiffErrorBoundaryProps {
|
|
6893
6900
|
children: ReactNode;
|
|
@@ -6904,7 +6911,7 @@ declare class DiffErrorBoundary extends Component<DiffErrorBoundaryProps, DiffEr
|
|
|
6904
6911
|
};
|
|
6905
6912
|
state: DiffErrorBoundaryState;
|
|
6906
6913
|
componentDidCatch(error: Error): void;
|
|
6907
|
-
render(): string | number | bigint | boolean |
|
|
6914
|
+
render(): string | number | bigint | boolean | react576.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | react576.ReactElement<unknown, string | react576.JSXElementConstructor<any>> | react576.ReactPortal | null | undefined> | null | undefined;
|
|
6908
6915
|
}
|
|
6909
6916
|
/** @internal */
|
|
6910
6917
|
type FieldPreviewComponent<T = any> = ComponentType<{
|
|
@@ -6923,7 +6930,7 @@ interface DiffFromToProps {
|
|
|
6923
6930
|
schemaType: SchemaType;
|
|
6924
6931
|
}
|
|
6925
6932
|
/** @internal */
|
|
6926
|
-
declare function DiffFromTo(props: DiffFromToProps):
|
|
6933
|
+
declare function DiffFromTo(props: DiffFromToProps): react576.JSX.Element;
|
|
6927
6934
|
/** @internal */
|
|
6928
6935
|
interface DiffInspectWrapperProps {
|
|
6929
6936
|
children: ReactNode;
|
|
@@ -6939,7 +6946,7 @@ declare function DiffStringSegment(props: {
|
|
|
6939
6946
|
/** @internal */
|
|
6940
6947
|
declare function DiffString(props: {
|
|
6941
6948
|
diff: StringDiff$1;
|
|
6942
|
-
}):
|
|
6949
|
+
}): react576.JSX.Element;
|
|
6943
6950
|
/** @internal */
|
|
6944
6951
|
interface DiffTooltipProps extends TooltipProps$1 {
|
|
6945
6952
|
children: React.JSX.Element;
|
|
@@ -6954,7 +6961,7 @@ interface DiffTooltipWithAnnotationsProps extends TooltipProps$1 {
|
|
|
6954
6961
|
description?: ReactNode;
|
|
6955
6962
|
}
|
|
6956
6963
|
/** @internal */
|
|
6957
|
-
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps):
|
|
6964
|
+
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps): react576.JSX.Element;
|
|
6958
6965
|
interface TimelineItemProps {
|
|
6959
6966
|
event: DocumentGroupEvent;
|
|
6960
6967
|
showChangesBy: 'tooltip' | 'inline' | 'hidden';
|
|
@@ -6965,7 +6972,7 @@ interface TimelineItemProps {
|
|
|
6965
6972
|
declare function Event$1({
|
|
6966
6973
|
event,
|
|
6967
6974
|
showChangesBy
|
|
6968
|
-
}: TimelineItemProps):
|
|
6975
|
+
}: TimelineItemProps): react576.JSX.Element;
|
|
6969
6976
|
/** @internal */
|
|
6970
6977
|
declare const FallbackDiff: DiffComponent<Diff$1<unknown, Record<string, unknown>>>;
|
|
6971
6978
|
/** @internal */
|
|
@@ -6974,7 +6981,7 @@ declare function FieldChange(props: {
|
|
|
6974
6981
|
readOnly?: boolean;
|
|
6975
6982
|
hidden?: boolean;
|
|
6976
6983
|
addParentWrapper?: boolean;
|
|
6977
|
-
} & HTMLAttributes<HTMLDivElement>):
|
|
6984
|
+
} & HTMLAttributes<HTMLDivElement>): react576.JSX.Element | null;
|
|
6978
6985
|
/** @internal */
|
|
6979
6986
|
type FromToProps = {
|
|
6980
6987
|
align?: 'top' | 'center' | 'bottom';
|
|
@@ -6983,13 +6990,13 @@ type FromToProps = {
|
|
|
6983
6990
|
to?: ReactNode;
|
|
6984
6991
|
} & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'height' | 'wrap'>;
|
|
6985
6992
|
/** @internal */
|
|
6986
|
-
declare const FromTo:
|
|
6993
|
+
declare const FromTo: react576.ForwardRefExoticComponent<Omit<FromToProps, "ref"> & react576.RefAttributes<HTMLDivElement>>;
|
|
6987
6994
|
/** @internal */
|
|
6988
6995
|
type FromToArrowDirection = 'down' | 'right';
|
|
6989
6996
|
/** @internal */
|
|
6990
6997
|
declare function FromToArrow(props: {
|
|
6991
6998
|
direction?: FromToArrowDirection;
|
|
6992
|
-
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>):
|
|
6999
|
+
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>): react576.JSX.Element;
|
|
6993
7000
|
/** @internal */
|
|
6994
7001
|
declare function GroupChange(props: {
|
|
6995
7002
|
change: GroupChangeNode;
|
|
@@ -7005,13 +7012,13 @@ interface MetaInfoProps {
|
|
|
7005
7012
|
markRemoved?: boolean;
|
|
7006
7013
|
}
|
|
7007
7014
|
/** @internal */
|
|
7008
|
-
declare function MetaInfo(props: MetaInfoProps):
|
|
7015
|
+
declare function MetaInfo(props: MetaInfoProps): react576.JSX.Element;
|
|
7009
7016
|
/** @internal */
|
|
7010
|
-
declare function NoChanges():
|
|
7017
|
+
declare function NoChanges(): react576.JSX.Element;
|
|
7011
7018
|
/** @internal */
|
|
7012
|
-
declare const RevertChangesButton:
|
|
7019
|
+
declare const RevertChangesButton: react576.ForwardRefExoticComponent<Omit<ButtonProps$1, "tooltipProps"> & Omit<HTMLProps<HTMLButtonElement>, "ref"> & {
|
|
7013
7020
|
changeCount: number;
|
|
7014
|
-
} &
|
|
7021
|
+
} & react576.RefAttributes<HTMLButtonElement>>;
|
|
7015
7022
|
interface RevertChangesConfirmDialogProps {
|
|
7016
7023
|
open: boolean;
|
|
7017
7024
|
onConfirm: () => void;
|
|
@@ -7028,13 +7035,13 @@ declare function RevertChangesConfirmDialog({
|
|
|
7028
7035
|
onCancel,
|
|
7029
7036
|
changeCount,
|
|
7030
7037
|
referenceElement
|
|
7031
|
-
}: RevertChangesConfirmDialogProps):
|
|
7038
|
+
}: RevertChangesConfirmDialogProps): react576.JSX.Element;
|
|
7032
7039
|
/** @internal */
|
|
7033
7040
|
declare function ValueError({
|
|
7034
7041
|
error
|
|
7035
7042
|
}: {
|
|
7036
7043
|
error: FieldValueError;
|
|
7037
|
-
}):
|
|
7044
|
+
}): react576.JSX.Element;
|
|
7038
7045
|
/** @internal */
|
|
7039
7046
|
type DocumentChangeContextInstance = {
|
|
7040
7047
|
documentId: string;
|
|
@@ -7150,7 +7157,7 @@ declare function PerspectiveProvider({
|
|
|
7150
7157
|
children: React.ReactNode;
|
|
7151
7158
|
selectedPerspectiveName: 'published' | ReleaseId | undefined;
|
|
7152
7159
|
excludedPerspectives?: string[];
|
|
7153
|
-
}):
|
|
7160
|
+
}): react576.JSX.Element;
|
|
7154
7161
|
interface ExcludedPerspectiveValue {
|
|
7155
7162
|
excludedPerspectives: string[];
|
|
7156
7163
|
toggleExcludedPerspective: (perspectiveId: string) => void;
|
|
@@ -7225,7 +7232,7 @@ interface Props$2 {
|
|
|
7225
7232
|
* @deprecated we will be dropping support for scheduled publishing on a future major version
|
|
7226
7233
|
* @internal
|
|
7227
7234
|
*/
|
|
7228
|
-
declare function EditScheduleForm(props: PropsWithChildren<Props$2>):
|
|
7235
|
+
declare function EditScheduleForm(props: PropsWithChildren<Props$2>): react576.JSX.Element;
|
|
7229
7236
|
/**
|
|
7230
7237
|
* @internal
|
|
7231
7238
|
*/
|
|
@@ -7376,18 +7383,18 @@ interface DocumentActionDescription extends GroupableActionDescription<DocumentA
|
|
|
7376
7383
|
}
|
|
7377
7384
|
declare function useScheduleAction(props: DocumentActionProps): {
|
|
7378
7385
|
disabled: true;
|
|
7379
|
-
icon:
|
|
7386
|
+
icon: react576.ForwardRefExoticComponent<Omit<react576.SVGProps<SVGSVGElement>, "ref"> & react576.RefAttributes<SVGSVGElement>>;
|
|
7380
7387
|
label: string;
|
|
7381
|
-
title:
|
|
7388
|
+
title: react576.JSX.Element;
|
|
7382
7389
|
dialog?: undefined;
|
|
7383
7390
|
onHandle?: undefined;
|
|
7384
7391
|
} | {
|
|
7385
7392
|
dialog: false | DocumentActionModalDialogProps;
|
|
7386
7393
|
disabled: boolean;
|
|
7387
7394
|
label: string;
|
|
7388
|
-
icon:
|
|
7395
|
+
icon: react576.ForwardRefExoticComponent<Omit<react576.SVGProps<SVGSVGElement>, "ref"> & react576.RefAttributes<SVGSVGElement>>;
|
|
7389
7396
|
onHandle: () => void;
|
|
7390
|
-
title: "" |
|
|
7397
|
+
title: "" | react576.JSX.Element | null;
|
|
7391
7398
|
} | null;
|
|
7392
7399
|
declare namespace useScheduleAction {
|
|
7393
7400
|
var action: ("delete" | "discardChanges" | "discardVersion" | "duplicate" | "editInCanvas" | "linkToCanvas" | "publish" | "restore" | "schedule" | "unlinkFromCanvas" | "unpublish" | "unpublishVersion") | undefined;
|
|
@@ -7414,7 +7421,7 @@ interface GetHookCollectionStateProps<Args, State> {
|
|
|
7414
7421
|
resetRef?: React.Ref<() => void>;
|
|
7415
7422
|
}
|
|
7416
7423
|
/** @internal */
|
|
7417
|
-
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>):
|
|
7424
|
+
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>): react576.JSX.Element;
|
|
7418
7425
|
/**
|
|
7419
7426
|
* @hidden
|
|
7420
7427
|
* @beta */
|
|
@@ -7467,7 +7474,7 @@ interface SingleDocReleaseProviderProps {
|
|
|
7467
7474
|
declare function SingleDocReleaseProvider({
|
|
7468
7475
|
children,
|
|
7469
7476
|
onSetScheduledDraftPerspective
|
|
7470
|
-
}: SingleDocReleaseProviderProps):
|
|
7477
|
+
}: SingleDocReleaseProviderProps): react576.JSX.Element;
|
|
7471
7478
|
/**
|
|
7472
7479
|
* Hook to get the single doc release context
|
|
7473
7480
|
* @internal
|
|
@@ -8276,7 +8283,7 @@ declare function DocumentStatus({
|
|
|
8276
8283
|
published,
|
|
8277
8284
|
versions,
|
|
8278
8285
|
singleLine
|
|
8279
|
-
}: DocumentStatusProps$1):
|
|
8286
|
+
}: DocumentStatusProps$1): react576.JSX.Element;
|
|
8280
8287
|
/**
|
|
8281
8288
|
* @internal
|
|
8282
8289
|
*/
|
|
@@ -8346,7 +8353,7 @@ declare function DocumentStatusIndicator({
|
|
|
8346
8353
|
draft,
|
|
8347
8354
|
published,
|
|
8348
8355
|
versions
|
|
8349
|
-
}: DocumentStatusProps):
|
|
8356
|
+
}: DocumentStatusProps): react576.JSX.Element;
|
|
8350
8357
|
/**
|
|
8351
8358
|
* @internal
|
|
8352
8359
|
*/
|
|
@@ -8402,7 +8409,7 @@ declare function Hotkeys({
|
|
|
8402
8409
|
makePlatformAware,
|
|
8403
8410
|
keys: hotKeys,
|
|
8404
8411
|
...props
|
|
8405
|
-
}: HotkeysProps$1):
|
|
8412
|
+
}: HotkeysProps$1): react576.JSX.Element;
|
|
8406
8413
|
/** @internal */
|
|
8407
8414
|
interface InsufficientPermissionsMessageProps {
|
|
8408
8415
|
currentUser?: CurrentUser | null;
|
|
@@ -8412,13 +8419,13 @@ interface InsufficientPermissionsMessageProps {
|
|
|
8412
8419
|
declare function InsufficientPermissionsMessage({
|
|
8413
8420
|
currentUser,
|
|
8414
8421
|
context
|
|
8415
|
-
}: InsufficientPermissionsMessageProps):
|
|
8422
|
+
}: InsufficientPermissionsMessageProps): react576.JSX.Element;
|
|
8416
8423
|
/**
|
|
8417
8424
|
*
|
|
8418
8425
|
* @hidden
|
|
8419
8426
|
* @beta
|
|
8420
8427
|
*/
|
|
8421
|
-
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>):
|
|
8428
|
+
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>): react576.JSX.Element;
|
|
8422
8429
|
interface LoadingTestProps {
|
|
8423
8430
|
/** Absolutely positions this component when `true`. */
|
|
8424
8431
|
fill?: boolean;
|
|
@@ -8442,7 +8449,7 @@ declare function LoadingBlock({
|
|
|
8442
8449
|
fill,
|
|
8443
8450
|
showText,
|
|
8444
8451
|
title
|
|
8445
|
-
}: LoadingTestProps):
|
|
8452
|
+
}: LoadingTestProps): react576.JSX.Element;
|
|
8446
8453
|
interface PopoverDialogProps {
|
|
8447
8454
|
children: ReactNode;
|
|
8448
8455
|
header?: ReactNode;
|
|
@@ -8452,7 +8459,7 @@ interface PopoverDialogProps {
|
|
|
8452
8459
|
containerRef?: Dispatch<SetStateAction<HTMLDivElement | null>>;
|
|
8453
8460
|
}
|
|
8454
8461
|
/** @internal */
|
|
8455
|
-
declare function PopoverDialog(props: PopoverDialogProps):
|
|
8462
|
+
declare function PopoverDialog(props: PopoverDialogProps): react576.JSX.Element;
|
|
8456
8463
|
/** @internal */
|
|
8457
8464
|
interface PreviewCardContextValue {
|
|
8458
8465
|
selected?: boolean;
|
|
@@ -8460,7 +8467,7 @@ interface PreviewCardContextValue {
|
|
|
8460
8467
|
/** @internal */
|
|
8461
8468
|
declare function usePreviewCard(): PreviewCardContextValue;
|
|
8462
8469
|
/** @internal */
|
|
8463
|
-
declare const PreviewCard:
|
|
8470
|
+
declare const PreviewCard: react576.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react576.RefAttributes<HTMLDivElement>>;
|
|
8464
8471
|
/**
|
|
8465
8472
|
* This is a workaround for a circular import issue.
|
|
8466
8473
|
* Calling `styled(PreviewCard)` at program load time triggered a build error with the commonjs bundle because it tried
|
|
@@ -8468,7 +8475,7 @@ declare const PreviewCard: react603.ForwardRefExoticComponent<Omit<CardProps & O
|
|
|
8468
8475
|
* The workaround is to colocate the styled component with the component itself.
|
|
8469
8476
|
* @internal
|
|
8470
8477
|
*/
|
|
8471
|
-
declare const ReferenceInputPreviewCard: styled_components_dist_types6.IStyledComponentBase<"web", styled_components4.FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> &
|
|
8478
|
+
declare const ReferenceInputPreviewCard: styled_components_dist_types6.IStyledComponentBase<"web", styled_components4.FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react576.RefAttributes<HTMLDivElement>, never>> & string & Omit<react576.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react576.RefAttributes<HTMLDivElement>>, keyof react576.Component<any, {}, any>>;
|
|
8472
8479
|
/**
|
|
8473
8480
|
* Portable text preview layout key
|
|
8474
8481
|
*
|
|
@@ -8555,7 +8562,7 @@ type CompactPreviewProps = Omit<PreviewProps<'compact'>, 'renderDefault'>;
|
|
|
8555
8562
|
/**
|
|
8556
8563
|
* @hidden
|
|
8557
8564
|
* @beta */
|
|
8558
|
-
declare function CompactPreview(props: CompactPreviewProps):
|
|
8565
|
+
declare function CompactPreview(props: CompactPreviewProps): react576.JSX.Element;
|
|
8559
8566
|
/**
|
|
8560
8567
|
* @hidden
|
|
8561
8568
|
* @beta */
|
|
@@ -8576,7 +8583,7 @@ interface DefaultPreviewProps extends Omit<PreviewProps<'default'>, 'renderDefau
|
|
|
8576
8583
|
/**
|
|
8577
8584
|
* @hidden
|
|
8578
8585
|
* @beta */
|
|
8579
|
-
declare function DefaultPreview(props: DefaultPreviewProps):
|
|
8586
|
+
declare function DefaultPreview(props: DefaultPreviewProps): react576.JSX.Element;
|
|
8580
8587
|
/**
|
|
8581
8588
|
* @hidden
|
|
8582
8589
|
* @beta */
|
|
@@ -8584,7 +8591,7 @@ type DetailPreviewProps = PreviewProps<'detail'>;
|
|
|
8584
8591
|
/**
|
|
8585
8592
|
* @hidden
|
|
8586
8593
|
* @beta */
|
|
8587
|
-
declare function DetailPreview(props: DetailPreviewProps):
|
|
8594
|
+
declare function DetailPreview(props: DetailPreviewProps): react576.JSX.Element;
|
|
8588
8595
|
/**
|
|
8589
8596
|
* @hidden
|
|
8590
8597
|
* @beta */
|
|
@@ -8592,7 +8599,7 @@ type MediaPreviewProps = Omit<PreviewProps<'media'>, 'renderDefault'>;
|
|
|
8592
8599
|
/**
|
|
8593
8600
|
* @hidden
|
|
8594
8601
|
* @beta */
|
|
8595
|
-
declare function MediaPreview(props: MediaPreviewProps):
|
|
8602
|
+
declare function MediaPreview(props: MediaPreviewProps): react576.JSX.Element;
|
|
8596
8603
|
/**
|
|
8597
8604
|
* @hidden
|
|
8598
8605
|
* @beta */
|
|
@@ -8600,11 +8607,11 @@ type BlockImagePreviewProps = Omit<PreviewProps<'blockImage'>, 'renderDefault'>;
|
|
|
8600
8607
|
/**
|
|
8601
8608
|
* @hidden
|
|
8602
8609
|
* @beta */
|
|
8603
|
-
declare function BlockImagePreview(props: BlockImagePreviewProps):
|
|
8610
|
+
declare function BlockImagePreview(props: BlockImagePreviewProps): react576.JSX.Element;
|
|
8604
8611
|
/**
|
|
8605
8612
|
* @hidden
|
|
8606
8613
|
* @beta */
|
|
8607
|
-
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>):
|
|
8614
|
+
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>): react576.JSX.Element;
|
|
8608
8615
|
/**
|
|
8609
8616
|
* @hidden
|
|
8610
8617
|
* @beta */
|
|
@@ -8612,7 +8619,7 @@ type InlinePreviewProps = Omit<PreviewProps<'inline'>, 'renderDefault'>;
|
|
|
8612
8619
|
/**
|
|
8613
8620
|
* @hidden
|
|
8614
8621
|
* @beta */
|
|
8615
|
-
declare function InlinePreview(props: InlinePreviewProps):
|
|
8622
|
+
declare function InlinePreview(props: InlinePreviewProps): react576.JSX.Element;
|
|
8616
8623
|
interface MediaProps {
|
|
8617
8624
|
border?: boolean;
|
|
8618
8625
|
dimensions: PreviewMediaDimensions;
|
|
@@ -8643,19 +8650,19 @@ interface TemplatePreviewProps {
|
|
|
8643
8650
|
/**
|
|
8644
8651
|
* @hidden
|
|
8645
8652
|
* @beta */
|
|
8646
|
-
declare function TemplatePreview(props: TemplatePreviewProps):
|
|
8653
|
+
declare function TemplatePreview(props: TemplatePreviewProps): react576.JSX.Element;
|
|
8647
8654
|
/**
|
|
8648
8655
|
* @hidden
|
|
8649
8656
|
* @beta */
|
|
8650
8657
|
declare function CircularProgress(props: {
|
|
8651
8658
|
/** Percentage */value: number;
|
|
8652
|
-
}):
|
|
8659
|
+
}): react576.JSX.Element;
|
|
8653
8660
|
/**
|
|
8654
8661
|
* @hidden
|
|
8655
8662
|
* @beta */
|
|
8656
8663
|
declare function LinearProgress(props: {
|
|
8657
8664
|
/** Percentage */value: number;
|
|
8658
|
-
}):
|
|
8665
|
+
}): react576.JSX.Element;
|
|
8659
8666
|
/**
|
|
8660
8667
|
* @internal
|
|
8661
8668
|
*/
|
|
@@ -8668,7 +8675,7 @@ interface RelativeTimeProps extends RelativeTimeOptions {
|
|
|
8668
8675
|
declare function RelativeTime({
|
|
8669
8676
|
time,
|
|
8670
8677
|
...options
|
|
8671
|
-
}: RelativeTimeProps):
|
|
8678
|
+
}: RelativeTimeProps): react576.JSX.Element;
|
|
8672
8679
|
interface ResizableProps {
|
|
8673
8680
|
minWidth: number;
|
|
8674
8681
|
maxWidth: number;
|
|
@@ -8679,7 +8686,7 @@ interface ResizableProps {
|
|
|
8679
8686
|
* @internal
|
|
8680
8687
|
* Provides a resizable container with a resizer handle.
|
|
8681
8688
|
*/
|
|
8682
|
-
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
8689
|
+
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): react576.JSX.Element;
|
|
8683
8690
|
/**
|
|
8684
8691
|
* @hidden
|
|
8685
8692
|
* @beta */
|
|
@@ -8735,18 +8742,18 @@ type StatusButtonProps = ButtonProps$1 & {
|
|
|
8735
8742
|
'iconRight'?: undefined;
|
|
8736
8743
|
};
|
|
8737
8744
|
/** @hidden @beta */
|
|
8738
|
-
declare const StatusButton:
|
|
8745
|
+
declare const StatusButton: react576.ForwardRefExoticComponent<(StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, "disabled" | "ref" | "size" | "title">) & react576.RefAttributes<HTMLButtonElement>>;
|
|
8739
8746
|
/** @internal */
|
|
8740
8747
|
interface TextWithToneProps extends ComponentProps<typeof Text> {
|
|
8741
8748
|
tone: ButtonTone;
|
|
8742
8749
|
dimmed?: boolean;
|
|
8743
8750
|
}
|
|
8744
8751
|
/** @internal */
|
|
8745
|
-
declare const TextWithTone:
|
|
8752
|
+
declare const TextWithTone: react576.ForwardRefExoticComponent<Omit<TextWithToneProps, "ref"> & react576.RefAttributes<HTMLDivElement>>;
|
|
8746
8753
|
/** @internal */
|
|
8747
|
-
declare const TooltipOfDisabled:
|
|
8754
|
+
declare const TooltipOfDisabled: react576.ForwardRefExoticComponent<Omit<_sanity_ui17.TooltipProps, "arrow" | "padding" | "shadow"> & {
|
|
8748
8755
|
hotkeys?: string[] | undefined;
|
|
8749
|
-
} &
|
|
8756
|
+
} & react576.RefAttributes<HTMLDivElement>>;
|
|
8750
8757
|
/** @internal */
|
|
8751
8758
|
interface ToastParams$1 {
|
|
8752
8759
|
closable?: boolean;
|
|
@@ -8760,7 +8767,7 @@ interface ToastParams$1 {
|
|
|
8760
8767
|
* @internal
|
|
8761
8768
|
* @deprecated -- Refactor the component so it can call `useToast` instead
|
|
8762
8769
|
*/
|
|
8763
|
-
declare const ImperativeToast:
|
|
8770
|
+
declare const ImperativeToast: react576.ForwardRefExoticComponent<react576.RefAttributes<unknown>>;
|
|
8764
8771
|
/**
|
|
8765
8772
|
* TODO: Rename to `ZOffsetsContextValue`
|
|
8766
8773
|
*
|
|
@@ -8814,7 +8821,7 @@ declare function LegacyLayerProvider({
|
|
|
8814
8821
|
}: {
|
|
8815
8822
|
children: ReactNode;
|
|
8816
8823
|
zOffset: ZIndexContextValueKey;
|
|
8817
|
-
}):
|
|
8824
|
+
}): react576.JSX.Element;
|
|
8818
8825
|
interface AvatarSkeletonProps {
|
|
8819
8826
|
$size?: AvatarSize;
|
|
8820
8827
|
}
|
|
@@ -8822,7 +8829,7 @@ interface AvatarSkeletonProps {
|
|
|
8822
8829
|
* A loading skeleton element representing a user avatar
|
|
8823
8830
|
* @beta
|
|
8824
8831
|
*/
|
|
8825
|
-
declare const AvatarSkeleton: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<Omit<
|
|
8832
|
+
declare const AvatarSkeleton: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<Omit<_sanity_ui17.SkeletonProps & react576.HTMLProps<HTMLDivElement>, "ref"> & react576.RefAttributes<HTMLDivElement>, AvatarSkeletonProps>> & string & Omit<react576.ForwardRefExoticComponent<Omit<_sanity_ui17.SkeletonProps & react576.HTMLProps<HTMLDivElement>, "ref"> & react576.RefAttributes<HTMLDivElement>>, keyof react576.Component<any, {}, any>>;
|
|
8826
8833
|
/**
|
|
8827
8834
|
* @hidden
|
|
8828
8835
|
* @beta */
|
|
@@ -8839,7 +8846,7 @@ interface UserAvatarProps {
|
|
|
8839
8846
|
/**
|
|
8840
8847
|
* @hidden
|
|
8841
8848
|
* @beta */
|
|
8842
|
-
declare function UserAvatar(props: UserAvatarProps):
|
|
8849
|
+
declare function UserAvatar(props: UserAvatarProps): react576.JSX.Element;
|
|
8843
8850
|
/**
|
|
8844
8851
|
* @internal
|
|
8845
8852
|
* @deprecated - Will be removed in 4.0.0, use the `useReferringDocuments(<documentId>)` hook instead
|
|
@@ -8857,7 +8864,7 @@ declare function WithReferringDocuments({
|
|
|
8857
8864
|
*/
|
|
8858
8865
|
documentStore?: DocumentStore;
|
|
8859
8866
|
id: string;
|
|
8860
|
-
}):
|
|
8867
|
+
}): react576.JSX.Element;
|
|
8861
8868
|
/**
|
|
8862
8869
|
* TODO: Rename to `useZOffsets`
|
|
8863
8870
|
*
|
|
@@ -9521,7 +9528,7 @@ interface FormCallbacksValue {
|
|
|
9521
9528
|
onFieldGroupSelect: (path: Path, fieldGroupName: string) => void;
|
|
9522
9529
|
}
|
|
9523
9530
|
/** @internal */
|
|
9524
|
-
declare const FormCallbacksProvider:
|
|
9531
|
+
declare const FormCallbacksProvider: react576.NamedExoticComponent<FormCallbacksValue & {
|
|
9525
9532
|
children: ReactNode;
|
|
9526
9533
|
}>;
|
|
9527
9534
|
/** @internal */
|
|
@@ -9585,7 +9592,7 @@ declare function useReferenceInputOptions(): ReferenceInputOptions;
|
|
|
9585
9592
|
*/
|
|
9586
9593
|
declare function ReferenceInputOptionsProvider(props: ReferenceInputOptions & {
|
|
9587
9594
|
children: ReactNode;
|
|
9588
|
-
}):
|
|
9595
|
+
}): react576.JSX.Element;
|
|
9589
9596
|
/** @internal */
|
|
9590
9597
|
declare const defaultRenderAnnotation: RenderAnnotationCallback;
|
|
9591
9598
|
/** @internal */
|
|
@@ -9634,7 +9641,7 @@ interface FormBuilderProps extends Omit<ObjectFormNode, 'level' | 'path' | 'pres
|
|
|
9634
9641
|
/**
|
|
9635
9642
|
* @alpha
|
|
9636
9643
|
*/
|
|
9637
|
-
declare function FormBuilder(props: FormBuilderProps):
|
|
9644
|
+
declare function FormBuilder(props: FormBuilderProps): react576.JSX.Element;
|
|
9638
9645
|
/**
|
|
9639
9646
|
* @alpha This API might change.
|
|
9640
9647
|
*/
|
|
@@ -9669,7 +9676,7 @@ interface FormProviderProps {
|
|
|
9669
9676
|
*
|
|
9670
9677
|
* @alpha This API might change.
|
|
9671
9678
|
*/
|
|
9672
|
-
declare function FormProvider(props: FormProviderProps):
|
|
9679
|
+
declare function FormProvider(props: FormProviderProps): react576.JSX.Element;
|
|
9673
9680
|
/**
|
|
9674
9681
|
*
|
|
9675
9682
|
* @hidden
|
|
@@ -9681,7 +9688,7 @@ type StudioCrossDatasetReferenceInputProps = ObjectInputProps<CrossDatasetRefere
|
|
|
9681
9688
|
* @hidden
|
|
9682
9689
|
* @beta
|
|
9683
9690
|
*/
|
|
9684
|
-
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps):
|
|
9691
|
+
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps): react576.JSX.Element;
|
|
9685
9692
|
/**
|
|
9686
9693
|
*
|
|
9687
9694
|
* @hidden
|
|
@@ -9693,7 +9700,7 @@ type StudioReferenceInputProps = ObjectInputProps<Reference, ReferenceSchemaType
|
|
|
9693
9700
|
* @hidden
|
|
9694
9701
|
* @beta
|
|
9695
9702
|
*/
|
|
9696
|
-
declare function StudioReferenceInput(props: StudioReferenceInputProps):
|
|
9703
|
+
declare function StudioReferenceInput(props: StudioReferenceInputProps): react576.JSX.Element;
|
|
9697
9704
|
/**
|
|
9698
9705
|
*
|
|
9699
9706
|
* @hidden
|
|
@@ -9789,7 +9796,7 @@ type FileInputProps = Omit<BaseFileInputProps, 'assetSources' | 'directUploads'
|
|
|
9789
9796
|
/**
|
|
9790
9797
|
* @hidden
|
|
9791
9798
|
* @beta */
|
|
9792
|
-
declare function StudioFileInput(props: FileInputProps):
|
|
9799
|
+
declare function StudioFileInput(props: FileInputProps): react576.JSX.Element;
|
|
9793
9800
|
/**
|
|
9794
9801
|
* @hidden
|
|
9795
9802
|
* @beta
|
|
@@ -9817,7 +9824,7 @@ type ImageInputProps = Omit<BaseImageInputProps, 'assetSources' | 'directUploads
|
|
|
9817
9824
|
/**
|
|
9818
9825
|
* @hidden
|
|
9819
9826
|
* @beta */
|
|
9820
|
-
declare function StudioImageInput(props: ImageInputProps):
|
|
9827
|
+
declare function StudioImageInput(props: ImageInputProps): react576.JSX.Element;
|
|
9821
9828
|
/**
|
|
9822
9829
|
* @internal
|
|
9823
9830
|
*/
|
|
@@ -9833,6 +9840,7 @@ interface EnhancedObjectDialogContextValue {
|
|
|
9833
9840
|
}
|
|
9834
9841
|
/**
|
|
9835
9842
|
* @internal
|
|
9843
|
+
* @deprecated This hook is no longer used and will be removed in a future release as we make the enhanced object dialog the default.
|
|
9836
9844
|
*/
|
|
9837
9845
|
declare function useEnhancedObjectDialog(): EnhancedObjectDialogContextValue;
|
|
9838
9846
|
/**
|
|
@@ -11752,7 +11760,7 @@ declare module '@sanity/types' {
|
|
|
11752
11760
|
*/
|
|
11753
11761
|
declare function Preview(props: RenderPreviewCallbackProps & {
|
|
11754
11762
|
perspectiveStack?: PerspectiveStack;
|
|
11755
|
-
}):
|
|
11763
|
+
}): react576.JSX.Element;
|
|
11756
11764
|
/**
|
|
11757
11765
|
* This component is responsible for converting renderPreview() calls into an element.
|
|
11758
11766
|
* It:
|
|
@@ -11775,7 +11783,7 @@ interface SanityDefaultPreviewProps extends Omit<PreviewProps, 'renderDefault'>
|
|
|
11775
11783
|
* Used in cases where no custom preview component is provided
|
|
11776
11784
|
* @internal
|
|
11777
11785
|
* */
|
|
11778
|
-
declare const SanityDefaultPreview:
|
|
11786
|
+
declare const SanityDefaultPreview: react576.NamedExoticComponent<SanityDefaultPreviewProps>;
|
|
11779
11787
|
/**
|
|
11780
11788
|
* @internal
|
|
11781
11789
|
* @beta
|
|
@@ -11869,9 +11877,9 @@ declare function getPreviewValueWithFallback({
|
|
|
11869
11877
|
original,
|
|
11870
11878
|
fallback
|
|
11871
11879
|
}: Sources): Partial<SanityDocument> | PreviewValue | {
|
|
11872
|
-
title:
|
|
11873
|
-
subtitle:
|
|
11874
|
-
media: () =>
|
|
11880
|
+
title: react576.JSX.Element;
|
|
11881
|
+
subtitle: react576.JSX.Element;
|
|
11882
|
+
media: () => react576.JSX.Element;
|
|
11875
11883
|
};
|
|
11876
11884
|
/** @internal */
|
|
11877
11885
|
declare function prepareForPreview(rawValue: unknown, type: PreviewableType, viewOptions?: PrepareViewOptions): PreviewValue & {
|
|
@@ -13015,7 +13023,7 @@ interface ResourceCacheProviderProps {
|
|
|
13015
13023
|
/** @internal */
|
|
13016
13024
|
declare function ResourceCacheProvider({
|
|
13017
13025
|
children
|
|
13018
|
-
}: ResourceCacheProviderProps):
|
|
13026
|
+
}: ResourceCacheProviderProps): react576.JSX.Element;
|
|
13019
13027
|
/** @internal */
|
|
13020
13028
|
declare function useResourceCache(): ResourceCache;
|
|
13021
13029
|
/** @internal */
|
|
@@ -13042,7 +13050,7 @@ interface DocumentPreviewPresenceProps {
|
|
|
13042
13050
|
presence: Omit<DocumentPresence, 'path'>[];
|
|
13043
13051
|
}
|
|
13044
13052
|
/** @internal */
|
|
13045
|
-
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps):
|
|
13053
|
+
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps): react576.JSX.Element;
|
|
13046
13054
|
/** @internal */
|
|
13047
13055
|
type Position = 'top' | 'bottom' | 'inside' | null;
|
|
13048
13056
|
/** @internal */
|
|
@@ -13102,14 +13110,14 @@ interface FieldPresenceInnerProps {
|
|
|
13102
13110
|
animateArrowFrom?: AvatarPosition;
|
|
13103
13111
|
}
|
|
13104
13112
|
/** @internal */
|
|
13105
|
-
declare const FieldPresenceInner:
|
|
13113
|
+
declare const FieldPresenceInner: react576.NamedExoticComponent<FieldPresenceInnerProps>;
|
|
13106
13114
|
/** @internal */
|
|
13107
13115
|
interface FieldPresenceProps {
|
|
13108
13116
|
presence: FormNodePresence[];
|
|
13109
13117
|
maxAvatars: number;
|
|
13110
13118
|
}
|
|
13111
13119
|
/** @internal */
|
|
13112
|
-
declare function FieldPresence(props: FieldPresenceProps):
|
|
13120
|
+
declare function FieldPresence(props: FieldPresenceProps): react576.JSX.Element;
|
|
13113
13121
|
/**
|
|
13114
13122
|
* @internal
|
|
13115
13123
|
* @hidden
|
|
@@ -13125,7 +13133,7 @@ interface PresenceOverlayProps {
|
|
|
13125
13133
|
declare function PresenceOverlay({
|
|
13126
13134
|
children,
|
|
13127
13135
|
margins
|
|
13128
|
-
}: PresenceOverlayProps):
|
|
13136
|
+
}: PresenceOverlayProps): react576.JSX.Element;
|
|
13129
13137
|
/** @internal */
|
|
13130
13138
|
interface PresenceScopeProps {
|
|
13131
13139
|
readOnly?: boolean;
|
|
@@ -13133,7 +13141,7 @@ interface PresenceScopeProps {
|
|
|
13133
13141
|
children: ReactNode;
|
|
13134
13142
|
}
|
|
13135
13143
|
/** @internal */
|
|
13136
|
-
declare function PresenceScope(props: PresenceScopeProps):
|
|
13144
|
+
declare function PresenceScope(props: PresenceScopeProps): react576.JSX.Element;
|
|
13137
13145
|
/** @internal */
|
|
13138
13146
|
interface FormFieldProps {
|
|
13139
13147
|
/**
|
|
@@ -13168,7 +13176,7 @@ interface FormFieldProps {
|
|
|
13168
13176
|
deprecated?: DeprecatedProperty;
|
|
13169
13177
|
}
|
|
13170
13178
|
/** @internal */
|
|
13171
|
-
declare const FormField:
|
|
13179
|
+
declare const FormField: react576.NamedExoticComponent<FormFieldProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref">>;
|
|
13172
13180
|
/** @internal */
|
|
13173
13181
|
interface FormFieldHeaderTextProps {
|
|
13174
13182
|
/**
|
|
@@ -13190,7 +13198,7 @@ interface FormFieldHeaderTextProps {
|
|
|
13190
13198
|
suffix?: ReactNode;
|
|
13191
13199
|
}
|
|
13192
13200
|
/** @internal */
|
|
13193
|
-
declare const FormFieldHeaderText:
|
|
13201
|
+
declare const FormFieldHeaderText: react576.NamedExoticComponent<FormFieldHeaderTextProps>;
|
|
13194
13202
|
/** @internal */
|
|
13195
13203
|
interface FormFieldSetProps {
|
|
13196
13204
|
/**
|
|
@@ -13229,7 +13237,7 @@ interface FormFieldSetProps {
|
|
|
13229
13237
|
deprecated?: DeprecatedProperty;
|
|
13230
13238
|
}
|
|
13231
13239
|
/** @internal */
|
|
13232
|
-
declare const FormFieldSet:
|
|
13240
|
+
declare const FormFieldSet: react576.ForwardRefExoticComponent<FormFieldSetProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & react576.RefAttributes<HTMLDivElement>>;
|
|
13233
13241
|
/** @internal */
|
|
13234
13242
|
interface FieldStatusProps {
|
|
13235
13243
|
children?: ReactNode;
|
|
@@ -13241,7 +13249,7 @@ declare function FormFieldStatus({
|
|
|
13241
13249
|
children,
|
|
13242
13250
|
maxAvatars,
|
|
13243
13251
|
position
|
|
13244
|
-
}: FieldStatusProps):
|
|
13252
|
+
}: FieldStatusProps): react576.JSX.Element;
|
|
13245
13253
|
/** @internal */
|
|
13246
13254
|
interface FormFieldValidationStatusProps {
|
|
13247
13255
|
/**
|
|
@@ -13260,7 +13268,7 @@ interface FormFieldValidationStatusProps {
|
|
|
13260
13268
|
placement?: Placement;
|
|
13261
13269
|
}
|
|
13262
13270
|
/** @internal */
|
|
13263
|
-
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps):
|
|
13271
|
+
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps): react576.JSX.Element;
|
|
13264
13272
|
/** @internal */
|
|
13265
13273
|
interface FormFieldValidationWarning {
|
|
13266
13274
|
type: 'warning';
|
|
@@ -13287,7 +13295,7 @@ type FormInputRelativePathArg = {
|
|
|
13287
13295
|
relativePath: Path;
|
|
13288
13296
|
};
|
|
13289
13297
|
/** @internal */
|
|
13290
|
-
declare const FormInput:
|
|
13298
|
+
declare const FormInput: react576.NamedExoticComponent<(ArrayOfObjectsInputProps<{
|
|
13291
13299
|
_key: string;
|
|
13292
13300
|
}, _sanity_types44.ArraySchemaType<unknown>> | ObjectInputProps<Record<string, any>, _sanity_types44.ObjectSchemaType>) & ((FormInputAbsolutePathArg | FormInputRelativePathArg) & {
|
|
13293
13301
|
/**
|
|
@@ -13311,7 +13319,7 @@ interface FormValueContextValue {
|
|
|
13311
13319
|
declare function FormValueProvider(props: {
|
|
13312
13320
|
value: FormDocumentValue | undefined;
|
|
13313
13321
|
children: ReactNode;
|
|
13314
|
-
}):
|
|
13322
|
+
}): react576.JSX.Element;
|
|
13315
13323
|
/**
|
|
13316
13324
|
* React hook that returns the value of the field specified by a path.
|
|
13317
13325
|
* @public
|
|
@@ -13337,7 +13345,7 @@ declare function useFormValue(path: Path): unknown;
|
|
|
13337
13345
|
declare function GetFormValueProvider(props: {
|
|
13338
13346
|
value: FormDocumentValue | undefined;
|
|
13339
13347
|
children: ReactNode;
|
|
13340
|
-
}):
|
|
13348
|
+
}): react576.JSX.Element;
|
|
13341
13349
|
declare namespace GetFormValueProvider {
|
|
13342
13350
|
var displayName: string;
|
|
13343
13351
|
}
|
|
@@ -13362,14 +13370,14 @@ declare namespace GetFormValueProvider {
|
|
|
13362
13370
|
* }
|
|
13363
13371
|
* ```
|
|
13364
13372
|
*/
|
|
13365
|
-
declare function useGetFormValue():
|
|
13373
|
+
declare function useGetFormValue(): sanity__singletons2.GetFormValueContextValue;
|
|
13366
13374
|
/** @internal */
|
|
13367
13375
|
interface FieldActionMenuProps {
|
|
13368
13376
|
nodes: DocumentFieldActionNode[];
|
|
13369
13377
|
onMenuOpenChange: (open: boolean) => void;
|
|
13370
13378
|
}
|
|
13371
13379
|
/** @internal */
|
|
13372
|
-
declare const FieldActionMenu:
|
|
13380
|
+
declare const FieldActionMenu: react576.NamedExoticComponent<FieldActionMenuProps>;
|
|
13373
13381
|
type FieldActionsProviderProps = PropsWithChildren<{
|
|
13374
13382
|
actions: DocumentFieldActionNode[]; /** @internal @deprecated DO NOT USE */
|
|
13375
13383
|
__internal_comments?: FieldCommentsProps;
|
|
@@ -13378,7 +13386,7 @@ type FieldActionsProviderProps = PropsWithChildren<{
|
|
|
13378
13386
|
path: Path;
|
|
13379
13387
|
}>;
|
|
13380
13388
|
/** @internal */
|
|
13381
|
-
declare const FieldActionsProvider:
|
|
13389
|
+
declare const FieldActionsProvider: react576.NamedExoticComponent<FieldActionsProviderProps>;
|
|
13382
13390
|
/** @internal */
|
|
13383
13391
|
interface FieldActionsProps {
|
|
13384
13392
|
actions: DocumentFieldAction[];
|
|
@@ -13407,12 +13415,12 @@ interface FieldActionsProps {
|
|
|
13407
13415
|
*
|
|
13408
13416
|
* @internal
|
|
13409
13417
|
*/
|
|
13410
|
-
declare const FieldActionsResolver:
|
|
13418
|
+
declare const FieldActionsResolver: react576.NamedExoticComponent<FieldActionsProps>;
|
|
13411
13419
|
/** @internal */
|
|
13412
13420
|
declare function useFieldActions(): FieldActionsContextValue;
|
|
13413
13421
|
/** @internal */
|
|
13414
|
-
declare const HoveredFieldProvider:
|
|
13415
|
-
children?:
|
|
13422
|
+
declare const HoveredFieldProvider: react576.NamedExoticComponent<{
|
|
13423
|
+
children?: react576.ReactNode;
|
|
13416
13424
|
}>;
|
|
13417
13425
|
/** @internal */
|
|
13418
13426
|
declare function useHoveredField(): HoveredFieldContextValue;
|
|
@@ -13483,13 +13491,13 @@ didUpdate: (previous: T | undefined, current: T) => void, compare?: (previous: T
|
|
|
13483
13491
|
/**
|
|
13484
13492
|
* @hidden
|
|
13485
13493
|
* @beta */
|
|
13486
|
-
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>):
|
|
13494
|
+
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>): react576.JSX.Element | null;
|
|
13487
13495
|
/**
|
|
13488
13496
|
*
|
|
13489
13497
|
* @hidden
|
|
13490
13498
|
* @beta
|
|
13491
13499
|
*/
|
|
13492
|
-
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps):
|
|
13500
|
+
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps): react576.JSX.Element;
|
|
13493
13501
|
/**
|
|
13494
13502
|
* @internal
|
|
13495
13503
|
*/
|
|
@@ -13517,7 +13525,7 @@ interface VirtualizerScrollInstanceProviderProps extends VirtualizerScrollInstan
|
|
|
13517
13525
|
*
|
|
13518
13526
|
* @internal
|
|
13519
13527
|
*/
|
|
13520
|
-
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps):
|
|
13528
|
+
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps): react576.JSX.Element;
|
|
13521
13529
|
/**
|
|
13522
13530
|
* @hidden
|
|
13523
13531
|
* Array of predefined object options input
|
|
@@ -13527,13 +13535,13 @@ declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInsta
|
|
|
13527
13535
|
* @hidden
|
|
13528
13536
|
* @beta
|
|
13529
13537
|
*/
|
|
13530
|
-
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps):
|
|
13538
|
+
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps): react576.JSX.Element;
|
|
13531
13539
|
/**
|
|
13532
13540
|
*
|
|
13533
13541
|
* @hidden
|
|
13534
13542
|
* @beta
|
|
13535
13543
|
*/
|
|
13536
|
-
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13544
|
+
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react576.JSX.Element;
|
|
13537
13545
|
/**
|
|
13538
13546
|
* Array of predefined primitive options input
|
|
13539
13547
|
* Note: this input can only handle primitive values
|
|
@@ -13542,11 +13550,11 @@ declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPr
|
|
|
13542
13550
|
* @hidden
|
|
13543
13551
|
* @beta
|
|
13544
13552
|
*/
|
|
13545
|
-
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps):
|
|
13553
|
+
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps): react576.JSX.Element;
|
|
13546
13554
|
/**
|
|
13547
13555
|
* @hidden
|
|
13548
13556
|
* @beta */
|
|
13549
|
-
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>):
|
|
13557
|
+
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>): react576.JSX.Element | null;
|
|
13550
13558
|
type PrimitiveValue = string | number | boolean;
|
|
13551
13559
|
interface State {
|
|
13552
13560
|
disableTransition: boolean;
|
|
@@ -13588,8 +13596,8 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13588
13596
|
};
|
|
13589
13597
|
prevFocusedIndex: number;
|
|
13590
13598
|
}): void;
|
|
13591
|
-
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) =>
|
|
13592
|
-
render():
|
|
13599
|
+
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) => react576.JSX.Element;
|
|
13600
|
+
render(): react576.JSX.Element;
|
|
13593
13601
|
}
|
|
13594
13602
|
/**
|
|
13595
13603
|
* Universal array input that will introspect its schemaType and delegate to the right implementation
|
|
@@ -13599,13 +13607,13 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13599
13607
|
* @hidden
|
|
13600
13608
|
* @beta
|
|
13601
13609
|
*/
|
|
13602
|
-
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13610
|
+
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react576.JSX.Element;
|
|
13603
13611
|
/**
|
|
13604
13612
|
*
|
|
13605
13613
|
* @hidden
|
|
13606
13614
|
* @beta
|
|
13607
13615
|
*/
|
|
13608
|
-
declare function BooleanInput(props: BooleanInputProps):
|
|
13616
|
+
declare function BooleanInput(props: BooleanInputProps): react576.JSX.Element;
|
|
13609
13617
|
/**
|
|
13610
13618
|
* Used to preview a referenced type
|
|
13611
13619
|
* Takes the reference type as props
|
|
@@ -13624,7 +13632,7 @@ declare function CrossDatasetReferencePreview(props: {
|
|
|
13624
13632
|
projectId: string;
|
|
13625
13633
|
refType?: CrossDatasetType;
|
|
13626
13634
|
showTypeLabel: boolean;
|
|
13627
|
-
}):
|
|
13635
|
+
}): react576.JSX.Element;
|
|
13628
13636
|
/**
|
|
13629
13637
|
* @hidden
|
|
13630
13638
|
* @beta */
|
|
@@ -13632,7 +13640,7 @@ type DateInputProps = StringInputProps;
|
|
|
13632
13640
|
/**
|
|
13633
13641
|
* @hidden
|
|
13634
13642
|
* @beta */
|
|
13635
|
-
declare function DateInput(props: DateInputProps):
|
|
13643
|
+
declare function DateInput(props: DateInputProps): react576.JSX.Element;
|
|
13636
13644
|
/**
|
|
13637
13645
|
* @hidden
|
|
13638
13646
|
* @beta */
|
|
@@ -13640,7 +13648,7 @@ type DateTimeInputProps = StringInputProps;
|
|
|
13640
13648
|
/**
|
|
13641
13649
|
* @hidden
|
|
13642
13650
|
* @beta */
|
|
13643
|
-
declare function DateTimeInput(props: DateTimeInputProps):
|
|
13651
|
+
declare function DateTimeInput(props: DateTimeInputProps): react576.JSX.Element;
|
|
13644
13652
|
interface CalendarLabels {
|
|
13645
13653
|
ariaLabel: string;
|
|
13646
13654
|
goToTomorrow: string;
|
|
@@ -13674,7 +13682,7 @@ type EmailInputProps = StringInputProps;
|
|
|
13674
13682
|
* @hidden
|
|
13675
13683
|
* @beta
|
|
13676
13684
|
*/
|
|
13677
|
-
declare function EmailInput(props: EmailInputProps):
|
|
13685
|
+
declare function EmailInput(props: EmailInputProps): react576.JSX.Element;
|
|
13678
13686
|
/**
|
|
13679
13687
|
* @hidden
|
|
13680
13688
|
* @beta
|
|
@@ -13685,11 +13693,11 @@ type AssetAccessPolicy = 'checking' | 'private' | 'public' | 'unknown';
|
|
|
13685
13693
|
* @hidden
|
|
13686
13694
|
* @beta
|
|
13687
13695
|
*/
|
|
13688
|
-
declare function NumberInput(props: NumberInputProps):
|
|
13696
|
+
declare function NumberInput(props: NumberInputProps): react576.JSX.Element;
|
|
13689
13697
|
/**
|
|
13690
13698
|
* @hidden
|
|
13691
13699
|
* @beta */
|
|
13692
|
-
declare const ObjectInput:
|
|
13700
|
+
declare const ObjectInput: react576.NamedExoticComponent<ObjectInputProps<Record<string, any>, _sanity_types44.ObjectSchemaType>>;
|
|
13693
13701
|
/** @internal */
|
|
13694
13702
|
interface PortableTextMemberItem {
|
|
13695
13703
|
kind: 'annotation' | 'textBlock' | 'objectBlock' | 'inlineObject';
|
|
@@ -13750,24 +13758,24 @@ interface Props extends Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'widt
|
|
|
13750
13758
|
/**
|
|
13751
13759
|
* @internal
|
|
13752
13760
|
*/
|
|
13753
|
-
declare function CreateButton(props: Props):
|
|
13761
|
+
declare function CreateButton(props: Props): react576.JSX.Element;
|
|
13754
13762
|
/**
|
|
13755
13763
|
* @internal
|
|
13756
13764
|
*/
|
|
13757
|
-
declare const ReferenceAutocomplete:
|
|
13765
|
+
declare const ReferenceAutocomplete: react576.ForwardRefExoticComponent<Omit<_sanity_ui17.AutocompleteProps<_sanity_ui17.BaseAutocompleteOption> & Omit<react576.HTMLProps<HTMLInputElement>, "aria-activedescendant" | "aria-autocomplete" | "aria-expanded" | "aria-owns" | "as" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "id" | "inputMode" | "onChange" | "onSelect" | "popover" | "prefix" | "ref" | "role" | "spellCheck" | "type" | "value"> & {
|
|
13758
13766
|
ref?: Ref<HTMLInputElement> | undefined;
|
|
13759
13767
|
} & {
|
|
13760
13768
|
path: Path;
|
|
13761
13769
|
referenceElement: HTMLDivElement | null;
|
|
13762
13770
|
searchString?: string | undefined;
|
|
13763
13771
|
portalRef?: RefObject<HTMLDivElement | null> | undefined;
|
|
13764
|
-
}, "ref"> &
|
|
13772
|
+
}, "ref"> & react576.RefAttributes<HTMLInputElement>>;
|
|
13765
13773
|
/**
|
|
13766
13774
|
*
|
|
13767
13775
|
* @hidden
|
|
13768
13776
|
* @beta
|
|
13769
13777
|
*/
|
|
13770
|
-
declare function SelectInput(props: StringInputProps):
|
|
13778
|
+
declare function SelectInput(props: StringInputProps): react576.JSX.Element;
|
|
13771
13779
|
/**
|
|
13772
13780
|
*
|
|
13773
13781
|
* @hidden
|
|
@@ -13779,12 +13787,12 @@ type SlugInputProps = ObjectInputProps<SlugValue, SlugSchemaType>;
|
|
|
13779
13787
|
* @hidden
|
|
13780
13788
|
* @beta
|
|
13781
13789
|
*/
|
|
13782
|
-
declare function SlugInput(props: SlugInputProps):
|
|
13790
|
+
declare function SlugInput(props: SlugInputProps): react576.JSX.Element;
|
|
13783
13791
|
/**
|
|
13784
13792
|
* @hidden
|
|
13785
13793
|
* @beta
|
|
13786
13794
|
*/
|
|
13787
|
-
declare function StringInput(props: StringInputProps):
|
|
13795
|
+
declare function StringInput(props: StringInputProps): react576.JSX.Element;
|
|
13788
13796
|
/**
|
|
13789
13797
|
*
|
|
13790
13798
|
* @hidden
|
|
@@ -13796,7 +13804,7 @@ type TagsArrayInputProps = ArrayOfPrimitivesInputProps<string>;
|
|
|
13796
13804
|
* @hidden
|
|
13797
13805
|
* @beta
|
|
13798
13806
|
*/
|
|
13799
|
-
declare function TagsArrayInput(props: TagsArrayInputProps):
|
|
13807
|
+
declare function TagsArrayInput(props: TagsArrayInputProps): react576.JSX.Element;
|
|
13800
13808
|
/**
|
|
13801
13809
|
*
|
|
13802
13810
|
* @hidden
|
|
@@ -13808,7 +13816,7 @@ type TelephoneInputProps = StringInputProps;
|
|
|
13808
13816
|
* @hidden
|
|
13809
13817
|
* @beta
|
|
13810
13818
|
*/
|
|
13811
|
-
declare function TelephoneInput(props: TelephoneInputProps):
|
|
13819
|
+
declare function TelephoneInput(props: TelephoneInputProps): react576.JSX.Element;
|
|
13812
13820
|
/**
|
|
13813
13821
|
*
|
|
13814
13822
|
* @hidden
|
|
@@ -13820,7 +13828,7 @@ type TextInputProps = StringInputProps<TextSchemaType>;
|
|
|
13820
13828
|
* @hidden
|
|
13821
13829
|
* @beta
|
|
13822
13830
|
*/
|
|
13823
|
-
declare function TextInput(props: TextInputProps):
|
|
13831
|
+
declare function TextInput(props: TextInputProps): react576.JSX.Element;
|
|
13824
13832
|
/**
|
|
13825
13833
|
*
|
|
13826
13834
|
* @hidden
|
|
@@ -13832,7 +13840,7 @@ type UrlInputProps = StringInputProps;
|
|
|
13832
13840
|
* @hidden
|
|
13833
13841
|
* @beta
|
|
13834
13842
|
*/
|
|
13835
|
-
declare function UrlInput(props: UrlInputProps):
|
|
13843
|
+
declare function UrlInput(props: UrlInputProps): react576.JSX.Element;
|
|
13836
13844
|
/** @internal */
|
|
13837
13845
|
interface ArrayOfObjectsMemberProps {
|
|
13838
13846
|
member: ArrayOfObjectsMember;
|
|
@@ -13848,7 +13856,7 @@ interface ArrayOfObjectsMemberProps {
|
|
|
13848
13856
|
* Convenience component for rendering an "array of objects"-item
|
|
13849
13857
|
* @internal
|
|
13850
13858
|
*/
|
|
13851
|
-
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps):
|
|
13859
|
+
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps): react576.JSX.Element | null;
|
|
13852
13860
|
/** @internal */
|
|
13853
13861
|
interface ArrayOfObjectsInputMembersProps {
|
|
13854
13862
|
members: ArrayOfObjectsMember[];
|
|
@@ -13864,7 +13872,7 @@ interface ArrayOfObjectsInputMembersProps {
|
|
|
13864
13872
|
* Convenience component for wrapping an array of objects
|
|
13865
13873
|
* @internal
|
|
13866
13874
|
*/
|
|
13867
|
-
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps):
|
|
13875
|
+
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps): react576.JSX.Element;
|
|
13868
13876
|
/**
|
|
13869
13877
|
*
|
|
13870
13878
|
* @hidden
|
|
@@ -13885,7 +13893,7 @@ interface MemberItemProps {
|
|
|
13885
13893
|
* @hidden
|
|
13886
13894
|
* @beta
|
|
13887
13895
|
*/
|
|
13888
|
-
declare function ArrayOfObjectsItem(props: MemberItemProps):
|
|
13896
|
+
declare function ArrayOfObjectsItem(props: MemberItemProps): react576.JSX.Element;
|
|
13889
13897
|
/**
|
|
13890
13898
|
*
|
|
13891
13899
|
* @hidden
|
|
@@ -13901,11 +13909,11 @@ interface PrimitiveMemberItemProps {
|
|
|
13901
13909
|
* @hidden
|
|
13902
13910
|
* @beta
|
|
13903
13911
|
*/
|
|
13904
|
-
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps):
|
|
13912
|
+
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps): react576.JSX.Element;
|
|
13905
13913
|
/** @internal */
|
|
13906
13914
|
declare function MemberItemError(props: {
|
|
13907
13915
|
member: ArrayItemError;
|
|
13908
|
-
}):
|
|
13916
|
+
}): react576.JSX.Element;
|
|
13909
13917
|
/** @internal */
|
|
13910
13918
|
interface MemberFieldProps {
|
|
13911
13919
|
member: FieldMember;
|
|
@@ -13918,13 +13926,13 @@ interface MemberFieldProps {
|
|
|
13918
13926
|
renderPreview: RenderPreviewCallback;
|
|
13919
13927
|
}
|
|
13920
13928
|
/** @internal */
|
|
13921
|
-
declare const MemberField:
|
|
13929
|
+
declare const MemberField: react576.NamedExoticComponent<MemberFieldProps>;
|
|
13922
13930
|
/** @internal */
|
|
13923
13931
|
declare function MemberFieldError(props: {
|
|
13924
13932
|
member: FieldError;
|
|
13925
|
-
}):
|
|
13933
|
+
}): react576.JSX.Element;
|
|
13926
13934
|
/** @internal */
|
|
13927
|
-
declare const MemberFieldSet:
|
|
13935
|
+
declare const MemberFieldSet: react576.NamedExoticComponent<{
|
|
13928
13936
|
member: FieldSetMember;
|
|
13929
13937
|
renderAnnotation?: RenderAnnotationCallback | undefined;
|
|
13930
13938
|
renderBlock?: RenderBlockCallback | undefined;
|
|
@@ -13946,7 +13954,7 @@ interface ObjectInputMemberProps {
|
|
|
13946
13954
|
renderPreview: RenderPreviewCallback;
|
|
13947
13955
|
}
|
|
13948
13956
|
/** @internal */
|
|
13949
|
-
declare const ObjectInputMember:
|
|
13957
|
+
declare const ObjectInputMember: react576.NamedExoticComponent<ObjectInputMemberProps>;
|
|
13950
13958
|
/** @internal */
|
|
13951
13959
|
interface ObjectMembersProps {
|
|
13952
13960
|
members: ObjectMember[];
|
|
@@ -13962,7 +13970,7 @@ interface ObjectMembersProps {
|
|
|
13962
13970
|
* Convenience component for wrapping an object input
|
|
13963
13971
|
* @internal
|
|
13964
13972
|
*/
|
|
13965
|
-
declare function ObjectInputMembers(props: ObjectMembersProps):
|
|
13973
|
+
declare function ObjectInputMembers(props: ObjectMembersProps): react576.JSX.Element;
|
|
13966
13974
|
/**
|
|
13967
13975
|
* @deprecated Use ObjectInputMembers instead
|
|
13968
13976
|
* @internal
|
|
@@ -14059,7 +14067,7 @@ type PatchTransformer = (patches: FormPatch[]) => FormPatch[];
|
|
|
14059
14067
|
/**
|
|
14060
14068
|
* @hidden
|
|
14061
14069
|
* @beta */
|
|
14062
|
-
declare const TransformPatches:
|
|
14070
|
+
declare const TransformPatches: react576.NamedExoticComponent<{
|
|
14063
14071
|
transform: PatchTransformer;
|
|
14064
14072
|
} & {
|
|
14065
14073
|
children: ReactNode;
|
|
@@ -15421,7 +15429,7 @@ interface BetaFeatures {
|
|
|
15421
15429
|
form?: {
|
|
15422
15430
|
/**
|
|
15423
15431
|
* Enhanced Object Dialog is a new dialog for editing objects in the studio.
|
|
15424
|
-
* @
|
|
15432
|
+
* @deprecated This property will be removed in a future release as we make the enhanced object dialog the default.
|
|
15425
15433
|
*/
|
|
15426
15434
|
enhancedObjectDialog?: {
|
|
15427
15435
|
enabled: boolean;
|
|
@@ -15537,7 +15545,7 @@ declare class ConfigResolutionError extends Error {
|
|
|
15537
15545
|
* Creates an icon element based on the input title
|
|
15538
15546
|
* @internal
|
|
15539
15547
|
*/
|
|
15540
|
-
declare function createDefaultIcon(title: string, subtitle: string):
|
|
15548
|
+
declare function createDefaultIcon(title: string, subtitle: string): react576.JSX.Element;
|
|
15541
15549
|
/**
|
|
15542
15550
|
* @hidden
|
|
15543
15551
|
* @beta */
|