sanity 5.28.1-next.5 → 5.29.0-next.7
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 -224
- package/lib/_chunks-dts/index.d.ts +9 -11
- package/lib/_chunks-dts/types2.d.ts +24 -25
- package/lib/_chunks-es/resources7.js +33 -3
- package/lib/_chunks-es/resources7.js.map +1 -1
- package/lib/_chunks-es/version.js +2 -2
- package/lib/_singletons.d.ts +105 -106
- package/lib/desk.d.ts +5 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1121 -796
- package/lib/index.js.map +1 -1
- package/lib/media-library.d.ts +2 -3
- package/lib/presentation.d.ts +1 -2
- package/lib/router.d.ts +3 -4
- package/lib/structure.d.ts +1 -1
- package/package.json +12 -12
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import * as _$react from "react";
|
|
2
1
|
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 _$_sanity_types0 from "@sanity/types";
|
|
4
2
|
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
3
|
import { BifurClient } from "@sanity/bifur-client";
|
|
6
4
|
import { ClientConfig, ClientPerspective, QueryParams, ReconnectEvent, ReleaseDocument, ReleaseDocument as ReleaseDocument$1, ReleaseType, ResetEvent, SanityClient, SanityDocument as SanityDocument$1, SingleActionResult, SingleMutationResult, StackablePerspective, WelcomeBackEvent, WelcomeEvent } from "@sanity/client";
|
|
7
|
-
import * as _$_sanity_ui0 from "@sanity/ui";
|
|
8
5
|
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";
|
|
9
6
|
import { FlatNamespace, KeyPrefix, Namespace, TFunction, TFunction as TFunction$1, i18n as i18n$1 } from "i18next";
|
|
10
7
|
import { MonoTypeOperatorFunction, Observable, OperatorFunction, Subject } from "rxjs";
|
|
11
8
|
import { IntentLinkProps, IntentParameters, Router, RouterState, SearchParam } from "sanity/router";
|
|
12
9
|
import { ScrollToOptions } from "@tanstack/react-virtual";
|
|
13
|
-
import * as _$_sanity_telemetry0 from "@sanity/telemetry";
|
|
14
10
|
import { DRAFTS_FOLDER, DraftId, PublishedId, VERSION_FOLDER, getDraftId, getPublishedId, getVersionFromId, getVersionId, isDraftId, isPublishedId, isVersionId } from "/home/runner/work/sanity/sanity/node_modules/.pnpm/@sanity+client@7.22.0/node_modules/@sanity/client/dist/csm.js";
|
|
15
|
-
import * as _$sanity__singletons0 from "sanity/_singletons";
|
|
16
|
-
import { DocumentDivergencesContextValue, DocumentLimitUpsellContextValue, FeedbackContext, FeedbackContextValue, FieldActionsContextValue, HoveredFieldContextValue, LocaleContextValue, SchedulesContext, SingleDocReleaseContextValue } from "sanity/_singletons";
|
|
17
11
|
import { Mutation } from "@sanity/mutator";
|
|
18
12
|
import { CanvasResource, FrameMessages, MediaResource, StudioResource, WindowMessages } from "@sanity/message-protocol";
|
|
19
13
|
import { DocumentHandle } from "@sanity/sdk";
|
|
14
|
+
import { DocumentDivergencesContextValue, DocumentLimitUpsellContextValue, FeedbackContext, FeedbackContextValue, FieldActionsContextValue, HoveredFieldContextValue, LocaleContextValue, SchedulesContext, SingleDocReleaseContextValue } from "sanity/_singletons";
|
|
20
15
|
import { FallbackNs } from "react-i18next";
|
|
21
16
|
import { BrowserHistory, HashHistory, History, MemoryHistory } from "history";
|
|
22
17
|
import { RootTheme, ThemeColorSchemeKey as ThemeColorSchemeKey$1 } from "/home/runner/work/sanity/sanity/node_modules/.pnpm/@sanity+ui@3.1.14_@emotion+is-prop-valid@1.4.0_@sanity+styled-components@6.1.24_react-d_528b1f4be90cc37f64b725ea29f6a91b/node_modules/@sanity/ui/dist/theme.mjs";
|
|
@@ -24,11 +19,9 @@ import { EditorSelection, HotkeyOptions, InvalidValueResolution, OnCopyFn, OnPas
|
|
|
24
19
|
import { ColorHueKey, ColorTintKey, ColorTints } from "@sanity/color";
|
|
25
20
|
import { Subscriber } from "nano-pubsub";
|
|
26
21
|
import { ArrayDiff, BooleanDiff, Diff, ItemDiff, NullDiff, NumberDiff, ObjectDiff, StringDiff, StringSegmentChanged, StringSegmentUnchanged, TypeChangeDiff } from "@sanity/diff";
|
|
27
|
-
import * as _$styled_components0 from "styled-components";
|
|
28
22
|
import { CSSProperties as CSSProperties$1, ExecutionProps } from "styled-components";
|
|
29
23
|
import { ThrottleSettings } from "lodash-es/throttle.js";
|
|
30
24
|
import { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS } from "@sanity/schema";
|
|
31
|
-
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";
|
|
32
25
|
import { SanityImageSource } from "@sanity/asset-utils";
|
|
33
26
|
import { PortableTextMemberSchemaTypes } from "@portabletext/sanity-bridge";
|
|
34
27
|
import { ImageUrlBuilder, ImageUrlBuilder as ImageUrlBuilder$1 } from "@sanity/image-url";
|
|
@@ -493,7 +486,7 @@ declare class CorsOriginError extends Error {
|
|
|
493
486
|
/** @internal */
|
|
494
487
|
type BetaBadgeProps = Omit<BadgeProps, 'mode' | 'tone'>;
|
|
495
488
|
/** @internal */
|
|
496
|
-
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>):
|
|
489
|
+
declare function BetaBadge(props: BetaBadgeProps & Omit<HTMLProps<HTMLDivElement>, 'ref'>): import("react").JSX.Element;
|
|
497
490
|
/** @internal */
|
|
498
491
|
type CommandListElementType = 'input' | 'list';
|
|
499
492
|
/** @internal */
|
|
@@ -575,7 +568,7 @@ interface CommandListProps<T = any> extends ResponsivePaddingProps {
|
|
|
575
568
|
*
|
|
576
569
|
* @internal
|
|
577
570
|
*/
|
|
578
|
-
declare const CommandList:
|
|
571
|
+
declare const CommandList: import("react").NamedExoticComponent<CommandListProps<any> & import("react").RefAttributes<CommandListHandle>>;
|
|
579
572
|
type BaseButtonProps = Pick<ButtonProps, 'as' | 'icon' | 'iconRight' | 'justify' | 'loading' | 'mode' | 'paddingY' | 'paddingLeft' | 'selected' | 'tone' | 'type' | 'width'> & {
|
|
580
573
|
size?: 'default' | 'large';
|
|
581
574
|
radius?: 'full';
|
|
@@ -600,13 +593,13 @@ type ButtonProps$1 = BaseButtonProps & (ButtonWithText | IconButton);
|
|
|
600
593
|
*
|
|
601
594
|
* @internal
|
|
602
595
|
*/
|
|
603
|
-
declare const Button:
|
|
596
|
+
declare const Button: import("react").ForwardRefExoticComponent<(Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
604
597
|
size?: 'default' | 'large';
|
|
605
598
|
radius?: 'full';
|
|
606
599
|
} & ButtonWithText & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref"> | Omit<Pick<ButtonProps, "as" | "icon" | "iconRight" | "justify" | "loading" | "mode" | "paddingLeft" | "paddingY" | "selected" | "tone" | "type" | "width"> & {
|
|
607
600
|
size?: 'default' | 'large';
|
|
608
601
|
radius?: 'full';
|
|
609
|
-
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) &
|
|
602
|
+
} & IconButton & Omit<HTMLProps<HTMLButtonElement>, "as" | "size" | "title">, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
610
603
|
/** @internal */
|
|
611
604
|
type MenuButtonProps$1 = Omit<MenuButtonProps, 'popover'> & {
|
|
612
605
|
popover?: Omit<PopoverProps, 'animate' | 'content' | 'open'>;
|
|
@@ -623,7 +616,7 @@ type ContextMenuButtonProps = Pick<ButtonProps$1, 'mode' | 'selected' | 'size' |
|
|
|
623
616
|
*
|
|
624
617
|
* @internal
|
|
625
618
|
*/
|
|
626
|
-
declare const ContextMenuButton:
|
|
619
|
+
declare const ContextMenuButton: import("react").ForwardRefExoticComponent<ContextMenuButtonProps & Pick<HTMLProps<HTMLButtonElement>, "disabled" | "hidden" | "onClick"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
627
620
|
/**
|
|
628
621
|
* Indicates the type of document variant, either `draft`, `version` or `published`.
|
|
629
622
|
* Draft documents are prefixed with `drafts.`.
|
|
@@ -643,7 +636,7 @@ declare function getDocumentVariantType(documentId: string): DocumentVariantType
|
|
|
643
636
|
/**
|
|
644
637
|
* @internal
|
|
645
638
|
*/
|
|
646
|
-
declare const Chip:
|
|
639
|
+
declare const Chip: import("react").ForwardRefExoticComponent<Omit<Omit<import("@sanity/ui").ButtonProps & Omit<import("react").HTMLProps<HTMLButtonElement>, "as" | "width">, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
647
640
|
/**
|
|
648
641
|
*
|
|
649
642
|
* Checks if the document ID `documentId` has the same ID as `equalsDocumentId`,
|
|
@@ -817,7 +810,7 @@ type ReleasesNavMenuItemPropsGetter = (content: {
|
|
|
817
810
|
/**
|
|
818
811
|
* @internal
|
|
819
812
|
*/
|
|
820
|
-
declare const VersionChip:
|
|
813
|
+
declare const VersionChip: import("react").MemoExoticComponent<(props: {
|
|
821
814
|
disabled?: boolean;
|
|
822
815
|
selected: boolean;
|
|
823
816
|
tooltipContent?: ReactNode;
|
|
@@ -838,7 +831,7 @@ declare const VersionChip: _$react.MemoExoticComponent<(props: {
|
|
|
838
831
|
isGoingToUnpublish?: boolean;
|
|
839
832
|
release?: ReleaseDocument;
|
|
840
833
|
};
|
|
841
|
-
}) =>
|
|
834
|
+
}) => import("react").JSX.Element>;
|
|
842
835
|
/** @internal */
|
|
843
836
|
type ReleaseAvatarIconProps = {
|
|
844
837
|
release: TargetPerspective;
|
|
@@ -860,7 +853,7 @@ declare const ReleaseAvatarIcon: ({
|
|
|
860
853
|
tone,
|
|
861
854
|
release,
|
|
862
855
|
releaseType
|
|
863
|
-
}: ReleaseAvatarIconProps) =>
|
|
856
|
+
}: ReleaseAvatarIconProps) => import("react").JSX.Element;
|
|
864
857
|
declare function ReleaseAvatar({
|
|
865
858
|
fontSize,
|
|
866
859
|
padding,
|
|
@@ -896,12 +889,12 @@ declare const VersionInlineBadge: ({
|
|
|
896
889
|
$tone
|
|
897
890
|
}: PropsWithChildren<{
|
|
898
891
|
$tone?: BadgeTone;
|
|
899
|
-
}>) =>
|
|
892
|
+
}>) => import("react").JSX.Element;
|
|
900
893
|
/**
|
|
901
894
|
* @internal
|
|
902
895
|
*/
|
|
903
896
|
declare const getVersionInlineBadge: (release?: TargetPerspective) => FC<{
|
|
904
|
-
children?:
|
|
897
|
+
children?: import("react").ReactNode | undefined;
|
|
905
898
|
}>;
|
|
906
899
|
interface ObserveDocumentAPIConfig {
|
|
907
900
|
dataset?: string;
|
|
@@ -1230,7 +1223,7 @@ declare const ChangeFieldWrapper: (props: {
|
|
|
1230
1223
|
path: Path;
|
|
1231
1224
|
children: ReactNode;
|
|
1232
1225
|
hasRevertHover: boolean;
|
|
1233
|
-
}) =>
|
|
1226
|
+
}) => import("react").JSX.Element;
|
|
1234
1227
|
/** @internal */
|
|
1235
1228
|
interface ChangeIndicatorProps {
|
|
1236
1229
|
path: Path;
|
|
@@ -1239,7 +1232,7 @@ interface ChangeIndicatorProps {
|
|
|
1239
1232
|
withHoverEffect?: boolean;
|
|
1240
1233
|
}
|
|
1241
1234
|
/** @internal */
|
|
1242
|
-
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
1235
|
+
declare function ChangeIndicator(props: ChangeIndicatorProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): import("react").JSX.Element;
|
|
1243
1236
|
/** @internal */
|
|
1244
1237
|
interface ConnectorContextValue {
|
|
1245
1238
|
isReviewChangesOpen: boolean;
|
|
@@ -1263,7 +1256,7 @@ declare function ChangeConnectorRoot({
|
|
|
1263
1256
|
onOpenReviewChanges,
|
|
1264
1257
|
onSetFocus,
|
|
1265
1258
|
...restProps
|
|
1266
|
-
}: ChangeConnectorRootProps):
|
|
1259
|
+
}: ChangeConnectorRootProps): import("react").JSX.Element;
|
|
1267
1260
|
/** @internal */
|
|
1268
1261
|
type Reported<Value> = [string, Value];
|
|
1269
1262
|
/** @internal */
|
|
@@ -1303,11 +1296,11 @@ interface TrackedArea {
|
|
|
1303
1296
|
type ChangeIndicatorTrackerContextValue = TrackedChange;
|
|
1304
1297
|
declare function ChangeIndicatorsTrackerComponent(props: {
|
|
1305
1298
|
children: React.ReactNode;
|
|
1306
|
-
}):
|
|
1299
|
+
}): import("react").JSX.Element;
|
|
1307
1300
|
/**
|
|
1308
1301
|
* @internal
|
|
1309
1302
|
*/
|
|
1310
|
-
declare const ChangeIndicatorsTracker:
|
|
1303
|
+
declare const ChangeIndicatorsTracker: import("react").MemoExoticComponent<typeof ChangeIndicatorsTrackerComponent>;
|
|
1311
1304
|
/**
|
|
1312
1305
|
* @internal
|
|
1313
1306
|
*/
|
|
@@ -1332,11 +1325,11 @@ interface CommentDeleteDialogProps {
|
|
|
1332
1325
|
* @beta
|
|
1333
1326
|
* @hidden
|
|
1334
1327
|
*/
|
|
1335
|
-
declare function CommentDeleteDialog(props: CommentDeleteDialogProps):
|
|
1328
|
+
declare function CommentDeleteDialog(props: CommentDeleteDialogProps): import("react").JSX.Element;
|
|
1336
1329
|
/**
|
|
1337
1330
|
* @internal
|
|
1338
1331
|
*/
|
|
1339
|
-
declare const CommentDisabledIcon:
|
|
1332
|
+
declare const CommentDisabledIcon: import("react").ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
1340
1333
|
/**
|
|
1341
1334
|
*
|
|
1342
1335
|
* @deprecated Calling `useClient()` without specifying an API version is deprecated - specify a date to prevent breaking changes, e.g. `useClient({apiVersion: "2025-02-07"})`.
|
|
@@ -1431,8 +1424,8 @@ declare function useDialogStack({
|
|
|
1431
1424
|
path?: Path;
|
|
1432
1425
|
}): {
|
|
1433
1426
|
/** Unique ID for this dialog instance */dialogId: string; /** The current top dialog entry */
|
|
1434
|
-
topEntry:
|
|
1435
|
-
stack:
|
|
1427
|
+
topEntry: import("sanity/_singletons").DialogStackEntry | null; /** The full stack of dialog entries (each has id and path) */
|
|
1428
|
+
stack: import("sanity/_singletons").DialogStackEntry[]; /** Check if this dialog is on top */
|
|
1436
1429
|
isTop: boolean; /** Close dialogs */
|
|
1437
1430
|
close: (options?: {
|
|
1438
1431
|
toParent?: boolean;
|
|
@@ -3764,7 +3757,7 @@ interface LocaleSource {
|
|
|
3764
3757
|
* @internal
|
|
3765
3758
|
* @hidden
|
|
3766
3759
|
*/
|
|
3767
|
-
declare function LocaleProvider(props: PropsWithChildren):
|
|
3760
|
+
declare function LocaleProvider(props: PropsWithChildren): import("react").JSX.Element;
|
|
3768
3761
|
/**
|
|
3769
3762
|
* @internal
|
|
3770
3763
|
* @hidden
|
|
@@ -3780,7 +3773,7 @@ declare function LocaleProviderBase({
|
|
|
3780
3773
|
sourceId: string;
|
|
3781
3774
|
locales: Locale[];
|
|
3782
3775
|
i18next: i18n$1;
|
|
3783
|
-
}>):
|
|
3776
|
+
}>): import("react").JSX.Element;
|
|
3784
3777
|
/**
|
|
3785
3778
|
* Defines a resource bundle for a given locale and namespace.
|
|
3786
3779
|
*
|
|
@@ -3985,7 +3978,7 @@ interface TranslationProps {
|
|
|
3985
3978
|
*
|
|
3986
3979
|
* @public
|
|
3987
3980
|
*/
|
|
3988
|
-
declare function Translate(props: TranslationProps):
|
|
3981
|
+
declare function Translate(props: TranslationProps): import("react").JSX.Element;
|
|
3989
3982
|
declare module '@sanity/types' {
|
|
3990
3983
|
/**
|
|
3991
3984
|
* Extended validation context that includes internationalization
|
|
@@ -4115,7 +4108,7 @@ interface CommentsAuthoringPathProviderProps {
|
|
|
4115
4108
|
* the component re-renders, for example, when the form is temporarily set to `readOnly`
|
|
4116
4109
|
* while reconnecting.
|
|
4117
4110
|
*/
|
|
4118
|
-
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps):
|
|
4111
|
+
declare function CommentsAuthoringPathProvider(props: CommentsAuthoringPathProviderProps): import("react").JSX.Element;
|
|
4119
4112
|
/**
|
|
4120
4113
|
* @beta
|
|
4121
4114
|
* @hidden
|
|
@@ -4413,7 +4406,7 @@ interface CommentsProviderProps {
|
|
|
4413
4406
|
/**
|
|
4414
4407
|
* @beta
|
|
4415
4408
|
*/
|
|
4416
|
-
declare const CommentsProvider:
|
|
4409
|
+
declare const CommentsProvider: import("react").MemoExoticComponent<(props: CommentsProviderProps) => import("react").JSX.Element>;
|
|
4417
4410
|
interface CommentsEnabledProviderProps {
|
|
4418
4411
|
children: ReactNode;
|
|
4419
4412
|
documentId: string;
|
|
@@ -4423,7 +4416,7 @@ interface CommentsEnabledProviderProps {
|
|
|
4423
4416
|
* @beta
|
|
4424
4417
|
* @hidden
|
|
4425
4418
|
*/
|
|
4426
|
-
declare const CommentsEnabledProvider:
|
|
4419
|
+
declare const CommentsEnabledProvider: import("react").MemoExoticComponent<(props: CommentsEnabledProviderProps) => import("react").JSX.Element>;
|
|
4427
4420
|
/**
|
|
4428
4421
|
* @beta
|
|
4429
4422
|
* @hidden
|
|
@@ -4436,14 +4429,14 @@ interface CommentsIntentProviderProps {
|
|
|
4436
4429
|
* @beta
|
|
4437
4430
|
* @hidden
|
|
4438
4431
|
*/
|
|
4439
|
-
declare const CommentsIntentProvider:
|
|
4432
|
+
declare const CommentsIntentProvider: import("react").MemoExoticComponent<(props: CommentsIntentProviderProps) => import("react").JSX.Element>;
|
|
4440
4433
|
interface CommentsSelectedPathProviderProps {
|
|
4441
4434
|
children: React.ReactNode;
|
|
4442
4435
|
}
|
|
4443
4436
|
/**
|
|
4444
4437
|
* @internal
|
|
4445
4438
|
*/
|
|
4446
|
-
declare const CommentsSelectedPathProvider:
|
|
4439
|
+
declare const CommentsSelectedPathProvider: import("react").MemoExoticComponent<(props: CommentsSelectedPathProviderProps) => import("react").JSX.Element>;
|
|
4447
4440
|
/**
|
|
4448
4441
|
* @internal
|
|
4449
4442
|
*/
|
|
@@ -4486,7 +4479,7 @@ declare function ActiveWorkspaceMatcher({
|
|
|
4486
4479
|
LoadingComponent,
|
|
4487
4480
|
NotFoundComponent,
|
|
4488
4481
|
unstable_history: historyProp
|
|
4489
|
-
}: ActiveWorkspaceMatcherProps):
|
|
4482
|
+
}: ActiveWorkspaceMatcherProps): import("react").JSX.Element;
|
|
4490
4483
|
type WorkspaceAuthStates = Record<string, AuthState | undefined>;
|
|
4491
4484
|
/** @internal */
|
|
4492
4485
|
interface WorkspaceLike {
|
|
@@ -4519,7 +4512,7 @@ declare function VisibleWorkspacesProvider({
|
|
|
4519
4512
|
children
|
|
4520
4513
|
}: {
|
|
4521
4514
|
children: ReactNode;
|
|
4522
|
-
}):
|
|
4515
|
+
}): import("react").JSX.Element;
|
|
4523
4516
|
/**
|
|
4524
4517
|
* Evaluates a workspace's `hidden` property against the given auth state.
|
|
4525
4518
|
* Falls open (returns `false`) when auth state is unavailable or the callback throws.
|
|
@@ -4583,7 +4576,7 @@ declare function WorkspacesProvider({
|
|
|
4583
4576
|
children,
|
|
4584
4577
|
basePath,
|
|
4585
4578
|
LoadingComponent
|
|
4586
|
-
}: WorkspacesProviderProps):
|
|
4579
|
+
}: WorkspacesProviderProps): import("react").JSX.Element;
|
|
4587
4580
|
/** @internal */
|
|
4588
4581
|
type NormalizedWorkspace = {
|
|
4589
4582
|
workspace: WorkspacesContextValue[number];
|
|
@@ -4640,7 +4633,7 @@ interface AddonDatasetSetupProviderProps {
|
|
|
4640
4633
|
* @beta
|
|
4641
4634
|
* @hidden
|
|
4642
4635
|
*/
|
|
4643
|
-
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean |
|
|
4636
|
+
declare function AddonDatasetProvider(props: AddonDatasetSetupProviderProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
4644
4637
|
/**
|
|
4645
4638
|
* @beta
|
|
4646
4639
|
* @hidden
|
|
@@ -4742,7 +4735,7 @@ declare function ColorSchemeProvider({
|
|
|
4742
4735
|
children,
|
|
4743
4736
|
onSchemeChange,
|
|
4744
4737
|
scheme: schemeProp
|
|
4745
|
-
}: ColorSchemeProviderProps):
|
|
4738
|
+
}: ColorSchemeProviderProps): import("react").JSX.Element;
|
|
4746
4739
|
/**
|
|
4747
4740
|
* Uses useSyncExternalStore to ensure that localStorage is accessed in a SSR hydration compatible way
|
|
4748
4741
|
* @internal
|
|
@@ -4750,7 +4743,7 @@ declare function ColorSchemeProvider({
|
|
|
4750
4743
|
declare function ColorSchemeLocalStorageProvider({
|
|
4751
4744
|
children,
|
|
4752
4745
|
onSchemeChange
|
|
4753
|
-
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>):
|
|
4746
|
+
}: Pick<ColorSchemeProviderProps, 'children' | 'onSchemeChange'>): import("react").JSX.Element;
|
|
4754
4747
|
/**
|
|
4755
4748
|
* If the `scheme` prop is provided we don't need to setup any logic to handle localStorage
|
|
4756
4749
|
* @internal
|
|
@@ -4795,7 +4788,7 @@ declare function Filters({
|
|
|
4795
4788
|
showTypeFilter
|
|
4796
4789
|
}: {
|
|
4797
4790
|
showTypeFilter?: boolean;
|
|
4798
|
-
}):
|
|
4791
|
+
}): import("react").JSX.Element;
|
|
4799
4792
|
interface SearchHeaderProps {
|
|
4800
4793
|
ariaInputLabel?: string;
|
|
4801
4794
|
onClose?: () => void;
|
|
@@ -4803,7 +4796,7 @@ interface SearchHeaderProps {
|
|
|
4803
4796
|
/**
|
|
4804
4797
|
* @internal
|
|
4805
4798
|
*/
|
|
4806
|
-
declare const SearchHeader:
|
|
4799
|
+
declare const SearchHeader: import("react").ForwardRefExoticComponent<SearchHeaderProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
4807
4800
|
type ItemSelectHandler = (item: Pick<SanityDocumentLike, '_id' | '_type' | 'title'>) => void;
|
|
4808
4801
|
/**
|
|
4809
4802
|
* @internal
|
|
@@ -4831,7 +4824,7 @@ declare function SearchPopover({
|
|
|
4831
4824
|
onOpen,
|
|
4832
4825
|
previewPerspective,
|
|
4833
4826
|
open
|
|
4834
|
-
}: SearchPopoverProps):
|
|
4827
|
+
}: SearchPopoverProps): import("react").JSX.Element;
|
|
4835
4828
|
interface SearchResultItemPreviewProps {
|
|
4836
4829
|
documentId: string;
|
|
4837
4830
|
documentType: string;
|
|
@@ -4852,7 +4845,7 @@ declare function SearchResultItemPreview({
|
|
|
4852
4845
|
schemaType,
|
|
4853
4846
|
showBadge,
|
|
4854
4847
|
perspective
|
|
4855
|
-
}: SearchResultItemPreviewProps):
|
|
4848
|
+
}: SearchResultItemPreviewProps): import("react").JSX.Element;
|
|
4856
4849
|
/**
|
|
4857
4850
|
* @internal
|
|
4858
4851
|
*
|
|
@@ -5198,12 +5191,12 @@ declare const searchOperators: {
|
|
|
5198
5191
|
arrayCountRange: SearchOperatorBuilder<"arrayCountRange", OperatorNumberRangeValue> | ValuelessSearchOperatorBuilder<"arrayCountRange">;
|
|
5199
5192
|
arrayListIncludes: SearchOperatorBuilder<"arrayListIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListIncludes">;
|
|
5200
5193
|
arrayListNotIncludes: SearchOperatorBuilder<"arrayListNotIncludes", string | number> | ValuelessSearchOperatorBuilder<"arrayListNotIncludes">;
|
|
5201
|
-
arrayReferenceIncludes: SearchOperatorBuilder<"arrayReferenceIncludes",
|
|
5202
|
-
arrayReferenceNotIncludes: SearchOperatorBuilder<"arrayReferenceNotIncludes",
|
|
5203
|
-
assetFileEqual: SearchOperatorBuilder<"assetFileEqual",
|
|
5204
|
-
assetFileNotEqual: SearchOperatorBuilder<"assetFileNotEqual",
|
|
5205
|
-
assetImageEqual: SearchOperatorBuilder<"assetImageEqual",
|
|
5206
|
-
assetImageNotEqual: SearchOperatorBuilder<"assetImageNotEqual",
|
|
5194
|
+
arrayReferenceIncludes: SearchOperatorBuilder<"arrayReferenceIncludes", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceIncludes">;
|
|
5195
|
+
arrayReferenceNotIncludes: SearchOperatorBuilder<"arrayReferenceNotIncludes", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"arrayReferenceNotIncludes">;
|
|
5196
|
+
assetFileEqual: SearchOperatorBuilder<"assetFileEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetFileEqual">;
|
|
5197
|
+
assetFileNotEqual: SearchOperatorBuilder<"assetFileNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetFileNotEqual">;
|
|
5198
|
+
assetImageEqual: SearchOperatorBuilder<"assetImageEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetImageEqual">;
|
|
5199
|
+
assetImageNotEqual: SearchOperatorBuilder<"assetImageNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"assetImageNotEqual">;
|
|
5207
5200
|
booleanEqual: SearchOperatorBuilder<"booleanEqual", boolean> | ValuelessSearchOperatorBuilder<"booleanEqual">;
|
|
5208
5201
|
defined: SearchOperatorBuilder<"defined", unknown> | ValuelessSearchOperatorBuilder<"defined">;
|
|
5209
5202
|
notDefined: SearchOperatorBuilder<"notDefined", unknown> | ValuelessSearchOperatorBuilder<"notDefined">;
|
|
@@ -5218,11 +5211,11 @@ declare const searchOperators: {
|
|
|
5218
5211
|
portableTextMatches: SearchOperatorBuilder<"portableTextMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextMatches">;
|
|
5219
5212
|
portableTextNotEqual: SearchOperatorBuilder<"portableTextNotEqual", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotEqual">;
|
|
5220
5213
|
portableTextNotMatches: SearchOperatorBuilder<"portableTextNotMatches", string | number> | ValuelessSearchOperatorBuilder<"portableTextNotMatches">;
|
|
5221
|
-
referenceEqual: SearchOperatorBuilder<"referenceEqual",
|
|
5222
|
-
referenceNotEqual: SearchOperatorBuilder<"referenceNotEqual",
|
|
5223
|
-
referencesAssetFile: SearchOperatorBuilder<"referencesAssetFile",
|
|
5224
|
-
referencesAssetImage: SearchOperatorBuilder<"referencesAssetImage",
|
|
5225
|
-
referencesDocument: SearchOperatorBuilder<"referencesDocument",
|
|
5214
|
+
referenceEqual: SearchOperatorBuilder<"referenceEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referenceEqual">;
|
|
5215
|
+
referenceNotEqual: SearchOperatorBuilder<"referenceNotEqual", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referenceNotEqual">;
|
|
5216
|
+
referencesAssetFile: SearchOperatorBuilder<"referencesAssetFile", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesAssetFile">;
|
|
5217
|
+
referencesAssetImage: SearchOperatorBuilder<"referencesAssetImage", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesAssetImage">;
|
|
5218
|
+
referencesDocument: SearchOperatorBuilder<"referencesDocument", import("@sanity/types").Reference> | ValuelessSearchOperatorBuilder<"referencesDocument">;
|
|
5226
5219
|
slugEqual: SearchOperatorBuilder<"slugEqual", string | number> | ValuelessSearchOperatorBuilder<"slugEqual">;
|
|
5227
5220
|
slugMatches: SearchOperatorBuilder<"slugMatches", string | number> | ValuelessSearchOperatorBuilder<"slugMatches">;
|
|
5228
5221
|
slugNotEqual: SearchOperatorBuilder<"slugNotEqual", string | number> | ValuelessSearchOperatorBuilder<"slugNotEqual">;
|
|
@@ -5242,7 +5235,7 @@ type SearchOperatorType = keyof DefaultOperators;
|
|
|
5242
5235
|
/**
|
|
5243
5236
|
* @internal
|
|
5244
5237
|
*/
|
|
5245
|
-
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",
|
|
5238
|
+
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", import("@sanity/types").Reference> | SearchOperatorBuilder<"arrayReferenceNotIncludes", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetFileEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetFileNotEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetImageEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"assetImageNotEqual", import("@sanity/types").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", import("@sanity/types").Reference> | SearchOperatorBuilder<"referenceNotEqual", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesAssetFile", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesAssetImage", import("@sanity/types").Reference> | SearchOperatorBuilder<"referencesDocument", import("@sanity/types").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">)[];
|
|
5246
5239
|
type Operator<TOperators = string> = OperatorDivider | OperatorItem<TOperators>;
|
|
5247
5240
|
type OperatorDivider = {
|
|
5248
5241
|
type: 'divider';
|
|
@@ -5483,7 +5476,7 @@ declare function SearchProvider({
|
|
|
5483
5476
|
fullscreen,
|
|
5484
5477
|
disabledDocumentIds,
|
|
5485
5478
|
canDisableAction
|
|
5486
|
-
}: SearchProviderProps):
|
|
5479
|
+
}: SearchProviderProps): import("react").JSX.Element;
|
|
5487
5480
|
/**
|
|
5488
5481
|
* @internal
|
|
5489
5482
|
*/
|
|
@@ -5508,7 +5501,7 @@ interface SearchButtonProps {
|
|
|
5508
5501
|
/**
|
|
5509
5502
|
* @internal
|
|
5510
5503
|
*/
|
|
5511
|
-
declare const SearchButton:
|
|
5504
|
+
declare const SearchButton: import("react").ForwardRefExoticComponent<SearchButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5512
5505
|
interface SearchDialogProps {
|
|
5513
5506
|
onClose: () => void;
|
|
5514
5507
|
onOpen: () => void;
|
|
@@ -5521,11 +5514,11 @@ declare function SearchDialog({
|
|
|
5521
5514
|
onClose,
|
|
5522
5515
|
onOpen,
|
|
5523
5516
|
open
|
|
5524
|
-
}: SearchDialogProps):
|
|
5517
|
+
}: SearchDialogProps): import("react").JSX.Element;
|
|
5525
5518
|
/**
|
|
5526
5519
|
* @hidden
|
|
5527
5520
|
* @beta */
|
|
5528
|
-
declare function StudioLogo(props: LogoProps):
|
|
5521
|
+
declare function StudioLogo(props: LogoProps): import("react").JSX.Element;
|
|
5529
5522
|
/**
|
|
5530
5523
|
* @hidden
|
|
5531
5524
|
* @beta */
|
|
@@ -5617,11 +5610,11 @@ interface StudioComponentsPluginOptions {
|
|
|
5617
5610
|
/**
|
|
5618
5611
|
* @hidden
|
|
5619
5612
|
* @beta */
|
|
5620
|
-
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>):
|
|
5613
|
+
declare function StudioNavbar(props: Omit<NavbarProps, 'renderDefault'>): import("react").JSX.Element;
|
|
5621
5614
|
/**
|
|
5622
5615
|
* @hidden
|
|
5623
5616
|
* @beta */
|
|
5624
|
-
declare function StudioToolMenu(props: ToolMenuProps):
|
|
5617
|
+
declare function StudioToolMenu(props: ToolMenuProps): import("react").JSX.Element | null;
|
|
5625
5618
|
/**
|
|
5626
5619
|
* @hidden
|
|
5627
5620
|
* @beta */
|
|
@@ -5632,7 +5625,7 @@ interface ToolLinkProps {
|
|
|
5632
5625
|
/**
|
|
5633
5626
|
* @hidden
|
|
5634
5627
|
* @beta */
|
|
5635
|
-
declare const ToolLink:
|
|
5628
|
+
declare const ToolLink: import("react").ForwardRefExoticComponent<Omit<ToolLinkProps & Omit<HTMLProps<HTMLAnchorElement>, "href" | "name">, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
5636
5629
|
/**
|
|
5637
5630
|
* @hidden
|
|
5638
5631
|
* @beta */
|
|
@@ -5933,7 +5926,7 @@ type SourceProviderProps = {
|
|
|
5933
5926
|
declare function SourceProvider({
|
|
5934
5927
|
children,
|
|
5935
5928
|
...props
|
|
5936
|
-
}: SourceProviderProps):
|
|
5929
|
+
}: SourceProviderProps): import("react").JSX.Element;
|
|
5937
5930
|
/**
|
|
5938
5931
|
* @internal
|
|
5939
5932
|
* @deprecated INTERNAL USE ONLY
|
|
@@ -6045,7 +6038,7 @@ declare function StudioAnnouncementsCard({
|
|
|
6045
6038
|
preHeader,
|
|
6046
6039
|
onCardClick,
|
|
6047
6040
|
onCardDismiss
|
|
6048
|
-
}: StudioAnnouncementCardProps):
|
|
6041
|
+
}: StudioAnnouncementCardProps): import("react").JSX.Element;
|
|
6049
6042
|
declare const audienceRoles: readonly ['administrator', 'editor', 'viewer', 'contributor', 'developer', 'custom'];
|
|
6050
6043
|
type AudienceRole = (typeof audienceRoles)[number];
|
|
6051
6044
|
interface StudioAnnouncementDocument {
|
|
@@ -6085,7 +6078,7 @@ declare function StudioAnnouncementsDialog({
|
|
|
6085
6078
|
announcements,
|
|
6086
6079
|
onClose,
|
|
6087
6080
|
mode
|
|
6088
|
-
}: StudioAnnouncementDialogProps):
|
|
6081
|
+
}: StudioAnnouncementDialogProps): import("react").JSX.Element;
|
|
6089
6082
|
/**
|
|
6090
6083
|
* @internal
|
|
6091
6084
|
* @hidden
|
|
@@ -6128,12 +6121,12 @@ interface NavbarContextValue {
|
|
|
6128
6121
|
*</StudioProvider>
|
|
6129
6122
|
* ```
|
|
6130
6123
|
*/
|
|
6131
|
-
declare function StudioLayout():
|
|
6124
|
+
declare function StudioLayout(): import("react").JSX.Element;
|
|
6132
6125
|
/**
|
|
6133
6126
|
* @internal
|
|
6134
6127
|
* The default Studio Layout component
|
|
6135
6128
|
* */
|
|
6136
|
-
declare function StudioLayoutComponent():
|
|
6129
|
+
declare function StudioLayoutComponent(): import("react").JSX.Element;
|
|
6137
6130
|
/**
|
|
6138
6131
|
* @hidden
|
|
6139
6132
|
* @beta */
|
|
@@ -6151,7 +6144,7 @@ declare function StudioProvider({
|
|
|
6151
6144
|
scheme,
|
|
6152
6145
|
unstable_history: history,
|
|
6153
6146
|
unstable_noAuthBoundary: noAuthBoundary
|
|
6154
|
-
}: StudioProviderProps):
|
|
6147
|
+
}: StudioProviderProps): import("react").JSX.Element;
|
|
6155
6148
|
interface UpsellDialogActionsInfo {
|
|
6156
6149
|
feature: 'comments' | 'scheduled_publishing' | 'ai_assist' | 'tasks';
|
|
6157
6150
|
type: 'modal' | 'inspector';
|
|
@@ -6163,19 +6156,19 @@ interface UpsellDialogViewedInfo extends UpsellDialogActionsInfo {
|
|
|
6163
6156
|
/**
|
|
6164
6157
|
* @internal
|
|
6165
6158
|
*/
|
|
6166
|
-
declare const UpsellDialogViewed:
|
|
6159
|
+
declare const UpsellDialogViewed: import("@sanity/telemetry").DefinedTelemetryLog<UpsellDialogViewedInfo>;
|
|
6167
6160
|
/**
|
|
6168
6161
|
* @internal
|
|
6169
6162
|
*/
|
|
6170
|
-
declare const UpsellDialogDismissed:
|
|
6163
|
+
declare const UpsellDialogDismissed: import("@sanity/telemetry").DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
6171
6164
|
/**
|
|
6172
6165
|
* @internal
|
|
6173
6166
|
*/
|
|
6174
|
-
declare const UpsellDialogUpgradeCtaClicked:
|
|
6167
|
+
declare const UpsellDialogUpgradeCtaClicked: import("@sanity/telemetry").DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
6175
6168
|
/**
|
|
6176
6169
|
* @internal
|
|
6177
6170
|
*/
|
|
6178
|
-
declare const UpsellDialogLearnMoreCtaClicked:
|
|
6171
|
+
declare const UpsellDialogLearnMoreCtaClicked: import("@sanity/telemetry").DefinedTelemetryLog<UpsellDialogActionsInfo>;
|
|
6179
6172
|
/** @internal */
|
|
6180
6173
|
type InterpolationProp = {
|
|
6181
6174
|
[key: string]: string | number;
|
|
@@ -6196,7 +6189,7 @@ interface DescriptionSerializerProps {
|
|
|
6196
6189
|
* Not meant for public consumption.
|
|
6197
6190
|
* @internal
|
|
6198
6191
|
*/
|
|
6199
|
-
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps):
|
|
6192
|
+
declare function UpsellDescriptionSerializer(props: DescriptionSerializerProps): import("react").JSX.Element;
|
|
6200
6193
|
/** @internal */
|
|
6201
6194
|
interface WorkspaceProviderProps {
|
|
6202
6195
|
workspace: Workspace;
|
|
@@ -6231,7 +6224,7 @@ declare function ErrorMessage({
|
|
|
6231
6224
|
message,
|
|
6232
6225
|
path,
|
|
6233
6226
|
stack
|
|
6234
|
-
}: ErrorMessageProps):
|
|
6227
|
+
}: ErrorMessageProps): import("react").JSX.Element;
|
|
6235
6228
|
interface WorkspaceLoaderProps {
|
|
6236
6229
|
children: ReactNode;
|
|
6237
6230
|
ConfigErrorsComponent: ComponentType;
|
|
@@ -6247,7 +6240,7 @@ declare function useWorkspaceLoader(activeWorkspace: WorkspaceSummary): Workspac
|
|
|
6247
6240
|
declare function WorkspaceLoaderBoundary({
|
|
6248
6241
|
ConfigErrorsComponent,
|
|
6249
6242
|
...props
|
|
6250
|
-
}: WorkspaceLoaderProps):
|
|
6243
|
+
}: WorkspaceLoaderProps): import("react").JSX.Element;
|
|
6251
6244
|
/**
|
|
6252
6245
|
* @beta
|
|
6253
6246
|
* @hidden
|
|
@@ -6324,7 +6317,7 @@ interface CommentsListProps {
|
|
|
6324
6317
|
* @beta
|
|
6325
6318
|
* @hidden
|
|
6326
6319
|
*/
|
|
6327
|
-
declare const CommentsList:
|
|
6320
|
+
declare const CommentsList: import("react").NamedExoticComponent<CommentsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6328
6321
|
/**
|
|
6329
6322
|
* @internal
|
|
6330
6323
|
*/
|
|
@@ -6367,7 +6360,7 @@ interface CommentInputHandle {
|
|
|
6367
6360
|
* @internal
|
|
6368
6361
|
* @hidden
|
|
6369
6362
|
*/
|
|
6370
|
-
declare const CommentInput:
|
|
6363
|
+
declare const CommentInput: import("react").ForwardRefExoticComponent<CommentInputProps & import("react").RefAttributes<CommentInputHandle>>;
|
|
6371
6364
|
interface CommentInputContextValue {
|
|
6372
6365
|
canSubmit?: boolean;
|
|
6373
6366
|
closeMentions: () => void;
|
|
@@ -6397,7 +6390,7 @@ interface CommentInlineHighlightSpanProps {
|
|
|
6397
6390
|
/**
|
|
6398
6391
|
* @internal
|
|
6399
6392
|
*/
|
|
6400
|
-
declare const CommentInlineHighlightSpan:
|
|
6393
|
+
declare const CommentInlineHighlightSpan: import("react").ForwardRefExoticComponent<Omit<CommentInlineHighlightSpanProps & import("react").HTMLProps<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6401
6394
|
/**
|
|
6402
6395
|
* @internal
|
|
6403
6396
|
* @hidden
|
|
@@ -6535,11 +6528,11 @@ interface CollapseMenuProps {
|
|
|
6535
6528
|
onMenuClose?: () => void;
|
|
6536
6529
|
}
|
|
6537
6530
|
/** @internal */
|
|
6538
|
-
declare const CollapseMenu:
|
|
6531
|
+
declare const CollapseMenu: import("react").ForwardRefExoticComponent<CollapseMenuProps & import("react").RefAttributes<any>>;
|
|
6539
6532
|
/** @internal */
|
|
6540
|
-
declare const AutoCollapseMenu:
|
|
6533
|
+
declare const AutoCollapseMenu: import("react").ForwardRefExoticComponent<Omit<CollapseMenuProps, "children" | "collapsed"> & {
|
|
6541
6534
|
menuOptions: React.JSX.Element[];
|
|
6542
|
-
} &
|
|
6535
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6543
6536
|
/** @internal */
|
|
6544
6537
|
interface CommonProps extends Omit<ButtonProps$1, 'text' | 'iconRight'> {
|
|
6545
6538
|
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
@@ -6555,7 +6548,7 @@ interface CollapseMenuButtonProps extends CommonProps {
|
|
|
6555
6548
|
text: string;
|
|
6556
6549
|
}
|
|
6557
6550
|
/** @internal */
|
|
6558
|
-
declare const CollapseMenuButton:
|
|
6551
|
+
declare const CollapseMenuButton: import("react").ForwardRefExoticComponent<Omit<CollapseMenuButtonProps & Omit<HTMLProps<HTMLButtonElement>, "as" | "size">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6559
6552
|
/** @internal */
|
|
6560
6553
|
declare function useOnScroll(callback: Subscriber<Event>): void;
|
|
6561
6554
|
/** @internal */
|
|
@@ -6572,7 +6565,7 @@ interface ScrollContainerProps<T extends ElementType> extends Omit<HTMLProps<T>,
|
|
|
6572
6565
|
*
|
|
6573
6566
|
* @internal
|
|
6574
6567
|
*/
|
|
6575
|
-
declare const ScrollContainer:
|
|
6568
|
+
declare const ScrollContainer: import("react").NamedExoticComponent<Omit<ScrollContainerProps<ElementType>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6576
6569
|
/** @internal */
|
|
6577
6570
|
type ScrollEventHandler = (event: Event) => void;
|
|
6578
6571
|
/** @internal */
|
|
@@ -6588,7 +6581,7 @@ declare function StudioFeedbackProvider({
|
|
|
6588
6581
|
children
|
|
6589
6582
|
}: {
|
|
6590
6583
|
children: ReactNode;
|
|
6591
|
-
}):
|
|
6584
|
+
}): import("react").JSX.Element;
|
|
6592
6585
|
/** @internal */
|
|
6593
6586
|
type ConsentStatus = 'loading' | 'granted' | 'denied';
|
|
6594
6587
|
/**
|
|
@@ -6628,7 +6621,7 @@ interface FeedbackDialogProps {
|
|
|
6628
6621
|
onError?: (error: Error) => void;
|
|
6629
6622
|
}
|
|
6630
6623
|
/** @internal */
|
|
6631
|
-
declare function FeedbackDialog(props: FeedbackDialogProps):
|
|
6624
|
+
declare function FeedbackDialog(props: FeedbackDialogProps): import("react").JSX.Element;
|
|
6632
6625
|
/** @internal */
|
|
6633
6626
|
type StudioFeedbackDialogProps = Omit<FeedbackDialogProps, 'onSuccess' | 'onError'>;
|
|
6634
6627
|
/**
|
|
@@ -6642,7 +6635,7 @@ type StudioFeedbackDialogProps = Omit<FeedbackDialogProps, 'onSuccess' | 'onErro
|
|
|
6642
6635
|
*
|
|
6643
6636
|
* @internal
|
|
6644
6637
|
*/
|
|
6645
|
-
declare function StudioFeedbackDialog(props: StudioFeedbackDialogProps):
|
|
6638
|
+
declare function StudioFeedbackDialog(props: StudioFeedbackDialogProps): import("react").JSX.Element;
|
|
6646
6639
|
/** @internal */
|
|
6647
6640
|
type Sentiment = 'happy' | 'neutral' | 'unhappy';
|
|
6648
6641
|
/** Tags that are always sent regardless of where the dialog is used. */
|
|
@@ -7133,7 +7126,7 @@ interface EventsProviderProps {
|
|
|
7133
7126
|
declare function EventsProvider({
|
|
7134
7127
|
value,
|
|
7135
7128
|
children
|
|
7136
|
-
}: EventsProviderProps):
|
|
7129
|
+
}: EventsProviderProps): import("react").JSX.Element;
|
|
7137
7130
|
/**
|
|
7138
7131
|
* @internal
|
|
7139
7132
|
*/
|
|
@@ -7351,7 +7344,7 @@ declare function useDiffAnnotationColor(diff: Diff$1, path?: string | Path): Use
|
|
|
7351
7344
|
declare function ChangeBreadcrumb(props: {
|
|
7352
7345
|
change?: FieldChangeNode;
|
|
7353
7346
|
titlePath: ChangeTitlePath;
|
|
7354
|
-
}):
|
|
7347
|
+
}): import("react").JSX.Element;
|
|
7355
7348
|
/** @internal */
|
|
7356
7349
|
interface ChangeListProps {
|
|
7357
7350
|
schemaType: ObjectSchemaType;
|
|
@@ -7372,7 +7365,7 @@ interface ChangeResolverProps {
|
|
|
7372
7365
|
addParentWrapper?: boolean;
|
|
7373
7366
|
}
|
|
7374
7367
|
/** @internal */
|
|
7375
|
-
declare function ChangeResolver(props: ChangeResolverProps):
|
|
7368
|
+
declare function ChangeResolver(props: ChangeResolverProps): import("react").JSX.Element | null;
|
|
7376
7369
|
/**
|
|
7377
7370
|
* @internal
|
|
7378
7371
|
* */
|
|
@@ -7380,12 +7373,12 @@ declare function ChangesError({
|
|
|
7380
7373
|
error
|
|
7381
7374
|
}: {
|
|
7382
7375
|
error?: Error | null;
|
|
7383
|
-
}):
|
|
7376
|
+
}): import("react").JSX.Element;
|
|
7384
7377
|
/** @internal */
|
|
7385
7378
|
declare function ChangeTitleSegment(props: {
|
|
7386
7379
|
change?: FieldChangeNode;
|
|
7387
7380
|
segment: string | FromToIndex;
|
|
7388
|
-
}):
|
|
7381
|
+
}): import("react").JSX.Element;
|
|
7389
7382
|
/**
|
|
7390
7383
|
* @internal
|
|
7391
7384
|
* mapping of events types with a readable key for translation
|
|
@@ -7403,7 +7396,7 @@ interface DiffCardProps {
|
|
|
7403
7396
|
} | boolean;
|
|
7404
7397
|
}
|
|
7405
7398
|
/** @internal */
|
|
7406
|
-
declare const DiffCard:
|
|
7399
|
+
declare const DiffCard: import("react").ForwardRefExoticComponent<Omit<DiffCardProps & Omit<HTMLProps<HTMLElement>, "as" | "height">, "ref"> & import("react").RefAttributes<unknown>>;
|
|
7407
7400
|
/** @internal */
|
|
7408
7401
|
interface DiffErrorBoundaryProps {
|
|
7409
7402
|
children: ReactNode;
|
|
@@ -7420,7 +7413,7 @@ declare class DiffErrorBoundary extends Component<DiffErrorBoundaryProps, DiffEr
|
|
|
7420
7413
|
};
|
|
7421
7414
|
state: DiffErrorBoundaryState;
|
|
7422
7415
|
componentDidCatch(error: Error): void;
|
|
7423
|
-
render(): string | number | bigint | boolean |
|
|
7416
|
+
render(): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
7424
7417
|
}
|
|
7425
7418
|
/** @internal */
|
|
7426
7419
|
type FieldPreviewComponent<T = any> = ComponentType<{
|
|
@@ -7439,7 +7432,7 @@ interface DiffFromToProps {
|
|
|
7439
7432
|
schemaType: SchemaType;
|
|
7440
7433
|
}
|
|
7441
7434
|
/** @internal */
|
|
7442
|
-
declare function DiffFromTo(props: DiffFromToProps):
|
|
7435
|
+
declare function DiffFromTo(props: DiffFromToProps): import("react").JSX.Element;
|
|
7443
7436
|
/** @internal */
|
|
7444
7437
|
interface DiffInspectWrapperProps {
|
|
7445
7438
|
children: ReactNode;
|
|
@@ -7455,7 +7448,7 @@ declare function DiffStringSegment(props: {
|
|
|
7455
7448
|
/** @internal */
|
|
7456
7449
|
declare function DiffString(props: {
|
|
7457
7450
|
diff: StringDiff$1;
|
|
7458
|
-
}):
|
|
7451
|
+
}): import("react").JSX.Element;
|
|
7459
7452
|
/** @internal */
|
|
7460
7453
|
interface DiffTooltipProps extends TooltipProps$1 {
|
|
7461
7454
|
children: React.JSX.Element;
|
|
@@ -7470,7 +7463,7 @@ interface DiffTooltipWithAnnotationsProps extends TooltipProps$1 {
|
|
|
7470
7463
|
description?: ReactNode;
|
|
7471
7464
|
}
|
|
7472
7465
|
/** @internal */
|
|
7473
|
-
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps):
|
|
7466
|
+
declare function DiffTooltip(props: DiffTooltipProps | DiffTooltipWithAnnotationsProps): import("react").JSX.Element;
|
|
7474
7467
|
interface TimelineItemProps {
|
|
7475
7468
|
event: DocumentGroupEvent;
|
|
7476
7469
|
showChangesBy: 'tooltip' | 'inline' | 'hidden';
|
|
@@ -7481,7 +7474,7 @@ interface TimelineItemProps {
|
|
|
7481
7474
|
declare function Event$1({
|
|
7482
7475
|
event,
|
|
7483
7476
|
showChangesBy
|
|
7484
|
-
}: TimelineItemProps):
|
|
7477
|
+
}: TimelineItemProps): import("react").JSX.Element;
|
|
7485
7478
|
/** @internal */
|
|
7486
7479
|
declare const FallbackDiff: DiffComponent<Diff$1<unknown, Record<string, unknown>>>;
|
|
7487
7480
|
/** @internal */
|
|
@@ -7490,7 +7483,7 @@ declare function FieldChange(props: {
|
|
|
7490
7483
|
readOnly?: boolean;
|
|
7491
7484
|
hidden?: boolean;
|
|
7492
7485
|
addParentWrapper?: boolean;
|
|
7493
|
-
} & HTMLAttributes<HTMLDivElement>):
|
|
7486
|
+
} & HTMLAttributes<HTMLDivElement>): import("react").JSX.Element | null;
|
|
7494
7487
|
/** @internal */
|
|
7495
7488
|
type FromToProps = {
|
|
7496
7489
|
align?: 'top' | 'center' | 'bottom';
|
|
@@ -7499,13 +7492,13 @@ type FromToProps = {
|
|
|
7499
7492
|
to?: ReactNode;
|
|
7500
7493
|
} & Omit<HTMLProps<HTMLDivElement>, 'children' | 'as' | 'height' | 'wrap'>;
|
|
7501
7494
|
/** @internal */
|
|
7502
|
-
declare const FromTo:
|
|
7495
|
+
declare const FromTo: import("react").ForwardRefExoticComponent<Omit<FromToProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7503
7496
|
/** @internal */
|
|
7504
7497
|
type FromToArrowDirection = 'down' | 'right';
|
|
7505
7498
|
/** @internal */
|
|
7506
7499
|
declare function FromToArrow(props: {
|
|
7507
7500
|
direction?: FromToArrowDirection;
|
|
7508
|
-
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>):
|
|
7501
|
+
} & TextProps & Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref'>): import("react").JSX.Element;
|
|
7509
7502
|
/** @internal */
|
|
7510
7503
|
declare function GroupChange(props: {
|
|
7511
7504
|
change: GroupChangeNode;
|
|
@@ -7521,13 +7514,13 @@ interface MetaInfoProps {
|
|
|
7521
7514
|
markRemoved?: boolean;
|
|
7522
7515
|
}
|
|
7523
7516
|
/** @internal */
|
|
7524
|
-
declare function MetaInfo(props: MetaInfoProps):
|
|
7517
|
+
declare function MetaInfo(props: MetaInfoProps): import("react").JSX.Element;
|
|
7525
7518
|
/** @internal */
|
|
7526
|
-
declare function NoChanges():
|
|
7519
|
+
declare function NoChanges(): import("react").JSX.Element;
|
|
7527
7520
|
/** @internal */
|
|
7528
|
-
declare const RevertChangesButton:
|
|
7521
|
+
declare const RevertChangesButton: import("react").ForwardRefExoticComponent<Omit<ButtonProps$1, "tooltipProps"> & Omit<HTMLProps<HTMLButtonElement>, "ref"> & {
|
|
7529
7522
|
changeCount: number;
|
|
7530
|
-
} &
|
|
7523
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7531
7524
|
interface RevertChangesConfirmDialogProps {
|
|
7532
7525
|
open: boolean;
|
|
7533
7526
|
onConfirm: () => void;
|
|
@@ -7544,13 +7537,13 @@ declare function RevertChangesConfirmDialog({
|
|
|
7544
7537
|
onCancel,
|
|
7545
7538
|
changeCount,
|
|
7546
7539
|
referenceElement
|
|
7547
|
-
}: RevertChangesConfirmDialogProps):
|
|
7540
|
+
}: RevertChangesConfirmDialogProps): import("react").JSX.Element;
|
|
7548
7541
|
/** @internal */
|
|
7549
7542
|
declare function ValueError({
|
|
7550
7543
|
error
|
|
7551
7544
|
}: {
|
|
7552
7545
|
error: FieldValueError;
|
|
7553
|
-
}):
|
|
7546
|
+
}): import("react").JSX.Element;
|
|
7554
7547
|
/** @internal */
|
|
7555
7548
|
type DocumentChangeContextInstance = {
|
|
7556
7549
|
documentId: string;
|
|
@@ -7680,7 +7673,7 @@ declare function PerspectiveProvider({
|
|
|
7680
7673
|
children: React.ReactNode;
|
|
7681
7674
|
selectedPerspectiveName: 'published' | ReleaseId | undefined;
|
|
7682
7675
|
excludedPerspectives?: string[];
|
|
7683
|
-
}):
|
|
7676
|
+
}): import("react").JSX.Element;
|
|
7684
7677
|
interface ExcludedPerspectiveValue {
|
|
7685
7678
|
excludedPerspectives: string[];
|
|
7686
7679
|
toggleExcludedPerspective: (perspectiveId: string) => void;
|
|
@@ -7755,7 +7748,7 @@ interface Props$4 {
|
|
|
7755
7748
|
* @deprecated we will be dropping support for scheduled publishing on a future major version
|
|
7756
7749
|
* @internal
|
|
7757
7750
|
*/
|
|
7758
|
-
declare function EditScheduleForm(props: PropsWithChildren<Props$4>):
|
|
7751
|
+
declare function EditScheduleForm(props: PropsWithChildren<Props$4>): import("react").JSX.Element;
|
|
7759
7752
|
/**
|
|
7760
7753
|
* @internal
|
|
7761
7754
|
*/
|
|
@@ -7978,7 +7971,7 @@ interface GetHookCollectionStateProps<Args, State> {
|
|
|
7978
7971
|
resetRef?: React.Ref<() => void>;
|
|
7979
7972
|
}
|
|
7980
7973
|
/** @internal */
|
|
7981
|
-
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>):
|
|
7974
|
+
declare function GetHookCollectionState<Args, State>(props: GetHookCollectionStateProps<Args, State>): import("react").JSX.Element;
|
|
7982
7975
|
/**
|
|
7983
7976
|
* @hidden
|
|
7984
7977
|
* @beta */
|
|
@@ -8031,7 +8024,7 @@ interface SingleDocReleaseProviderProps {
|
|
|
8031
8024
|
declare function SingleDocReleaseProvider({
|
|
8032
8025
|
children,
|
|
8033
8026
|
onSetScheduledDraftPerspective
|
|
8034
|
-
}: SingleDocReleaseProviderProps):
|
|
8027
|
+
}: SingleDocReleaseProviderProps): import("react").JSX.Element;
|
|
8035
8028
|
/**
|
|
8036
8029
|
* Hook to get the single doc release context
|
|
8037
8030
|
* @internal
|
|
@@ -9656,7 +9649,7 @@ declare function DocumentStatus({
|
|
|
9656
9649
|
published,
|
|
9657
9650
|
versions,
|
|
9658
9651
|
singleLine
|
|
9659
|
-
}: DocumentStatusProps$1):
|
|
9652
|
+
}: DocumentStatusProps$1): import("react").JSX.Element;
|
|
9660
9653
|
/**
|
|
9661
9654
|
* @internal
|
|
9662
9655
|
*/
|
|
@@ -9726,7 +9719,7 @@ declare function DocumentStatusIndicator({
|
|
|
9726
9719
|
draft,
|
|
9727
9720
|
published,
|
|
9728
9721
|
versions
|
|
9729
|
-
}: DocumentStatusProps):
|
|
9722
|
+
}: DocumentStatusProps): import("react").JSX.Element;
|
|
9730
9723
|
/**
|
|
9731
9724
|
* @internal
|
|
9732
9725
|
*/
|
|
@@ -9782,7 +9775,7 @@ declare function Hotkeys({
|
|
|
9782
9775
|
makePlatformAware,
|
|
9783
9776
|
keys: hotKeys,
|
|
9784
9777
|
...props
|
|
9785
|
-
}: HotkeysProps$1):
|
|
9778
|
+
}: HotkeysProps$1): import("react").JSX.Element;
|
|
9786
9779
|
/** @internal */
|
|
9787
9780
|
interface InsufficientPermissionsMessageProps {
|
|
9788
9781
|
currentUser?: CurrentUser | null;
|
|
@@ -9792,13 +9785,13 @@ interface InsufficientPermissionsMessageProps {
|
|
|
9792
9785
|
declare function InsufficientPermissionsMessage({
|
|
9793
9786
|
currentUser,
|
|
9794
9787
|
context
|
|
9795
|
-
}: InsufficientPermissionsMessageProps):
|
|
9788
|
+
}: InsufficientPermissionsMessageProps): import("react").JSX.Element;
|
|
9796
9789
|
/**
|
|
9797
9790
|
*
|
|
9798
9791
|
* @hidden
|
|
9799
9792
|
* @beta
|
|
9800
9793
|
*/
|
|
9801
|
-
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>):
|
|
9794
|
+
declare function IntentButton(props: IntentLinkProps & ButtonProps$1 & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'size' | 'as'>): import("react").JSX.Element;
|
|
9802
9795
|
interface LoadingTestProps {
|
|
9803
9796
|
/** Absolutely positions this component when `true`. */
|
|
9804
9797
|
fill?: boolean;
|
|
@@ -9822,7 +9815,7 @@ declare function LoadingBlock({
|
|
|
9822
9815
|
fill,
|
|
9823
9816
|
showText,
|
|
9824
9817
|
title
|
|
9825
|
-
}: LoadingTestProps):
|
|
9818
|
+
}: LoadingTestProps): import("react").JSX.Element;
|
|
9826
9819
|
interface PopoverDialogProps {
|
|
9827
9820
|
children: ReactNode;
|
|
9828
9821
|
header?: ReactNode;
|
|
@@ -9832,7 +9825,7 @@ interface PopoverDialogProps {
|
|
|
9832
9825
|
containerRef?: Dispatch<SetStateAction<HTMLDivElement | null>>;
|
|
9833
9826
|
}
|
|
9834
9827
|
/** @internal */
|
|
9835
|
-
declare function PopoverDialog(props: PopoverDialogProps):
|
|
9828
|
+
declare function PopoverDialog(props: PopoverDialogProps): import("react").JSX.Element;
|
|
9836
9829
|
/** @internal */
|
|
9837
9830
|
interface PreviewCardContextValue {
|
|
9838
9831
|
selected?: boolean;
|
|
@@ -9840,7 +9833,7 @@ interface PreviewCardContextValue {
|
|
|
9840
9833
|
/** @internal */
|
|
9841
9834
|
declare function usePreviewCard(): PreviewCardContextValue;
|
|
9842
9835
|
/** @internal */
|
|
9843
|
-
declare const PreviewCard:
|
|
9836
|
+
declare const PreviewCard: import("react").ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9844
9837
|
/**
|
|
9845
9838
|
* This is a workaround for a circular import issue.
|
|
9846
9839
|
* Calling `styled(PreviewCard)` at program load time triggered a build error with the commonjs bundle because it tried
|
|
@@ -9848,7 +9841,7 @@ declare const PreviewCard: _$react.ForwardRefExoticComponent<Omit<CardProps & Om
|
|
|
9848
9841
|
* The workaround is to colocate the styled component with the component itself.
|
|
9849
9842
|
* @internal
|
|
9850
9843
|
*/
|
|
9851
|
-
declare const ReferenceInputPreviewCard:
|
|
9844
|
+
declare const ReferenceInputPreviewCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<CardProps & Omit<HTMLProps<HTMLDivElement>, "height">, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
9852
9845
|
/**
|
|
9853
9846
|
* Portable text preview layout key
|
|
9854
9847
|
*
|
|
@@ -9935,7 +9928,7 @@ type CompactPreviewProps = Omit<PreviewProps<'compact'>, 'renderDefault'>;
|
|
|
9935
9928
|
/**
|
|
9936
9929
|
* @hidden
|
|
9937
9930
|
* @beta */
|
|
9938
|
-
declare function CompactPreview(props: CompactPreviewProps):
|
|
9931
|
+
declare function CompactPreview(props: CompactPreviewProps): import("react").JSX.Element;
|
|
9939
9932
|
/**
|
|
9940
9933
|
* @hidden
|
|
9941
9934
|
* @beta */
|
|
@@ -9956,7 +9949,7 @@ interface DefaultPreviewProps extends Omit<PreviewProps<'default'>, 'renderDefau
|
|
|
9956
9949
|
/**
|
|
9957
9950
|
* @hidden
|
|
9958
9951
|
* @beta */
|
|
9959
|
-
declare function DefaultPreview(props: DefaultPreviewProps):
|
|
9952
|
+
declare function DefaultPreview(props: DefaultPreviewProps): import("react").JSX.Element;
|
|
9960
9953
|
/**
|
|
9961
9954
|
* @hidden
|
|
9962
9955
|
* @beta */
|
|
@@ -9964,7 +9957,7 @@ type DetailPreviewProps = PreviewProps<'detail'>;
|
|
|
9964
9957
|
/**
|
|
9965
9958
|
* @hidden
|
|
9966
9959
|
* @beta */
|
|
9967
|
-
declare function DetailPreview(props: DetailPreviewProps):
|
|
9960
|
+
declare function DetailPreview(props: DetailPreviewProps): import("react").JSX.Element;
|
|
9968
9961
|
/**
|
|
9969
9962
|
* @hidden
|
|
9970
9963
|
* @beta */
|
|
@@ -9972,7 +9965,7 @@ type MediaPreviewProps = Omit<PreviewProps<'media'>, 'renderDefault'>;
|
|
|
9972
9965
|
/**
|
|
9973
9966
|
* @hidden
|
|
9974
9967
|
* @beta */
|
|
9975
|
-
declare function MediaPreview(props: MediaPreviewProps):
|
|
9968
|
+
declare function MediaPreview(props: MediaPreviewProps): import("react").JSX.Element;
|
|
9976
9969
|
/**
|
|
9977
9970
|
* @hidden
|
|
9978
9971
|
* @beta */
|
|
@@ -9980,11 +9973,11 @@ type BlockImagePreviewProps = Omit<PreviewProps<'blockImage'>, 'renderDefault'>;
|
|
|
9980
9973
|
/**
|
|
9981
9974
|
* @hidden
|
|
9982
9975
|
* @beta */
|
|
9983
|
-
declare function BlockImagePreview(props: BlockImagePreviewProps):
|
|
9976
|
+
declare function BlockImagePreview(props: BlockImagePreviewProps): import("react").JSX.Element;
|
|
9984
9977
|
/**
|
|
9985
9978
|
* @hidden
|
|
9986
9979
|
* @beta */
|
|
9987
|
-
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>):
|
|
9980
|
+
declare function BlockPreview(props: Omit<PreviewProps<'block'>, 'renderDefault'>): import("react").JSX.Element;
|
|
9988
9981
|
/**
|
|
9989
9982
|
* @hidden
|
|
9990
9983
|
* @beta */
|
|
@@ -9992,7 +9985,7 @@ type InlinePreviewProps = Omit<PreviewProps<'inline'>, 'renderDefault'>;
|
|
|
9992
9985
|
/**
|
|
9993
9986
|
* @hidden
|
|
9994
9987
|
* @beta */
|
|
9995
|
-
declare function InlinePreview(props: InlinePreviewProps):
|
|
9988
|
+
declare function InlinePreview(props: InlinePreviewProps): import("react").JSX.Element;
|
|
9996
9989
|
interface MediaProps {
|
|
9997
9990
|
border?: boolean;
|
|
9998
9991
|
dimensions: PreviewMediaDimensions;
|
|
@@ -10023,19 +10016,19 @@ interface TemplatePreviewProps {
|
|
|
10023
10016
|
/**
|
|
10024
10017
|
* @hidden
|
|
10025
10018
|
* @beta */
|
|
10026
|
-
declare function TemplatePreview(props: TemplatePreviewProps):
|
|
10019
|
+
declare function TemplatePreview(props: TemplatePreviewProps): import("react").JSX.Element;
|
|
10027
10020
|
/**
|
|
10028
10021
|
* @hidden
|
|
10029
10022
|
* @beta */
|
|
10030
10023
|
declare function CircularProgress(props: {
|
|
10031
10024
|
/** Percentage */value: number;
|
|
10032
|
-
}):
|
|
10025
|
+
}): import("react").JSX.Element;
|
|
10033
10026
|
/**
|
|
10034
10027
|
* @hidden
|
|
10035
10028
|
* @beta */
|
|
10036
10029
|
declare function LinearProgress(props: {
|
|
10037
10030
|
/** Percentage */value: number;
|
|
10038
|
-
}):
|
|
10031
|
+
}): import("react").JSX.Element;
|
|
10039
10032
|
/**
|
|
10040
10033
|
* @internal
|
|
10041
10034
|
*/
|
|
@@ -10048,7 +10041,7 @@ interface RelativeTimeProps extends RelativeTimeOptions {
|
|
|
10048
10041
|
declare function RelativeTime({
|
|
10049
10042
|
time,
|
|
10050
10043
|
...options
|
|
10051
|
-
}: RelativeTimeProps):
|
|
10044
|
+
}: RelativeTimeProps): import("react").JSX.Element;
|
|
10052
10045
|
interface ResizableProps {
|
|
10053
10046
|
minWidth: number;
|
|
10054
10047
|
maxWidth: number;
|
|
@@ -10059,7 +10052,7 @@ interface ResizableProps {
|
|
|
10059
10052
|
* @internal
|
|
10060
10053
|
* Provides a resizable container with a resizer handle.
|
|
10061
10054
|
*/
|
|
10062
|
-
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>):
|
|
10055
|
+
declare function Resizable(props: ResizableProps & BoxProps & Omit<HTMLProps<HTMLDivElement>, 'as'>): import("react").JSX.Element;
|
|
10063
10056
|
/**
|
|
10064
10057
|
* @hidden
|
|
10065
10058
|
* @beta */
|
|
@@ -10115,18 +10108,18 @@ type StatusButtonProps = ButtonProps$1 & {
|
|
|
10115
10108
|
'iconRight'?: undefined;
|
|
10116
10109
|
};
|
|
10117
10110
|
/** @hidden @beta */
|
|
10118
|
-
declare const StatusButton:
|
|
10111
|
+
declare const StatusButton: import("react").ForwardRefExoticComponent<(StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, "disabled" | "ref" | "size" | "title">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10119
10112
|
/** @internal */
|
|
10120
10113
|
interface TextWithToneProps extends ComponentProps<typeof Text> {
|
|
10121
10114
|
tone: ButtonTone;
|
|
10122
10115
|
dimmed?: boolean;
|
|
10123
10116
|
}
|
|
10124
10117
|
/** @internal */
|
|
10125
|
-
declare const TextWithTone:
|
|
10118
|
+
declare const TextWithTone: import("react").ForwardRefExoticComponent<Omit<TextWithToneProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10126
10119
|
/** @internal */
|
|
10127
|
-
declare const TooltipOfDisabled:
|
|
10128
|
-
hotkeys?:
|
|
10129
|
-
} &
|
|
10120
|
+
declare const TooltipOfDisabled: import("react").ForwardRefExoticComponent<Omit<import("@sanity/ui").TooltipProps, "arrow" | "padding" | "shadow"> & {
|
|
10121
|
+
hotkeys?: import("@sanity/ui").HotkeysProps['keys'];
|
|
10122
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
10130
10123
|
/** @internal */
|
|
10131
10124
|
interface ToastParams$1 {
|
|
10132
10125
|
closable?: boolean;
|
|
@@ -10140,7 +10133,7 @@ interface ToastParams$1 {
|
|
|
10140
10133
|
* @internal
|
|
10141
10134
|
* @deprecated -- Refactor the component so it can call `useToast` instead
|
|
10142
10135
|
*/
|
|
10143
|
-
declare const ImperativeToast:
|
|
10136
|
+
declare const ImperativeToast: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
10144
10137
|
/**
|
|
10145
10138
|
* TODO: Rename to `ZOffsetsContextValue`
|
|
10146
10139
|
*
|
|
@@ -10196,7 +10189,7 @@ declare function LegacyLayerProvider({
|
|
|
10196
10189
|
}: {
|
|
10197
10190
|
children: ReactNode;
|
|
10198
10191
|
zOffset: ZIndexContextValueKey;
|
|
10199
|
-
}):
|
|
10192
|
+
}): import("react").JSX.Element;
|
|
10200
10193
|
interface AvatarSkeletonProps {
|
|
10201
10194
|
$size?: AvatarSize;
|
|
10202
10195
|
}
|
|
@@ -10204,7 +10197,7 @@ interface AvatarSkeletonProps {
|
|
|
10204
10197
|
* A loading skeleton element representing a user avatar
|
|
10205
10198
|
* @beta
|
|
10206
10199
|
*/
|
|
10207
|
-
declare const AvatarSkeleton:
|
|
10200
|
+
declare const AvatarSkeleton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("@sanity/ui").SkeletonProps & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, AvatarSkeletonProps>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("@sanity/ui").SkeletonProps & import("react").HTMLProps<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
10208
10201
|
/**
|
|
10209
10202
|
* @hidden
|
|
10210
10203
|
* @beta */
|
|
@@ -10221,7 +10214,7 @@ interface UserAvatarProps {
|
|
|
10221
10214
|
/**
|
|
10222
10215
|
* @hidden
|
|
10223
10216
|
* @beta */
|
|
10224
|
-
declare function UserAvatar(props: UserAvatarProps):
|
|
10217
|
+
declare function UserAvatar(props: UserAvatarProps): import("react").JSX.Element;
|
|
10225
10218
|
/**
|
|
10226
10219
|
* @internal
|
|
10227
10220
|
* @deprecated - Will be removed in 4.0.0, use the `useReferringDocuments(<documentId>)` hook instead
|
|
@@ -10239,7 +10232,7 @@ declare function WithReferringDocuments({
|
|
|
10239
10232
|
*/
|
|
10240
10233
|
documentStore?: DocumentStore;
|
|
10241
10234
|
id: string;
|
|
10242
|
-
}):
|
|
10235
|
+
}): import("react").JSX.Element;
|
|
10243
10236
|
/**
|
|
10244
10237
|
* TODO: Rename to `useZOffsets`
|
|
10245
10238
|
*
|
|
@@ -10349,9 +10342,9 @@ interface FormCallbacksValue {
|
|
|
10349
10342
|
onFieldGroupSelect: (path: Path, fieldGroupName: string) => void;
|
|
10350
10343
|
}
|
|
10351
10344
|
/** @internal */
|
|
10352
|
-
declare const FormCallbacksProvider:
|
|
10345
|
+
declare const FormCallbacksProvider: import("react").MemoExoticComponent<(props: FormCallbacksValue & {
|
|
10353
10346
|
children: ReactNode;
|
|
10354
|
-
}) =>
|
|
10347
|
+
}) => import("react").JSX.Element>;
|
|
10355
10348
|
/** @internal */
|
|
10356
10349
|
declare function useFormCallbacks(): FormCallbacksValue;
|
|
10357
10350
|
/**
|
|
@@ -10366,7 +10359,7 @@ declare function useFormCallbacks(): FormCallbacksValue;
|
|
|
10366
10359
|
*/
|
|
10367
10360
|
declare function ParseErrorsProvider(props: {
|
|
10368
10361
|
children: ReactNode;
|
|
10369
|
-
}):
|
|
10362
|
+
}): import("react").JSX.Element;
|
|
10370
10363
|
/**
|
|
10371
10364
|
* Returns the current parse-errors map for the surrounding document subtree.
|
|
10372
10365
|
* Keys are stringified paths produced by `@sanity/util/paths` `toString`.
|
|
@@ -10454,7 +10447,7 @@ declare function useReferenceInputOptions(): ReferenceInputOptions;
|
|
|
10454
10447
|
*/
|
|
10455
10448
|
declare function ReferenceInputOptionsProvider(props: ReferenceInputOptions & {
|
|
10456
10449
|
children: ReactNode;
|
|
10457
|
-
}):
|
|
10450
|
+
}): import("react").JSX.Element;
|
|
10458
10451
|
/** @internal */
|
|
10459
10452
|
declare const defaultRenderAnnotation: RenderAnnotationCallback;
|
|
10460
10453
|
/** @internal */
|
|
@@ -10505,7 +10498,7 @@ interface FormBuilderProps extends Omit<ObjectFormNode, 'level' | 'path' | 'pres
|
|
|
10505
10498
|
/**
|
|
10506
10499
|
* @alpha
|
|
10507
10500
|
*/
|
|
10508
|
-
declare function FormBuilder(props: FormBuilderProps):
|
|
10501
|
+
declare function FormBuilder(props: FormBuilderProps): import("react").JSX.Element;
|
|
10509
10502
|
/**
|
|
10510
10503
|
* @alpha This API might change.
|
|
10511
10504
|
*/
|
|
@@ -10542,7 +10535,7 @@ interface FormProviderProps {
|
|
|
10542
10535
|
*
|
|
10543
10536
|
* @alpha This API might change.
|
|
10544
10537
|
*/
|
|
10545
|
-
declare function FormProvider(props: FormProviderProps):
|
|
10538
|
+
declare function FormProvider(props: FormProviderProps): import("react").JSX.Element;
|
|
10546
10539
|
/**
|
|
10547
10540
|
*
|
|
10548
10541
|
* @hidden
|
|
@@ -10554,7 +10547,7 @@ type StudioCrossDatasetReferenceInputProps = ObjectInputProps<CrossDatasetRefere
|
|
|
10554
10547
|
* @hidden
|
|
10555
10548
|
* @beta
|
|
10556
10549
|
*/
|
|
10557
|
-
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps):
|
|
10550
|
+
declare function StudioCrossDatasetReferenceInput(props: StudioCrossDatasetReferenceInputProps): import("react").JSX.Element;
|
|
10558
10551
|
/**
|
|
10559
10552
|
*
|
|
10560
10553
|
* @hidden
|
|
@@ -10566,7 +10559,7 @@ type StudioReferenceInputProps = ObjectInputProps<Reference, ReferenceSchemaType
|
|
|
10566
10559
|
* @hidden
|
|
10567
10560
|
* @beta
|
|
10568
10561
|
*/
|
|
10569
|
-
declare function StudioReferenceInput(props: StudioReferenceInputProps):
|
|
10562
|
+
declare function StudioReferenceInput(props: StudioReferenceInputProps): import("react").JSX.Element;
|
|
10570
10563
|
/**
|
|
10571
10564
|
*
|
|
10572
10565
|
* @hidden
|
|
@@ -10662,7 +10655,7 @@ type FileInputProps = Omit<BaseFileInputProps, 'assetSources' | 'directUploads'
|
|
|
10662
10655
|
/**
|
|
10663
10656
|
* @hidden
|
|
10664
10657
|
* @beta */
|
|
10665
|
-
declare function StudioFileInput(props: FileInputProps):
|
|
10658
|
+
declare function StudioFileInput(props: FileInputProps): import("react").JSX.Element;
|
|
10666
10659
|
/**
|
|
10667
10660
|
* @hidden
|
|
10668
10661
|
* @beta
|
|
@@ -10690,7 +10683,7 @@ type ImageInputProps = Omit<BaseImageInputProps, 'assetSources' | 'directUploads
|
|
|
10690
10683
|
/**
|
|
10691
10684
|
* @hidden
|
|
10692
10685
|
* @beta */
|
|
10693
|
-
declare function StudioImageInput(props: ImageInputProps):
|
|
10686
|
+
declare function StudioImageInput(props: ImageInputProps): import("react").JSX.Element;
|
|
10694
10687
|
/**
|
|
10695
10688
|
* @internal
|
|
10696
10689
|
*/
|
|
@@ -12714,7 +12707,7 @@ declare module '@sanity/types' {
|
|
|
12714
12707
|
*/
|
|
12715
12708
|
declare function Preview(props: RenderPreviewCallbackProps & {
|
|
12716
12709
|
perspectiveStack?: PerspectiveStack;
|
|
12717
|
-
}):
|
|
12710
|
+
}): import("react").JSX.Element;
|
|
12718
12711
|
/**
|
|
12719
12712
|
* This component is responsible for converting renderPreview() calls into an element.
|
|
12720
12713
|
* It:
|
|
@@ -12737,7 +12730,7 @@ interface SanityDefaultPreviewProps extends Omit<PreviewProps, 'renderDefault'>
|
|
|
12737
12730
|
* Used in cases where no custom preview component is provided
|
|
12738
12731
|
* @internal
|
|
12739
12732
|
* */
|
|
12740
|
-
declare const SanityDefaultPreview:
|
|
12733
|
+
declare const SanityDefaultPreview: import("react").MemoExoticComponent<(props: SanityDefaultPreviewProps) => React.JSX.Element>;
|
|
12741
12734
|
/**
|
|
12742
12735
|
* @internal
|
|
12743
12736
|
* @beta
|
|
@@ -12831,9 +12824,9 @@ declare function getPreviewValueWithFallback({
|
|
|
12831
12824
|
original,
|
|
12832
12825
|
fallback
|
|
12833
12826
|
}: Sources): Partial<SanityDocument> | PreviewValue | {
|
|
12834
|
-
title:
|
|
12835
|
-
subtitle:
|
|
12836
|
-
media: () =>
|
|
12827
|
+
title: import("react").JSX.Element;
|
|
12828
|
+
subtitle: import("react").JSX.Element;
|
|
12829
|
+
media: () => import("react").JSX.Element;
|
|
12837
12830
|
};
|
|
12838
12831
|
/** @internal */
|
|
12839
12832
|
declare function prepareForPreview(rawValue: unknown, type: PreviewableType, viewOptions?: PrepareViewOptions): PreviewValue & {
|
|
@@ -14043,7 +14036,7 @@ interface ResourceCacheProviderProps {
|
|
|
14043
14036
|
/** @internal */
|
|
14044
14037
|
declare function ResourceCacheProvider({
|
|
14045
14038
|
children
|
|
14046
|
-
}: ResourceCacheProviderProps):
|
|
14039
|
+
}: ResourceCacheProviderProps): import("react").JSX.Element;
|
|
14047
14040
|
/** @internal */
|
|
14048
14041
|
declare function useResourceCache(): ResourceCache;
|
|
14049
14042
|
/** @internal */
|
|
@@ -14070,7 +14063,7 @@ interface DocumentPreviewPresenceProps {
|
|
|
14070
14063
|
presence: Omit<DocumentPresence, 'path'>[];
|
|
14071
14064
|
}
|
|
14072
14065
|
/** @internal */
|
|
14073
|
-
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps):
|
|
14066
|
+
declare function DocumentPreviewPresence(props: DocumentPreviewPresenceProps): import("react").JSX.Element;
|
|
14074
14067
|
/** @internal */
|
|
14075
14068
|
type Position = 'top' | 'bottom' | 'inside' | null;
|
|
14076
14069
|
/** @internal */
|
|
@@ -14130,20 +14123,20 @@ interface FieldPresenceInnerProps {
|
|
|
14130
14123
|
animateArrowFrom?: AvatarPosition;
|
|
14131
14124
|
}
|
|
14132
14125
|
/** @internal */
|
|
14133
|
-
declare const FieldPresenceInner:
|
|
14126
|
+
declare const FieldPresenceInner: import("react").MemoExoticComponent<({
|
|
14134
14127
|
presence,
|
|
14135
14128
|
position,
|
|
14136
14129
|
animateArrowFrom,
|
|
14137
14130
|
maxAvatars,
|
|
14138
14131
|
stack
|
|
14139
|
-
}: FieldPresenceInnerProps) =>
|
|
14132
|
+
}: FieldPresenceInnerProps) => import("react").JSX.Element>;
|
|
14140
14133
|
/** @internal */
|
|
14141
14134
|
interface FieldPresenceProps {
|
|
14142
14135
|
presence: FormNodePresence[];
|
|
14143
14136
|
maxAvatars: number;
|
|
14144
14137
|
}
|
|
14145
14138
|
/** @internal */
|
|
14146
|
-
declare function FieldPresence(props: FieldPresenceProps):
|
|
14139
|
+
declare function FieldPresence(props: FieldPresenceProps): import("react").JSX.Element;
|
|
14147
14140
|
/**
|
|
14148
14141
|
* @internal
|
|
14149
14142
|
* @hidden
|
|
@@ -14160,7 +14153,7 @@ interface PresenceOverlayProps {
|
|
|
14160
14153
|
declare function PresenceOverlay({
|
|
14161
14154
|
children,
|
|
14162
14155
|
margins
|
|
14163
|
-
}: PresenceOverlayProps):
|
|
14156
|
+
}: PresenceOverlayProps): import("react").JSX.Element;
|
|
14164
14157
|
/** @internal */
|
|
14165
14158
|
interface PresenceScopeProps {
|
|
14166
14159
|
readOnly?: boolean;
|
|
@@ -14168,7 +14161,7 @@ interface PresenceScopeProps {
|
|
|
14168
14161
|
children: ReactNode;
|
|
14169
14162
|
}
|
|
14170
14163
|
/** @internal */
|
|
14171
|
-
declare function PresenceScope(props: PresenceScopeProps):
|
|
14164
|
+
declare function PresenceScope(props: PresenceScopeProps): import("react").JSX.Element;
|
|
14172
14165
|
/** @internal */
|
|
14173
14166
|
interface FormFieldProps {
|
|
14174
14167
|
/**
|
|
@@ -14204,7 +14197,7 @@ interface FormFieldProps {
|
|
|
14204
14197
|
path: Path;
|
|
14205
14198
|
}
|
|
14206
14199
|
/** @internal */
|
|
14207
|
-
declare const FormField:
|
|
14200
|
+
declare const FormField: import("react").MemoExoticComponent<(props: FormFieldProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref'>) => import("react").JSX.Element>;
|
|
14208
14201
|
/** @internal */
|
|
14209
14202
|
interface FormFieldHeaderTextProps {
|
|
14210
14203
|
/**
|
|
@@ -14226,7 +14219,7 @@ interface FormFieldHeaderTextProps {
|
|
|
14226
14219
|
suffix?: ReactNode;
|
|
14227
14220
|
}
|
|
14228
14221
|
/** @internal */
|
|
14229
|
-
declare const FormFieldHeaderText:
|
|
14222
|
+
declare const FormFieldHeaderText: import("react").MemoExoticComponent<(props: FormFieldHeaderTextProps) => import("react").JSX.Element>;
|
|
14230
14223
|
/** @internal */
|
|
14231
14224
|
interface FormFieldSetProps {
|
|
14232
14225
|
/**
|
|
@@ -14268,7 +14261,7 @@ interface FormFieldSetProps {
|
|
|
14268
14261
|
readOnly?: boolean;
|
|
14269
14262
|
}
|
|
14270
14263
|
/** @internal */
|
|
14271
|
-
declare const FormFieldSet:
|
|
14264
|
+
declare const FormFieldSet: import("react").ForwardRefExoticComponent<FormFieldSetProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14272
14265
|
/** @internal */
|
|
14273
14266
|
interface FieldStatusProps {
|
|
14274
14267
|
children?: ReactNode;
|
|
@@ -14280,7 +14273,7 @@ declare function FormFieldStatus({
|
|
|
14280
14273
|
children,
|
|
14281
14274
|
maxAvatars,
|
|
14282
14275
|
position
|
|
14283
|
-
}: FieldStatusProps):
|
|
14276
|
+
}: FieldStatusProps): import("react").JSX.Element;
|
|
14284
14277
|
/** @internal */
|
|
14285
14278
|
interface FormFieldValidationStatusProps {
|
|
14286
14279
|
/**
|
|
@@ -14299,7 +14292,7 @@ interface FormFieldValidationStatusProps {
|
|
|
14299
14292
|
placement?: Placement;
|
|
14300
14293
|
}
|
|
14301
14294
|
/** @internal */
|
|
14302
|
-
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps):
|
|
14295
|
+
declare function FormFieldValidationStatus(props: FormFieldValidationStatusProps): import("react").JSX.Element;
|
|
14303
14296
|
/** @internal */
|
|
14304
14297
|
interface FormFieldValidationWarning {
|
|
14305
14298
|
type: 'warning';
|
|
@@ -14326,13 +14319,13 @@ type FormInputRelativePathArg = {
|
|
|
14326
14319
|
relativePath: Path;
|
|
14327
14320
|
};
|
|
14328
14321
|
/** @internal */
|
|
14329
|
-
declare const FormInput:
|
|
14322
|
+
declare const FormInput: import("react").MemoExoticComponent<(props: (ArrayOfObjectsInputProps | ObjectInputProps) & (FormInputRelativePathArg | FormInputAbsolutePathArg) & {
|
|
14330
14323
|
/**
|
|
14331
14324
|
* Whether to include the field around the input. Defaults to false
|
|
14332
14325
|
*/
|
|
14333
14326
|
includeField?: boolean;
|
|
14334
14327
|
includeItem?: boolean;
|
|
14335
|
-
}) =>
|
|
14328
|
+
}) => import("react").JSX.Element>;
|
|
14336
14329
|
declare const areas: readonly ['gutterStart', 'body', 'gutterEnd'];
|
|
14337
14330
|
type FormArea = (typeof areas)[number];
|
|
14338
14331
|
interface FormRowProps extends PropsWithChildren {
|
|
@@ -14348,11 +14341,11 @@ interface Props$2 {
|
|
|
14348
14341
|
/**
|
|
14349
14342
|
* @internal
|
|
14350
14343
|
*/
|
|
14351
|
-
declare const FormCell:
|
|
14344
|
+
declare const FormCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props$2>> & string;
|
|
14352
14345
|
/**
|
|
14353
14346
|
* @internal
|
|
14354
14347
|
*/
|
|
14355
|
-
declare const FormContainer:
|
|
14348
|
+
declare const FormContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14356
14349
|
interface PropsEnabled extends PropsWithChildren {
|
|
14357
14350
|
enabled: true;
|
|
14358
14351
|
formState: FormState;
|
|
@@ -14388,7 +14381,7 @@ interface FormValueContextValue {
|
|
|
14388
14381
|
declare function FormValueProvider(props: {
|
|
14389
14382
|
value: FormDocumentValue | undefined;
|
|
14390
14383
|
children: ReactNode;
|
|
14391
|
-
}):
|
|
14384
|
+
}): import("react").JSX.Element;
|
|
14392
14385
|
/**
|
|
14393
14386
|
* React hook that returns the value of the field specified by a path.
|
|
14394
14387
|
* @public
|
|
@@ -14414,7 +14407,7 @@ declare function useFormValue(path: Path): unknown;
|
|
|
14414
14407
|
declare function GetFormValueProvider(props: {
|
|
14415
14408
|
value: FormDocumentValue | undefined;
|
|
14416
14409
|
children: ReactNode;
|
|
14417
|
-
}):
|
|
14410
|
+
}): import("react").JSX.Element;
|
|
14418
14411
|
declare namespace GetFormValueProvider {
|
|
14419
14412
|
var displayName: string;
|
|
14420
14413
|
}
|
|
@@ -14439,14 +14432,14 @@ declare namespace GetFormValueProvider {
|
|
|
14439
14432
|
* }
|
|
14440
14433
|
* ```
|
|
14441
14434
|
*/
|
|
14442
|
-
declare function useGetFormValue():
|
|
14435
|
+
declare function useGetFormValue(): import("sanity/_singletons").GetFormValueContextValue;
|
|
14443
14436
|
/** @internal */
|
|
14444
14437
|
interface FieldActionMenuProps {
|
|
14445
14438
|
nodes: DocumentFieldActionNode[];
|
|
14446
14439
|
onMenuOpenChange: (open: boolean) => void;
|
|
14447
14440
|
}
|
|
14448
14441
|
/** @internal */
|
|
14449
|
-
declare const FieldActionMenu:
|
|
14442
|
+
declare const FieldActionMenu: import("react").MemoExoticComponent<(props: FieldActionMenuProps) => import("react").JSX.Element>;
|
|
14450
14443
|
type FieldActionsProviderProps = PropsWithChildren<{
|
|
14451
14444
|
actions: DocumentFieldActionNode[]; /** @internal @deprecated DO NOT USE */
|
|
14452
14445
|
__internal_comments?: FieldCommentsProps;
|
|
@@ -14455,7 +14448,7 @@ type FieldActionsProviderProps = PropsWithChildren<{
|
|
|
14455
14448
|
path: Path;
|
|
14456
14449
|
}>;
|
|
14457
14450
|
/** @internal */
|
|
14458
|
-
declare const FieldActionsProvider:
|
|
14451
|
+
declare const FieldActionsProvider: import("react").MemoExoticComponent<(props: FieldActionsProviderProps) => import("react").JSX.Element>;
|
|
14459
14452
|
/** @internal */
|
|
14460
14453
|
interface FieldActionsProps {
|
|
14461
14454
|
actions: DocumentFieldAction[];
|
|
@@ -14484,11 +14477,11 @@ interface FieldActionsProps {
|
|
|
14484
14477
|
*
|
|
14485
14478
|
* @internal
|
|
14486
14479
|
*/
|
|
14487
|
-
declare const FieldActionsResolver:
|
|
14480
|
+
declare const FieldActionsResolver: import("react").MemoExoticComponent<(props: FieldActionsProps) => import("react").JSX.Element>;
|
|
14488
14481
|
/** @internal */
|
|
14489
14482
|
declare function useFieldActions(): FieldActionsContextValue;
|
|
14490
14483
|
/** @internal */
|
|
14491
|
-
declare const HoveredFieldProvider:
|
|
14484
|
+
declare const HoveredFieldProvider: import("react").MemoExoticComponent<(props: PropsWithChildren) => import("react").JSX.Element>;
|
|
14492
14485
|
/** @internal */
|
|
14493
14486
|
declare function useHoveredField(): HoveredFieldContextValue;
|
|
14494
14487
|
/**
|
|
@@ -14559,13 +14552,13 @@ didUpdate: (previous: T | undefined, current: T) => void, compare?: (previous: T
|
|
|
14559
14552
|
/**
|
|
14560
14553
|
* @hidden
|
|
14561
14554
|
* @beta */
|
|
14562
|
-
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>):
|
|
14555
|
+
declare function ArrayOfObjectsFunctions<Item extends ObjectItem, TSchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<Item, TSchemaType>): import("react").JSX.Element | null;
|
|
14563
14556
|
/**
|
|
14564
14557
|
*
|
|
14565
14558
|
* @hidden
|
|
14566
14559
|
* @beta
|
|
14567
14560
|
*/
|
|
14568
|
-
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps):
|
|
14561
|
+
declare function ArrayOfObjectsInput(props: ArrayOfObjectsInputProps): import("react").JSX.Element;
|
|
14569
14562
|
/**
|
|
14570
14563
|
* @internal
|
|
14571
14564
|
*/
|
|
@@ -14593,7 +14586,7 @@ interface VirtualizerScrollInstanceProviderProps extends VirtualizerScrollInstan
|
|
|
14593
14586
|
*
|
|
14594
14587
|
* @internal
|
|
14595
14588
|
*/
|
|
14596
|
-
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps):
|
|
14589
|
+
declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInstanceProviderProps): import("react").JSX.Element;
|
|
14597
14590
|
/**
|
|
14598
14591
|
* @hidden
|
|
14599
14592
|
* Array of predefined object options input
|
|
@@ -14603,13 +14596,13 @@ declare function VirtualizerScrollInstanceProvider(props: VirtualizerScrollInsta
|
|
|
14603
14596
|
* @hidden
|
|
14604
14597
|
* @beta
|
|
14605
14598
|
*/
|
|
14606
|
-
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps):
|
|
14599
|
+
declare function ArrayOfObjectOptionsInput(props: ArrayOfObjectsInputProps): import("react").JSX.Element;
|
|
14607
14600
|
/**
|
|
14608
14601
|
*
|
|
14609
14602
|
* @hidden
|
|
14610
14603
|
* @beta
|
|
14611
14604
|
*/
|
|
14612
|
-
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
14605
|
+
declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): import("react").JSX.Element;
|
|
14613
14606
|
/**
|
|
14614
14607
|
* Array of predefined primitive options input
|
|
14615
14608
|
* Note: this input can only handle primitive values
|
|
@@ -14618,11 +14611,11 @@ declare function ArrayOfOptionsInput(props: ArrayOfObjectsInputProps | ArrayOfPr
|
|
|
14618
14611
|
* @hidden
|
|
14619
14612
|
* @beta
|
|
14620
14613
|
*/
|
|
14621
|
-
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps):
|
|
14614
|
+
declare function ArrayOfPrimitiveOptionsInput(props: ArrayOfPrimitivesInputProps): import("react").JSX.Element;
|
|
14622
14615
|
/**
|
|
14623
14616
|
* @hidden
|
|
14624
14617
|
* @beta */
|
|
14625
|
-
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>):
|
|
14618
|
+
declare function ArrayOfPrimitivesFunctions<MemberType extends string | boolean | number, SchemaType extends ArraySchemaType>(props: ArrayInputFunctionsProps<MemberType, SchemaType>): import("react").JSX.Element | null;
|
|
14626
14619
|
type PrimitiveValue = string | number | boolean;
|
|
14627
14620
|
interface State {
|
|
14628
14621
|
disableTransition: boolean;
|
|
@@ -14646,7 +14639,7 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
14646
14639
|
handleItemMoveEnd: () => void;
|
|
14647
14640
|
focus(): void;
|
|
14648
14641
|
getSnapshotBeforeUpdate(prevProps: ArrayOfPrimitivesInputProps): {
|
|
14649
|
-
prevFocusedIndex:
|
|
14642
|
+
prevFocusedIndex: import("@sanity/types").PathSegment;
|
|
14650
14643
|
restoreSelection: {
|
|
14651
14644
|
text: string;
|
|
14652
14645
|
start: number | null;
|
|
@@ -14664,8 +14657,8 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
14664
14657
|
};
|
|
14665
14658
|
prevFocusedIndex: number;
|
|
14666
14659
|
}): void;
|
|
14667
|
-
renderArrayItem: (props: Omit<PrimitiveItemProps, 'renderDefault'>) =>
|
|
14668
|
-
render():
|
|
14660
|
+
renderArrayItem: (props: Omit<PrimitiveItemProps, 'renderDefault'>) => import("react").JSX.Element;
|
|
14661
|
+
render(): import("react").JSX.Element;
|
|
14669
14662
|
}
|
|
14670
14663
|
/**
|
|
14671
14664
|
* Universal array input that will introspect its schemaType and delegate to the right implementation
|
|
@@ -14675,13 +14668,13 @@ declare class ArrayOfPrimitivesInput extends PureComponent<ArrayOfPrimitivesInpu
|
|
|
14675
14668
|
* @hidden
|
|
14676
14669
|
* @beta
|
|
14677
14670
|
*/
|
|
14678
|
-
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps):
|
|
14671
|
+
declare function UniversalArrayInput(props: ArrayOfObjectsInputProps | ArrayOfPrimitivesInputProps): import("react").JSX.Element;
|
|
14679
14672
|
/**
|
|
14680
14673
|
*
|
|
14681
14674
|
* @hidden
|
|
14682
14675
|
* @beta
|
|
14683
14676
|
*/
|
|
14684
|
-
declare function BooleanInput(props: BooleanInputProps):
|
|
14677
|
+
declare function BooleanInput(props: BooleanInputProps): import("react").JSX.Element;
|
|
14685
14678
|
/**
|
|
14686
14679
|
* Used to preview a referenced type
|
|
14687
14680
|
* Takes the reference type as props
|
|
@@ -14700,7 +14693,7 @@ declare function CrossDatasetReferencePreview(props: {
|
|
|
14700
14693
|
projectId: string;
|
|
14701
14694
|
refType?: CrossDatasetType;
|
|
14702
14695
|
showTypeLabel: boolean;
|
|
14703
|
-
}):
|
|
14696
|
+
}): import("react").JSX.Element;
|
|
14704
14697
|
/**
|
|
14705
14698
|
* @hidden
|
|
14706
14699
|
* @beta */
|
|
@@ -14708,7 +14701,7 @@ type DateInputProps = StringInputProps;
|
|
|
14708
14701
|
/**
|
|
14709
14702
|
* @hidden
|
|
14710
14703
|
* @beta */
|
|
14711
|
-
declare function DateInput(props: DateInputProps):
|
|
14704
|
+
declare function DateInput(props: DateInputProps): import("react").JSX.Element;
|
|
14712
14705
|
/**
|
|
14713
14706
|
* @hidden
|
|
14714
14707
|
* @beta */
|
|
@@ -14716,7 +14709,7 @@ type DateTimeInputProps = StringInputProps;
|
|
|
14716
14709
|
/**
|
|
14717
14710
|
* @hidden
|
|
14718
14711
|
* @beta */
|
|
14719
|
-
declare function DateTimeInput(props: DateTimeInputProps):
|
|
14712
|
+
declare function DateTimeInput(props: DateTimeInputProps): import("react").JSX.Element;
|
|
14720
14713
|
interface CalendarLabels {
|
|
14721
14714
|
ariaLabel: string;
|
|
14722
14715
|
goToTomorrow: string;
|
|
@@ -14750,7 +14743,7 @@ type EmailInputProps = StringInputProps;
|
|
|
14750
14743
|
* @hidden
|
|
14751
14744
|
* @beta
|
|
14752
14745
|
*/
|
|
14753
|
-
declare function EmailInput(props: EmailInputProps):
|
|
14746
|
+
declare function EmailInput(props: EmailInputProps): import("react").JSX.Element;
|
|
14754
14747
|
/**
|
|
14755
14748
|
* @hidden
|
|
14756
14749
|
* @beta
|
|
@@ -14761,11 +14754,11 @@ type AssetAccessPolicy = 'checking' | 'private' | 'public' | 'unknown';
|
|
|
14761
14754
|
* @hidden
|
|
14762
14755
|
* @beta
|
|
14763
14756
|
*/
|
|
14764
|
-
declare function NumberInput(props: NumberInputProps):
|
|
14757
|
+
declare function NumberInput(props: NumberInputProps): import("react").JSX.Element;
|
|
14765
14758
|
/**
|
|
14766
14759
|
* @hidden
|
|
14767
14760
|
* @beta */
|
|
14768
|
-
declare const ObjectInput:
|
|
14761
|
+
declare const ObjectInput: import("react").MemoExoticComponent<(props: ObjectInputProps) => import("react").JSX.Element | null>;
|
|
14769
14762
|
/** @internal */
|
|
14770
14763
|
interface PortableTextMemberItem {
|
|
14771
14764
|
kind: 'annotation' | 'textBlock' | 'objectBlock' | 'inlineObject';
|
|
@@ -14826,24 +14819,24 @@ interface Props extends Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'widt
|
|
|
14826
14819
|
/**
|
|
14827
14820
|
* @internal
|
|
14828
14821
|
*/
|
|
14829
|
-
declare function CreateButton(props: Props):
|
|
14822
|
+
declare function CreateButton(props: Props): import("react").JSX.Element;
|
|
14830
14823
|
/**
|
|
14831
14824
|
* @internal
|
|
14832
14825
|
*/
|
|
14833
|
-
declare const ReferenceAutocomplete:
|
|
14826
|
+
declare const ReferenceAutocomplete: import("react").ForwardRefExoticComponent<Omit<import("@sanity/ui").AutocompleteProps<import("@sanity/ui").BaseAutocompleteOption> & Omit<import("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"> & {
|
|
14834
14827
|
ref?: Ref<HTMLInputElement>;
|
|
14835
14828
|
} & {
|
|
14836
14829
|
path: Path;
|
|
14837
14830
|
referenceElement: HTMLDivElement | null;
|
|
14838
14831
|
searchString?: string;
|
|
14839
14832
|
portalRef?: RefObject<HTMLDivElement | null>;
|
|
14840
|
-
}, "ref"> &
|
|
14833
|
+
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
14841
14834
|
/**
|
|
14842
14835
|
*
|
|
14843
14836
|
* @hidden
|
|
14844
14837
|
* @beta
|
|
14845
14838
|
*/
|
|
14846
|
-
declare function SelectInput(props: StringInputProps):
|
|
14839
|
+
declare function SelectInput(props: StringInputProps): import("react").JSX.Element;
|
|
14847
14840
|
/**
|
|
14848
14841
|
*
|
|
14849
14842
|
* @hidden
|
|
@@ -14855,12 +14848,12 @@ type SlugInputProps = ObjectInputProps<SlugValue, SlugSchemaType>;
|
|
|
14855
14848
|
* @hidden
|
|
14856
14849
|
* @beta
|
|
14857
14850
|
*/
|
|
14858
|
-
declare function SlugInput(props: SlugInputProps):
|
|
14851
|
+
declare function SlugInput(props: SlugInputProps): import("react").JSX.Element;
|
|
14859
14852
|
/**
|
|
14860
14853
|
* @hidden
|
|
14861
14854
|
* @beta
|
|
14862
14855
|
*/
|
|
14863
|
-
declare function StringInput(props: StringInputProps):
|
|
14856
|
+
declare function StringInput(props: StringInputProps): import("react").JSX.Element;
|
|
14864
14857
|
/**
|
|
14865
14858
|
*
|
|
14866
14859
|
* @hidden
|
|
@@ -14872,7 +14865,7 @@ type TagsArrayInputProps = ArrayOfPrimitivesInputProps<string>;
|
|
|
14872
14865
|
* @hidden
|
|
14873
14866
|
* @beta
|
|
14874
14867
|
*/
|
|
14875
|
-
declare function TagsArrayInput(props: TagsArrayInputProps):
|
|
14868
|
+
declare function TagsArrayInput(props: TagsArrayInputProps): import("react").JSX.Element;
|
|
14876
14869
|
/**
|
|
14877
14870
|
*
|
|
14878
14871
|
* @hidden
|
|
@@ -14884,7 +14877,7 @@ type TelephoneInputProps = StringInputProps;
|
|
|
14884
14877
|
* @hidden
|
|
14885
14878
|
* @beta
|
|
14886
14879
|
*/
|
|
14887
|
-
declare function TelephoneInput(props: TelephoneInputProps):
|
|
14880
|
+
declare function TelephoneInput(props: TelephoneInputProps): import("react").JSX.Element;
|
|
14888
14881
|
/**
|
|
14889
14882
|
*
|
|
14890
14883
|
* @hidden
|
|
@@ -14896,7 +14889,7 @@ type TextInputProps = StringInputProps<TextSchemaType>;
|
|
|
14896
14889
|
* @hidden
|
|
14897
14890
|
* @beta
|
|
14898
14891
|
*/
|
|
14899
|
-
declare function TextInput(props: TextInputProps):
|
|
14892
|
+
declare function TextInput(props: TextInputProps): import("react").JSX.Element;
|
|
14900
14893
|
/**
|
|
14901
14894
|
*
|
|
14902
14895
|
* @hidden
|
|
@@ -14908,7 +14901,7 @@ type UrlInputProps = StringInputProps;
|
|
|
14908
14901
|
* @hidden
|
|
14909
14902
|
* @beta
|
|
14910
14903
|
*/
|
|
14911
|
-
declare function UrlInput(props: UrlInputProps):
|
|
14904
|
+
declare function UrlInput(props: UrlInputProps): import("react").JSX.Element;
|
|
14912
14905
|
/** @internal */
|
|
14913
14906
|
interface ArrayOfObjectsMemberProps {
|
|
14914
14907
|
member: ArrayOfObjectsMember;
|
|
@@ -14924,7 +14917,7 @@ interface ArrayOfObjectsMemberProps {
|
|
|
14924
14917
|
* Convenience component for rendering an "array of objects"-item
|
|
14925
14918
|
* @internal
|
|
14926
14919
|
*/
|
|
14927
|
-
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps):
|
|
14920
|
+
declare function ArrayOfObjectsInputMember(props: ArrayOfObjectsMemberProps): import("react").JSX.Element | null;
|
|
14928
14921
|
/** @internal */
|
|
14929
14922
|
interface ArrayOfObjectsInputMembersProps {
|
|
14930
14923
|
members: ArrayOfObjectsMember[];
|
|
@@ -14940,7 +14933,7 @@ interface ArrayOfObjectsInputMembersProps {
|
|
|
14940
14933
|
* Convenience component for wrapping an array of objects
|
|
14941
14934
|
* @internal
|
|
14942
14935
|
*/
|
|
14943
|
-
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps):
|
|
14936
|
+
declare function ArrayOfObjectsInputMembers(props: ArrayOfObjectsInputMembersProps): import("react").JSX.Element;
|
|
14944
14937
|
/**
|
|
14945
14938
|
*
|
|
14946
14939
|
* @hidden
|
|
@@ -14961,7 +14954,7 @@ interface MemberItemProps {
|
|
|
14961
14954
|
* @hidden
|
|
14962
14955
|
* @beta
|
|
14963
14956
|
*/
|
|
14964
|
-
declare function ArrayOfObjectsItem(props: MemberItemProps):
|
|
14957
|
+
declare function ArrayOfObjectsItem(props: MemberItemProps): import("react").JSX.Element;
|
|
14965
14958
|
/**
|
|
14966
14959
|
*
|
|
14967
14960
|
* @hidden
|
|
@@ -14977,11 +14970,11 @@ interface PrimitiveMemberItemProps {
|
|
|
14977
14970
|
* @hidden
|
|
14978
14971
|
* @beta
|
|
14979
14972
|
*/
|
|
14980
|
-
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps):
|
|
14973
|
+
declare function ArrayOfPrimitivesItem(props: PrimitiveMemberItemProps): import("react").JSX.Element;
|
|
14981
14974
|
/** @internal */
|
|
14982
14975
|
declare function MemberItemError(props: {
|
|
14983
14976
|
member: ArrayItemError;
|
|
14984
|
-
}):
|
|
14977
|
+
}): import("react").JSX.Element;
|
|
14985
14978
|
/** @internal */
|
|
14986
14979
|
interface MemberFieldProps {
|
|
14987
14980
|
member: FieldMember;
|
|
@@ -14994,13 +14987,13 @@ interface MemberFieldProps {
|
|
|
14994
14987
|
renderPreview: RenderPreviewCallback;
|
|
14995
14988
|
}
|
|
14996
14989
|
/** @internal */
|
|
14997
|
-
declare const MemberField:
|
|
14990
|
+
declare const MemberField: import("react").MemoExoticComponent<(props: MemberFieldProps) => import("react").JSX.Element | null>;
|
|
14998
14991
|
/** @internal */
|
|
14999
14992
|
declare function MemberFieldError(props: {
|
|
15000
14993
|
member: FieldError;
|
|
15001
|
-
}):
|
|
14994
|
+
}): import("react").JSX.Element;
|
|
15002
14995
|
/** @internal */
|
|
15003
|
-
declare const MemberFieldSet:
|
|
14996
|
+
declare const MemberFieldSet: import("react").MemoExoticComponent<(props: {
|
|
15004
14997
|
member: FieldSetMember;
|
|
15005
14998
|
renderAnnotation?: RenderAnnotationCallback;
|
|
15006
14999
|
renderBlock?: RenderBlockCallback;
|
|
@@ -15010,7 +15003,7 @@ declare const MemberFieldSet: _$react.MemoExoticComponent<(props: {
|
|
|
15010
15003
|
renderItem: RenderArrayOfObjectsItemCallback;
|
|
15011
15004
|
renderPreview: RenderPreviewCallback;
|
|
15012
15005
|
schemaType?: SchemaType;
|
|
15013
|
-
}) =>
|
|
15006
|
+
}) => import("react").JSX.Element>;
|
|
15014
15007
|
/** @internal */
|
|
15015
15008
|
interface ObjectInputMemberProps {
|
|
15016
15009
|
member: ObjectMember;
|
|
@@ -15023,7 +15016,7 @@ interface ObjectInputMemberProps {
|
|
|
15023
15016
|
renderPreview: RenderPreviewCallback;
|
|
15024
15017
|
}
|
|
15025
15018
|
/** @internal */
|
|
15026
|
-
declare const ObjectInputMember:
|
|
15019
|
+
declare const ObjectInputMember: import("react").MemoExoticComponent<(props: ObjectInputMemberProps) => import("react").JSX.Element | null>;
|
|
15027
15020
|
/** @internal */
|
|
15028
15021
|
interface ObjectMembersProps {
|
|
15029
15022
|
members: ObjectMember[];
|
|
@@ -15039,7 +15032,7 @@ interface ObjectMembersProps {
|
|
|
15039
15032
|
* Convenience component for wrapping an object input
|
|
15040
15033
|
* @internal
|
|
15041
15034
|
*/
|
|
15042
|
-
declare function ObjectInputMembers(props: ObjectMembersProps):
|
|
15035
|
+
declare function ObjectInputMembers(props: ObjectMembersProps): import("react").JSX.Element;
|
|
15043
15036
|
/**
|
|
15044
15037
|
* @deprecated Use ObjectInputMembers instead
|
|
15045
15038
|
* @internal
|
|
@@ -15137,11 +15130,11 @@ type PatchTransformer = (patches: FormPatch[]) => FormPatch[];
|
|
|
15137
15130
|
/**
|
|
15138
15131
|
* @hidden
|
|
15139
15132
|
* @beta */
|
|
15140
|
-
declare const TransformPatches:
|
|
15133
|
+
declare const TransformPatches: import("react").MemoExoticComponent<(props: {
|
|
15141
15134
|
transform: PatchTransformer;
|
|
15142
15135
|
} & {
|
|
15143
15136
|
children: ReactNode;
|
|
15144
|
-
}) =>
|
|
15137
|
+
}) => import("react").JSX.Element>;
|
|
15145
15138
|
/**
|
|
15146
15139
|
* @hidden
|
|
15147
15140
|
* @beta */
|
|
@@ -16560,7 +16553,7 @@ declare class ConfigResolutionError extends Error {
|
|
|
16560
16553
|
* Creates an icon element based on the input title
|
|
16561
16554
|
* @internal
|
|
16562
16555
|
*/
|
|
16563
|
-
declare function createDefaultIcon(title: string, subtitle: string):
|
|
16556
|
+
declare function createDefaultIcon(title: string, subtitle: string): import("react").JSX.Element;
|
|
16564
16557
|
/**
|
|
16565
16558
|
* @hidden
|
|
16566
16559
|
* @beta */
|