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,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react623 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_ui22 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'>): react623.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: react623.NamedExoticComponent<CommandListProps<any> & react623.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: react623.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">) & react623.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: react623.ForwardRefExoticComponent<ContextMenuButtonProps & Pick<HTMLProps<HTMLButtonElement>, "disabled" | "hidden" | "onClick"> & react623.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: react623.ForwardRefExoticComponent<Omit<Omit<_sanity_ui22.ButtonProps & Omit<react623.HTMLProps<HTMLButtonElement>, "as" | "width">, "ref"> & react623.RefAttributes<HTMLButtonElement>, "ref"> & react623.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: react623.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
|
+
}) => react623.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
|
+
}>) => react623.JSX.Element;
|
|
683
683
|
/**
|
|
684
684
|
* @internal
|
|
685
685
|
*/
|
|
686
686
|
declare const getVersionInlineBadge: (release?: TargetPerspective | undefined) => FC<{
|
|
687
|
-
children?:
|
|
687
|
+
children?: react623.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
|
+
}) => react623.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'>): react623.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): react623.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
|
+
}): react623.JSX.Element;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* @internal
|
|
1084
1084
|
*/
|
|
1085
|
-
declare const ChangeIndicatorsTracker:
|
|
1085
|
+
declare const ChangeIndicatorsTracker: react623.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): react623.JSX.Element;
|
|
1111
1111
|
/**
|
|
1112
1112
|
* @internal
|
|
1113
1113
|
*/
|
|
1114
|
-
declare const CommentDisabledIcon:
|
|
1114
|
+
declare const CommentDisabledIcon: react623.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & react623.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): react623.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
|
+
}>): react623.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): react623.JSX.Element;
|
|
3733
3733
|
declare module '@sanity/types' {
|
|
3734
3734
|
/**
|
|
3735
3735
|
* Extended validation context that includes internationalization
|
|
@@ -3852,7 +3852,7 @@ interface CommentsAuthoringPathProviderProps {
|
|
|
3852
3852
|
* the component re-renders, for example, when the form is temporarily set to `readOnly`
|
|
3853
3853
|
* while reconnecting.
|
|
3854
3854
|
*/
|
|
3855
|
-
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps):
|
|
3855
|
+
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps): react623.JSX.Element;
|
|
3856
3856
|
/**
|
|
3857
3857
|
* @beta
|
|
3858
3858
|
* @hidden
|
|
@@ -4150,7 +4150,7 @@ interface CommentsProviderProps {
|
|
|
4150
4150
|
/**
|
|
4151
4151
|
* @beta
|
|
4152
4152
|
*/
|
|
4153
|
-
declare const CommentsProvider:
|
|
4153
|
+
declare const CommentsProvider: react623.NamedExoticComponent<CommentsProviderProps>;
|
|
4154
4154
|
interface CommentsEnabledProviderProps {
|
|
4155
4155
|
children: ReactNode;
|
|
4156
4156
|
documentId: string;
|
|
@@ -4160,7 +4160,7 @@ interface CommentsEnabledProviderProps {
|
|
|
4160
4160
|
* @beta
|
|
4161
4161
|
* @hidden
|
|
4162
4162
|
*/
|
|
4163
|
-
declare const CommentsEnabledProvider:
|
|
4163
|
+
declare const CommentsEnabledProvider: react623.NamedExoticComponent<CommentsEnabledProviderProps>;
|
|
4164
4164
|
/**
|
|
4165
4165
|
* @beta
|
|
4166
4166
|
* @hidden
|
|
@@ -4173,14 +4173,14 @@ interface CommentsIntentProviderProps {
|
|
|
4173
4173
|
* @beta
|
|
4174
4174
|
* @hidden
|
|
4175
4175
|
*/
|
|
4176
|
-
declare const CommentsIntentProvider:
|
|
4176
|
+
declare const CommentsIntentProvider: react623.NamedExoticComponent<CommentsIntentProviderProps>;
|
|
4177
4177
|
interface CommentsSelectedPathProviderProps {
|
|
4178
4178
|
children: React.ReactNode;
|
|
4179
4179
|
}
|
|
4180
4180
|
/**
|
|
4181
4181
|
* @internal
|
|
4182
4182
|
*/
|
|
4183
|
-
declare const CommentsSelectedPathProvider:
|
|
4183
|
+
declare const CommentsSelectedPathProvider: react623.NamedExoticComponent<CommentsSelectedPathProviderProps>;
|
|
4184
4184
|
/**
|
|
4185
4185
|
* @internal
|
|
4186
4186
|
*/
|
|
@@ -4223,7 +4223,7 @@ declare function ActiveWorkspaceMatcher({
|
|
|
4223
4223
|
LoadingComponent,
|
|
4224
4224
|
NotFoundComponent,
|
|
4225
4225
|
unstable_history: historyProp
|
|
4226
|
-
}: ActiveWorkspaceMatcherProps):
|
|
4226
|
+
}: ActiveWorkspaceMatcherProps): react623.JSX.Element;
|
|
4227
4227
|
/** @internal */
|
|
4228
4228
|
interface WorkspaceLike {
|
|
4229
4229
|
name?: string;
|
|
@@ -4294,7 +4294,7 @@ declare function WorkspacesProvider({
|
|
|
4294
4294
|
children,
|
|
4295
4295
|
basePath,
|
|
4296
4296
|
LoadingComponent
|
|
4297
|
-
}: WorkspacesProviderProps):
|
|
4297
|
+
}: WorkspacesProviderProps): react623.JSX.Element;
|
|
4298
4298
|
/** @internal */
|
|
4299
4299
|
type NormalizedWorkspace = {
|
|
4300
4300
|
workspace: WorkspacesContextValue[number];
|
|
@@ -4340,7 +4340,7 @@ interface AddonDatasetSetupProviderProps {
|
|
|
4340
4340
|
* @beta
|
|
4341
4341
|
* @hidden
|
|
4342
4342
|
*/
|
|
4343
|
-
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean |
|
|
4343
|
+
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean | react623.JSX.Element | Iterable<react623.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react623.ReactNode> | react623.ReactElement<unknown, string | react623.JSXElementConstructor<any>> | react623.ReactPortal | null | undefined> | null | undefined;
|
|
4344
4344
|
/**
|
|
4345
4345
|
* @beta
|
|
4346
4346
|
* @hidden
|
|
@@ -4442,7 +4442,7 @@ declare function ColorSchemeProvider({
|
|
|
4442
4442
|
children,
|
|
4443
4443
|
onSchemeChange,
|
|
4444
4444
|
scheme: schemeProp
|
|
4445
|
-
}: ColorSchemeProviderProps):
|
|
4445
|
+
}: ColorSchemeProviderProps): react623.JSX.Element;
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Uses useSyncExternalStore to ensure that localStorage is accessed in a SSR hydration compatible way
|
|
4448
4448
|
* @internal
|
|
@@ -4450,7 +4450,7 @@ declare function ColorSchemeProvider({
|
|
|
4450
4450
|
declare function ColorSchemeLocalStorageProvider({
|
|
4451
4451
|
children,
|
|
4452
4452
|
onSchemeChange
|
|
4453
|
-
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>):
|
|
4453
|
+
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>): react623.JSX.Element;
|
|
4454
4454
|
/**
|
|
4455
4455
|
* If the `scheme` prop is provided we don't need to setup any logic to handle localStorage
|
|
4456
4456
|
* @internal
|
|
@@ -4495,7 +4495,7 @@ declare function Filters({
|
|
|
4495
4495
|
showTypeFilter
|
|
4496
4496
|
}: {
|
|
4497
4497
|
showTypeFilter?: boolean;
|
|
4498
|
-
}):
|
|
4498
|
+
}): react623.JSX.Element;
|
|
4499
4499
|
interface SearchHeaderProps {
|
|
4500
4500
|
ariaInputLabel?: string;
|
|
4501
4501
|
onClose?: () => void;
|
|
@@ -4503,7 +4503,7 @@ interface SearchHeaderProps {
|
|
|
4503
4503
|
/**
|
|
4504
4504
|
* @internal
|
|
4505
4505
|
*/
|
|
4506
|
-
declare const SearchHeader:
|
|
4506
|
+
declare const SearchHeader: react623.ForwardRefExoticComponent<SearchHeaderProps & react623.RefAttributes<HTMLInputElement>>;
|
|
4507
4507
|
type ItemSelectHandler = (item: Pick<SanityDocumentLike, '_id' | '_type' | 'title'>) => void;
|
|
4508
4508
|
/**
|
|
4509
4509
|
* @internal
|
|
@@ -4531,7 +4531,7 @@ declare function SearchPopover({
|
|
|
4531
4531
|
onOpen,
|
|
4532
4532
|
previewPerspective,
|
|
4533
4533
|
open
|
|
4534
|
-
}: SearchPopoverProps):
|
|
4534
|
+
}: SearchPopoverProps): react623.JSX.Element;
|
|
4535
4535
|
interface SearchResultItemPreviewProps {
|
|
4536
4536
|
documentId: string;
|
|
4537
4537
|
documentType: string;
|
|
@@ -4552,7 +4552,7 @@ declare function SearchResultItemPreview({
|
|
|
4552
4552
|
schemaType,
|
|
4553
4553
|
showBadge,
|
|
4554
4554
|
perspective
|
|
4555
|
-
}: SearchResultItemPreviewProps):
|
|
4555
|
+
}: SearchResultItemPreviewProps): react623.JSX.Element;
|
|
4556
4556
|
/**
|
|
4557
4557
|
* @internal
|
|
4558
4558
|
*/
|
|
@@ -5086,7 +5086,7 @@ declare function SearchProvider({
|
|
|
5086
5086
|
fullscreen,
|
|
5087
5087
|
disabledDocumentIds,
|
|
5088
5088
|
canDisableAction
|
|
5089
|
-
}: SearchProviderProps):
|
|
5089
|
+
}: SearchProviderProps): react623.JSX.Element;
|
|
5090
5090
|
/**
|
|
5091
5091
|
* @internal
|
|
5092
5092
|
*/
|
|
@@ -5111,7 +5111,7 @@ interface SearchButtonProps {
|
|
|
5111
5111
|
/**
|
|
5112
5112
|
* @internal
|
|
5113
5113
|
*/
|
|
5114
|
-
declare const SearchButton:
|
|
5114
|
+
declare const SearchButton: react623.ForwardRefExoticComponent<SearchButtonProps & react623.RefAttributes<HTMLButtonElement>>;
|
|
5115
5115
|
interface SearchDialogProps {
|
|
5116
5116
|
onClose: () => void;
|
|
5117
5117
|
onOpen: () => void;
|
|
@@ -5124,11 +5124,11 @@ declare function SearchDialog({
|
|
|
5124
5124
|
onClose,
|
|
5125
5125
|
onOpen,
|
|
5126
5126
|
open
|
|
5127
|
-
}: SearchDialogProps):
|
|
5127
|
+
}: SearchDialogProps): react623.JSX.Element;
|
|
5128
5128
|
/**
|
|
5129
5129
|
* @hidden
|
|
5130
5130
|
* @beta */
|
|
5131
|
-
declare function StudioLogo(props: LogoProps):
|
|
5131
|
+
declare function StudioLogo(props: LogoProps): react623.JSX.Element;
|
|
5132
5132
|
/**
|
|
5133
5133
|
* @hidden
|
|
5134
5134
|
* @beta */
|
|
@@ -5220,11 +5220,11 @@ interface StudioComponentsPluginOptions {
|
|
|
5220
5220
|
/**
|
|
5221
5221
|
* @hidden
|
|
5222
5222
|
* @beta */
|
|
5223
|
-
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>):
|
|
5223
|
+
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>): react623.JSX.Element;
|
|
5224
5224
|
/**
|
|
5225
5225
|
* @hidden
|
|
5226
5226
|
* @beta */
|
|
5227
|
-
declare function StudioToolMenu(props: ToolMenuProps):
|
|
5227
|
+
declare function StudioToolMenu(props: ToolMenuProps): react623.JSX.Element | null;
|
|
5228
5228
|
/**
|
|
5229
5229
|
* @hidden
|
|
5230
5230
|
* @beta */
|
|
@@ -5235,7 +5235,7 @@ interface ToolLinkProps {
|
|
|
5235
5235
|
/**
|
|
5236
5236
|
* @hidden
|
|
5237
5237
|
* @beta */
|
|
5238
|
-
declare const ToolLink:
|
|
5238
|
+
declare const ToolLink: react623.ForwardRefExoticComponent<Omit<ToolLinkProps & Omit<HTMLProps<HTMLAnchorElement>, "href" | "name">, "ref"> & react623.RefAttributes<HTMLAnchorElement>>;
|
|
5239
5239
|
/**
|
|
5240
5240
|
* @hidden
|
|
5241
5241
|
* @beta */
|
|
@@ -5536,7 +5536,7 @@ type SourceProviderProps = {
|
|
|
5536
5536
|
declare function SourceProvider({
|
|
5537
5537
|
children,
|
|
5538
5538
|
...props
|
|
5539
|
-
}: SourceProviderProps):
|
|
5539
|
+
}: SourceProviderProps): react623.JSX.Element;
|
|
5540
5540
|
/**
|
|
5541
5541
|
* @internal
|
|
5542
5542
|
* @deprecated INTERNAL USE ONLY
|
|
@@ -5648,7 +5648,7 @@ declare function StudioAnnouncementsCard({
|
|
|
5648
5648
|
preHeader,
|
|
5649
5649
|
onCardClick,
|
|
5650
5650
|
onCardDismiss
|
|
5651
|
-
}: StudioAnnouncementCardProps):
|
|
5651
|
+
}: StudioAnnouncementCardProps): react623.JSX.Element;
|
|
5652
5652
|
declare const audienceRoles: readonly ["administrator", "editor", "viewer", "contributor", "developer", "custom"];
|
|
5653
5653
|
type AudienceRole = (typeof audienceRoles)[number];
|
|
5654
5654
|
interface StudioAnnouncementDocument {
|
|
@@ -5688,7 +5688,7 @@ declare function StudioAnnouncementsDialog({
|
|
|
5688
5688
|
announcements,
|
|
5689
5689
|
onClose,
|
|
5690
5690
|
mode
|
|
5691
|
-
}: StudioAnnouncementDialogProps):
|
|
5691
|
+
}: StudioAnnouncementDialogProps): react623.JSX.Element;
|
|
5692
5692
|
/**
|
|
5693
5693
|
* @internal
|
|
5694
5694
|
* @hidden
|
|
@@ -5731,12 +5731,12 @@ interface NavbarContextValue {
|
|
|
5731
5731
|
*</StudioProvider>
|
|
5732
5732
|
* ```
|
|
5733
5733
|
*/
|
|
5734
|
-
declare function StudioLayout():
|
|
5734
|
+
declare function StudioLayout(): react623.JSX.Element;
|
|
5735
5735
|
/**
|
|
5736
5736
|
* @internal
|
|
5737
5737
|
* The default Studio Layout component
|
|
5738
5738
|
* */
|
|
5739
|
-
declare function StudioLayoutComponent():
|
|
5739
|
+
declare function StudioLayoutComponent(): react623.JSX.Element;
|
|
5740
5740
|
/**
|
|
5741
5741
|
* @hidden
|
|
5742
5742
|
* @beta */
|
|
@@ -5754,7 +5754,7 @@ declare function StudioProvider({
|
|
|
5754
5754
|
scheme,
|
|
5755
5755
|
unstable_history: history,
|
|
5756
5756
|
unstable_noAuthBoundary: noAuthBoundary
|
|
5757
|
-
}: StudioProviderProps):
|
|
5757
|
+
}: StudioProviderProps): react623.JSX.Element;
|
|
5758
5758
|
interface UpsellDialogActionsInfo {
|
|
5759
5759
|
feature: 'comments' | 'scheduled_publishing' | 'ai_assist' | 'tasks';
|
|
5760
5760
|
type: 'modal' | 'inspector';
|
|
@@ -5799,7 +5799,7 @@ interface DescriptionSerializerProps {
|
|
|
5799
5799
|
* Not meant for public consumption.
|
|
5800
5800
|
* @internal
|
|
5801
5801
|
*/
|
|
5802
|
-
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps):
|
|
5802
|
+
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps): react623.JSX.Element;
|
|
5803
5803
|
/** @internal */
|
|
5804
5804
|
interface WorkspaceProviderProps {
|
|
5805
5805
|
workspace: Workspace;
|
|
@@ -5834,7 +5834,7 @@ declare function ErrorMessage({
|
|
|
5834
5834
|
message,
|
|
5835
5835
|
path,
|
|
5836
5836
|
stack
|
|
5837
|
-
}: ErrorMessageProps):
|
|
5837
|
+
}: ErrorMessageProps): react623.JSX.Element;
|
|
5838
5838
|
interface WorkspaceLoaderProps {
|
|
5839
5839
|
children: ReactNode;
|
|
5840
5840
|
ConfigErrorsComponent: ComponentType;
|
|
@@ -5850,7 +5850,7 @@ declare function useWorkspaceLoader(activeWorkspace: WorkspaceSummary): Workspac
|
|
|
5850
5850
|
declare function WorkspaceLoaderBoundary({
|
|
5851
5851
|
ConfigErrorsComponent,
|
|
5852
5852
|
...props
|
|
5853
|
-
}: WorkspaceLoaderProps):
|
|
5853
|
+
}: WorkspaceLoaderProps): react623.JSX.Element;
|
|
5854
5854
|
/**
|
|
5855
5855
|
* @beta
|
|
5856
5856
|
* @hidden
|
|
@@ -5927,7 +5927,7 @@ interface CommentsListProps {
|
|
|
5927
5927
|
* @beta
|
|
5928
5928
|
* @hidden
|
|
5929
5929
|
*/
|
|
5930
|
-
declare const CommentsList:
|
|
5930
|
+
declare const CommentsList: react623.NamedExoticComponent<CommentsListProps & react623.RefAttributes<HTMLDivElement>>;
|
|
5931
5931
|
/**
|
|
5932
5932
|
* @internal
|
|
5933
5933
|
*/
|
|
@@ -5970,7 +5970,7 @@ interface CommentInputHandle {
|
|
|
5970
5970
|
* @internal
|
|
5971
5971
|
* @hidden
|
|
5972
5972
|
*/
|
|
5973
|
-
declare const CommentInput:
|
|
5973
|
+
declare const CommentInput: react623.ForwardRefExoticComponent<CommentInputProps & react623.RefAttributes<CommentInputHandle>>;
|
|
5974
5974
|
interface CommentInputContextValue {
|
|
5975
5975
|
canSubmit?: boolean;
|
|
5976
5976
|
closeMentions: () => void;
|
|
@@ -6000,7 +6000,7 @@ interface CommentInlineHighlightSpanProps {
|
|
|
6000
6000
|
/**
|
|
6001
6001
|
* @internal
|
|
6002
6002
|
*/
|
|
6003
|
-
declare const CommentInlineHighlightSpan:
|
|
6003
|
+
declare const CommentInlineHighlightSpan: react623.ForwardRefExoticComponent<Omit<CommentInlineHighlightSpanProps & react623.HTMLProps<HTMLSpanElement>, "ref"> & react623.RefAttributes<HTMLSpanElement>>;
|
|
6004
6004
|
/**
|
|
6005
6005
|
* @internal
|
|
6006
6006
|
* @hidden
|
|
@@ -6138,11 +6138,11 @@ interface CollapseMenuProps {
|
|
|
6138
6138
|
onMenuClose?: () => void;
|
|
6139
6139
|
}
|
|
6140
6140
|
/** @internal */
|
|
6141
|
-
declare const CollapseMenu:
|
|
6141
|
+
declare const CollapseMenu: react623.ForwardRefExoticComponent<CollapseMenuProps & react623.RefAttributes<any>>;
|
|
6142
6142
|
/** @internal */
|
|
6143
|
-
declare const AutoCollapseMenu:
|
|
6144
|
-
menuOptions:
|
|
6145
|
-
} &
|
|
6143
|
+
declare const AutoCollapseMenu: react623.ForwardRefExoticComponent<Omit<CollapseMenuProps, "children" | "collapsed"> & {
|
|
6144
|
+
menuOptions: react623.JSX.Element[];
|
|
6145
|
+
} & react623.RefAttributes<HTMLDivElement>>;
|
|
6146
6146
|
/** @internal */
|
|
6147
6147
|
interface CommonProps extends Omit<ButtonProps$1, 'text' | 'iconRight'> {
|
|
6148
6148
|
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
@@ -6158,7 +6158,7 @@ interface CollapseMenuButtonProps extends CommonProps {
|
|
|
6158
6158
|
text: string;
|
|
6159
6159
|
}
|
|
6160
6160
|
/** @internal */
|
|
6161
|
-
declare const CollapseMenuButton:
|
|
6161
|
+
declare const CollapseMenuButton: react623.ForwardRefExoticComponent<Omit<CollapseMenuButtonProps & Omit<HTMLProps<HTMLButtonElement>, "as" | "size">, "ref"> & react623.RefAttributes<HTMLButtonElement>>;
|
|
6162
6162
|
/** @internal */
|
|
6163
6163
|
declare function useOnScroll(callback: Subscriber<Event>): void;
|
|
6164
6164
|
/** @internal */
|
|
@@ -6175,7 +6175,7 @@ interface ScrollContainerProps<T extends ElementType> extends Omit<HTMLProps<T>,
|
|
|
6175
6175
|
*
|
|
6176
6176
|
* @internal
|
|
6177
6177
|
*/
|
|
6178
|
-
declare const ScrollContainer:
|
|
6178
|
+
declare const ScrollContainer: react623.NamedExoticComponent<Omit<ScrollContainerProps<ElementType>, "ref"> & react623.RefAttributes<HTMLDivElement>>;
|
|
6179
6179
|
/** @internal */
|
|
6180
6180
|
type ScrollEventHandler = (event: Event) => void;
|
|
6181
6181
|
/** @internal */
|
|
@@ -6617,7 +6617,7 @@ interface EventsProviderProps {
|
|
|
6617
6617
|
declare function EventsProvider({
|
|
6618
6618
|
value,
|
|
6619
6619
|
children
|
|
6620
|
-
}: EventsProviderProps):
|
|
6620
|
+
}: EventsProviderProps): react623.JSX.Element;
|
|
6621
6621
|
/**
|
|
6622
6622
|
* @internal
|
|
6623
6623
|
*/
|
|
@@ -6835,7 +6835,7 @@ declare function useDiffAnnotationColor(diff: Diff$1, path?: string | Path): Use
|
|
|
6835
6835
|
declare function ChangeBreadcrumb(props: {
|
|
6836
6836
|
change?: FieldChangeNode;
|
|
6837
6837
|
titlePath: ChangeTitlePath;
|
|
6838
|
-
}):
|
|
6838
|
+
}): react623.JSX.Element;
|
|
6839
6839
|
/** @internal */
|
|
6840
6840
|
interface ChangeListProps {
|
|
6841
6841
|
schemaType: ObjectSchemaType;
|
|
@@ -6856,7 +6856,7 @@ interface ChangeResolverProps {
|
|
|
6856
6856
|
addParentWrapper?: boolean;
|
|
6857
6857
|
}
|
|
6858
6858
|
/** @internal */
|
|
6859
|
-
declare function ChangeResolver(props: ChangeResolverProps):
|
|
6859
|
+
declare function ChangeResolver(props: ChangeResolverProps): react623.JSX.Element | null;
|
|
6860
6860
|
/**
|
|
6861
6861
|
* @internal
|
|
6862
6862
|
* */
|
|
@@ -6864,12 +6864,12 @@ declare function ChangesError({
|
|
|
6864
6864
|
error
|
|
6865
6865
|
}: {
|
|
6866
6866
|
error?: Error | null;
|
|
6867
|
-
}):
|
|
6867
|
+
}): react623.JSX.Element;
|
|
6868
6868
|
/** @internal */
|
|
6869
6869
|
declare function ChangeTitleSegment(props: {
|
|
6870
6870
|
change?: FieldChangeNode;
|
|
6871
6871
|
segment: string | FromToIndex;
|
|
6872
|
-
}):
|
|
6872
|
+
}): react623.JSX.Element;
|
|
6873
6873
|
/**
|
|
6874
6874
|
* @internal
|
|
6875
6875
|
* mapping of events types with a readable key for translation
|
|
@@ -6887,7 +6887,7 @@ interface DiffCardProps {
|
|
|
6887
6887
|
} | boolean;
|
|
6888
6888
|
}
|
|
6889
6889
|
/** @internal */
|
|
6890
|
-
declare const DiffCard:
|
|
6890
|
+
declare const DiffCard: react623.ForwardRefExoticComponent<Omit<DiffCardProps & Omit<HTMLProps<HTMLElement>, "as" | "height">, "ref"> & react623.RefAttributes<unknown>>;
|
|
6891
6891
|
/** @internal */
|
|
6892
6892
|
interface DiffErrorBoundaryProps {
|
|
6893
6893
|
children: ReactNode;
|
|
@@ -6904,7 +6904,7 @@ declare class DiffErrorBoundary extends Component<DiffErrorBoundaryProps, DiffEr
|
|
|
6904
6904
|
};
|
|
6905
6905
|
state: DiffErrorBoundaryState;
|
|
6906
6906
|
componentDidCatch(error: Error): void;
|
|
6907
|
-
render(): string | number | bigint | boolean |
|
|
6907
|
+
render(): string | number | bigint | boolean | react623.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | react623.ReactElement<unknown, string | react623.JSXElementConstructor<any>> | react623.ReactPortal | null | undefined> | null | undefined;
|
|
6908
6908
|
}
|
|
6909
6909
|
/** @internal */
|
|
6910
6910
|
type FieldPreviewComponent<T = any> = ComponentType<{
|
|
@@ -6923,7 +6923,7 @@ interface DiffFromToProps {
|
|
|
6923
6923
|
schemaType: SchemaType;
|
|
6924
6924
|
}
|
|
6925
6925
|
/** @internal */
|
|
6926
|
-
declare function DiffFromTo(props: DiffFromToProps):
|
|
6926
|
+
declare function DiffFromTo(props: DiffFromToProps): react623.JSX.Element;
|
|
6927
6927
|
/** @internal */
|
|
6928
6928
|
interface DiffInspectWrapperProps {
|
|
6929
6929
|
children: ReactNode;
|
|
@@ -6939,7 +6939,7 @@ declare function DiffStringSegment(props: {
|
|
|
6939
6939
|
/** @internal */
|
|
6940
6940
|
declare function DiffString(props: {
|
|
6941
6941
|
diff: StringDiff$1;
|
|
6942
|
-
}):
|
|
6942
|
+
}): react623.JSX.Element;
|
|
6943
6943
|
/** @internal */
|
|
6944
6944
|
interface DiffTooltipProps extends TooltipProps$1 {
|
|
6945
6945
|
children: React.JSX.Element;
|
|
@@ -6954,7 +6954,7 @@ interface DiffTooltipWithAnnotationsProps extends TooltipProps$1 {
|
|
|
6954
6954
|
description?: ReactNode;
|
|
6955
6955
|
}
|
|
6956
6956
|
/** @internal */
|
|
6957
|
-
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps):
|
|
6957
|
+
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps): react623.JSX.Element;
|
|
6958
6958
|
interface TimelineItemProps {
|
|
6959
6959
|
event: DocumentGroupEvent;
|
|
6960
6960
|
showChangesBy: 'tooltip' | 'inline' | 'hidden';
|
|
@@ -6965,7 +6965,7 @@ interface TimelineItemProps {
|
|
|
6965
6965
|
declare function Event$1({
|
|
6966
6966
|
event,
|
|
6967
6967
|
showChangesBy
|
|
6968
|
-
}: TimelineItemProps):
|
|
6968
|
+
}: TimelineItemProps): react623.JSX.Element;
|
|
6969
6969
|
/** @internal */
|
|
6970
6970
|
declare const FallbackDiff: DiffComponent<Diff$1<unknown, Record<string, unknown>>>;
|
|
6971
6971
|
/** @internal */
|
|
@@ -6974,7 +6974,7 @@ declare function FieldChange(props: {
|
|
|
6974
6974
|
readOnly?: boolean;
|
|
6975
6975
|
hidden?: boolean;
|
|
6976
6976
|
addParentWrapper?: boolean;
|
|
6977
|
-
} & HTMLAttributes<HTMLDivElement>):
|
|
6977
|
+
} & HTMLAttributes<HTMLDivElement>): react623.JSX.Element | null;
|
|
6978
6978
|
/** @internal */
|
|
6979
6979
|
type FromToProps = {
|
|
6980
6980
|
align?: 'top' | 'center' | 'bottom';
|
|
@@ -6983,13 +6983,13 @@ type FromToProps = {
|
|
|
6983
6983
|
to?: ReactNode;
|
|
6984
6984
|
} & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'height' | 'wrap'>;
|
|
6985
6985
|
/** @internal */
|
|
6986
|
-
declare const FromTo:
|
|
6986
|
+
declare const FromTo: react623.ForwardRefExoticComponent<Omit<FromToProps, "ref"> & react623.RefAttributes<HTMLDivElement>>;
|
|
6987
6987
|
/** @internal */
|
|
6988
6988
|
type FromToArrowDirection = 'down' | 'right';
|
|
6989
6989
|
/** @internal */
|
|
6990
6990
|
declare function FromToArrow(props: {
|
|
6991
6991
|
direction?: FromToArrowDirection;
|
|
6992
|
-
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>):
|
|
6992
|
+
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>): react623.JSX.Element;
|
|
6993
6993
|
/** @internal */
|
|
6994
6994
|
declare function GroupChange(props: {
|
|
6995
6995
|
change: GroupChangeNode;
|
|
@@ -7005,13 +7005,13 @@ interface MetaInfoProps {
|
|
|
7005
7005
|
markRemoved?: boolean;
|
|
7006
7006
|
}
|
|
7007
7007
|
/** @internal */
|
|
7008
|
-
declare function MetaInfo(props: MetaInfoProps):
|
|
7008
|
+
declare function MetaInfo(props: MetaInfoProps): react623.JSX.Element;
|
|
7009
7009
|
/** @internal */
|
|
7010
|
-
declare function NoChanges():
|
|
7010
|
+
declare function NoChanges(): react623.JSX.Element;
|
|
7011
7011
|
/** @internal */
|
|
7012
|
-
declare const RevertChangesButton:
|
|
7012
|
+
declare const RevertChangesButton: react623.ForwardRefExoticComponent<Omit<ButtonProps$1, "tooltipProps"> & Omit<HTMLProps<HTMLButtonElement>, "ref"> & {
|
|
7013
7013
|
changeCount: number;
|
|
7014
|
-
} &
|
|
7014
|
+
} & react623.RefAttributes<HTMLButtonElement>>;
|
|
7015
7015
|
interface RevertChangesConfirmDialogProps {
|
|
7016
7016
|
open: boolean;
|
|
7017
7017
|
onConfirm: () => void;
|
|
@@ -7028,13 +7028,13 @@ declare function RevertChangesConfirmDialog({
|
|
|
7028
7028
|
onCancel,
|
|
7029
7029
|
changeCount,
|
|
7030
7030
|
referenceElement
|
|
7031
|
-
}: RevertChangesConfirmDialogProps):
|
|
7031
|
+
}: RevertChangesConfirmDialogProps): react623.JSX.Element;
|
|
7032
7032
|
/** @internal */
|
|
7033
7033
|
declare function ValueError({
|
|
7034
7034
|
error
|
|
7035
7035
|
}: {
|
|
7036
7036
|
error: FieldValueError;
|
|
7037
|
-
}):
|
|
7037
|
+
}): react623.JSX.Element;
|
|
7038
7038
|
/** @internal */
|
|
7039
7039
|
type DocumentChangeContextInstance = {
|
|
7040
7040
|
documentId: string;
|
|
@@ -7150,7 +7150,7 @@ declare function PerspectiveProvider({
|
|
|
7150
7150
|
children: React.ReactNode;
|
|
7151
7151
|
selectedPerspectiveName: 'published' | ReleaseId | undefined;
|
|
7152
7152
|
excludedPerspectives?: string[];
|
|
7153
|
-
}):
|
|
7153
|
+
}): react623.JSX.Element;
|
|
7154
7154
|
interface ExcludedPerspectiveValue {
|
|
7155
7155
|
excludedPerspectives: string[];
|
|
7156
7156
|
toggleExcludedPerspective: (perspectiveId: string) => void;
|
|
@@ -7225,7 +7225,7 @@ interface Props$2 {
|
|
|
7225
7225
|
* @deprecated we will be dropping support for scheduled publishing on a future major version
|
|
7226
7226
|
* @internal
|
|
7227
7227
|
*/
|
|
7228
|
-
declare function EditScheduleForm(props: PropsWithChildren<Props$2>):
|
|
7228
|
+
declare function EditScheduleForm(props: PropsWithChildren<Props$2>): react623.JSX.Element;
|
|
7229
7229
|
/**
|
|
7230
7230
|
* @internal
|
|
7231
7231
|
*/
|
|
@@ -7376,18 +7376,18 @@ interface DocumentActionDescription extends GroupableActionDescription<DocumentA
|
|
|
7376
7376
|
}
|
|
7377
7377
|
declare function useScheduleAction(props: DocumentActionProps): {
|
|
7378
7378
|
disabled: true;
|
|
7379
|
-
icon:
|
|
7379
|
+
icon: react623.ForwardRefExoticComponent<Omit<react623.SVGProps<SVGSVGElement>, "ref"> & react623.RefAttributes<SVGSVGElement>>;
|
|
7380
7380
|
label: string;
|
|
7381
|
-
title:
|
|
7381
|
+
title: react623.JSX.Element;
|
|
7382
7382
|
dialog?: undefined;
|
|
7383
7383
|
onHandle?: undefined;
|
|
7384
7384
|
} | {
|
|
7385
7385
|
dialog: false | DocumentActionModalDialogProps;
|
|
7386
7386
|
disabled: boolean;
|
|
7387
7387
|
label: string;
|
|
7388
|
-
icon:
|
|
7388
|
+
icon: react623.ForwardRefExoticComponent<Omit<react623.SVGProps<SVGSVGElement>, "ref"> & react623.RefAttributes<SVGSVGElement>>;
|
|
7389
7389
|
onHandle: () => void;
|
|
7390
|
-
title: "" |
|
|
7390
|
+
title: "" | react623.JSX.Element | null;
|
|
7391
7391
|
} | null;
|
|
7392
7392
|
declare namespace useScheduleAction {
|
|
7393
7393
|
var action: ("delete" | "discardChanges" | "discardVersion" | "duplicate" | "editInCanvas" | "linkToCanvas" | "publish" | "restore" | "schedule" | "unlinkFromCanvas" | "unpublish" | "unpublishVersion") | undefined;
|
|
@@ -7414,7 +7414,7 @@ interface GetHookCollectionStateProps<Args, State> {
|
|
|
7414
7414
|
resetRef?: React.Ref<() => void>;
|
|
7415
7415
|
}
|
|
7416
7416
|
/** @internal */
|
|
7417
|
-
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>):
|
|
7417
|
+
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>): react623.JSX.Element;
|
|
7418
7418
|
/**
|
|
7419
7419
|
* @hidden
|
|
7420
7420
|
* @beta */
|
|
@@ -7467,7 +7467,7 @@ interface SingleDocReleaseProviderProps {
|
|
|
7467
7467
|
declare function SingleDocReleaseProvider({
|
|
7468
7468
|
children,
|
|
7469
7469
|
onSetScheduledDraftPerspective
|
|
7470
|
-
}: SingleDocReleaseProviderProps):
|
|
7470
|
+
}: SingleDocReleaseProviderProps): react623.JSX.Element;
|
|
7471
7471
|
/**
|
|
7472
7472
|
* Hook to get the single doc release context
|
|
7473
7473
|
* @internal
|
|
@@ -8276,7 +8276,7 @@ declare function DocumentStatus({
|
|
|
8276
8276
|
published,
|
|
8277
8277
|
versions,
|
|
8278
8278
|
singleLine
|
|
8279
|
-
}: DocumentStatusProps$1):
|
|
8279
|
+
}: DocumentStatusProps$1): react623.JSX.Element;
|
|
8280
8280
|
/**
|
|
8281
8281
|
* @internal
|
|
8282
8282
|
*/
|
|
@@ -8346,7 +8346,7 @@ declare function DocumentStatusIndicator({
|
|
|
8346
8346
|
draft,
|
|
8347
8347
|
published,
|
|
8348
8348
|
versions
|
|
8349
|
-
}: DocumentStatusProps):
|
|
8349
|
+
}: DocumentStatusProps): react623.JSX.Element;
|
|
8350
8350
|
/**
|
|
8351
8351
|
* @internal
|
|
8352
8352
|
*/
|
|
@@ -8402,7 +8402,7 @@ declare function Hotkeys({
|
|
|
8402
8402
|
makePlatformAware,
|
|
8403
8403
|
keys: hotKeys,
|
|
8404
8404
|
...props
|
|
8405
|
-
}: HotkeysProps$1):
|
|
8405
|
+
}: HotkeysProps$1): react623.JSX.Element;
|
|
8406
8406
|
/** @internal */
|
|
8407
8407
|
interface InsufficientPermissionsMessageProps {
|
|
8408
8408
|
currentUser?: CurrentUser | null;
|
|
@@ -8412,13 +8412,13 @@ interface InsufficientPermissionsMessageProps {
|
|
|
8412
8412
|
declare function InsufficientPermissionsMessage({
|
|
8413
8413
|
currentUser,
|
|
8414
8414
|
context
|
|
8415
|
-
}: InsufficientPermissionsMessageProps):
|
|
8415
|
+
}: InsufficientPermissionsMessageProps): react623.JSX.Element;
|
|
8416
8416
|
/**
|
|
8417
8417
|
*
|
|
8418
8418
|
* @hidden
|
|
8419
8419
|
* @beta
|
|
8420
8420
|
*/
|
|
8421
|
-
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>):
|
|
8421
|
+
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>): react623.JSX.Element;
|
|
8422
8422
|
interface LoadingTestProps {
|
|
8423
8423
|
/** Absolutely positions this component when `true`. */
|
|
8424
8424
|
fill?: boolean;
|
|
@@ -8442,7 +8442,7 @@ declare function LoadingBlock({
|
|
|
8442
8442
|
fill,
|
|
8443
8443
|
showText,
|
|
8444
8444
|
title
|
|
8445
|
-
}: LoadingTestProps):
|
|
8445
|
+
}: LoadingTestProps): react623.JSX.Element;
|
|
8446
8446
|
interface PopoverDialogProps {
|
|
8447
8447
|
children: ReactNode;
|
|
8448
8448
|
header?: ReactNode;
|
|
@@ -8452,7 +8452,7 @@ interface PopoverDialogProps {
|
|
|
8452
8452
|
containerRef?: Dispatch<SetStateAction<HTMLDivElement | null>>;
|
|
8453
8453
|
}
|
|
8454
8454
|
/** @internal */
|
|
8455
|
-
declare function PopoverDialog(props: PopoverDialogProps):
|
|
8455
|
+
declare function PopoverDialog(props: PopoverDialogProps): react623.JSX.Element;
|
|
8456
8456
|
/** @internal */
|
|
8457
8457
|
interface PreviewCardContextValue {
|
|
8458
8458
|
selected?: boolean;
|
|
@@ -8460,7 +8460,7 @@ interface PreviewCardContextValue {
|
|
|
8460
8460
|
/** @internal */
|
|
8461
8461
|
declare function usePreviewCard(): PreviewCardContextValue;
|
|
8462
8462
|
/** @internal */
|
|
8463
|
-
declare const PreviewCard:
|
|
8463
|
+
declare const PreviewCard: react623.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react623.RefAttributes<HTMLDivElement>>;
|
|
8464
8464
|
/**
|
|
8465
8465
|
* This is a workaround for a circular import issue.
|
|
8466
8466
|
* Calling `styled(PreviewCard)` at program load time triggered a build error with the commonjs bundle because it tried
|
|
@@ -8468,7 +8468,7 @@ declare const PreviewCard: react583.ForwardRefExoticComponent<Omit<CardProps & O
|
|
|
8468
8468
|
* The workaround is to colocate the styled component with the component itself.
|
|
8469
8469
|
* @internal
|
|
8470
8470
|
*/
|
|
8471
|
-
declare const ReferenceInputPreviewCard: styled_components_dist_types6.IStyledComponentBase<"web", styled_components4.FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> &
|
|
8471
|
+
declare const ReferenceInputPreviewCard: styled_components_dist_types6.IStyledComponentBase<"web", styled_components4.FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react623.RefAttributes<HTMLDivElement>, never>> & string & Omit<react623.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react623.RefAttributes<HTMLDivElement>>, keyof react623.Component<any, {}, any>>;
|
|
8472
8472
|
/**
|
|
8473
8473
|
* Portable text preview layout key
|
|
8474
8474
|
*
|
|
@@ -8555,7 +8555,7 @@ type CompactPreviewProps = Omit<PreviewProps<'compact'>, 'renderDefault'>;
|
|
|
8555
8555
|
/**
|
|
8556
8556
|
* @hidden
|
|
8557
8557
|
* @beta */
|
|
8558
|
-
declare function CompactPreview(props: CompactPreviewProps):
|
|
8558
|
+
declare function CompactPreview(props: CompactPreviewProps): react623.JSX.Element;
|
|
8559
8559
|
/**
|
|
8560
8560
|
* @hidden
|
|
8561
8561
|
* @beta */
|
|
@@ -8576,7 +8576,7 @@ interface DefaultPreviewProps extends Omit<PreviewProps<'default'>, 'renderDefau
|
|
|
8576
8576
|
/**
|
|
8577
8577
|
* @hidden
|
|
8578
8578
|
* @beta */
|
|
8579
|
-
declare function DefaultPreview(props: DefaultPreviewProps):
|
|
8579
|
+
declare function DefaultPreview(props: DefaultPreviewProps): react623.JSX.Element;
|
|
8580
8580
|
/**
|
|
8581
8581
|
* @hidden
|
|
8582
8582
|
* @beta */
|
|
@@ -8584,7 +8584,7 @@ type DetailPreviewProps = PreviewProps<'detail'>;
|
|
|
8584
8584
|
/**
|
|
8585
8585
|
* @hidden
|
|
8586
8586
|
* @beta */
|
|
8587
|
-
declare function DetailPreview(props: DetailPreviewProps):
|
|
8587
|
+
declare function DetailPreview(props: DetailPreviewProps): react623.JSX.Element;
|
|
8588
8588
|
/**
|
|
8589
8589
|
* @hidden
|
|
8590
8590
|
* @beta */
|
|
@@ -8592,7 +8592,7 @@ type MediaPreviewProps = Omit<PreviewProps<'media'>, 'renderDefault'>;
|
|
|
8592
8592
|
/**
|
|
8593
8593
|
* @hidden
|
|
8594
8594
|
* @beta */
|
|
8595
|
-
declare function MediaPreview(props: MediaPreviewProps):
|
|
8595
|
+
declare function MediaPreview(props: MediaPreviewProps): react623.JSX.Element;
|
|
8596
8596
|
/**
|
|
8597
8597
|
* @hidden
|
|
8598
8598
|
* @beta */
|
|
@@ -8600,11 +8600,11 @@ type BlockImagePreviewProps = Omit<PreviewProps<'blockImage'>, 'renderDefault'>;
|
|
|
8600
8600
|
/**
|
|
8601
8601
|
* @hidden
|
|
8602
8602
|
* @beta */
|
|
8603
|
-
declare function BlockImagePreview(props: BlockImagePreviewProps):
|
|
8603
|
+
declare function BlockImagePreview(props: BlockImagePreviewProps): react623.JSX.Element;
|
|
8604
8604
|
/**
|
|
8605
8605
|
* @hidden
|
|
8606
8606
|
* @beta */
|
|
8607
|
-
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>):
|
|
8607
|
+
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>): react623.JSX.Element;
|
|
8608
8608
|
/**
|
|
8609
8609
|
* @hidden
|
|
8610
8610
|
* @beta */
|
|
@@ -8612,7 +8612,7 @@ type InlinePreviewProps = Omit<PreviewProps<'inline'>, 'renderDefault'>;
|
|
|
8612
8612
|
/**
|
|
8613
8613
|
* @hidden
|
|
8614
8614
|
* @beta */
|
|
8615
|
-
declare function InlinePreview(props: InlinePreviewProps):
|
|
8615
|
+
declare function InlinePreview(props: InlinePreviewProps): react623.JSX.Element;
|
|
8616
8616
|
interface MediaProps {
|
|
8617
8617
|
border?: boolean;
|
|
8618
8618
|
dimensions: PreviewMediaDimensions;
|
|
@@ -8643,19 +8643,19 @@ interface TemplatePreviewProps {
|
|
|
8643
8643
|
/**
|
|
8644
8644
|
* @hidden
|
|
8645
8645
|
* @beta */
|
|
8646
|
-
declare function TemplatePreview(props: TemplatePreviewProps):
|
|
8646
|
+
declare function TemplatePreview(props: TemplatePreviewProps): react623.JSX.Element;
|
|
8647
8647
|
/**
|
|
8648
8648
|
* @hidden
|
|
8649
8649
|
* @beta */
|
|
8650
8650
|
declare function CircularProgress(props: {
|
|
8651
8651
|
/** Percentage */value: number;
|
|
8652
|
-
}):
|
|
8652
|
+
}): react623.JSX.Element;
|
|
8653
8653
|
/**
|
|
8654
8654
|
* @hidden
|
|
8655
8655
|
* @beta */
|
|
8656
8656
|
declare function LinearProgress(props: {
|
|
8657
8657
|
/** Percentage */value: number;
|
|
8658
|
-
}):
|
|
8658
|
+
}): react623.JSX.Element;
|
|
8659
8659
|
/**
|
|
8660
8660
|
* @internal
|
|
8661
8661
|
*/
|
|
@@ -8668,7 +8668,7 @@ interface RelativeTimeProps extends RelativeTimeOptions {
|
|
|
8668
8668
|
declare function RelativeTime({
|
|
8669
8669
|
time,
|
|
8670
8670
|
...options
|
|
8671
|
-
}: RelativeTimeProps):
|
|
8671
|
+
}: RelativeTimeProps): react623.JSX.Element;
|
|
8672
8672
|
interface ResizableProps {
|
|
8673
8673
|
minWidth: number;
|
|
8674
8674
|
maxWidth: number;
|
|
@@ -8679,7 +8679,7 @@ interface ResizableProps {
|
|
|
8679
8679
|
* @internal
|
|
8680
8680
|
* Provides a resizable container with a resizer handle.
|
|
8681
8681
|
*/
|
|
8682
|
-
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
8682
|
+
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): react623.JSX.Element;
|
|
8683
8683
|
/**
|
|
8684
8684
|
* @hidden
|
|
8685
8685
|
* @beta */
|
|
@@ -8735,18 +8735,18 @@ type StatusButtonProps = ButtonProps$1 & {
|
|
|
8735
8735
|
'iconRight'?: undefined;
|
|
8736
8736
|
};
|
|
8737
8737
|
/** @hidden @beta */
|
|
8738
|
-
declare const StatusButton:
|
|
8738
|
+
declare const StatusButton: react623.ForwardRefExoticComponent<(StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, "disabled" | "ref" | "size" | "title">) & react623.RefAttributes<HTMLButtonElement>>;
|
|
8739
8739
|
/** @internal */
|
|
8740
8740
|
interface TextWithToneProps extends ComponentProps<typeof Text> {
|
|
8741
8741
|
tone: ButtonTone;
|
|
8742
8742
|
dimmed?: boolean;
|
|
8743
8743
|
}
|
|
8744
8744
|
/** @internal */
|
|
8745
|
-
declare const TextWithTone:
|
|
8745
|
+
declare const TextWithTone: react623.ForwardRefExoticComponent<Omit<TextWithToneProps, "ref"> & react623.RefAttributes<HTMLDivElement>>;
|
|
8746
8746
|
/** @internal */
|
|
8747
|
-
declare const TooltipOfDisabled:
|
|
8747
|
+
declare const TooltipOfDisabled: react623.ForwardRefExoticComponent<Omit<_sanity_ui22.TooltipProps, "arrow" | "padding" | "shadow"> & {
|
|
8748
8748
|
hotkeys?: string[] | undefined;
|
|
8749
|
-
} &
|
|
8749
|
+
} & react623.RefAttributes<HTMLDivElement>>;
|
|
8750
8750
|
/** @internal */
|
|
8751
8751
|
interface ToastParams$1 {
|
|
8752
8752
|
closable?: boolean;
|
|
@@ -8760,7 +8760,7 @@ interface ToastParams$1 {
|
|
|
8760
8760
|
* @internal
|
|
8761
8761
|
* @deprecated -- Refactor the component so it can call `useToast` instead
|
|
8762
8762
|
*/
|
|
8763
|
-
declare const ImperativeToast:
|
|
8763
|
+
declare const ImperativeToast: react623.ForwardRefExoticComponent<react623.RefAttributes<unknown>>;
|
|
8764
8764
|
/**
|
|
8765
8765
|
* TODO: Rename to `ZOffsetsContextValue`
|
|
8766
8766
|
*
|
|
@@ -8814,7 +8814,7 @@ declare function LegacyLayerProvider({
|
|
|
8814
8814
|
}: {
|
|
8815
8815
|
children: ReactNode;
|
|
8816
8816
|
zOffset: ZIndexContextValueKey;
|
|
8817
|
-
}):
|
|
8817
|
+
}): react623.JSX.Element;
|
|
8818
8818
|
interface AvatarSkeletonProps {
|
|
8819
8819
|
$size?: AvatarSize;
|
|
8820
8820
|
}
|
|
@@ -8822,7 +8822,7 @@ interface AvatarSkeletonProps {
|
|
|
8822
8822
|
* A loading skeleton element representing a user avatar
|
|
8823
8823
|
* @beta
|
|
8824
8824
|
*/
|
|
8825
|
-
declare const AvatarSkeleton: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<Omit<
|
|
8825
|
+
declare const AvatarSkeleton: styled_components_dist_types6.IStyledComponentBase<"web", styled_components_dist_types6.Substitute<Omit<_sanity_ui22.SkeletonProps & react623.HTMLProps<HTMLDivElement>, "ref"> & react623.RefAttributes<HTMLDivElement>, AvatarSkeletonProps>> & string & Omit<react623.ForwardRefExoticComponent<Omit<_sanity_ui22.SkeletonProps & react623.HTMLProps<HTMLDivElement>, "ref"> & react623.RefAttributes<HTMLDivElement>>, keyof react623.Component<any, {}, any>>;
|
|
8826
8826
|
/**
|
|
8827
8827
|
* @hidden
|
|
8828
8828
|
* @beta */
|
|
@@ -8839,7 +8839,7 @@ interface UserAvatarProps {
|
|
|
8839
8839
|
/**
|
|
8840
8840
|
* @hidden
|
|
8841
8841
|
* @beta */
|
|
8842
|
-
declare function UserAvatar(props: UserAvatarProps):
|
|
8842
|
+
declare function UserAvatar(props: UserAvatarProps): react623.JSX.Element;
|
|
8843
8843
|
/**
|
|
8844
8844
|
* @internal
|
|
8845
8845
|
* @deprecated - Will be removed in 4.0.0, use the `useReferringDocuments(<documentId>)` hook instead
|
|
@@ -8857,7 +8857,7 @@ declare function WithReferringDocuments({
|
|
|
8857
8857
|
*/
|
|
8858
8858
|
documentStore?: DocumentStore;
|
|
8859
8859
|
id: string;
|
|
8860
|
-
}):
|
|
8860
|
+
}): react623.JSX.Element;
|
|
8861
8861
|
/**
|
|
8862
8862
|
* TODO: Rename to `useZOffsets`
|
|
8863
8863
|
*
|
|
@@ -9521,7 +9521,7 @@ interface FormCallbacksValue {
|
|
|
9521
9521
|
onFieldGroupSelect: (path: Path, fieldGroupName: string) => void;
|
|
9522
9522
|
}
|
|
9523
9523
|
/** @internal */
|
|
9524
|
-
declare const FormCallbacksProvider:
|
|
9524
|
+
declare const FormCallbacksProvider: react623.NamedExoticComponent<FormCallbacksValue & {
|
|
9525
9525
|
children: ReactNode;
|
|
9526
9526
|
}>;
|
|
9527
9527
|
/** @internal */
|
|
@@ -9585,7 +9585,7 @@ declare function useReferenceInputOptions(): ReferenceInputOptions;
|
|
|
9585
9585
|
*/
|
|
9586
9586
|
declare function ReferenceInputOptionsProvider(props: ReferenceInputOptions & {
|
|
9587
9587
|
children: ReactNode;
|
|
9588
|
-
}):
|
|
9588
|
+
}): react623.JSX.Element;
|
|
9589
9589
|
/** @internal */
|
|
9590
9590
|
declare const defaultRenderAnnotation: RenderAnnotationCallback;
|
|
9591
9591
|
/** @internal */
|
|
@@ -9634,7 +9634,7 @@ interface FormBuilderProps extends Omit<ObjectFormNode, 'level' | 'path' | 'pres
|
|
|
9634
9634
|
/**
|
|
9635
9635
|
* @alpha
|
|
9636
9636
|
*/
|
|
9637
|
-
declare function FormBuilder(props: FormBuilderProps):
|
|
9637
|
+
declare function FormBuilder(props: FormBuilderProps): react623.JSX.Element;
|
|
9638
9638
|
/**
|
|
9639
9639
|
* @alpha This API might change.
|
|
9640
9640
|
*/
|
|
@@ -9669,7 +9669,7 @@ interface FormProviderProps {
|
|
|
9669
9669
|
*
|
|
9670
9670
|
* @alpha This API might change.
|
|
9671
9671
|
*/
|
|
9672
|
-
declare function FormProvider(props: FormProviderProps):
|
|
9672
|
+
declare function FormProvider(props: FormProviderProps): react623.JSX.Element;
|
|
9673
9673
|
/**
|
|
9674
9674
|
*
|
|
9675
9675
|
* @hidden
|
|
@@ -9681,7 +9681,7 @@ type StudioCrossDatasetReferenceInputProps = ObjectInputProps<CrossDatasetRefere
|
|
|
9681
9681
|
* @hidden
|
|
9682
9682
|
* @beta
|
|
9683
9683
|
*/
|
|
9684
|
-
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps):
|
|
9684
|
+
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps): react623.JSX.Element;
|
|
9685
9685
|
/**
|
|
9686
9686
|
*
|
|
9687
9687
|
* @hidden
|
|
@@ -9693,7 +9693,7 @@ type StudioReferenceInputProps = ObjectInputProps<Reference, ReferenceSchemaType
|
|
|
9693
9693
|
* @hidden
|
|
9694
9694
|
* @beta
|
|
9695
9695
|
*/
|
|
9696
|
-
declare function StudioReferenceInput(props: StudioReferenceInputProps):
|
|
9696
|
+
declare function StudioReferenceInput(props: StudioReferenceInputProps): react623.JSX.Element;
|
|
9697
9697
|
/**
|
|
9698
9698
|
*
|
|
9699
9699
|
* @hidden
|
|
@@ -9789,7 +9789,7 @@ type FileInputProps = Omit<BaseFileInputProps, 'assetSources' | 'directUploads'
|
|
|
9789
9789
|
/**
|
|
9790
9790
|
* @hidden
|
|
9791
9791
|
* @beta */
|
|
9792
|
-
declare function StudioFileInput(props: FileInputProps):
|
|
9792
|
+
declare function StudioFileInput(props: FileInputProps): react623.JSX.Element;
|
|
9793
9793
|
/**
|
|
9794
9794
|
* @hidden
|
|
9795
9795
|
* @beta
|
|
@@ -9817,7 +9817,7 @@ type ImageInputProps = Omit<BaseImageInputProps, 'assetSources' | 'directUploads
|
|
|
9817
9817
|
/**
|
|
9818
9818
|
* @hidden
|
|
9819
9819
|
* @beta */
|
|
9820
|
-
declare function StudioImageInput(props: ImageInputProps):
|
|
9820
|
+
declare function StudioImageInput(props: ImageInputProps): react623.JSX.Element;
|
|
9821
9821
|
/**
|
|
9822
9822
|
* @internal
|
|
9823
9823
|
*/
|
|
@@ -11752,7 +11752,7 @@ declare module '@sanity/types' {
|
|
|
11752
11752
|
*/
|
|
11753
11753
|
declare function Preview(props: RenderPreviewCallbackProps & {
|
|
11754
11754
|
perspectiveStack?: PerspectiveStack;
|
|
11755
|
-
}):
|
|
11755
|
+
}): react623.JSX.Element;
|
|
11756
11756
|
/**
|
|
11757
11757
|
* This component is responsible for converting renderPreview() calls into an element.
|
|
11758
11758
|
* It:
|
|
@@ -11775,7 +11775,7 @@ interface SanityDefaultPreviewProps extends Omit<PreviewProps, 'renderDefault'>
|
|
|
11775
11775
|
* Used in cases where no custom preview component is provided
|
|
11776
11776
|
* @internal
|
|
11777
11777
|
* */
|
|
11778
|
-
declare const SanityDefaultPreview:
|
|
11778
|
+
declare const SanityDefaultPreview: react623.NamedExoticComponent<SanityDefaultPreviewProps>;
|
|
11779
11779
|
/**
|
|
11780
11780
|
* @internal
|
|
11781
11781
|
* @beta
|
|
@@ -11869,9 +11869,9 @@ declare function getPreviewValueWithFallback({
|
|
|
11869
11869
|
original,
|
|
11870
11870
|
fallback
|
|
11871
11871
|
}: Sources): Partial<SanityDocument> | PreviewValue | {
|
|
11872
|
-
title:
|
|
11873
|
-
subtitle:
|
|
11874
|
-
media: () =>
|
|
11872
|
+
title: react623.JSX.Element;
|
|
11873
|
+
subtitle: react623.JSX.Element;
|
|
11874
|
+
media: () => react623.JSX.Element;
|
|
11875
11875
|
};
|
|
11876
11876
|
/** @internal */
|
|
11877
11877
|
declare function prepareForPreview(rawValue: unknown, type: PreviewableType, viewOptions?: PrepareViewOptions): PreviewValue & {
|
|
@@ -13015,7 +13015,7 @@ interface ResourceCacheProviderProps {
|
|
|
13015
13015
|
/** @internal */
|
|
13016
13016
|
declare function ResourceCacheProvider({
|
|
13017
13017
|
children
|
|
13018
|
-
}: ResourceCacheProviderProps):
|
|
13018
|
+
}: ResourceCacheProviderProps): react623.JSX.Element;
|
|
13019
13019
|
/** @internal */
|
|
13020
13020
|
declare function useResourceCache(): ResourceCache;
|
|
13021
13021
|
/** @internal */
|
|
@@ -13042,7 +13042,7 @@ interface DocumentPreviewPresenceProps {
|
|
|
13042
13042
|
presence: Omit<DocumentPresence, 'path'>[];
|
|
13043
13043
|
}
|
|
13044
13044
|
/** @internal */
|
|
13045
|
-
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps):
|
|
13045
|
+
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps): react623.JSX.Element;
|
|
13046
13046
|
/** @internal */
|
|
13047
13047
|
type Position = 'top' | 'bottom' | 'inside' | null;
|
|
13048
13048
|
/** @internal */
|
|
@@ -13102,14 +13102,14 @@ interface FieldPresenceInnerProps {
|
|
|
13102
13102
|
animateArrowFrom?: AvatarPosition;
|
|
13103
13103
|
}
|
|
13104
13104
|
/** @internal */
|
|
13105
|
-
declare const FieldPresenceInner:
|
|
13105
|
+
declare const FieldPresenceInner: react623.NamedExoticComponent<FieldPresenceInnerProps>;
|
|
13106
13106
|
/** @internal */
|
|
13107
13107
|
interface FieldPresenceProps {
|
|
13108
13108
|
presence: FormNodePresence[];
|
|
13109
13109
|
maxAvatars: number;
|
|
13110
13110
|
}
|
|
13111
13111
|
/** @internal */
|
|
13112
|
-
declare function FieldPresence(props: FieldPresenceProps):
|
|
13112
|
+
declare function FieldPresence(props: FieldPresenceProps): react623.JSX.Element;
|
|
13113
13113
|
/**
|
|
13114
13114
|
* @internal
|
|
13115
13115
|
* @hidden
|
|
@@ -13125,7 +13125,7 @@ interface PresenceOverlayProps {
|
|
|
13125
13125
|
declare function PresenceOverlay({
|
|
13126
13126
|
children,
|
|
13127
13127
|
margins
|
|
13128
|
-
}: PresenceOverlayProps):
|
|
13128
|
+
}: PresenceOverlayProps): react623.JSX.Element;
|
|
13129
13129
|
/** @internal */
|
|
13130
13130
|
interface PresenceScopeProps {
|
|
13131
13131
|
readOnly?: boolean;
|
|
@@ -13133,7 +13133,7 @@ interface PresenceScopeProps {
|
|
|
13133
13133
|
children: ReactNode;
|
|
13134
13134
|
}
|
|
13135
13135
|
/** @internal */
|
|
13136
|
-
declare function PresenceScope(props: PresenceScopeProps):
|
|
13136
|
+
declare function PresenceScope(props: PresenceScopeProps): react623.JSX.Element;
|
|
13137
13137
|
/** @internal */
|
|
13138
13138
|
interface FormFieldProps {
|
|
13139
13139
|
/**
|
|
@@ -13168,7 +13168,7 @@ interface FormFieldProps {
|
|
|
13168
13168
|
deprecated?: DeprecatedProperty;
|
|
13169
13169
|
}
|
|
13170
13170
|
/** @internal */
|
|
13171
|
-
declare const FormField:
|
|
13171
|
+
declare const FormField: react623.NamedExoticComponent<FormFieldProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref">>;
|
|
13172
13172
|
/** @internal */
|
|
13173
13173
|
interface FormFieldHeaderTextProps {
|
|
13174
13174
|
/**
|
|
@@ -13190,7 +13190,7 @@ interface FormFieldHeaderTextProps {
|
|
|
13190
13190
|
suffix?: ReactNode;
|
|
13191
13191
|
}
|
|
13192
13192
|
/** @internal */
|
|
13193
|
-
declare const FormFieldHeaderText:
|
|
13193
|
+
declare const FormFieldHeaderText: react623.NamedExoticComponent<FormFieldHeaderTextProps>;
|
|
13194
13194
|
/** @internal */
|
|
13195
13195
|
interface FormFieldSetProps {
|
|
13196
13196
|
/**
|
|
@@ -13229,7 +13229,7 @@ interface FormFieldSetProps {
|
|
|
13229
13229
|
deprecated?: DeprecatedProperty;
|
|
13230
13230
|
}
|
|
13231
13231
|
/** @internal */
|
|
13232
|
-
declare const FormFieldSet:
|
|
13232
|
+
declare const FormFieldSet: react623.ForwardRefExoticComponent<FormFieldSetProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & react623.RefAttributes<HTMLDivElement>>;
|
|
13233
13233
|
/** @internal */
|
|
13234
13234
|
interface FieldStatusProps {
|
|
13235
13235
|
children?: ReactNode;
|
|
@@ -13241,7 +13241,7 @@ declare function FormFieldStatus({
|
|
|
13241
13241
|
children,
|
|
13242
13242
|
maxAvatars,
|
|
13243
13243
|
position
|
|
13244
|
-
}: FieldStatusProps):
|
|
13244
|
+
}: FieldStatusProps): react623.JSX.Element;
|
|
13245
13245
|
/** @internal */
|
|
13246
13246
|
interface FormFieldValidationStatusProps {
|
|
13247
13247
|
/**
|
|
@@ -13260,7 +13260,7 @@ interface FormFieldValidationStatusProps {
|
|
|
13260
13260
|
placement?: Placement;
|
|
13261
13261
|
}
|
|
13262
13262
|
/** @internal */
|
|
13263
|
-
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps):
|
|
13263
|
+
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps): react623.JSX.Element;
|
|
13264
13264
|
/** @internal */
|
|
13265
13265
|
interface FormFieldValidationWarning {
|
|
13266
13266
|
type: 'warning';
|
|
@@ -13287,7 +13287,7 @@ type FormInputRelativePathArg = {
|
|
|
13287
13287
|
relativePath: Path;
|
|
13288
13288
|
};
|
|
13289
13289
|
/** @internal */
|
|
13290
|
-
declare const FormInput:
|
|
13290
|
+
declare const FormInput: react623.NamedExoticComponent<(ArrayOfObjectsInputProps<{
|
|
13291
13291
|
_key: string;
|
|
13292
13292
|
}, _sanity_types44.ArraySchemaType<unknown>> | ObjectInputProps<Record<string, any>, _sanity_types44.ObjectSchemaType>) & ((FormInputAbsolutePathArg | FormInputRelativePathArg) & {
|
|
13293
13293
|
/**
|
|
@@ -13311,7 +13311,7 @@ interface FormValueContextValue {
|
|
|
13311
13311
|
declare function FormValueProvider(props: {
|
|
13312
13312
|
value: FormDocumentValue | undefined;
|
|
13313
13313
|
children: ReactNode;
|
|
13314
|
-
}):
|
|
13314
|
+
}): react623.JSX.Element;
|
|
13315
13315
|
/**
|
|
13316
13316
|
* React hook that returns the value of the field specified by a path.
|
|
13317
13317
|
* @public
|
|
@@ -13337,7 +13337,7 @@ declare function useFormValue(path: Path): unknown;
|
|
|
13337
13337
|
declare function GetFormValueProvider(props: {
|
|
13338
13338
|
value: FormDocumentValue | undefined;
|
|
13339
13339
|
children: ReactNode;
|
|
13340
|
-
}):
|
|
13340
|
+
}): react623.JSX.Element;
|
|
13341
13341
|
declare namespace GetFormValueProvider {
|
|
13342
13342
|
var displayName: string;
|
|
13343
13343
|
}
|
|
@@ -13362,14 +13362,14 @@ declare namespace GetFormValueProvider {
|
|
|
13362
13362
|
* }
|
|
13363
13363
|
* ```
|
|
13364
13364
|
*/
|
|
13365
|
-
declare function useGetFormValue():
|
|
13365
|
+
declare function useGetFormValue(): sanity__singletons2.GetFormValueContextValue;
|
|
13366
13366
|
/** @internal */
|
|
13367
13367
|
interface FieldActionMenuProps {
|
|
13368
13368
|
nodes: DocumentFieldActionNode[];
|
|
13369
13369
|
onMenuOpenChange: (open: boolean) => void;
|
|
13370
13370
|
}
|
|
13371
13371
|
/** @internal */
|
|
13372
|
-
declare const FieldActionMenu:
|
|
13372
|
+
declare const FieldActionMenu: react623.NamedExoticComponent<FieldActionMenuProps>;
|
|
13373
13373
|
type FieldActionsProviderProps = PropsWithChildren<{
|
|
13374
13374
|
actions: DocumentFieldActionNode[]; /** @internal @deprecated DO NOT USE */
|
|
13375
13375
|
__internal_comments?: FieldCommentsProps;
|
|
@@ -13378,7 +13378,7 @@ type FieldActionsProviderProps = PropsWithChildren<{
|
|
|
13378
13378
|
path: Path;
|
|
13379
13379
|
}>;
|
|
13380
13380
|
/** @internal */
|
|
13381
|
-
declare const FieldActionsProvider:
|
|
13381
|
+
declare const FieldActionsProvider: react623.NamedExoticComponent<FieldActionsProviderProps>;
|
|
13382
13382
|
/** @internal */
|
|
13383
13383
|
interface FieldActionsProps {
|
|
13384
13384
|
actions: DocumentFieldAction[];
|
|
@@ -13407,12 +13407,12 @@ interface FieldActionsProps {
|
|
|
13407
13407
|
*
|
|
13408
13408
|
* @internal
|
|
13409
13409
|
*/
|
|
13410
|
-
declare const FieldActionsResolver:
|
|
13410
|
+
declare const FieldActionsResolver: react623.NamedExoticComponent<FieldActionsProps>;
|
|
13411
13411
|
/** @internal */
|
|
13412
13412
|
declare function useFieldActions(): FieldActionsContextValue;
|
|
13413
13413
|
/** @internal */
|
|
13414
|
-
declare const HoveredFieldProvider:
|
|
13415
|
-
children?:
|
|
13414
|
+
declare const HoveredFieldProvider: react623.NamedExoticComponent<{
|
|
13415
|
+
children?: react623.ReactNode;
|
|
13416
13416
|
}>;
|
|
13417
13417
|
/** @internal */
|
|
13418
13418
|
declare function useHoveredField(): HoveredFieldContextValue;
|
|
@@ -13483,13 +13483,13 @@ didUpdate: (previous: T | undefined, current: T) => void, compare?: (previous: T
|
|
|
13483
13483
|
/**
|
|
13484
13484
|
* @hidden
|
|
13485
13485
|
* @beta */
|
|
13486
|
-
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>):
|
|
13486
|
+
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>): react623.JSX.Element | null;
|
|
13487
13487
|
/**
|
|
13488
13488
|
*
|
|
13489
13489
|
* @hidden
|
|
13490
13490
|
* @beta
|
|
13491
13491
|
*/
|
|
13492
|
-
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps):
|
|
13492
|
+
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps): react623.JSX.Element;
|
|
13493
13493
|
/**
|
|
13494
13494
|
* @internal
|
|
13495
13495
|
*/
|
|
@@ -13517,7 +13517,7 @@ interface VirtualizerScrollInstanceProviderProps extends VirtualizerScrollInstan
|
|
|
13517
13517
|
*
|
|
13518
13518
|
* @internal
|
|
13519
13519
|
*/
|
|
13520
|
-
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps):
|
|
13520
|
+
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps): react623.JSX.Element;
|
|
13521
13521
|
/**
|
|
13522
13522
|
* @hidden
|
|
13523
13523
|
* Array of predefined object options input
|
|
@@ -13527,13 +13527,13 @@ declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInsta
|
|
|
13527
13527
|
* @hidden
|
|
13528
13528
|
* @beta
|
|
13529
13529
|
*/
|
|
13530
|
-
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps):
|
|
13530
|
+
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps): react623.JSX.Element;
|
|
13531
13531
|
/**
|
|
13532
13532
|
*
|
|
13533
13533
|
* @hidden
|
|
13534
13534
|
* @beta
|
|
13535
13535
|
*/
|
|
13536
|
-
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13536
|
+
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react623.JSX.Element;
|
|
13537
13537
|
/**
|
|
13538
13538
|
* Array of predefined primitive options input
|
|
13539
13539
|
* Note: this input can only handle primitive values
|
|
@@ -13542,11 +13542,11 @@ declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPr
|
|
|
13542
13542
|
* @hidden
|
|
13543
13543
|
* @beta
|
|
13544
13544
|
*/
|
|
13545
|
-
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps):
|
|
13545
|
+
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps): react623.JSX.Element;
|
|
13546
13546
|
/**
|
|
13547
13547
|
* @hidden
|
|
13548
13548
|
* @beta */
|
|
13549
|
-
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>):
|
|
13549
|
+
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>): react623.JSX.Element | null;
|
|
13550
13550
|
type PrimitiveValue = string | number | boolean;
|
|
13551
13551
|
interface State {
|
|
13552
13552
|
disableTransition: boolean;
|
|
@@ -13588,8 +13588,8 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13588
13588
|
};
|
|
13589
13589
|
prevFocusedIndex: number;
|
|
13590
13590
|
}): void;
|
|
13591
|
-
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) =>
|
|
13592
|
-
render():
|
|
13591
|
+
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) => react623.JSX.Element;
|
|
13592
|
+
render(): react623.JSX.Element;
|
|
13593
13593
|
}
|
|
13594
13594
|
/**
|
|
13595
13595
|
* Universal array input that will introspect its schemaType and delegate to the right implementation
|
|
@@ -13599,13 +13599,13 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13599
13599
|
* @hidden
|
|
13600
13600
|
* @beta
|
|
13601
13601
|
*/
|
|
13602
|
-
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13602
|
+
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react623.JSX.Element;
|
|
13603
13603
|
/**
|
|
13604
13604
|
*
|
|
13605
13605
|
* @hidden
|
|
13606
13606
|
* @beta
|
|
13607
13607
|
*/
|
|
13608
|
-
declare function BooleanInput(props: BooleanInputProps):
|
|
13608
|
+
declare function BooleanInput(props: BooleanInputProps): react623.JSX.Element;
|
|
13609
13609
|
/**
|
|
13610
13610
|
* Used to preview a referenced type
|
|
13611
13611
|
* Takes the reference type as props
|
|
@@ -13624,7 +13624,7 @@ declare function CrossDatasetReferencePreview(props: {
|
|
|
13624
13624
|
projectId: string;
|
|
13625
13625
|
refType?: CrossDatasetType;
|
|
13626
13626
|
showTypeLabel: boolean;
|
|
13627
|
-
}):
|
|
13627
|
+
}): react623.JSX.Element;
|
|
13628
13628
|
/**
|
|
13629
13629
|
* @hidden
|
|
13630
13630
|
* @beta */
|
|
@@ -13632,7 +13632,7 @@ type DateInputProps = StringInputProps;
|
|
|
13632
13632
|
/**
|
|
13633
13633
|
* @hidden
|
|
13634
13634
|
* @beta */
|
|
13635
|
-
declare function DateInput(props: DateInputProps):
|
|
13635
|
+
declare function DateInput(props: DateInputProps): react623.JSX.Element;
|
|
13636
13636
|
/**
|
|
13637
13637
|
* @hidden
|
|
13638
13638
|
* @beta */
|
|
@@ -13640,7 +13640,7 @@ type DateTimeInputProps = StringInputProps;
|
|
|
13640
13640
|
/**
|
|
13641
13641
|
* @hidden
|
|
13642
13642
|
* @beta */
|
|
13643
|
-
declare function DateTimeInput(props: DateTimeInputProps):
|
|
13643
|
+
declare function DateTimeInput(props: DateTimeInputProps): react623.JSX.Element;
|
|
13644
13644
|
interface CalendarLabels {
|
|
13645
13645
|
ariaLabel: string;
|
|
13646
13646
|
goToTomorrow: string;
|
|
@@ -13674,7 +13674,7 @@ type EmailInputProps = StringInputProps;
|
|
|
13674
13674
|
* @hidden
|
|
13675
13675
|
* @beta
|
|
13676
13676
|
*/
|
|
13677
|
-
declare function EmailInput(props: EmailInputProps):
|
|
13677
|
+
declare function EmailInput(props: EmailInputProps): react623.JSX.Element;
|
|
13678
13678
|
/**
|
|
13679
13679
|
* @hidden
|
|
13680
13680
|
* @beta
|
|
@@ -13685,11 +13685,11 @@ type AssetAccessPolicy = 'checking' | 'private' | 'public' | 'unknown';
|
|
|
13685
13685
|
* @hidden
|
|
13686
13686
|
* @beta
|
|
13687
13687
|
*/
|
|
13688
|
-
declare function NumberInput(props: NumberInputProps):
|
|
13688
|
+
declare function NumberInput(props: NumberInputProps): react623.JSX.Element;
|
|
13689
13689
|
/**
|
|
13690
13690
|
* @hidden
|
|
13691
13691
|
* @beta */
|
|
13692
|
-
declare const ObjectInput:
|
|
13692
|
+
declare const ObjectInput: react623.NamedExoticComponent<ObjectInputProps<Record<string, any>, _sanity_types44.ObjectSchemaType>>;
|
|
13693
13693
|
/** @internal */
|
|
13694
13694
|
interface PortableTextMemberItem {
|
|
13695
13695
|
kind: 'annotation' | 'textBlock' | 'objectBlock' | 'inlineObject';
|
|
@@ -13750,24 +13750,24 @@ interface Props extends Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'widt
|
|
|
13750
13750
|
/**
|
|
13751
13751
|
* @internal
|
|
13752
13752
|
*/
|
|
13753
|
-
declare function CreateButton(props: Props):
|
|
13753
|
+
declare function CreateButton(props: Props): react623.JSX.Element;
|
|
13754
13754
|
/**
|
|
13755
13755
|
* @internal
|
|
13756
13756
|
*/
|
|
13757
|
-
declare const ReferenceAutocomplete:
|
|
13757
|
+
declare const ReferenceAutocomplete: react623.ForwardRefExoticComponent<Omit<_sanity_ui22.AutocompleteProps<_sanity_ui22.BaseAutocompleteOption> & Omit<react623.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
13758
|
ref?: Ref<HTMLInputElement> | undefined;
|
|
13759
13759
|
} & {
|
|
13760
13760
|
path: Path;
|
|
13761
13761
|
referenceElement: HTMLDivElement | null;
|
|
13762
13762
|
searchString?: string | undefined;
|
|
13763
13763
|
portalRef?: RefObject<HTMLDivElement | null> | undefined;
|
|
13764
|
-
}, "ref"> &
|
|
13764
|
+
}, "ref"> & react623.RefAttributes<HTMLInputElement>>;
|
|
13765
13765
|
/**
|
|
13766
13766
|
*
|
|
13767
13767
|
* @hidden
|
|
13768
13768
|
* @beta
|
|
13769
13769
|
*/
|
|
13770
|
-
declare function SelectInput(props: StringInputProps):
|
|
13770
|
+
declare function SelectInput(props: StringInputProps): react623.JSX.Element;
|
|
13771
13771
|
/**
|
|
13772
13772
|
*
|
|
13773
13773
|
* @hidden
|
|
@@ -13779,12 +13779,12 @@ type SlugInputProps = ObjectInputProps<SlugValue, SlugSchemaType>;
|
|
|
13779
13779
|
* @hidden
|
|
13780
13780
|
* @beta
|
|
13781
13781
|
*/
|
|
13782
|
-
declare function SlugInput(props: SlugInputProps):
|
|
13782
|
+
declare function SlugInput(props: SlugInputProps): react623.JSX.Element;
|
|
13783
13783
|
/**
|
|
13784
13784
|
* @hidden
|
|
13785
13785
|
* @beta
|
|
13786
13786
|
*/
|
|
13787
|
-
declare function StringInput(props: StringInputProps):
|
|
13787
|
+
declare function StringInput(props: StringInputProps): react623.JSX.Element;
|
|
13788
13788
|
/**
|
|
13789
13789
|
*
|
|
13790
13790
|
* @hidden
|
|
@@ -13796,7 +13796,7 @@ type TagsArrayInputProps = ArrayOfPrimitivesInputProps<string>;
|
|
|
13796
13796
|
* @hidden
|
|
13797
13797
|
* @beta
|
|
13798
13798
|
*/
|
|
13799
|
-
declare function TagsArrayInput(props: TagsArrayInputProps):
|
|
13799
|
+
declare function TagsArrayInput(props: TagsArrayInputProps): react623.JSX.Element;
|
|
13800
13800
|
/**
|
|
13801
13801
|
*
|
|
13802
13802
|
* @hidden
|
|
@@ -13808,7 +13808,7 @@ type TelephoneInputProps = StringInputProps;
|
|
|
13808
13808
|
* @hidden
|
|
13809
13809
|
* @beta
|
|
13810
13810
|
*/
|
|
13811
|
-
declare function TelephoneInput(props: TelephoneInputProps):
|
|
13811
|
+
declare function TelephoneInput(props: TelephoneInputProps): react623.JSX.Element;
|
|
13812
13812
|
/**
|
|
13813
13813
|
*
|
|
13814
13814
|
* @hidden
|
|
@@ -13820,7 +13820,7 @@ type TextInputProps = StringInputProps<TextSchemaType>;
|
|
|
13820
13820
|
* @hidden
|
|
13821
13821
|
* @beta
|
|
13822
13822
|
*/
|
|
13823
|
-
declare function TextInput(props: TextInputProps):
|
|
13823
|
+
declare function TextInput(props: TextInputProps): react623.JSX.Element;
|
|
13824
13824
|
/**
|
|
13825
13825
|
*
|
|
13826
13826
|
* @hidden
|
|
@@ -13832,7 +13832,7 @@ type UrlInputProps = StringInputProps;
|
|
|
13832
13832
|
* @hidden
|
|
13833
13833
|
* @beta
|
|
13834
13834
|
*/
|
|
13835
|
-
declare function UrlInput(props: UrlInputProps):
|
|
13835
|
+
declare function UrlInput(props: UrlInputProps): react623.JSX.Element;
|
|
13836
13836
|
/** @internal */
|
|
13837
13837
|
interface ArrayOfObjectsMemberProps {
|
|
13838
13838
|
member: ArrayOfObjectsMember;
|
|
@@ -13848,7 +13848,7 @@ interface ArrayOfObjectsMemberProps {
|
|
|
13848
13848
|
* Convenience component for rendering an "array of objects"-item
|
|
13849
13849
|
* @internal
|
|
13850
13850
|
*/
|
|
13851
|
-
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps):
|
|
13851
|
+
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps): react623.JSX.Element | null;
|
|
13852
13852
|
/** @internal */
|
|
13853
13853
|
interface ArrayOfObjectsInputMembersProps {
|
|
13854
13854
|
members: ArrayOfObjectsMember[];
|
|
@@ -13864,7 +13864,7 @@ interface ArrayOfObjectsInputMembersProps {
|
|
|
13864
13864
|
* Convenience component for wrapping an array of objects
|
|
13865
13865
|
* @internal
|
|
13866
13866
|
*/
|
|
13867
|
-
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps):
|
|
13867
|
+
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps): react623.JSX.Element;
|
|
13868
13868
|
/**
|
|
13869
13869
|
*
|
|
13870
13870
|
* @hidden
|
|
@@ -13885,7 +13885,7 @@ interface MemberItemProps {
|
|
|
13885
13885
|
* @hidden
|
|
13886
13886
|
* @beta
|
|
13887
13887
|
*/
|
|
13888
|
-
declare function ArrayOfObjectsItem(props: MemberItemProps):
|
|
13888
|
+
declare function ArrayOfObjectsItem(props: MemberItemProps): react623.JSX.Element;
|
|
13889
13889
|
/**
|
|
13890
13890
|
*
|
|
13891
13891
|
* @hidden
|
|
@@ -13901,11 +13901,11 @@ interface PrimitiveMemberItemProps {
|
|
|
13901
13901
|
* @hidden
|
|
13902
13902
|
* @beta
|
|
13903
13903
|
*/
|
|
13904
|
-
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps):
|
|
13904
|
+
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps): react623.JSX.Element;
|
|
13905
13905
|
/** @internal */
|
|
13906
13906
|
declare function MemberItemError(props: {
|
|
13907
13907
|
member: ArrayItemError;
|
|
13908
|
-
}):
|
|
13908
|
+
}): react623.JSX.Element;
|
|
13909
13909
|
/** @internal */
|
|
13910
13910
|
interface MemberFieldProps {
|
|
13911
13911
|
member: FieldMember;
|
|
@@ -13918,13 +13918,13 @@ interface MemberFieldProps {
|
|
|
13918
13918
|
renderPreview: RenderPreviewCallback;
|
|
13919
13919
|
}
|
|
13920
13920
|
/** @internal */
|
|
13921
|
-
declare const MemberField:
|
|
13921
|
+
declare const MemberField: react623.NamedExoticComponent<MemberFieldProps>;
|
|
13922
13922
|
/** @internal */
|
|
13923
13923
|
declare function MemberFieldError(props: {
|
|
13924
13924
|
member: FieldError;
|
|
13925
|
-
}):
|
|
13925
|
+
}): react623.JSX.Element;
|
|
13926
13926
|
/** @internal */
|
|
13927
|
-
declare const MemberFieldSet:
|
|
13927
|
+
declare const MemberFieldSet: react623.NamedExoticComponent<{
|
|
13928
13928
|
member: FieldSetMember;
|
|
13929
13929
|
renderAnnotation?: RenderAnnotationCallback | undefined;
|
|
13930
13930
|
renderBlock?: RenderBlockCallback | undefined;
|
|
@@ -13946,7 +13946,7 @@ interface ObjectInputMemberProps {
|
|
|
13946
13946
|
renderPreview: RenderPreviewCallback;
|
|
13947
13947
|
}
|
|
13948
13948
|
/** @internal */
|
|
13949
|
-
declare const ObjectInputMember:
|
|
13949
|
+
declare const ObjectInputMember: react623.NamedExoticComponent<ObjectInputMemberProps>;
|
|
13950
13950
|
/** @internal */
|
|
13951
13951
|
interface ObjectMembersProps {
|
|
13952
13952
|
members: ObjectMember[];
|
|
@@ -13962,7 +13962,7 @@ interface ObjectMembersProps {
|
|
|
13962
13962
|
* Convenience component for wrapping an object input
|
|
13963
13963
|
* @internal
|
|
13964
13964
|
*/
|
|
13965
|
-
declare function ObjectInputMembers(props: ObjectMembersProps):
|
|
13965
|
+
declare function ObjectInputMembers(props: ObjectMembersProps): react623.JSX.Element;
|
|
13966
13966
|
/**
|
|
13967
13967
|
* @deprecated Use ObjectInputMembers instead
|
|
13968
13968
|
* @internal
|
|
@@ -14059,7 +14059,7 @@ type PatchTransformer = (patches: FormPatch[]) => FormPatch[];
|
|
|
14059
14059
|
/**
|
|
14060
14060
|
* @hidden
|
|
14061
14061
|
* @beta */
|
|
14062
|
-
declare const TransformPatches:
|
|
14062
|
+
declare const TransformPatches: react623.NamedExoticComponent<{
|
|
14063
14063
|
transform: PatchTransformer;
|
|
14064
14064
|
} & {
|
|
14065
14065
|
children: ReactNode;
|
|
@@ -15537,7 +15537,7 @@ declare class ConfigResolutionError extends Error {
|
|
|
15537
15537
|
* Creates an icon element based on the input title
|
|
15538
15538
|
* @internal
|
|
15539
15539
|
*/
|
|
15540
|
-
declare function createDefaultIcon(title: string, subtitle: string):
|
|
15540
|
+
declare function createDefaultIcon(title: string, subtitle: string): react623.JSX.Element;
|
|
15541
15541
|
/**
|
|
15542
15542
|
* @hidden
|
|
15543
15543
|
* @beta */
|