sanity 5.13.0-next.21 → 5.13.0-next.23
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 +217 -217
- package/lib/_chunks-dts/index.d.ts +11 -11
- package/lib/_chunks-dts/types2.d.ts +25 -25
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +103 -103
- package/lib/desk.d.ts +4 -4
- package/lib/media-library.d.ts +3 -3
- package/lib/presentation.d.ts +2 -2
- package/lib/router.d.ts +4 -4
- package/package.json +12 -12
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from "react";
|
|
2
2
|
import { CSSProperties, Component, ComponentProps, ComponentType, Dispatch, ElementType, ErrorInfo, FC, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, HTMLAttributes, HTMLProps, KeyboardEvent, MutableRefObject, PropsWithChildren, PureComponent, ReactElement, ReactNode, Ref, RefAttributes, RefObject, SVGProps, SetStateAction } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _sanity_types0 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, ReleaseType, SanityClient, SanityDocument as SanityDocument$1, SingleActionResult, SingleMutationResult, StackablePerspective } from "@sanity/client";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _sanity_ui0 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";
|
|
12
12
|
import { IntentLinkProps, IntentParameters, Router, RouterState, SearchParam } from "sanity/router";
|
|
13
13
|
import { ScrollToOptions } from "@tanstack/react-virtual";
|
|
14
|
-
import * as
|
|
14
|
+
import * as _sanity_telemetry0 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__singletons0 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";
|
|
@@ -22,9 +22,9 @@ import { FallbackNs } from "react-i18next";
|
|
|
22
22
|
import { BrowserHistory, HashHistory, History, MemoryHistory } from "history";
|
|
23
23
|
import { RootTheme, ThemeColorSchemeKey as ThemeColorSchemeKey$1 } from "@sanity/ui/theme";
|
|
24
24
|
import { EditorSelection, HotkeyOptions, InvalidValueResolution, OnCopyFn, OnPasteResultOrPromise, PasteData, Patch, PortableTextEditor, RangeDecoration, RangeDecorationOnMovedDetails, RenderBlockFunction } from "@portabletext/editor";
|
|
25
|
-
import * as
|
|
25
|
+
import * as styled_components0 from "styled-components";
|
|
26
26
|
import { ExecutionProps } from "styled-components";
|
|
27
|
-
import * as
|
|
27
|
+
import * as styled_components_dist_types0 from "/home/runner/work/sanity/sanity/node_modules/.pnpm/@sanity+styled-components@6.1.24_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@sanity/styled-components/dist/types.js";
|
|
28
28
|
import { ColorHueKey, ColorTintKey, ColorTints } from "@sanity/color";
|
|
29
29
|
import { Subscriber } from "nano-pubsub";
|
|
30
30
|
import { ArrayDiff, BooleanDiff, Diff, ItemDiff, NullDiff, NumberDiff, ObjectDiff, StringDiff, StringSegmentChanged, StringSegmentUnchanged, TypeChangeDiff } from "@sanity/diff";
|
|
@@ -313,7 +313,7 @@ declare class CorsOriginError extends Error {
|
|
|
313
313
|
/** @internal */
|
|
314
314
|
type BetaBadgeProps = Omit<BadgeProps, 'mode' | 'tone'>;
|
|
315
315
|
/** @internal */
|
|
316
|
-
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>):
|
|
316
|
+
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>): react.JSX.Element;
|
|
317
317
|
/** @internal */
|
|
318
318
|
type CommandListElementType = 'input' | 'list';
|
|
319
319
|
/** @internal */
|
|
@@ -395,7 +395,7 @@ interface CommandListProps<T = any> extends ResponsivePaddingProps {
|
|
|
395
395
|
*
|
|
396
396
|
* @internal
|
|
397
397
|
*/
|
|
398
|
-
declare const CommandList:
|
|
398
|
+
declare const CommandList: react.NamedExoticComponent<CommandListProps<any> & react.RefAttributes<CommandListHandle>>;
|
|
399
399
|
type BaseButtonProps = Pick<ButtonProps, 'as' | 'icon' | 'iconRight' | 'justify' | 'loading' | 'mode' | 'paddingY' | 'paddingLeft' | 'selected' | 'tone' | 'type' | 'width'> & {
|
|
400
400
|
size?: 'default' | 'large';
|
|
401
401
|
radius?: 'full';
|
|
@@ -420,13 +420,13 @@ type ButtonProps$1 = BaseButtonProps & (ButtonWithText | IconButton);
|
|
|
420
420
|
*
|
|
421
421
|
* @internal
|
|
422
422
|
*/
|
|
423
|
-
declare const Button:
|
|
423
|
+
declare const Button: react.ForwardRefExoticComponent<(Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
424
424
|
size?: "default" | "large" | undefined;
|
|
425
425
|
radius?: "full" | undefined;
|
|
426
426
|
} & ButtonWithText & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref"> | Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
427
427
|
size?: "default" | "large" | undefined;
|
|
428
428
|
radius?: "full" | undefined;
|
|
429
|
-
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) &
|
|
429
|
+
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) & react.RefAttributes<HTMLButtonElement>>;
|
|
430
430
|
/** @internal */
|
|
431
431
|
type MenuButtonProps$1 = Omit<MenuButtonProps, 'popover'> & {
|
|
432
432
|
popover?: Omit<PopoverProps, 'animate' | 'content' | 'open'>;
|
|
@@ -443,7 +443,7 @@ type ContextMenuButtonProps = Pick<ButtonProps$1, 'mode' | 'selected' | 'size' |
|
|
|
443
443
|
*
|
|
444
444
|
* @internal
|
|
445
445
|
*/
|
|
446
|
-
declare const ContextMenuButton:
|
|
446
|
+
declare const ContextMenuButton: react.ForwardRefExoticComponent<ContextMenuButtonProps & Pick<HTMLProps<HTMLButtonElement>, "disabled" | "hidden" | "onClick"> & react.RefAttributes<HTMLButtonElement>>;
|
|
447
447
|
/**
|
|
448
448
|
* Indicates the type of document variant, either `draft`, `version` or `published`.
|
|
449
449
|
* Draft documents are prefixed with `drafts.`.
|
|
@@ -463,7 +463,7 @@ declare function getDocumentVariantType(documentId: string): DocumentVariantType
|
|
|
463
463
|
/**
|
|
464
464
|
* @internal
|
|
465
465
|
*/
|
|
466
|
-
declare const Chip:
|
|
466
|
+
declare const Chip: react.ForwardRefExoticComponent<Omit<Omit<_sanity_ui0.ButtonProps & Omit<react.HTMLProps<HTMLButtonElement>, "as" | "width">, "ref"> & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<unknown>>;
|
|
467
467
|
/**
|
|
468
468
|
*
|
|
469
469
|
* Checks if the document ID `documentId` has the same ID as `equalsDocumentId`,
|
|
@@ -634,7 +634,7 @@ type ReleasesNavMenuItemPropsGetter = (content: {
|
|
|
634
634
|
/**
|
|
635
635
|
* @internal
|
|
636
636
|
*/
|
|
637
|
-
declare const VersionChip:
|
|
637
|
+
declare const VersionChip: react.NamedExoticComponent<{
|
|
638
638
|
disabled?: boolean | undefined;
|
|
639
639
|
selected: boolean;
|
|
640
640
|
tooltipContent?: ReactNode;
|
|
@@ -677,7 +677,7 @@ declare const ReleaseAvatarIcon: ({
|
|
|
677
677
|
tone,
|
|
678
678
|
release,
|
|
679
679
|
releaseType
|
|
680
|
-
}: ReleaseAvatarIconProps) =>
|
|
680
|
+
}: ReleaseAvatarIconProps) => react.JSX.Element;
|
|
681
681
|
declare function ReleaseAvatar({
|
|
682
682
|
fontSize,
|
|
683
683
|
padding,
|
|
@@ -713,12 +713,12 @@ declare const VersionInlineBadge: ({
|
|
|
713
713
|
$tone
|
|
714
714
|
}: PropsWithChildren<{
|
|
715
715
|
$tone?: "caution" | "critical" | "default" | "neutral" | "positive" | "primary" | "suggest" | undefined;
|
|
716
|
-
}>) =>
|
|
716
|
+
}>) => react.JSX.Element;
|
|
717
717
|
/**
|
|
718
718
|
* @internal
|
|
719
719
|
*/
|
|
720
720
|
declare const getVersionInlineBadge: (release?: TargetPerspective | undefined) => FC<{
|
|
721
|
-
children?:
|
|
721
|
+
children?: react.ReactNode;
|
|
722
722
|
}>;
|
|
723
723
|
interface ObserveDocumentAPIConfig {
|
|
724
724
|
dataset?: string;
|
|
@@ -1039,7 +1039,7 @@ declare const ChangeFieldWrapper: (props: {
|
|
|
1039
1039
|
path: Path;
|
|
1040
1040
|
children: ReactNode;
|
|
1041
1041
|
hasRevertHover: boolean;
|
|
1042
|
-
}) =>
|
|
1042
|
+
}) => react.JSX.Element;
|
|
1043
1043
|
/** @internal */
|
|
1044
1044
|
interface ChangeIndicatorProps {
|
|
1045
1045
|
path: Path;
|
|
@@ -1048,7 +1048,7 @@ interface ChangeIndicatorProps {
|
|
|
1048
1048
|
withHoverEffect?: boolean;
|
|
1049
1049
|
}
|
|
1050
1050
|
/** @internal */
|
|
1051
|
-
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
1051
|
+
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): react.JSX.Element;
|
|
1052
1052
|
/** @internal */
|
|
1053
1053
|
interface ConnectorContextValue {
|
|
1054
1054
|
isReviewChangesOpen: boolean;
|
|
@@ -1072,7 +1072,7 @@ declare function ChangeConnectorRoot({
|
|
|
1072
1072
|
onOpenReviewChanges,
|
|
1073
1073
|
onSetFocus,
|
|
1074
1074
|
...restProps
|
|
1075
|
-
}: ChangeConnectorRootProps):
|
|
1075
|
+
}: ChangeConnectorRootProps): react.JSX.Element;
|
|
1076
1076
|
/** @internal */
|
|
1077
1077
|
type Reported<Value> = [string, Value];
|
|
1078
1078
|
/** @internal */
|
|
@@ -1112,11 +1112,11 @@ interface TrackedArea {
|
|
|
1112
1112
|
type ChangeIndicatorTrackerContextValue = TrackedChange;
|
|
1113
1113
|
declare function ChangeIndicatorsTrackerComponent(props: {
|
|
1114
1114
|
children: React.ReactNode;
|
|
1115
|
-
}):
|
|
1115
|
+
}): react.JSX.Element;
|
|
1116
1116
|
/**
|
|
1117
1117
|
* @internal
|
|
1118
1118
|
*/
|
|
1119
|
-
declare const ChangeIndicatorsTracker:
|
|
1119
|
+
declare const ChangeIndicatorsTracker: react.MemoExoticComponent<typeof ChangeIndicatorsTrackerComponent>;
|
|
1120
1120
|
/**
|
|
1121
1121
|
* @internal
|
|
1122
1122
|
*/
|
|
@@ -1141,11 +1141,11 @@ interface CommentDeleteDialogProps {
|
|
|
1141
1141
|
* @beta
|
|
1142
1142
|
* @hidden
|
|
1143
1143
|
*/
|
|
1144
|
-
declare function CommentDeleteDialog(props: CommentDeleteDialogProps):
|
|
1144
|
+
declare function CommentDeleteDialog(props: CommentDeleteDialogProps): react.JSX.Element;
|
|
1145
1145
|
/**
|
|
1146
1146
|
* @internal
|
|
1147
1147
|
*/
|
|
1148
|
-
declare const CommentDisabledIcon:
|
|
1148
|
+
declare const CommentDisabledIcon: react.ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
1149
1149
|
/**
|
|
1150
1150
|
*
|
|
1151
1151
|
* @deprecated Calling `useClient()` without specifying an API version is deprecated - specify a date to prevent breaking changes, e.g. `useClient({apiVersion: "2025-02-07"})`.
|
|
@@ -1240,8 +1240,8 @@ declare function useDialogStack({
|
|
|
1240
1240
|
path?: Path;
|
|
1241
1241
|
}): {
|
|
1242
1242
|
/** Unique ID for this dialog instance */dialogId: string; /** The current top dialog entry */
|
|
1243
|
-
topEntry:
|
|
1244
|
-
stack:
|
|
1243
|
+
topEntry: sanity__singletons0.DialogStackEntry | null; /** The full stack of dialog entries (each has id and path) */
|
|
1244
|
+
stack: sanity__singletons0.DialogStackEntry[]; /** Check if this dialog is on top */
|
|
1245
1245
|
isTop: boolean; /** Close dialogs */
|
|
1246
1246
|
close: (options?: {
|
|
1247
1247
|
toParent?: boolean | undefined;
|
|
@@ -3548,7 +3548,7 @@ interface LocaleSource {
|
|
|
3548
3548
|
* @internal
|
|
3549
3549
|
* @hidden
|
|
3550
3550
|
*/
|
|
3551
|
-
declare function LocaleProvider(props: PropsWithChildren):
|
|
3551
|
+
declare function LocaleProvider(props: PropsWithChildren): react.JSX.Element;
|
|
3552
3552
|
/**
|
|
3553
3553
|
* @internal
|
|
3554
3554
|
* @hidden
|
|
@@ -3564,7 +3564,7 @@ declare function LocaleProviderBase({
|
|
|
3564
3564
|
sourceId: string;
|
|
3565
3565
|
locales: Locale[];
|
|
3566
3566
|
i18next: i18n$1;
|
|
3567
|
-
}>):
|
|
3567
|
+
}>): react.JSX.Element;
|
|
3568
3568
|
/**
|
|
3569
3569
|
* Defines a resource bundle for a given locale and namespace.
|
|
3570
3570
|
*
|
|
@@ -3768,7 +3768,7 @@ interface TranslationProps {
|
|
|
3768
3768
|
*
|
|
3769
3769
|
* @public
|
|
3770
3770
|
*/
|
|
3771
|
-
declare function Translate(props: TranslationProps):
|
|
3771
|
+
declare function Translate(props: TranslationProps): react.JSX.Element;
|
|
3772
3772
|
declare module '@sanity/types' {
|
|
3773
3773
|
/**
|
|
3774
3774
|
* Extended validation context that includes internationalization
|
|
@@ -3898,7 +3898,7 @@ interface CommentsAuthoringPathProviderProps {
|
|
|
3898
3898
|
* the component re-renders, for example, when the form is temporarily set to `readOnly`
|
|
3899
3899
|
* while reconnecting.
|
|
3900
3900
|
*/
|
|
3901
|
-
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps):
|
|
3901
|
+
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps): react.JSX.Element;
|
|
3902
3902
|
/**
|
|
3903
3903
|
* @beta
|
|
3904
3904
|
* @hidden
|
|
@@ -4196,7 +4196,7 @@ interface CommentsProviderProps {
|
|
|
4196
4196
|
/**
|
|
4197
4197
|
* @beta
|
|
4198
4198
|
*/
|
|
4199
|
-
declare const CommentsProvider:
|
|
4199
|
+
declare const CommentsProvider: react.NamedExoticComponent<CommentsProviderProps>;
|
|
4200
4200
|
interface CommentsEnabledProviderProps {
|
|
4201
4201
|
children: ReactNode;
|
|
4202
4202
|
documentId: string;
|
|
@@ -4206,7 +4206,7 @@ interface CommentsEnabledProviderProps {
|
|
|
4206
4206
|
* @beta
|
|
4207
4207
|
* @hidden
|
|
4208
4208
|
*/
|
|
4209
|
-
declare const CommentsEnabledProvider:
|
|
4209
|
+
declare const CommentsEnabledProvider: react.NamedExoticComponent<CommentsEnabledProviderProps>;
|
|
4210
4210
|
/**
|
|
4211
4211
|
* @beta
|
|
4212
4212
|
* @hidden
|
|
@@ -4219,14 +4219,14 @@ interface CommentsIntentProviderProps {
|
|
|
4219
4219
|
* @beta
|
|
4220
4220
|
* @hidden
|
|
4221
4221
|
*/
|
|
4222
|
-
declare const CommentsIntentProvider:
|
|
4222
|
+
declare const CommentsIntentProvider: react.NamedExoticComponent<CommentsIntentProviderProps>;
|
|
4223
4223
|
interface CommentsSelectedPathProviderProps {
|
|
4224
4224
|
children: React.ReactNode;
|
|
4225
4225
|
}
|
|
4226
4226
|
/**
|
|
4227
4227
|
* @internal
|
|
4228
4228
|
*/
|
|
4229
|
-
declare const CommentsSelectedPathProvider:
|
|
4229
|
+
declare const CommentsSelectedPathProvider: react.NamedExoticComponent<CommentsSelectedPathProviderProps>;
|
|
4230
4230
|
/**
|
|
4231
4231
|
* @internal
|
|
4232
4232
|
*/
|
|
@@ -4269,7 +4269,7 @@ declare function ActiveWorkspaceMatcher({
|
|
|
4269
4269
|
LoadingComponent,
|
|
4270
4270
|
NotFoundComponent,
|
|
4271
4271
|
unstable_history: historyProp
|
|
4272
|
-
}: ActiveWorkspaceMatcherProps):
|
|
4272
|
+
}: ActiveWorkspaceMatcherProps): react.JSX.Element;
|
|
4273
4273
|
/** @internal */
|
|
4274
4274
|
interface WorkspaceLike {
|
|
4275
4275
|
name?: string;
|
|
@@ -4340,7 +4340,7 @@ declare function WorkspacesProvider({
|
|
|
4340
4340
|
children,
|
|
4341
4341
|
basePath,
|
|
4342
4342
|
LoadingComponent
|
|
4343
|
-
}: WorkspacesProviderProps):
|
|
4343
|
+
}: WorkspacesProviderProps): react.JSX.Element;
|
|
4344
4344
|
/** @internal */
|
|
4345
4345
|
type NormalizedWorkspace = {
|
|
4346
4346
|
workspace: WorkspacesContextValue[number];
|
|
@@ -4386,7 +4386,7 @@ interface AddonDatasetSetupProviderProps {
|
|
|
4386
4386
|
* @beta
|
|
4387
4387
|
* @hidden
|
|
4388
4388
|
*/
|
|
4389
|
-
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean |
|
|
4389
|
+
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null | undefined;
|
|
4390
4390
|
/**
|
|
4391
4391
|
* @beta
|
|
4392
4392
|
* @hidden
|
|
@@ -4488,7 +4488,7 @@ declare function ColorSchemeProvider({
|
|
|
4488
4488
|
children,
|
|
4489
4489
|
onSchemeChange,
|
|
4490
4490
|
scheme: schemeProp
|
|
4491
|
-
}: ColorSchemeProviderProps):
|
|
4491
|
+
}: ColorSchemeProviderProps): react.JSX.Element;
|
|
4492
4492
|
/**
|
|
4493
4493
|
* Uses useSyncExternalStore to ensure that localStorage is accessed in a SSR hydration compatible way
|
|
4494
4494
|
* @internal
|
|
@@ -4496,7 +4496,7 @@ declare function ColorSchemeProvider({
|
|
|
4496
4496
|
declare function ColorSchemeLocalStorageProvider({
|
|
4497
4497
|
children,
|
|
4498
4498
|
onSchemeChange
|
|
4499
|
-
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>):
|
|
4499
|
+
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>): react.JSX.Element;
|
|
4500
4500
|
/**
|
|
4501
4501
|
* If the `scheme` prop is provided we don't need to setup any logic to handle localStorage
|
|
4502
4502
|
* @internal
|
|
@@ -4541,7 +4541,7 @@ declare function Filters({
|
|
|
4541
4541
|
showTypeFilter
|
|
4542
4542
|
}: {
|
|
4543
4543
|
showTypeFilter?: boolean;
|
|
4544
|
-
}):
|
|
4544
|
+
}): react.JSX.Element;
|
|
4545
4545
|
interface SearchHeaderProps {
|
|
4546
4546
|
ariaInputLabel?: string;
|
|
4547
4547
|
onClose?: () => void;
|
|
@@ -4549,7 +4549,7 @@ interface SearchHeaderProps {
|
|
|
4549
4549
|
/**
|
|
4550
4550
|
* @internal
|
|
4551
4551
|
*/
|
|
4552
|
-
declare const SearchHeader:
|
|
4552
|
+
declare const SearchHeader: react.ForwardRefExoticComponent<SearchHeaderProps & react.RefAttributes<HTMLInputElement>>;
|
|
4553
4553
|
type ItemSelectHandler = (item: Pick<SanityDocumentLike, '_id' | '_type' | 'title'>) => void;
|
|
4554
4554
|
/**
|
|
4555
4555
|
* @internal
|
|
@@ -4577,7 +4577,7 @@ declare function SearchPopover({
|
|
|
4577
4577
|
onOpen,
|
|
4578
4578
|
previewPerspective,
|
|
4579
4579
|
open
|
|
4580
|
-
}: SearchPopoverProps):
|
|
4580
|
+
}: SearchPopoverProps): react.JSX.Element;
|
|
4581
4581
|
interface SearchResultItemPreviewProps {
|
|
4582
4582
|
documentId: string;
|
|
4583
4583
|
documentType: string;
|
|
@@ -4598,7 +4598,7 @@ declare function SearchResultItemPreview({
|
|
|
4598
4598
|
schemaType,
|
|
4599
4599
|
showBadge,
|
|
4600
4600
|
perspective
|
|
4601
|
-
}: SearchResultItemPreviewProps):
|
|
4601
|
+
}: SearchResultItemPreviewProps): react.JSX.Element;
|
|
4602
4602
|
/**
|
|
4603
4603
|
* @internal
|
|
4604
4604
|
*/
|
|
@@ -4847,12 +4847,12 @@ declare const searchOperators: {
|
|
|
4847
4847
|
arrayCountRange: SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | ValuelessSearchOperatorBuilder<"arrayCountRange">;
|
|
4848
4848
|
arrayListIncludes: SearchOperatorBuilder<"arrayListIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListIncludes">;
|
|
4849
4849
|
arrayListNotIncludes: SearchOperatorBuilder<"arrayListNotIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListNotIncludes">;
|
|
4850
|
-
arrayReferenceIncludes: SearchOperatorBuilder<"arrayReferenceIncludes",
|
|
4851
|
-
arrayReferenceNotIncludes: SearchOperatorBuilder<"arrayReferenceNotIncludes",
|
|
4852
|
-
assetFileEqual: SearchOperatorBuilder<"assetFileEqual",
|
|
4853
|
-
assetFileNotEqual: SearchOperatorBuilder<"assetFileNotEqual",
|
|
4854
|
-
assetImageEqual: SearchOperatorBuilder<"assetImageEqual",
|
|
4855
|
-
assetImageNotEqual: SearchOperatorBuilder<"assetImageNotEqual",
|
|
4850
|
+
arrayReferenceIncludes: SearchOperatorBuilder<"arrayReferenceIncludes", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceIncludes">;
|
|
4851
|
+
arrayReferenceNotIncludes: SearchOperatorBuilder<"arrayReferenceNotIncludes", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceNotIncludes">;
|
|
4852
|
+
assetFileEqual: SearchOperatorBuilder<"assetFileEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"assetFileEqual">;
|
|
4853
|
+
assetFileNotEqual: SearchOperatorBuilder<"assetFileNotEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"assetFileNotEqual">;
|
|
4854
|
+
assetImageEqual: SearchOperatorBuilder<"assetImageEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"assetImageEqual">;
|
|
4855
|
+
assetImageNotEqual: SearchOperatorBuilder<"assetImageNotEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"assetImageNotEqual">;
|
|
4856
4856
|
booleanEqual: SearchOperatorBuilder<"booleanEqual", boolean> | ValuelessSearchOperatorBuilder<"booleanEqual">;
|
|
4857
4857
|
defined: SearchOperatorBuilder<"defined", unknown> | ValuelessSearchOperatorBuilder<"defined">;
|
|
4858
4858
|
notDefined: SearchOperatorBuilder<"notDefined", unknown> | ValuelessSearchOperatorBuilder<"notDefined">;
|
|
@@ -4867,11 +4867,11 @@ declare const searchOperators: {
|
|
|
4867
4867
|
portableTextMatches: SearchOperatorBuilder<"portableTextMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextMatches">;
|
|
4868
4868
|
portableTextNotEqual: SearchOperatorBuilder<"portableTextNotEqual", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotEqual">;
|
|
4869
4869
|
portableTextNotMatches: SearchOperatorBuilder<"portableTextNotMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotMatches">;
|
|
4870
|
-
referenceEqual: SearchOperatorBuilder<"referenceEqual",
|
|
4871
|
-
referenceNotEqual: SearchOperatorBuilder<"referenceNotEqual",
|
|
4872
|
-
referencesAssetFile: SearchOperatorBuilder<"referencesAssetFile",
|
|
4873
|
-
referencesAssetImage: SearchOperatorBuilder<"referencesAssetImage",
|
|
4874
|
-
referencesDocument: SearchOperatorBuilder<"referencesDocument",
|
|
4870
|
+
referenceEqual: SearchOperatorBuilder<"referenceEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"referenceEqual">;
|
|
4871
|
+
referenceNotEqual: SearchOperatorBuilder<"referenceNotEqual", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"referenceNotEqual">;
|
|
4872
|
+
referencesAssetFile: SearchOperatorBuilder<"referencesAssetFile", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"referencesAssetFile">;
|
|
4873
|
+
referencesAssetImage: SearchOperatorBuilder<"referencesAssetImage", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"referencesAssetImage">;
|
|
4874
|
+
referencesDocument: SearchOperatorBuilder<"referencesDocument", _sanity_types0.Reference> | ValuelessSearchOperatorBuilder<"referencesDocument">;
|
|
4875
4875
|
slugEqual: SearchOperatorBuilder<"slugEqual", string | number> | ValuelessSearchOperatorBuilder<"slugEqual">;
|
|
4876
4876
|
slugMatches: SearchOperatorBuilder<"slugMatches", string | number> | ValuelessSearchOperatorBuilder<"slugMatches">;
|
|
4877
4877
|
slugNotEqual: SearchOperatorBuilder<"slugNotEqual", string | number> | ValuelessSearchOperatorBuilder<"slugNotEqual">;
|
|
@@ -4891,7 +4891,7 @@ type SearchOperatorType = keyof DefaultOperators;
|
|
|
4891
4891
|
/**
|
|
4892
4892
|
* @internal
|
|
4893
4893
|
*/
|
|
4894
|
-
declare const operatorDefinitions: (SearchOperatorBuilder<"arrayCountEqual", number> | SearchOperatorBuilder<"arrayCountGt", number> | SearchOperatorBuilder<"arrayCountGte", number> | SearchOperatorBuilder<"arrayCountLt", number> | SearchOperatorBuilder<"arrayCountLte", number> | SearchOperatorBuilder<"arrayCountNotEqual", number> | SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | SearchOperatorBuilder<"arrayListIncludes", string | number> | SearchOperatorBuilder<"arrayListNotIncludes", string | number> | SearchOperatorBuilder<"arrayReferenceIncludes",
|
|
4894
|
+
declare const operatorDefinitions: (SearchOperatorBuilder<"arrayCountEqual", number> | SearchOperatorBuilder<"arrayCountGt", number> | SearchOperatorBuilder<"arrayCountGte", number> | SearchOperatorBuilder<"arrayCountLt", number> | SearchOperatorBuilder<"arrayCountLte", number> | SearchOperatorBuilder<"arrayCountNotEqual", number> | SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | SearchOperatorBuilder<"arrayListIncludes", string | number> | SearchOperatorBuilder<"arrayListNotIncludes", string | number> | SearchOperatorBuilder<"arrayReferenceIncludes", _sanity_types0.Reference> | SearchOperatorBuilder<"arrayReferenceNotIncludes", _sanity_types0.Reference> | SearchOperatorBuilder<"assetFileEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"assetFileNotEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"assetImageEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"assetImageNotEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"booleanEqual", boolean> | SearchOperatorBuilder<"dateAfter", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateBefore", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateLast", OperatorDateLastValue> | SearchOperatorBuilder<"dateNotEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateRange", OperatorDateRangeValue> | SearchOperatorBuilder<"dateTimeAfter", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateTimeBefore", OperatorDateDirectionValue> | SearchOperatorBuilder<"dateTimeEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateTimeLast", OperatorDateLastValue> | SearchOperatorBuilder<"dateTimeNotEqual", OperatorDateEqualValue> | SearchOperatorBuilder<"dateTimeRange", OperatorDateRangeValue> | SearchOperatorBuilder<"defined", unknown> | SearchOperatorBuilder<"notDefined", unknown> | SearchOperatorBuilder<"numberEqual", number> | SearchOperatorBuilder<"numberGt", number> | SearchOperatorBuilder<"numberGte", number> | SearchOperatorBuilder<"numberLt", number> | SearchOperatorBuilder<"numberLte", number> | SearchOperatorBuilder<"numberNotEqual", number> | SearchOperatorBuilder<"numberRange", OperatorNumberRangeValue> | SearchOperatorBuilder<"portableTextEqual", string | number> | SearchOperatorBuilder<"portableTextMatches", string | number> | SearchOperatorBuilder<"portableTextNotEqual", string | number> | SearchOperatorBuilder<"portableTextNotMatches", string | number> | SearchOperatorBuilder<"referenceEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"referenceNotEqual", _sanity_types0.Reference> | SearchOperatorBuilder<"referencesAssetFile", _sanity_types0.Reference> | SearchOperatorBuilder<"referencesAssetImage", _sanity_types0.Reference> | SearchOperatorBuilder<"referencesDocument", _sanity_types0.Reference> | SearchOperatorBuilder<"slugEqual", string | number> | SearchOperatorBuilder<"slugMatches", string | number> | SearchOperatorBuilder<"slugNotEqual", string | number> | SearchOperatorBuilder<"slugNotMatches", string | number> | SearchOperatorBuilder<"stringEqual", string | number> | SearchOperatorBuilder<"stringListEqual", string | number> | SearchOperatorBuilder<"stringListNotEqual", string | number> | SearchOperatorBuilder<"stringMatches", string | number> | SearchOperatorBuilder<"stringNotEqual", string | number> | SearchOperatorBuilder<"stringNotMatches", string | number> | ValuelessSearchOperatorBuilder<"arrayCountEqual"> | ValuelessSearchOperatorBuilder<"arrayCountGt"> | ValuelessSearchOperatorBuilder<"arrayCountGte"> | ValuelessSearchOperatorBuilder<"arrayCountLt"> | ValuelessSearchOperatorBuilder<"arrayCountLte"> | ValuelessSearchOperatorBuilder<"arrayCountNotEqual"> | ValuelessSearchOperatorBuilder<"arrayCountRange"> | ValuelessSearchOperatorBuilder<"arrayListIncludes"> | ValuelessSearchOperatorBuilder<"arrayListNotIncludes"> | ValuelessSearchOperatorBuilder<"arrayReferenceIncludes"> | ValuelessSearchOperatorBuilder<"arrayReferenceNotIncludes"> | ValuelessSearchOperatorBuilder<"assetFileEqual"> | ValuelessSearchOperatorBuilder<"assetFileNotEqual"> | ValuelessSearchOperatorBuilder<"assetImageEqual"> | ValuelessSearchOperatorBuilder<"assetImageNotEqual"> | ValuelessSearchOperatorBuilder<"booleanEqual"> | ValuelessSearchOperatorBuilder<"dateAfter"> | ValuelessSearchOperatorBuilder<"dateBefore"> | ValuelessSearchOperatorBuilder<"dateEqual"> | ValuelessSearchOperatorBuilder<"dateLast"> | ValuelessSearchOperatorBuilder<"dateNotEqual"> | ValuelessSearchOperatorBuilder<"dateRange"> | ValuelessSearchOperatorBuilder<"dateTimeAfter"> | ValuelessSearchOperatorBuilder<"dateTimeBefore"> | ValuelessSearchOperatorBuilder<"dateTimeEqual"> | ValuelessSearchOperatorBuilder<"dateTimeLast"> | ValuelessSearchOperatorBuilder<"dateTimeNotEqual"> | ValuelessSearchOperatorBuilder<"dateTimeRange"> | ValuelessSearchOperatorBuilder<"defined"> | ValuelessSearchOperatorBuilder<"notDefined"> | ValuelessSearchOperatorBuilder<"numberEqual"> | ValuelessSearchOperatorBuilder<"numberGt"> | ValuelessSearchOperatorBuilder<"numberGte"> | ValuelessSearchOperatorBuilder<"numberLt"> | ValuelessSearchOperatorBuilder<"numberLte"> | ValuelessSearchOperatorBuilder<"numberNotEqual"> | ValuelessSearchOperatorBuilder<"numberRange"> | ValuelessSearchOperatorBuilder<"portableTextEqual"> | ValuelessSearchOperatorBuilder<"portableTextMatches"> | ValuelessSearchOperatorBuilder<"portableTextNotEqual"> | ValuelessSearchOperatorBuilder<"portableTextNotMatches"> | ValuelessSearchOperatorBuilder<"referenceEqual"> | ValuelessSearchOperatorBuilder<"referenceNotEqual"> | ValuelessSearchOperatorBuilder<"referencesAssetFile"> | ValuelessSearchOperatorBuilder<"referencesAssetImage"> | ValuelessSearchOperatorBuilder<"referencesDocument"> | ValuelessSearchOperatorBuilder<"slugEqual"> | ValuelessSearchOperatorBuilder<"slugMatches"> | ValuelessSearchOperatorBuilder<"slugNotEqual"> | ValuelessSearchOperatorBuilder<"slugNotMatches"> | ValuelessSearchOperatorBuilder<"stringEqual"> | ValuelessSearchOperatorBuilder<"stringListEqual"> | ValuelessSearchOperatorBuilder<"stringListNotEqual"> | ValuelessSearchOperatorBuilder<"stringMatches"> | ValuelessSearchOperatorBuilder<"stringNotEqual"> | ValuelessSearchOperatorBuilder<"stringNotMatches">)[];
|
|
4895
4895
|
type Operator<TOperators = string> = OperatorDivider | OperatorItem<TOperators>;
|
|
4896
4896
|
type OperatorDivider = {
|
|
4897
4897
|
type: 'divider';
|
|
@@ -5132,7 +5132,7 @@ declare function SearchProvider({
|
|
|
5132
5132
|
fullscreen,
|
|
5133
5133
|
disabledDocumentIds,
|
|
5134
5134
|
canDisableAction
|
|
5135
|
-
}: SearchProviderProps):
|
|
5135
|
+
}: SearchProviderProps): react.JSX.Element;
|
|
5136
5136
|
/**
|
|
5137
5137
|
* @internal
|
|
5138
5138
|
*/
|
|
@@ -5157,7 +5157,7 @@ interface SearchButtonProps {
|
|
|
5157
5157
|
/**
|
|
5158
5158
|
* @internal
|
|
5159
5159
|
*/
|
|
5160
|
-
declare const SearchButton:
|
|
5160
|
+
declare const SearchButton: react.ForwardRefExoticComponent<SearchButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
5161
5161
|
interface SearchDialogProps {
|
|
5162
5162
|
onClose: () => void;
|
|
5163
5163
|
onOpen: () => void;
|
|
@@ -5170,11 +5170,11 @@ declare function SearchDialog({
|
|
|
5170
5170
|
onClose,
|
|
5171
5171
|
onOpen,
|
|
5172
5172
|
open
|
|
5173
|
-
}: SearchDialogProps):
|
|
5173
|
+
}: SearchDialogProps): react.JSX.Element;
|
|
5174
5174
|
/**
|
|
5175
5175
|
* @hidden
|
|
5176
5176
|
* @beta */
|
|
5177
|
-
declare function StudioLogo(props: LogoProps):
|
|
5177
|
+
declare function StudioLogo(props: LogoProps): react.JSX.Element;
|
|
5178
5178
|
/**
|
|
5179
5179
|
* @hidden
|
|
5180
5180
|
* @beta */
|
|
@@ -5266,11 +5266,11 @@ interface StudioComponentsPluginOptions {
|
|
|
5266
5266
|
/**
|
|
5267
5267
|
* @hidden
|
|
5268
5268
|
* @beta */
|
|
5269
|
-
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>):
|
|
5269
|
+
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>): react.JSX.Element;
|
|
5270
5270
|
/**
|
|
5271
5271
|
* @hidden
|
|
5272
5272
|
* @beta */
|
|
5273
|
-
declare function StudioToolMenu(props: ToolMenuProps):
|
|
5273
|
+
declare function StudioToolMenu(props: ToolMenuProps): react.JSX.Element | null;
|
|
5274
5274
|
/**
|
|
5275
5275
|
* @hidden
|
|
5276
5276
|
* @beta */
|
|
@@ -5281,7 +5281,7 @@ interface ToolLinkProps {
|
|
|
5281
5281
|
/**
|
|
5282
5282
|
* @hidden
|
|
5283
5283
|
* @beta */
|
|
5284
|
-
declare const ToolLink:
|
|
5284
|
+
declare const ToolLink: react.ForwardRefExoticComponent<Omit<ToolLinkProps & Omit<HTMLProps<HTMLAnchorElement>, "href" | "name">, "ref"> & react.RefAttributes<HTMLAnchorElement>>;
|
|
5285
5285
|
/**
|
|
5286
5286
|
* @hidden
|
|
5287
5287
|
* @beta */
|
|
@@ -5582,7 +5582,7 @@ type SourceProviderProps = {
|
|
|
5582
5582
|
declare function SourceProvider({
|
|
5583
5583
|
children,
|
|
5584
5584
|
...props
|
|
5585
|
-
}: SourceProviderProps):
|
|
5585
|
+
}: SourceProviderProps): react.JSX.Element;
|
|
5586
5586
|
/**
|
|
5587
5587
|
* @internal
|
|
5588
5588
|
* @deprecated INTERNAL USE ONLY
|
|
@@ -5694,7 +5694,7 @@ declare function StudioAnnouncementsCard({
|
|
|
5694
5694
|
preHeader,
|
|
5695
5695
|
onCardClick,
|
|
5696
5696
|
onCardDismiss
|
|
5697
|
-
}: StudioAnnouncementCardProps):
|
|
5697
|
+
}: StudioAnnouncementCardProps): react.JSX.Element;
|
|
5698
5698
|
declare const audienceRoles: readonly ["administrator", "editor", "viewer", "contributor", "developer", "custom"];
|
|
5699
5699
|
type AudienceRole = (typeof audienceRoles)[number];
|
|
5700
5700
|
interface StudioAnnouncementDocument {
|
|
@@ -5734,7 +5734,7 @@ declare function StudioAnnouncementsDialog({
|
|
|
5734
5734
|
announcements,
|
|
5735
5735
|
onClose,
|
|
5736
5736
|
mode
|
|
5737
|
-
}: StudioAnnouncementDialogProps):
|
|
5737
|
+
}: StudioAnnouncementDialogProps): react.JSX.Element;
|
|
5738
5738
|
/**
|
|
5739
5739
|
* @internal
|
|
5740
5740
|
* @hidden
|
|
@@ -5777,12 +5777,12 @@ interface NavbarContextValue {
|
|
|
5777
5777
|
*</StudioProvider>
|
|
5778
5778
|
* ```
|
|
5779
5779
|
*/
|
|
5780
|
-
declare function StudioLayout():
|
|
5780
|
+
declare function StudioLayout(): react.JSX.Element;
|
|
5781
5781
|
/**
|
|
5782
5782
|
* @internal
|
|
5783
5783
|
* The default Studio Layout component
|
|
5784
5784
|
* */
|
|
5785
|
-
declare function StudioLayoutComponent():
|
|
5785
|
+
declare function StudioLayoutComponent(): react.JSX.Element;
|
|
5786
5786
|
/**
|
|
5787
5787
|
* @hidden
|
|
5788
5788
|
* @beta */
|
|
@@ -5800,7 +5800,7 @@ declare function StudioProvider({
|
|
|
5800
5800
|
scheme,
|
|
5801
5801
|
unstable_history: history,
|
|
5802
5802
|
unstable_noAuthBoundary: noAuthBoundary
|
|
5803
|
-
}: StudioProviderProps):
|
|
5803
|
+
}: StudioProviderProps): react.JSX.Element;
|
|
5804
5804
|
interface UpsellDialogActionsInfo {
|
|
5805
5805
|
feature: 'comments' | 'scheduled_publishing' | 'ai_assist' | 'tasks';
|
|
5806
5806
|
type: 'modal' | 'inspector';
|
|
@@ -5812,19 +5812,19 @@ interface UpsellDialogViewedInfo extends UpsellDialogActionsInfo {
|
|
|
5812
5812
|
/**
|
|
5813
5813
|
* @internal
|
|
5814
5814
|
*/
|
|
5815
|
-
declare const UpsellDialogViewed:
|
|
5815
|
+
declare const UpsellDialogViewed: _sanity_telemetry0.DefinedTelemetryLog<UpsellDialogViewedInfo>;
|
|
5816
5816
|
/**
|
|
5817
5817
|
* @internal
|
|
5818
5818
|
*/
|
|
5819
|
-
declare const UpsellDialogDismissed:
|
|
5819
|
+
declare const UpsellDialogDismissed: _sanity_telemetry0.DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
5820
5820
|
/**
|
|
5821
5821
|
* @internal
|
|
5822
5822
|
*/
|
|
5823
|
-
declare const UpsellDialogUpgradeCtaClicked:
|
|
5823
|
+
declare const UpsellDialogUpgradeCtaClicked: _sanity_telemetry0.DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
5824
5824
|
/**
|
|
5825
5825
|
* @internal
|
|
5826
5826
|
*/
|
|
5827
|
-
declare const UpsellDialogLearnMoreCtaClicked:
|
|
5827
|
+
declare const UpsellDialogLearnMoreCtaClicked: _sanity_telemetry0.DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
5828
5828
|
/** @internal */
|
|
5829
5829
|
type InterpolationProp = {
|
|
5830
5830
|
[key: string]: string | number;
|
|
@@ -5845,7 +5845,7 @@ interface DescriptionSerializerProps {
|
|
|
5845
5845
|
* Not meant for public consumption.
|
|
5846
5846
|
* @internal
|
|
5847
5847
|
*/
|
|
5848
|
-
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps):
|
|
5848
|
+
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps): react.JSX.Element;
|
|
5849
5849
|
/** @internal */
|
|
5850
5850
|
interface WorkspaceProviderProps {
|
|
5851
5851
|
workspace: Workspace;
|
|
@@ -5880,7 +5880,7 @@ declare function ErrorMessage({
|
|
|
5880
5880
|
message,
|
|
5881
5881
|
path,
|
|
5882
5882
|
stack
|
|
5883
|
-
}: ErrorMessageProps):
|
|
5883
|
+
}: ErrorMessageProps): react.JSX.Element;
|
|
5884
5884
|
interface WorkspaceLoaderProps {
|
|
5885
5885
|
children: ReactNode;
|
|
5886
5886
|
ConfigErrorsComponent: ComponentType;
|
|
@@ -5896,7 +5896,7 @@ declare function useWorkspaceLoader(activeWorkspace: WorkspaceSummary): Workspac
|
|
|
5896
5896
|
declare function WorkspaceLoaderBoundary({
|
|
5897
5897
|
ConfigErrorsComponent,
|
|
5898
5898
|
...props
|
|
5899
|
-
}: WorkspaceLoaderProps):
|
|
5899
|
+
}: WorkspaceLoaderProps): react.JSX.Element;
|
|
5900
5900
|
/**
|
|
5901
5901
|
* @beta
|
|
5902
5902
|
* @hidden
|
|
@@ -5973,7 +5973,7 @@ interface CommentsListProps {
|
|
|
5973
5973
|
* @beta
|
|
5974
5974
|
* @hidden
|
|
5975
5975
|
*/
|
|
5976
|
-
declare const CommentsList:
|
|
5976
|
+
declare const CommentsList: react.NamedExoticComponent<CommentsListProps & react.RefAttributes<HTMLDivElement>>;
|
|
5977
5977
|
/**
|
|
5978
5978
|
* @internal
|
|
5979
5979
|
*/
|
|
@@ -6016,7 +6016,7 @@ interface CommentInputHandle {
|
|
|
6016
6016
|
* @internal
|
|
6017
6017
|
* @hidden
|
|
6018
6018
|
*/
|
|
6019
|
-
declare const CommentInput:
|
|
6019
|
+
declare const CommentInput: react.ForwardRefExoticComponent<CommentInputProps & react.RefAttributes<CommentInputHandle>>;
|
|
6020
6020
|
interface CommentInputContextValue {
|
|
6021
6021
|
canSubmit?: boolean;
|
|
6022
6022
|
closeMentions: () => void;
|
|
@@ -6046,7 +6046,7 @@ interface CommentInlineHighlightSpanProps {
|
|
|
6046
6046
|
/**
|
|
6047
6047
|
* @internal
|
|
6048
6048
|
*/
|
|
6049
|
-
declare const CommentInlineHighlightSpan:
|
|
6049
|
+
declare const CommentInlineHighlightSpan: react.ForwardRefExoticComponent<Omit<CommentInlineHighlightSpanProps & react.HTMLProps<HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
6050
6050
|
/**
|
|
6051
6051
|
* @internal
|
|
6052
6052
|
* @hidden
|
|
@@ -6184,11 +6184,11 @@ interface CollapseMenuProps {
|
|
|
6184
6184
|
onMenuClose?: () => void;
|
|
6185
6185
|
}
|
|
6186
6186
|
/** @internal */
|
|
6187
|
-
declare const CollapseMenu:
|
|
6187
|
+
declare const CollapseMenu: react.ForwardRefExoticComponent<CollapseMenuProps & react.RefAttributes<any>>;
|
|
6188
6188
|
/** @internal */
|
|
6189
|
-
declare const AutoCollapseMenu:
|
|
6190
|
-
menuOptions:
|
|
6191
|
-
} &
|
|
6189
|
+
declare const AutoCollapseMenu: react.ForwardRefExoticComponent<Omit<CollapseMenuProps, "children" | "collapsed"> & {
|
|
6190
|
+
menuOptions: react.JSX.Element[];
|
|
6191
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
6192
6192
|
/** @internal */
|
|
6193
6193
|
interface CommonProps extends Omit<ButtonProps$1, 'text' | 'iconRight'> {
|
|
6194
6194
|
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
@@ -6204,7 +6204,7 @@ interface CollapseMenuButtonProps extends CommonProps {
|
|
|
6204
6204
|
text: string;
|
|
6205
6205
|
}
|
|
6206
6206
|
/** @internal */
|
|
6207
|
-
declare const CollapseMenuButton:
|
|
6207
|
+
declare const CollapseMenuButton: react.ForwardRefExoticComponent<Omit<CollapseMenuButtonProps & Omit<HTMLProps<HTMLButtonElement>, "as" | "size">, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
6208
6208
|
/** @internal */
|
|
6209
6209
|
declare function useOnScroll(callback: Subscriber<Event>): void;
|
|
6210
6210
|
/** @internal */
|
|
@@ -6221,7 +6221,7 @@ interface ScrollContainerProps<T extends ElementType> extends Omit<HTMLProps<T>,
|
|
|
6221
6221
|
*
|
|
6222
6222
|
* @internal
|
|
6223
6223
|
*/
|
|
6224
|
-
declare const ScrollContainer:
|
|
6224
|
+
declare const ScrollContainer: react.NamedExoticComponent<Omit<ScrollContainerProps<ElementType>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
6225
6225
|
/** @internal */
|
|
6226
6226
|
type ScrollEventHandler = (event: Event) => void;
|
|
6227
6227
|
/** @internal */
|
|
@@ -6663,7 +6663,7 @@ interface EventsProviderProps {
|
|
|
6663
6663
|
declare function EventsProvider({
|
|
6664
6664
|
value,
|
|
6665
6665
|
children
|
|
6666
|
-
}: EventsProviderProps):
|
|
6666
|
+
}: EventsProviderProps): react.JSX.Element;
|
|
6667
6667
|
/**
|
|
6668
6668
|
* @internal
|
|
6669
6669
|
*/
|
|
@@ -6881,7 +6881,7 @@ declare function useDiffAnnotationColor(diff: Diff$1, path?: string | Path): Use
|
|
|
6881
6881
|
declare function ChangeBreadcrumb(props: {
|
|
6882
6882
|
change?: FieldChangeNode;
|
|
6883
6883
|
titlePath: ChangeTitlePath;
|
|
6884
|
-
}):
|
|
6884
|
+
}): react.JSX.Element;
|
|
6885
6885
|
/** @internal */
|
|
6886
6886
|
interface ChangeListProps {
|
|
6887
6887
|
schemaType: ObjectSchemaType;
|
|
@@ -6902,7 +6902,7 @@ interface ChangeResolverProps {
|
|
|
6902
6902
|
addParentWrapper?: boolean;
|
|
6903
6903
|
}
|
|
6904
6904
|
/** @internal */
|
|
6905
|
-
declare function ChangeResolver(props: ChangeResolverProps):
|
|
6905
|
+
declare function ChangeResolver(props: ChangeResolverProps): react.JSX.Element | null;
|
|
6906
6906
|
/**
|
|
6907
6907
|
* @internal
|
|
6908
6908
|
* */
|
|
@@ -6910,12 +6910,12 @@ declare function ChangesError({
|
|
|
6910
6910
|
error
|
|
6911
6911
|
}: {
|
|
6912
6912
|
error?: Error | null;
|
|
6913
|
-
}):
|
|
6913
|
+
}): react.JSX.Element;
|
|
6914
6914
|
/** @internal */
|
|
6915
6915
|
declare function ChangeTitleSegment(props: {
|
|
6916
6916
|
change?: FieldChangeNode;
|
|
6917
6917
|
segment: string | FromToIndex;
|
|
6918
|
-
}):
|
|
6918
|
+
}): react.JSX.Element;
|
|
6919
6919
|
/**
|
|
6920
6920
|
* @internal
|
|
6921
6921
|
* mapping of events types with a readable key for translation
|
|
@@ -6933,7 +6933,7 @@ interface DiffCardProps {
|
|
|
6933
6933
|
} | boolean;
|
|
6934
6934
|
}
|
|
6935
6935
|
/** @internal */
|
|
6936
|
-
declare const DiffCard:
|
|
6936
|
+
declare const DiffCard: react.ForwardRefExoticComponent<Omit<DiffCardProps & Omit<HTMLProps<HTMLElement>, "as" | "height">, "ref"> & react.RefAttributes<unknown>>;
|
|
6937
6937
|
/** @internal */
|
|
6938
6938
|
interface DiffErrorBoundaryProps {
|
|
6939
6939
|
children: ReactNode;
|
|
@@ -6950,7 +6950,7 @@ declare class DiffErrorBoundary extends Component<DiffErrorBoundaryProps, DiffEr
|
|
|
6950
6950
|
};
|
|
6951
6951
|
state: DiffErrorBoundaryState;
|
|
6952
6952
|
componentDidCatch(error: Error): void;
|
|
6953
|
-
render(): string | number | bigint | boolean |
|
|
6953
|
+
render(): string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null | undefined;
|
|
6954
6954
|
}
|
|
6955
6955
|
/** @internal */
|
|
6956
6956
|
type FieldPreviewComponent<T = any> = ComponentType<{
|
|
@@ -6969,7 +6969,7 @@ interface DiffFromToProps {
|
|
|
6969
6969
|
schemaType: SchemaType;
|
|
6970
6970
|
}
|
|
6971
6971
|
/** @internal */
|
|
6972
|
-
declare function DiffFromTo(props: DiffFromToProps):
|
|
6972
|
+
declare function DiffFromTo(props: DiffFromToProps): react.JSX.Element;
|
|
6973
6973
|
/** @internal */
|
|
6974
6974
|
interface DiffInspectWrapperProps {
|
|
6975
6975
|
children: ReactNode;
|
|
@@ -6985,7 +6985,7 @@ declare function DiffStringSegment(props: {
|
|
|
6985
6985
|
/** @internal */
|
|
6986
6986
|
declare function DiffString(props: {
|
|
6987
6987
|
diff: StringDiff$1;
|
|
6988
|
-
}):
|
|
6988
|
+
}): react.JSX.Element;
|
|
6989
6989
|
/** @internal */
|
|
6990
6990
|
interface DiffTooltipProps extends TooltipProps$1 {
|
|
6991
6991
|
children: React.JSX.Element;
|
|
@@ -7000,7 +7000,7 @@ interface DiffTooltipWithAnnotationsProps extends TooltipProps$1 {
|
|
|
7000
7000
|
description?: ReactNode;
|
|
7001
7001
|
}
|
|
7002
7002
|
/** @internal */
|
|
7003
|
-
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps):
|
|
7003
|
+
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps): react.JSX.Element;
|
|
7004
7004
|
interface TimelineItemProps {
|
|
7005
7005
|
event: DocumentGroupEvent;
|
|
7006
7006
|
showChangesBy: 'tooltip' | 'inline' | 'hidden';
|
|
@@ -7011,7 +7011,7 @@ interface TimelineItemProps {
|
|
|
7011
7011
|
declare function Event$1({
|
|
7012
7012
|
event,
|
|
7013
7013
|
showChangesBy
|
|
7014
|
-
}: TimelineItemProps):
|
|
7014
|
+
}: TimelineItemProps): react.JSX.Element;
|
|
7015
7015
|
/** @internal */
|
|
7016
7016
|
declare const FallbackDiff: DiffComponent<Diff$1<unknown, Record<string, unknown>>>;
|
|
7017
7017
|
/** @internal */
|
|
@@ -7020,7 +7020,7 @@ declare function FieldChange(props: {
|
|
|
7020
7020
|
readOnly?: boolean;
|
|
7021
7021
|
hidden?: boolean;
|
|
7022
7022
|
addParentWrapper?: boolean;
|
|
7023
|
-
} & HTMLAttributes<HTMLDivElement>):
|
|
7023
|
+
} & HTMLAttributes<HTMLDivElement>): react.JSX.Element | null;
|
|
7024
7024
|
/** @internal */
|
|
7025
7025
|
type FromToProps = {
|
|
7026
7026
|
align?: 'top' | 'center' | 'bottom';
|
|
@@ -7029,13 +7029,13 @@ type FromToProps = {
|
|
|
7029
7029
|
to?: ReactNode;
|
|
7030
7030
|
} & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'height' | 'wrap'>;
|
|
7031
7031
|
/** @internal */
|
|
7032
|
-
declare const FromTo:
|
|
7032
|
+
declare const FromTo: react.ForwardRefExoticComponent<Omit<FromToProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
7033
7033
|
/** @internal */
|
|
7034
7034
|
type FromToArrowDirection = 'down' | 'right';
|
|
7035
7035
|
/** @internal */
|
|
7036
7036
|
declare function FromToArrow(props: {
|
|
7037
7037
|
direction?: FromToArrowDirection;
|
|
7038
|
-
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>):
|
|
7038
|
+
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>): react.JSX.Element;
|
|
7039
7039
|
/** @internal */
|
|
7040
7040
|
declare function GroupChange(props: {
|
|
7041
7041
|
change: GroupChangeNode;
|
|
@@ -7051,13 +7051,13 @@ interface MetaInfoProps {
|
|
|
7051
7051
|
markRemoved?: boolean;
|
|
7052
7052
|
}
|
|
7053
7053
|
/** @internal */
|
|
7054
|
-
declare function MetaInfo(props: MetaInfoProps):
|
|
7054
|
+
declare function MetaInfo(props: MetaInfoProps): react.JSX.Element;
|
|
7055
7055
|
/** @internal */
|
|
7056
|
-
declare function NoChanges():
|
|
7056
|
+
declare function NoChanges(): react.JSX.Element;
|
|
7057
7057
|
/** @internal */
|
|
7058
|
-
declare const RevertChangesButton:
|
|
7058
|
+
declare const RevertChangesButton: react.ForwardRefExoticComponent<Omit<ButtonProps$1, "tooltipProps"> & Omit<HTMLProps<HTMLButtonElement>, "ref"> & {
|
|
7059
7059
|
changeCount: number;
|
|
7060
|
-
} &
|
|
7060
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
7061
7061
|
interface RevertChangesConfirmDialogProps {
|
|
7062
7062
|
open: boolean;
|
|
7063
7063
|
onConfirm: () => void;
|
|
@@ -7074,13 +7074,13 @@ declare function RevertChangesConfirmDialog({
|
|
|
7074
7074
|
onCancel,
|
|
7075
7075
|
changeCount,
|
|
7076
7076
|
referenceElement
|
|
7077
|
-
}: RevertChangesConfirmDialogProps):
|
|
7077
|
+
}: RevertChangesConfirmDialogProps): react.JSX.Element;
|
|
7078
7078
|
/** @internal */
|
|
7079
7079
|
declare function ValueError({
|
|
7080
7080
|
error
|
|
7081
7081
|
}: {
|
|
7082
7082
|
error: FieldValueError;
|
|
7083
|
-
}):
|
|
7083
|
+
}): react.JSX.Element;
|
|
7084
7084
|
/** @internal */
|
|
7085
7085
|
type DocumentChangeContextInstance = {
|
|
7086
7086
|
documentId: string;
|
|
@@ -7196,7 +7196,7 @@ declare function PerspectiveProvider({
|
|
|
7196
7196
|
children: React.ReactNode;
|
|
7197
7197
|
selectedPerspectiveName: 'published' | ReleaseId | undefined;
|
|
7198
7198
|
excludedPerspectives?: string[];
|
|
7199
|
-
}):
|
|
7199
|
+
}): react.JSX.Element;
|
|
7200
7200
|
interface ExcludedPerspectiveValue {
|
|
7201
7201
|
excludedPerspectives: string[];
|
|
7202
7202
|
toggleExcludedPerspective: (perspectiveId: string) => void;
|
|
@@ -7271,7 +7271,7 @@ interface Props$2 {
|
|
|
7271
7271
|
* @deprecated we will be dropping support for scheduled publishing on a future major version
|
|
7272
7272
|
* @internal
|
|
7273
7273
|
*/
|
|
7274
|
-
declare function EditScheduleForm(props: PropsWithChildren<Props$2>):
|
|
7274
|
+
declare function EditScheduleForm(props: PropsWithChildren<Props$2>): react.JSX.Element;
|
|
7275
7275
|
/**
|
|
7276
7276
|
* @internal
|
|
7277
7277
|
*/
|
|
@@ -7422,18 +7422,18 @@ interface DocumentActionDescription extends GroupableActionDescription<DocumentA
|
|
|
7422
7422
|
}
|
|
7423
7423
|
declare function useScheduleAction(props: DocumentActionProps): {
|
|
7424
7424
|
disabled: true;
|
|
7425
|
-
icon:
|
|
7425
|
+
icon: react.ForwardRefExoticComponent<Omit<react.SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
7426
7426
|
label: string;
|
|
7427
|
-
title:
|
|
7428
|
-
dialog?: undefined;
|
|
7427
|
+
title: react.JSX.Element;
|
|
7429
7428
|
onHandle?: undefined;
|
|
7429
|
+
dialog?: undefined;
|
|
7430
7430
|
} | {
|
|
7431
7431
|
dialog: false | DocumentActionModalDialogProps;
|
|
7432
7432
|
disabled: boolean;
|
|
7433
7433
|
label: string;
|
|
7434
|
-
icon:
|
|
7434
|
+
icon: react.ForwardRefExoticComponent<Omit<react.SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
7435
7435
|
onHandle: () => void;
|
|
7436
|
-
title: "" |
|
|
7436
|
+
title: "" | react.JSX.Element | null;
|
|
7437
7437
|
} | null;
|
|
7438
7438
|
declare namespace useScheduleAction {
|
|
7439
7439
|
var action: ("delete" | "discardChanges" | "discardVersion" | "duplicate" | "editInCanvas" | "linkToCanvas" | "publish" | "restore" | "schedule" | "unlinkFromCanvas" | "unpublish" | "unpublishVersion") | undefined;
|
|
@@ -7460,7 +7460,7 @@ interface GetHookCollectionStateProps<Args, State> {
|
|
|
7460
7460
|
resetRef?: React.Ref<() => void>;
|
|
7461
7461
|
}
|
|
7462
7462
|
/** @internal */
|
|
7463
|
-
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>):
|
|
7463
|
+
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>): react.JSX.Element;
|
|
7464
7464
|
/**
|
|
7465
7465
|
* @hidden
|
|
7466
7466
|
* @beta */
|
|
@@ -7513,7 +7513,7 @@ interface SingleDocReleaseProviderProps {
|
|
|
7513
7513
|
declare function SingleDocReleaseProvider({
|
|
7514
7514
|
children,
|
|
7515
7515
|
onSetScheduledDraftPerspective
|
|
7516
|
-
}: SingleDocReleaseProviderProps):
|
|
7516
|
+
}: SingleDocReleaseProviderProps): react.JSX.Element;
|
|
7517
7517
|
/**
|
|
7518
7518
|
* Hook to get the single doc release context
|
|
7519
7519
|
* @internal
|
|
@@ -8325,7 +8325,7 @@ declare function DocumentStatus({
|
|
|
8325
8325
|
published,
|
|
8326
8326
|
versions,
|
|
8327
8327
|
singleLine
|
|
8328
|
-
}: DocumentStatusProps$1):
|
|
8328
|
+
}: DocumentStatusProps$1): react.JSX.Element;
|
|
8329
8329
|
/**
|
|
8330
8330
|
* @internal
|
|
8331
8331
|
*/
|
|
@@ -8395,7 +8395,7 @@ declare function DocumentStatusIndicator({
|
|
|
8395
8395
|
draft,
|
|
8396
8396
|
published,
|
|
8397
8397
|
versions
|
|
8398
|
-
}: DocumentStatusProps):
|
|
8398
|
+
}: DocumentStatusProps): react.JSX.Element;
|
|
8399
8399
|
/**
|
|
8400
8400
|
* @internal
|
|
8401
8401
|
*/
|
|
@@ -8451,7 +8451,7 @@ declare function Hotkeys({
|
|
|
8451
8451
|
makePlatformAware,
|
|
8452
8452
|
keys: hotKeys,
|
|
8453
8453
|
...props
|
|
8454
|
-
}: HotkeysProps$1):
|
|
8454
|
+
}: HotkeysProps$1): react.JSX.Element;
|
|
8455
8455
|
/** @internal */
|
|
8456
8456
|
interface InsufficientPermissionsMessageProps {
|
|
8457
8457
|
currentUser?: CurrentUser | null;
|
|
@@ -8461,13 +8461,13 @@ interface InsufficientPermissionsMessageProps {
|
|
|
8461
8461
|
declare function InsufficientPermissionsMessage({
|
|
8462
8462
|
currentUser,
|
|
8463
8463
|
context
|
|
8464
|
-
}: InsufficientPermissionsMessageProps):
|
|
8464
|
+
}: InsufficientPermissionsMessageProps): react.JSX.Element;
|
|
8465
8465
|
/**
|
|
8466
8466
|
*
|
|
8467
8467
|
* @hidden
|
|
8468
8468
|
* @beta
|
|
8469
8469
|
*/
|
|
8470
|
-
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>):
|
|
8470
|
+
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>): react.JSX.Element;
|
|
8471
8471
|
interface LoadingTestProps {
|
|
8472
8472
|
/** Absolutely positions this component when `true`. */
|
|
8473
8473
|
fill?: boolean;
|
|
@@ -8491,7 +8491,7 @@ declare function LoadingBlock({
|
|
|
8491
8491
|
fill,
|
|
8492
8492
|
showText,
|
|
8493
8493
|
title
|
|
8494
|
-
}: LoadingTestProps):
|
|
8494
|
+
}: LoadingTestProps): react.JSX.Element;
|
|
8495
8495
|
interface PopoverDialogProps {
|
|
8496
8496
|
children: ReactNode;
|
|
8497
8497
|
header?: ReactNode;
|
|
@@ -8501,7 +8501,7 @@ interface PopoverDialogProps {
|
|
|
8501
8501
|
containerRef?: Dispatch<SetStateAction<HTMLDivElement | null>>;
|
|
8502
8502
|
}
|
|
8503
8503
|
/** @internal */
|
|
8504
|
-
declare function PopoverDialog(props: PopoverDialogProps):
|
|
8504
|
+
declare function PopoverDialog(props: PopoverDialogProps): react.JSX.Element;
|
|
8505
8505
|
/** @internal */
|
|
8506
8506
|
interface PreviewCardContextValue {
|
|
8507
8507
|
selected?: boolean;
|
|
@@ -8509,7 +8509,7 @@ interface PreviewCardContextValue {
|
|
|
8509
8509
|
/** @internal */
|
|
8510
8510
|
declare function usePreviewCard(): PreviewCardContextValue;
|
|
8511
8511
|
/** @internal */
|
|
8512
|
-
declare const PreviewCard:
|
|
8512
|
+
declare const PreviewCard: react.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
8513
8513
|
/**
|
|
8514
8514
|
* This is a workaround for a circular import issue.
|
|
8515
8515
|
* Calling `styled(PreviewCard)` at program load time triggered a build error with the commonjs bundle because it tried
|
|
@@ -8517,7 +8517,7 @@ declare const PreviewCard: react579.ForwardRefExoticComponent<Omit<CardProps & O
|
|
|
8517
8517
|
* The workaround is to colocate the styled component with the component itself.
|
|
8518
8518
|
* @internal
|
|
8519
8519
|
*/
|
|
8520
|
-
declare const ReferenceInputPreviewCard:
|
|
8520
|
+
declare const ReferenceInputPreviewCard: styled_components_dist_types0.IStyledComponentBase<"web", styled_components0.FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react.RefAttributes<HTMLDivElement>, never>> & string & Omit<react.ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
8521
8521
|
/**
|
|
8522
8522
|
* Portable text preview layout key
|
|
8523
8523
|
*
|
|
@@ -8604,7 +8604,7 @@ type CompactPreviewProps = Omit<PreviewProps<'compact'>, 'renderDefault'>;
|
|
|
8604
8604
|
/**
|
|
8605
8605
|
* @hidden
|
|
8606
8606
|
* @beta */
|
|
8607
|
-
declare function CompactPreview(props: CompactPreviewProps):
|
|
8607
|
+
declare function CompactPreview(props: CompactPreviewProps): react.JSX.Element;
|
|
8608
8608
|
/**
|
|
8609
8609
|
* @hidden
|
|
8610
8610
|
* @beta */
|
|
@@ -8625,7 +8625,7 @@ interface DefaultPreviewProps extends Omit<PreviewProps<'default'>, 'renderDefau
|
|
|
8625
8625
|
/**
|
|
8626
8626
|
* @hidden
|
|
8627
8627
|
* @beta */
|
|
8628
|
-
declare function DefaultPreview(props: DefaultPreviewProps):
|
|
8628
|
+
declare function DefaultPreview(props: DefaultPreviewProps): react.JSX.Element;
|
|
8629
8629
|
/**
|
|
8630
8630
|
* @hidden
|
|
8631
8631
|
* @beta */
|
|
@@ -8633,7 +8633,7 @@ type DetailPreviewProps = PreviewProps<'detail'>;
|
|
|
8633
8633
|
/**
|
|
8634
8634
|
* @hidden
|
|
8635
8635
|
* @beta */
|
|
8636
|
-
declare function DetailPreview(props: DetailPreviewProps):
|
|
8636
|
+
declare function DetailPreview(props: DetailPreviewProps): react.JSX.Element;
|
|
8637
8637
|
/**
|
|
8638
8638
|
* @hidden
|
|
8639
8639
|
* @beta */
|
|
@@ -8641,7 +8641,7 @@ type MediaPreviewProps = Omit<PreviewProps<'media'>, 'renderDefault'>;
|
|
|
8641
8641
|
/**
|
|
8642
8642
|
* @hidden
|
|
8643
8643
|
* @beta */
|
|
8644
|
-
declare function MediaPreview(props: MediaPreviewProps):
|
|
8644
|
+
declare function MediaPreview(props: MediaPreviewProps): react.JSX.Element;
|
|
8645
8645
|
/**
|
|
8646
8646
|
* @hidden
|
|
8647
8647
|
* @beta */
|
|
@@ -8649,11 +8649,11 @@ type BlockImagePreviewProps = Omit<PreviewProps<'blockImage'>, 'renderDefault'>;
|
|
|
8649
8649
|
/**
|
|
8650
8650
|
* @hidden
|
|
8651
8651
|
* @beta */
|
|
8652
|
-
declare function BlockImagePreview(props: BlockImagePreviewProps):
|
|
8652
|
+
declare function BlockImagePreview(props: BlockImagePreviewProps): react.JSX.Element;
|
|
8653
8653
|
/**
|
|
8654
8654
|
* @hidden
|
|
8655
8655
|
* @beta */
|
|
8656
|
-
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>):
|
|
8656
|
+
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>): react.JSX.Element;
|
|
8657
8657
|
/**
|
|
8658
8658
|
* @hidden
|
|
8659
8659
|
* @beta */
|
|
@@ -8661,7 +8661,7 @@ type InlinePreviewProps = Omit<PreviewProps<'inline'>, 'renderDefault'>;
|
|
|
8661
8661
|
/**
|
|
8662
8662
|
* @hidden
|
|
8663
8663
|
* @beta */
|
|
8664
|
-
declare function InlinePreview(props: InlinePreviewProps):
|
|
8664
|
+
declare function InlinePreview(props: InlinePreviewProps): react.JSX.Element;
|
|
8665
8665
|
interface MediaProps {
|
|
8666
8666
|
border?: boolean;
|
|
8667
8667
|
dimensions: PreviewMediaDimensions;
|
|
@@ -8692,19 +8692,19 @@ interface TemplatePreviewProps {
|
|
|
8692
8692
|
/**
|
|
8693
8693
|
* @hidden
|
|
8694
8694
|
* @beta */
|
|
8695
|
-
declare function TemplatePreview(props: TemplatePreviewProps):
|
|
8695
|
+
declare function TemplatePreview(props: TemplatePreviewProps): react.JSX.Element;
|
|
8696
8696
|
/**
|
|
8697
8697
|
* @hidden
|
|
8698
8698
|
* @beta */
|
|
8699
8699
|
declare function CircularProgress(props: {
|
|
8700
8700
|
/** Percentage */value: number;
|
|
8701
|
-
}):
|
|
8701
|
+
}): react.JSX.Element;
|
|
8702
8702
|
/**
|
|
8703
8703
|
* @hidden
|
|
8704
8704
|
* @beta */
|
|
8705
8705
|
declare function LinearProgress(props: {
|
|
8706
8706
|
/** Percentage */value: number;
|
|
8707
|
-
}):
|
|
8707
|
+
}): react.JSX.Element;
|
|
8708
8708
|
/**
|
|
8709
8709
|
* @internal
|
|
8710
8710
|
*/
|
|
@@ -8717,7 +8717,7 @@ interface RelativeTimeProps extends RelativeTimeOptions {
|
|
|
8717
8717
|
declare function RelativeTime({
|
|
8718
8718
|
time,
|
|
8719
8719
|
...options
|
|
8720
|
-
}: RelativeTimeProps):
|
|
8720
|
+
}: RelativeTimeProps): react.JSX.Element;
|
|
8721
8721
|
interface ResizableProps {
|
|
8722
8722
|
minWidth: number;
|
|
8723
8723
|
maxWidth: number;
|
|
@@ -8728,7 +8728,7 @@ interface ResizableProps {
|
|
|
8728
8728
|
* @internal
|
|
8729
8729
|
* Provides a resizable container with a resizer handle.
|
|
8730
8730
|
*/
|
|
8731
|
-
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
8731
|
+
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): react.JSX.Element;
|
|
8732
8732
|
/**
|
|
8733
8733
|
* @hidden
|
|
8734
8734
|
* @beta */
|
|
@@ -8784,18 +8784,18 @@ type StatusButtonProps = ButtonProps$1 & {
|
|
|
8784
8784
|
'iconRight'?: undefined;
|
|
8785
8785
|
};
|
|
8786
8786
|
/** @hidden @beta */
|
|
8787
|
-
declare const StatusButton:
|
|
8787
|
+
declare const StatusButton: react.ForwardRefExoticComponent<(StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, "disabled" | "ref" | "size" | "title">) & react.RefAttributes<HTMLButtonElement>>;
|
|
8788
8788
|
/** @internal */
|
|
8789
8789
|
interface TextWithToneProps extends ComponentProps<typeof Text> {
|
|
8790
8790
|
tone: ButtonTone;
|
|
8791
8791
|
dimmed?: boolean;
|
|
8792
8792
|
}
|
|
8793
8793
|
/** @internal */
|
|
8794
|
-
declare const TextWithTone:
|
|
8794
|
+
declare const TextWithTone: react.ForwardRefExoticComponent<Omit<TextWithToneProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
8795
8795
|
/** @internal */
|
|
8796
|
-
declare const TooltipOfDisabled:
|
|
8796
|
+
declare const TooltipOfDisabled: react.ForwardRefExoticComponent<Omit<_sanity_ui0.TooltipProps, "arrow" | "padding" | "shadow"> & {
|
|
8797
8797
|
hotkeys?: string[] | undefined;
|
|
8798
|
-
} &
|
|
8798
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
8799
8799
|
/** @internal */
|
|
8800
8800
|
interface ToastParams$1 {
|
|
8801
8801
|
closable?: boolean;
|
|
@@ -8809,7 +8809,7 @@ interface ToastParams$1 {
|
|
|
8809
8809
|
* @internal
|
|
8810
8810
|
* @deprecated -- Refactor the component so it can call `useToast` instead
|
|
8811
8811
|
*/
|
|
8812
|
-
declare const ImperativeToast:
|
|
8812
|
+
declare const ImperativeToast: react.ForwardRefExoticComponent<react.RefAttributes<unknown>>;
|
|
8813
8813
|
/**
|
|
8814
8814
|
* TODO: Rename to `ZOffsetsContextValue`
|
|
8815
8815
|
*
|
|
@@ -8863,7 +8863,7 @@ declare function LegacyLayerProvider({
|
|
|
8863
8863
|
}: {
|
|
8864
8864
|
children: ReactNode;
|
|
8865
8865
|
zOffset: ZIndexContextValueKey;
|
|
8866
|
-
}):
|
|
8866
|
+
}): react.JSX.Element;
|
|
8867
8867
|
interface AvatarSkeletonProps {
|
|
8868
8868
|
$size?: AvatarSize;
|
|
8869
8869
|
}
|
|
@@ -8871,7 +8871,7 @@ interface AvatarSkeletonProps {
|
|
|
8871
8871
|
* A loading skeleton element representing a user avatar
|
|
8872
8872
|
* @beta
|
|
8873
8873
|
*/
|
|
8874
|
-
declare const AvatarSkeleton:
|
|
8874
|
+
declare const AvatarSkeleton: styled_components_dist_types0.IStyledComponentBase<"web", styled_components_dist_types0.Substitute<Omit<_sanity_ui0.SkeletonProps & react.HTMLProps<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, AvatarSkeletonProps>> & string & Omit<react.ForwardRefExoticComponent<Omit<_sanity_ui0.SkeletonProps & react.HTMLProps<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
8875
8875
|
/**
|
|
8876
8876
|
* @hidden
|
|
8877
8877
|
* @beta */
|
|
@@ -8888,7 +8888,7 @@ interface UserAvatarProps {
|
|
|
8888
8888
|
/**
|
|
8889
8889
|
* @hidden
|
|
8890
8890
|
* @beta */
|
|
8891
|
-
declare function UserAvatar(props: UserAvatarProps):
|
|
8891
|
+
declare function UserAvatar(props: UserAvatarProps): react.JSX.Element;
|
|
8892
8892
|
/**
|
|
8893
8893
|
* @internal
|
|
8894
8894
|
* @deprecated - Will be removed in 4.0.0, use the `useReferringDocuments(<documentId>)` hook instead
|
|
@@ -8906,7 +8906,7 @@ declare function WithReferringDocuments({
|
|
|
8906
8906
|
*/
|
|
8907
8907
|
documentStore?: DocumentStore;
|
|
8908
8908
|
id: string;
|
|
8909
|
-
}):
|
|
8909
|
+
}): react.JSX.Element;
|
|
8910
8910
|
/**
|
|
8911
8911
|
* TODO: Rename to `useZOffsets`
|
|
8912
8912
|
*
|
|
@@ -9574,7 +9574,7 @@ interface FormCallbacksValue {
|
|
|
9574
9574
|
onFieldGroupSelect: (path: Path, fieldGroupName: string) => void;
|
|
9575
9575
|
}
|
|
9576
9576
|
/** @internal */
|
|
9577
|
-
declare const FormCallbacksProvider:
|
|
9577
|
+
declare const FormCallbacksProvider: react.NamedExoticComponent<FormCallbacksValue & {
|
|
9578
9578
|
children: ReactNode;
|
|
9579
9579
|
}>;
|
|
9580
9580
|
/** @internal */
|
|
@@ -9638,7 +9638,7 @@ declare function useReferenceInputOptions(): ReferenceInputOptions;
|
|
|
9638
9638
|
*/
|
|
9639
9639
|
declare function ReferenceInputOptionsProvider(props: ReferenceInputOptions & {
|
|
9640
9640
|
children: ReactNode;
|
|
9641
|
-
}):
|
|
9641
|
+
}): react.JSX.Element;
|
|
9642
9642
|
/** @internal */
|
|
9643
9643
|
declare const defaultRenderAnnotation: RenderAnnotationCallback;
|
|
9644
9644
|
/** @internal */
|
|
@@ -9687,7 +9687,7 @@ interface FormBuilderProps extends Omit<ObjectFormNode, 'level' | 'path' | 'pres
|
|
|
9687
9687
|
/**
|
|
9688
9688
|
* @alpha
|
|
9689
9689
|
*/
|
|
9690
|
-
declare function FormBuilder(props: FormBuilderProps):
|
|
9690
|
+
declare function FormBuilder(props: FormBuilderProps): react.JSX.Element;
|
|
9691
9691
|
/**
|
|
9692
9692
|
* @alpha This API might change.
|
|
9693
9693
|
*/
|
|
@@ -9722,7 +9722,7 @@ interface FormProviderProps {
|
|
|
9722
9722
|
*
|
|
9723
9723
|
* @alpha This API might change.
|
|
9724
9724
|
*/
|
|
9725
|
-
declare function FormProvider(props: FormProviderProps):
|
|
9725
|
+
declare function FormProvider(props: FormProviderProps): react.JSX.Element;
|
|
9726
9726
|
/**
|
|
9727
9727
|
*
|
|
9728
9728
|
* @hidden
|
|
@@ -9734,7 +9734,7 @@ type StudioCrossDatasetReferenceInputProps = ObjectInputProps<CrossDatasetRefere
|
|
|
9734
9734
|
* @hidden
|
|
9735
9735
|
* @beta
|
|
9736
9736
|
*/
|
|
9737
|
-
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps):
|
|
9737
|
+
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps): react.JSX.Element;
|
|
9738
9738
|
/**
|
|
9739
9739
|
*
|
|
9740
9740
|
* @hidden
|
|
@@ -9746,7 +9746,7 @@ type StudioReferenceInputProps = ObjectInputProps<Reference, ReferenceSchemaType
|
|
|
9746
9746
|
* @hidden
|
|
9747
9747
|
* @beta
|
|
9748
9748
|
*/
|
|
9749
|
-
declare function StudioReferenceInput(props: StudioReferenceInputProps):
|
|
9749
|
+
declare function StudioReferenceInput(props: StudioReferenceInputProps): react.JSX.Element;
|
|
9750
9750
|
/**
|
|
9751
9751
|
*
|
|
9752
9752
|
* @hidden
|
|
@@ -9842,7 +9842,7 @@ type FileInputProps = Omit<BaseFileInputProps, 'assetSources' | 'directUploads'
|
|
|
9842
9842
|
/**
|
|
9843
9843
|
* @hidden
|
|
9844
9844
|
* @beta */
|
|
9845
|
-
declare function StudioFileInput(props: FileInputProps):
|
|
9845
|
+
declare function StudioFileInput(props: FileInputProps): react.JSX.Element;
|
|
9846
9846
|
/**
|
|
9847
9847
|
* @hidden
|
|
9848
9848
|
* @beta
|
|
@@ -9870,7 +9870,7 @@ type ImageInputProps = Omit<BaseImageInputProps, 'assetSources' | 'directUploads
|
|
|
9870
9870
|
/**
|
|
9871
9871
|
* @hidden
|
|
9872
9872
|
* @beta */
|
|
9873
|
-
declare function StudioImageInput(props: ImageInputProps):
|
|
9873
|
+
declare function StudioImageInput(props: ImageInputProps): react.JSX.Element;
|
|
9874
9874
|
/**
|
|
9875
9875
|
* @internal
|
|
9876
9876
|
*/
|
|
@@ -11892,7 +11892,7 @@ declare module '@sanity/types' {
|
|
|
11892
11892
|
*/
|
|
11893
11893
|
declare function Preview(props: RenderPreviewCallbackProps & {
|
|
11894
11894
|
perspectiveStack?: PerspectiveStack;
|
|
11895
|
-
}):
|
|
11895
|
+
}): react.JSX.Element;
|
|
11896
11896
|
/**
|
|
11897
11897
|
* This component is responsible for converting renderPreview() calls into an element.
|
|
11898
11898
|
* It:
|
|
@@ -11915,7 +11915,7 @@ interface SanityDefaultPreviewProps extends Omit<PreviewProps, 'renderDefault'>
|
|
|
11915
11915
|
* Used in cases where no custom preview component is provided
|
|
11916
11916
|
* @internal
|
|
11917
11917
|
* */
|
|
11918
|
-
declare const SanityDefaultPreview:
|
|
11918
|
+
declare const SanityDefaultPreview: react.NamedExoticComponent<SanityDefaultPreviewProps>;
|
|
11919
11919
|
/**
|
|
11920
11920
|
* @internal
|
|
11921
11921
|
* @beta
|
|
@@ -12009,9 +12009,9 @@ declare function getPreviewValueWithFallback({
|
|
|
12009
12009
|
original,
|
|
12010
12010
|
fallback
|
|
12011
12011
|
}: Sources): Partial<SanityDocument> | PreviewValue | {
|
|
12012
|
-
title:
|
|
12013
|
-
subtitle:
|
|
12014
|
-
media: () =>
|
|
12012
|
+
title: react.JSX.Element;
|
|
12013
|
+
subtitle: react.JSX.Element;
|
|
12014
|
+
media: () => react.JSX.Element;
|
|
12015
12015
|
};
|
|
12016
12016
|
/** @internal */
|
|
12017
12017
|
declare function prepareForPreview(rawValue: unknown, type: PreviewableType, viewOptions?: PrepareViewOptions): PreviewValue & {
|
|
@@ -13155,7 +13155,7 @@ interface ResourceCacheProviderProps {
|
|
|
13155
13155
|
/** @internal */
|
|
13156
13156
|
declare function ResourceCacheProvider({
|
|
13157
13157
|
children
|
|
13158
|
-
}: ResourceCacheProviderProps):
|
|
13158
|
+
}: ResourceCacheProviderProps): react.JSX.Element;
|
|
13159
13159
|
/** @internal */
|
|
13160
13160
|
declare function useResourceCache(): ResourceCache;
|
|
13161
13161
|
/** @internal */
|
|
@@ -13182,7 +13182,7 @@ interface DocumentPreviewPresenceProps {
|
|
|
13182
13182
|
presence: Omit<DocumentPresence, 'path'>[];
|
|
13183
13183
|
}
|
|
13184
13184
|
/** @internal */
|
|
13185
|
-
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps):
|
|
13185
|
+
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps): react.JSX.Element;
|
|
13186
13186
|
/** @internal */
|
|
13187
13187
|
type Position = 'top' | 'bottom' | 'inside' | null;
|
|
13188
13188
|
/** @internal */
|
|
@@ -13242,14 +13242,14 @@ interface FieldPresenceInnerProps {
|
|
|
13242
13242
|
animateArrowFrom?: AvatarPosition;
|
|
13243
13243
|
}
|
|
13244
13244
|
/** @internal */
|
|
13245
|
-
declare const FieldPresenceInner:
|
|
13245
|
+
declare const FieldPresenceInner: react.NamedExoticComponent<FieldPresenceInnerProps>;
|
|
13246
13246
|
/** @internal */
|
|
13247
13247
|
interface FieldPresenceProps {
|
|
13248
13248
|
presence: FormNodePresence[];
|
|
13249
13249
|
maxAvatars: number;
|
|
13250
13250
|
}
|
|
13251
13251
|
/** @internal */
|
|
13252
|
-
declare function FieldPresence(props: FieldPresenceProps):
|
|
13252
|
+
declare function FieldPresence(props: FieldPresenceProps): react.JSX.Element;
|
|
13253
13253
|
/**
|
|
13254
13254
|
* @internal
|
|
13255
13255
|
* @hidden
|
|
@@ -13265,7 +13265,7 @@ interface PresenceOverlayProps {
|
|
|
13265
13265
|
declare function PresenceOverlay({
|
|
13266
13266
|
children,
|
|
13267
13267
|
margins
|
|
13268
|
-
}: PresenceOverlayProps):
|
|
13268
|
+
}: PresenceOverlayProps): react.JSX.Element;
|
|
13269
13269
|
/** @internal */
|
|
13270
13270
|
interface PresenceScopeProps {
|
|
13271
13271
|
readOnly?: boolean;
|
|
@@ -13273,7 +13273,7 @@ interface PresenceScopeProps {
|
|
|
13273
13273
|
children: ReactNode;
|
|
13274
13274
|
}
|
|
13275
13275
|
/** @internal */
|
|
13276
|
-
declare function PresenceScope(props: PresenceScopeProps):
|
|
13276
|
+
declare function PresenceScope(props: PresenceScopeProps): react.JSX.Element;
|
|
13277
13277
|
/** @internal */
|
|
13278
13278
|
interface FormFieldProps {
|
|
13279
13279
|
/**
|
|
@@ -13308,7 +13308,7 @@ interface FormFieldProps {
|
|
|
13308
13308
|
deprecated?: DeprecatedProperty;
|
|
13309
13309
|
}
|
|
13310
13310
|
/** @internal */
|
|
13311
|
-
declare const FormField:
|
|
13311
|
+
declare const FormField: react.NamedExoticComponent<FormFieldProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref">>;
|
|
13312
13312
|
/** @internal */
|
|
13313
13313
|
interface FormFieldHeaderTextProps {
|
|
13314
13314
|
/**
|
|
@@ -13330,7 +13330,7 @@ interface FormFieldHeaderTextProps {
|
|
|
13330
13330
|
suffix?: ReactNode;
|
|
13331
13331
|
}
|
|
13332
13332
|
/** @internal */
|
|
13333
|
-
declare const FormFieldHeaderText:
|
|
13333
|
+
declare const FormFieldHeaderText: react.NamedExoticComponent<FormFieldHeaderTextProps>;
|
|
13334
13334
|
/** @internal */
|
|
13335
13335
|
interface FormFieldSetProps {
|
|
13336
13336
|
/**
|
|
@@ -13369,7 +13369,7 @@ interface FormFieldSetProps {
|
|
|
13369
13369
|
deprecated?: DeprecatedProperty;
|
|
13370
13370
|
}
|
|
13371
13371
|
/** @internal */
|
|
13372
|
-
declare const FormFieldSet:
|
|
13372
|
+
declare const FormFieldSet: react.ForwardRefExoticComponent<FormFieldSetProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
13373
13373
|
/** @internal */
|
|
13374
13374
|
interface FieldStatusProps {
|
|
13375
13375
|
children?: ReactNode;
|
|
@@ -13381,7 +13381,7 @@ declare function FormFieldStatus({
|
|
|
13381
13381
|
children,
|
|
13382
13382
|
maxAvatars,
|
|
13383
13383
|
position
|
|
13384
|
-
}: FieldStatusProps):
|
|
13384
|
+
}: FieldStatusProps): react.JSX.Element;
|
|
13385
13385
|
/** @internal */
|
|
13386
13386
|
interface FormFieldValidationStatusProps {
|
|
13387
13387
|
/**
|
|
@@ -13400,7 +13400,7 @@ interface FormFieldValidationStatusProps {
|
|
|
13400
13400
|
placement?: Placement;
|
|
13401
13401
|
}
|
|
13402
13402
|
/** @internal */
|
|
13403
|
-
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps):
|
|
13403
|
+
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps): react.JSX.Element;
|
|
13404
13404
|
/** @internal */
|
|
13405
13405
|
interface FormFieldValidationWarning {
|
|
13406
13406
|
type: 'warning';
|
|
@@ -13427,9 +13427,9 @@ type FormInputRelativePathArg = {
|
|
|
13427
13427
|
relativePath: Path;
|
|
13428
13428
|
};
|
|
13429
13429
|
/** @internal */
|
|
13430
|
-
declare const FormInput:
|
|
13430
|
+
declare const FormInput: react.NamedExoticComponent<(ArrayOfObjectsInputProps<{
|
|
13431
13431
|
_key: string;
|
|
13432
|
-
},
|
|
13432
|
+
}, _sanity_types0.ArraySchemaType<unknown>> | ObjectInputProps<Record<string, any>, _sanity_types0.ObjectSchemaType>) & ((FormInputAbsolutePathArg | FormInputRelativePathArg) & {
|
|
13433
13433
|
/**
|
|
13434
13434
|
* Whether to include the field around the input. Defaults to false
|
|
13435
13435
|
*/
|
|
@@ -13451,7 +13451,7 @@ interface FormValueContextValue {
|
|
|
13451
13451
|
declare function FormValueProvider(props: {
|
|
13452
13452
|
value: FormDocumentValue | undefined;
|
|
13453
13453
|
children: ReactNode;
|
|
13454
|
-
}):
|
|
13454
|
+
}): react.JSX.Element;
|
|
13455
13455
|
/**
|
|
13456
13456
|
* React hook that returns the value of the field specified by a path.
|
|
13457
13457
|
* @public
|
|
@@ -13477,7 +13477,7 @@ declare function useFormValue(path: Path): unknown;
|
|
|
13477
13477
|
declare function GetFormValueProvider(props: {
|
|
13478
13478
|
value: FormDocumentValue | undefined;
|
|
13479
13479
|
children: ReactNode;
|
|
13480
|
-
}):
|
|
13480
|
+
}): react.JSX.Element;
|
|
13481
13481
|
declare namespace GetFormValueProvider {
|
|
13482
13482
|
var displayName: string;
|
|
13483
13483
|
}
|
|
@@ -13502,14 +13502,14 @@ declare namespace GetFormValueProvider {
|
|
|
13502
13502
|
* }
|
|
13503
13503
|
* ```
|
|
13504
13504
|
*/
|
|
13505
|
-
declare function useGetFormValue():
|
|
13505
|
+
declare function useGetFormValue(): sanity__singletons0.GetFormValueContextValue;
|
|
13506
13506
|
/** @internal */
|
|
13507
13507
|
interface FieldActionMenuProps {
|
|
13508
13508
|
nodes: DocumentFieldActionNode[];
|
|
13509
13509
|
onMenuOpenChange: (open: boolean) => void;
|
|
13510
13510
|
}
|
|
13511
13511
|
/** @internal */
|
|
13512
|
-
declare const FieldActionMenu:
|
|
13512
|
+
declare const FieldActionMenu: react.NamedExoticComponent<FieldActionMenuProps>;
|
|
13513
13513
|
type FieldActionsProviderProps = PropsWithChildren<{
|
|
13514
13514
|
actions: DocumentFieldActionNode[]; /** @internal @deprecated DO NOT USE */
|
|
13515
13515
|
__internal_comments?: FieldCommentsProps;
|
|
@@ -13518,7 +13518,7 @@ type FieldActionsProviderProps = PropsWithChildren<{
|
|
|
13518
13518
|
path: Path;
|
|
13519
13519
|
}>;
|
|
13520
13520
|
/** @internal */
|
|
13521
|
-
declare const FieldActionsProvider:
|
|
13521
|
+
declare const FieldActionsProvider: react.NamedExoticComponent<FieldActionsProviderProps>;
|
|
13522
13522
|
/** @internal */
|
|
13523
13523
|
interface FieldActionsProps {
|
|
13524
13524
|
actions: DocumentFieldAction[];
|
|
@@ -13547,12 +13547,12 @@ interface FieldActionsProps {
|
|
|
13547
13547
|
*
|
|
13548
13548
|
* @internal
|
|
13549
13549
|
*/
|
|
13550
|
-
declare const FieldActionsResolver:
|
|
13550
|
+
declare const FieldActionsResolver: react.NamedExoticComponent<FieldActionsProps>;
|
|
13551
13551
|
/** @internal */
|
|
13552
13552
|
declare function useFieldActions(): FieldActionsContextValue;
|
|
13553
13553
|
/** @internal */
|
|
13554
|
-
declare const HoveredFieldProvider:
|
|
13555
|
-
children?:
|
|
13554
|
+
declare const HoveredFieldProvider: react.NamedExoticComponent<{
|
|
13555
|
+
children?: react.ReactNode;
|
|
13556
13556
|
}>;
|
|
13557
13557
|
/** @internal */
|
|
13558
13558
|
declare function useHoveredField(): HoveredFieldContextValue;
|
|
@@ -13623,13 +13623,13 @@ didUpdate: (previous: T | undefined, current: T) => void, compare?: (previous: T
|
|
|
13623
13623
|
/**
|
|
13624
13624
|
* @hidden
|
|
13625
13625
|
* @beta */
|
|
13626
|
-
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>):
|
|
13626
|
+
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>): react.JSX.Element | null;
|
|
13627
13627
|
/**
|
|
13628
13628
|
*
|
|
13629
13629
|
* @hidden
|
|
13630
13630
|
* @beta
|
|
13631
13631
|
*/
|
|
13632
|
-
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps):
|
|
13632
|
+
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps): react.JSX.Element;
|
|
13633
13633
|
/**
|
|
13634
13634
|
* @internal
|
|
13635
13635
|
*/
|
|
@@ -13657,7 +13657,7 @@ interface VirtualizerScrollInstanceProviderProps extends VirtualizerScrollInstan
|
|
|
13657
13657
|
*
|
|
13658
13658
|
* @internal
|
|
13659
13659
|
*/
|
|
13660
|
-
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps):
|
|
13660
|
+
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps): react.JSX.Element;
|
|
13661
13661
|
/**
|
|
13662
13662
|
* @hidden
|
|
13663
13663
|
* Array of predefined object options input
|
|
@@ -13667,13 +13667,13 @@ declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInsta
|
|
|
13667
13667
|
* @hidden
|
|
13668
13668
|
* @beta
|
|
13669
13669
|
*/
|
|
13670
|
-
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps):
|
|
13670
|
+
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps): react.JSX.Element;
|
|
13671
13671
|
/**
|
|
13672
13672
|
*
|
|
13673
13673
|
* @hidden
|
|
13674
13674
|
* @beta
|
|
13675
13675
|
*/
|
|
13676
|
-
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13676
|
+
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react.JSX.Element;
|
|
13677
13677
|
/**
|
|
13678
13678
|
* Array of predefined primitive options input
|
|
13679
13679
|
* Note: this input can only handle primitive values
|
|
@@ -13682,11 +13682,11 @@ declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPr
|
|
|
13682
13682
|
* @hidden
|
|
13683
13683
|
* @beta
|
|
13684
13684
|
*/
|
|
13685
|
-
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps):
|
|
13685
|
+
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps): react.JSX.Element;
|
|
13686
13686
|
/**
|
|
13687
13687
|
* @hidden
|
|
13688
13688
|
* @beta */
|
|
13689
|
-
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>):
|
|
13689
|
+
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>): react.JSX.Element | null;
|
|
13690
13690
|
type PrimitiveValue = string | number | boolean;
|
|
13691
13691
|
interface State {
|
|
13692
13692
|
disableTransition: boolean;
|
|
@@ -13710,7 +13710,7 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13710
13710
|
handleItemMoveEnd: () => void;
|
|
13711
13711
|
focus(): void;
|
|
13712
13712
|
getSnapshotBeforeUpdate(prevProps: ArrayOfPrimitivesInputProps): {
|
|
13713
|
-
prevFocusedIndex:
|
|
13713
|
+
prevFocusedIndex: _sanity_types0.PathSegment;
|
|
13714
13714
|
restoreSelection: {
|
|
13715
13715
|
text: string;
|
|
13716
13716
|
start: number | null;
|
|
@@ -13728,8 +13728,8 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13728
13728
|
};
|
|
13729
13729
|
prevFocusedIndex: number;
|
|
13730
13730
|
}): void;
|
|
13731
|
-
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) =>
|
|
13732
|
-
render():
|
|
13731
|
+
renderArrayItem: (props: Omit<PrimitiveItemProps, "renderDefault">) => react.JSX.Element;
|
|
13732
|
+
render(): react.JSX.Element;
|
|
13733
13733
|
}
|
|
13734
13734
|
/**
|
|
13735
13735
|
* Universal array input that will introspect its schemaType and delegate to the right implementation
|
|
@@ -13739,13 +13739,13 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
13739
13739
|
* @hidden
|
|
13740
13740
|
* @beta
|
|
13741
13741
|
*/
|
|
13742
|
-
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
13742
|
+
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): react.JSX.Element;
|
|
13743
13743
|
/**
|
|
13744
13744
|
*
|
|
13745
13745
|
* @hidden
|
|
13746
13746
|
* @beta
|
|
13747
13747
|
*/
|
|
13748
|
-
declare function BooleanInput(props: BooleanInputProps):
|
|
13748
|
+
declare function BooleanInput(props: BooleanInputProps): react.JSX.Element;
|
|
13749
13749
|
/**
|
|
13750
13750
|
* Used to preview a referenced type
|
|
13751
13751
|
* Takes the reference type as props
|
|
@@ -13764,7 +13764,7 @@ declare function CrossDatasetReferencePreview(props: {
|
|
|
13764
13764
|
projectId: string;
|
|
13765
13765
|
refType?: CrossDatasetType;
|
|
13766
13766
|
showTypeLabel: boolean;
|
|
13767
|
-
}):
|
|
13767
|
+
}): react.JSX.Element;
|
|
13768
13768
|
/**
|
|
13769
13769
|
* @hidden
|
|
13770
13770
|
* @beta */
|
|
@@ -13772,7 +13772,7 @@ type DateInputProps = StringInputProps;
|
|
|
13772
13772
|
/**
|
|
13773
13773
|
* @hidden
|
|
13774
13774
|
* @beta */
|
|
13775
|
-
declare function DateInput(props: DateInputProps):
|
|
13775
|
+
declare function DateInput(props: DateInputProps): react.JSX.Element;
|
|
13776
13776
|
/**
|
|
13777
13777
|
* @hidden
|
|
13778
13778
|
* @beta */
|
|
@@ -13780,7 +13780,7 @@ type DateTimeInputProps = StringInputProps;
|
|
|
13780
13780
|
/**
|
|
13781
13781
|
* @hidden
|
|
13782
13782
|
* @beta */
|
|
13783
|
-
declare function DateTimeInput(props: DateTimeInputProps):
|
|
13783
|
+
declare function DateTimeInput(props: DateTimeInputProps): react.JSX.Element;
|
|
13784
13784
|
interface CalendarLabels {
|
|
13785
13785
|
ariaLabel: string;
|
|
13786
13786
|
goToTomorrow: string;
|
|
@@ -13814,7 +13814,7 @@ type EmailInputProps = StringInputProps;
|
|
|
13814
13814
|
* @hidden
|
|
13815
13815
|
* @beta
|
|
13816
13816
|
*/
|
|
13817
|
-
declare function EmailInput(props: EmailInputProps):
|
|
13817
|
+
declare function EmailInput(props: EmailInputProps): react.JSX.Element;
|
|
13818
13818
|
/**
|
|
13819
13819
|
* @hidden
|
|
13820
13820
|
* @beta
|
|
@@ -13825,11 +13825,11 @@ type AssetAccessPolicy = 'checking' | 'private' | 'public' | 'unknown';
|
|
|
13825
13825
|
* @hidden
|
|
13826
13826
|
* @beta
|
|
13827
13827
|
*/
|
|
13828
|
-
declare function NumberInput(props: NumberInputProps):
|
|
13828
|
+
declare function NumberInput(props: NumberInputProps): react.JSX.Element;
|
|
13829
13829
|
/**
|
|
13830
13830
|
* @hidden
|
|
13831
13831
|
* @beta */
|
|
13832
|
-
declare const ObjectInput:
|
|
13832
|
+
declare const ObjectInput: react.NamedExoticComponent<ObjectInputProps<Record<string, any>, _sanity_types0.ObjectSchemaType>>;
|
|
13833
13833
|
/** @internal */
|
|
13834
13834
|
interface PortableTextMemberItem {
|
|
13835
13835
|
kind: 'annotation' | 'textBlock' | 'objectBlock' | 'inlineObject';
|
|
@@ -13890,24 +13890,24 @@ interface Props extends Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'widt
|
|
|
13890
13890
|
/**
|
|
13891
13891
|
* @internal
|
|
13892
13892
|
*/
|
|
13893
|
-
declare function CreateButton(props: Props):
|
|
13893
|
+
declare function CreateButton(props: Props): react.JSX.Element;
|
|
13894
13894
|
/**
|
|
13895
13895
|
* @internal
|
|
13896
13896
|
*/
|
|
13897
|
-
declare const ReferenceAutocomplete:
|
|
13897
|
+
declare const ReferenceAutocomplete: react.ForwardRefExoticComponent<Omit<_sanity_ui0.AutocompleteProps<_sanity_ui0.BaseAutocompleteOption> & Omit<react.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"> & {
|
|
13898
13898
|
ref?: Ref<HTMLInputElement> | undefined;
|
|
13899
13899
|
} & {
|
|
13900
13900
|
path: Path;
|
|
13901
13901
|
referenceElement: HTMLDivElement | null;
|
|
13902
13902
|
searchString?: string | undefined;
|
|
13903
13903
|
portalRef?: RefObject<HTMLDivElement | null> | undefined;
|
|
13904
|
-
}, "ref"> &
|
|
13904
|
+
}, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
13905
13905
|
/**
|
|
13906
13906
|
*
|
|
13907
13907
|
* @hidden
|
|
13908
13908
|
* @beta
|
|
13909
13909
|
*/
|
|
13910
|
-
declare function SelectInput(props: StringInputProps):
|
|
13910
|
+
declare function SelectInput(props: StringInputProps): react.JSX.Element;
|
|
13911
13911
|
/**
|
|
13912
13912
|
*
|
|
13913
13913
|
* @hidden
|
|
@@ -13919,12 +13919,12 @@ type SlugInputProps = ObjectInputProps<SlugValue, SlugSchemaType>;
|
|
|
13919
13919
|
* @hidden
|
|
13920
13920
|
* @beta
|
|
13921
13921
|
*/
|
|
13922
|
-
declare function SlugInput(props: SlugInputProps):
|
|
13922
|
+
declare function SlugInput(props: SlugInputProps): react.JSX.Element;
|
|
13923
13923
|
/**
|
|
13924
13924
|
* @hidden
|
|
13925
13925
|
* @beta
|
|
13926
13926
|
*/
|
|
13927
|
-
declare function StringInput(props: StringInputProps):
|
|
13927
|
+
declare function StringInput(props: StringInputProps): react.JSX.Element;
|
|
13928
13928
|
/**
|
|
13929
13929
|
*
|
|
13930
13930
|
* @hidden
|
|
@@ -13936,7 +13936,7 @@ type TagsArrayInputProps = ArrayOfPrimitivesInputProps<string>;
|
|
|
13936
13936
|
* @hidden
|
|
13937
13937
|
* @beta
|
|
13938
13938
|
*/
|
|
13939
|
-
declare function TagsArrayInput(props: TagsArrayInputProps):
|
|
13939
|
+
declare function TagsArrayInput(props: TagsArrayInputProps): react.JSX.Element;
|
|
13940
13940
|
/**
|
|
13941
13941
|
*
|
|
13942
13942
|
* @hidden
|
|
@@ -13948,7 +13948,7 @@ type TelephoneInputProps = StringInputProps;
|
|
|
13948
13948
|
* @hidden
|
|
13949
13949
|
* @beta
|
|
13950
13950
|
*/
|
|
13951
|
-
declare function TelephoneInput(props: TelephoneInputProps):
|
|
13951
|
+
declare function TelephoneInput(props: TelephoneInputProps): react.JSX.Element;
|
|
13952
13952
|
/**
|
|
13953
13953
|
*
|
|
13954
13954
|
* @hidden
|
|
@@ -13960,7 +13960,7 @@ type TextInputProps = StringInputProps<TextSchemaType>;
|
|
|
13960
13960
|
* @hidden
|
|
13961
13961
|
* @beta
|
|
13962
13962
|
*/
|
|
13963
|
-
declare function TextInput(props: TextInputProps):
|
|
13963
|
+
declare function TextInput(props: TextInputProps): react.JSX.Element;
|
|
13964
13964
|
/**
|
|
13965
13965
|
*
|
|
13966
13966
|
* @hidden
|
|
@@ -13972,7 +13972,7 @@ type UrlInputProps = StringInputProps;
|
|
|
13972
13972
|
* @hidden
|
|
13973
13973
|
* @beta
|
|
13974
13974
|
*/
|
|
13975
|
-
declare function UrlInput(props: UrlInputProps):
|
|
13975
|
+
declare function UrlInput(props: UrlInputProps): react.JSX.Element;
|
|
13976
13976
|
/** @internal */
|
|
13977
13977
|
interface ArrayOfObjectsMemberProps {
|
|
13978
13978
|
member: ArrayOfObjectsMember;
|
|
@@ -13988,7 +13988,7 @@ interface ArrayOfObjectsMemberProps {
|
|
|
13988
13988
|
* Convenience component for rendering an "array of objects"-item
|
|
13989
13989
|
* @internal
|
|
13990
13990
|
*/
|
|
13991
|
-
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps):
|
|
13991
|
+
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps): react.JSX.Element | null;
|
|
13992
13992
|
/** @internal */
|
|
13993
13993
|
interface ArrayOfObjectsInputMembersProps {
|
|
13994
13994
|
members: ArrayOfObjectsMember[];
|
|
@@ -14004,7 +14004,7 @@ interface ArrayOfObjectsInputMembersProps {
|
|
|
14004
14004
|
* Convenience component for wrapping an array of objects
|
|
14005
14005
|
* @internal
|
|
14006
14006
|
*/
|
|
14007
|
-
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps):
|
|
14007
|
+
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps): react.JSX.Element;
|
|
14008
14008
|
/**
|
|
14009
14009
|
*
|
|
14010
14010
|
* @hidden
|
|
@@ -14025,7 +14025,7 @@ interface MemberItemProps {
|
|
|
14025
14025
|
* @hidden
|
|
14026
14026
|
* @beta
|
|
14027
14027
|
*/
|
|
14028
|
-
declare function ArrayOfObjectsItem(props: MemberItemProps):
|
|
14028
|
+
declare function ArrayOfObjectsItem(props: MemberItemProps): react.JSX.Element;
|
|
14029
14029
|
/**
|
|
14030
14030
|
*
|
|
14031
14031
|
* @hidden
|
|
@@ -14041,11 +14041,11 @@ interface PrimitiveMemberItemProps {
|
|
|
14041
14041
|
* @hidden
|
|
14042
14042
|
* @beta
|
|
14043
14043
|
*/
|
|
14044
|
-
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps):
|
|
14044
|
+
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps): react.JSX.Element;
|
|
14045
14045
|
/** @internal */
|
|
14046
14046
|
declare function MemberItemError(props: {
|
|
14047
14047
|
member: ArrayItemError;
|
|
14048
|
-
}):
|
|
14048
|
+
}): react.JSX.Element;
|
|
14049
14049
|
/** @internal */
|
|
14050
14050
|
interface MemberFieldProps {
|
|
14051
14051
|
member: FieldMember;
|
|
@@ -14058,13 +14058,13 @@ interface MemberFieldProps {
|
|
|
14058
14058
|
renderPreview: RenderPreviewCallback;
|
|
14059
14059
|
}
|
|
14060
14060
|
/** @internal */
|
|
14061
|
-
declare const MemberField:
|
|
14061
|
+
declare const MemberField: react.NamedExoticComponent<MemberFieldProps>;
|
|
14062
14062
|
/** @internal */
|
|
14063
14063
|
declare function MemberFieldError(props: {
|
|
14064
14064
|
member: FieldError;
|
|
14065
|
-
}):
|
|
14065
|
+
}): react.JSX.Element;
|
|
14066
14066
|
/** @internal */
|
|
14067
|
-
declare const MemberFieldSet:
|
|
14067
|
+
declare const MemberFieldSet: react.NamedExoticComponent<{
|
|
14068
14068
|
member: FieldSetMember;
|
|
14069
14069
|
renderAnnotation?: RenderAnnotationCallback | undefined;
|
|
14070
14070
|
renderBlock?: RenderBlockCallback | undefined;
|
|
@@ -14086,7 +14086,7 @@ interface ObjectInputMemberProps {
|
|
|
14086
14086
|
renderPreview: RenderPreviewCallback;
|
|
14087
14087
|
}
|
|
14088
14088
|
/** @internal */
|
|
14089
|
-
declare const ObjectInputMember:
|
|
14089
|
+
declare const ObjectInputMember: react.NamedExoticComponent<ObjectInputMemberProps>;
|
|
14090
14090
|
/** @internal */
|
|
14091
14091
|
interface ObjectMembersProps {
|
|
14092
14092
|
members: ObjectMember[];
|
|
@@ -14102,7 +14102,7 @@ interface ObjectMembersProps {
|
|
|
14102
14102
|
* Convenience component for wrapping an object input
|
|
14103
14103
|
* @internal
|
|
14104
14104
|
*/
|
|
14105
|
-
declare function ObjectInputMembers(props: ObjectMembersProps):
|
|
14105
|
+
declare function ObjectInputMembers(props: ObjectMembersProps): react.JSX.Element;
|
|
14106
14106
|
/**
|
|
14107
14107
|
* @deprecated Use ObjectInputMembers instead
|
|
14108
14108
|
* @internal
|
|
@@ -14199,7 +14199,7 @@ type PatchTransformer = (patches: FormPatch[]) => FormPatch[];
|
|
|
14199
14199
|
/**
|
|
14200
14200
|
* @hidden
|
|
14201
14201
|
* @beta */
|
|
14202
|
-
declare const TransformPatches:
|
|
14202
|
+
declare const TransformPatches: react.NamedExoticComponent<{
|
|
14203
14203
|
transform: PatchTransformer;
|
|
14204
14204
|
} & {
|
|
14205
14205
|
children: ReactNode;
|
|
@@ -15670,7 +15670,7 @@ declare class ConfigResolutionError extends Error {
|
|
|
15670
15670
|
* Creates an icon element based on the input title
|
|
15671
15671
|
* @internal
|
|
15672
15672
|
*/
|
|
15673
|
-
declare function createDefaultIcon(title: string, subtitle: string):
|
|
15673
|
+
declare function createDefaultIcon(title: string, subtitle: string): react.JSX.Element;
|
|
15674
15674
|
/**
|
|
15675
15675
|
* @hidden
|
|
15676
15676
|
* @beta */
|