sanity 5.2.0-next.37 → 5.2.0-next.39

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.
@@ -5,11 +5,10 @@ import { c } from "react/compiler-runtime";
5
5
  const ActiveWorkspaceMatcherContext = createContext("sanity/_singletons/context/active-workspace-matcher", null), AddonDatasetContext = createContext("sanity/_singletons/context/addon-dataset", null), AppIdCacheContext = createContext("sanity/_singletons/context/app-id-cache", null), AssetLimitUpsellContext = createContext("sanity/_singletons/context/asset-limit-upsell", null), CalendarContext = createContext("sanity/_singletons/context/calendar", void 0), ChangeIndicatorTrackerContextStore = createContext("sanity/_singletons/context/change-indicator-tracker-store", null), ChangeIndicatorTrackerContextGetSnapshot = createContext("sanity/_singletons/context/change-indicator-tracker-get-snapshot", null), ColorSchemeSetValueContext = createContext("sanity/_singletons/context/color-scheme-set-value", null), ColorSchemeValueContext = createContext("sanity/_singletons/context/color-scheme-value", null), CommentInputContext = createContext("sanity/_singletons/context/comment-input", null), CommentsAuthoringPathContext = createContext("sanity/_singletons/context/comments-authoring-path", null), CommentsContext = createContext("sanity/_singletons/context/comments", null), CommentsEnabledContext = createContext("sanity/_singletons/context/comments-enabled", {
6
6
  enabled: !1,
7
7
  mode: null
8
- }), CommentsIntentContext = createContext("sanity/_singletons/context/comments-intent", void 0), CommentsOnboardingContext = createContext("sanity/_singletons/context/comments-onboarding", null), CommentsSelectedPathContext = createContext("sanity/_singletons/context/comments-selected-path", null), CommentsUpsellContext = createContext("sanity/_singletons/context/comments-upsell", null), CopyPasteContext = createContext("sanity/_singletons/context/copy-paste", null), DiffContext = createContext("sanity/_singletons/context/diff", {
8
+ }), CommentsIntentContext = createContext("sanity/_singletons/context/comments-intent", void 0), CommentsOnboardingContext = createContext("sanity/_singletons/context/comments-onboarding", null), CommentsSelectedPathContext = createContext("sanity/_singletons/context/comments-selected-path", null), CommentsUpsellContext = createContext("sanity/_singletons/context/comments-upsell", null), CopyPasteContext = createContext("sanity/_singletons/context/copy-paste", null), DialogStackContext = createContext("sanity/_singletons/context/dialog-stack", null), DiffContext = createContext("sanity/_singletons/context/diff", {
9
9
  path: []
10
10
  }), DocumentActionPropsContext = createContext("sanity/_singletons/context/document-action-props", void 0), DocumentActionsStateContext = createContext("sanity/_singletons/context/actions-state", null), DocumentChangeContext = createContext("sanity/_singletons/context/document-change", null), DocumentFieldActionsContext = createContext("sanity/_singletons/context/document-field-actions", null), DocumentIdContext = createContext("sanity/_singletons/context/document-id", null), DocumentLimitUpsellContext = createContext("sanity/_singletons/context/document-limit-upsell", null), DocumentPaneContext = createContext("sanity/_singletons/context/document-pane", null), DocumentSheetListContext = createContext("sanity/_singletons/context/document-sheet-list", void 0), EnhancedObjectDialogContext = createContext("sanity/_singletons/context/enhanced-object-dialog-enabled", {
11
11
  enabled: !1,
12
- isDialogAvailable: !1,
13
12
  legacyEditing: !1
14
13
  }), EventsContext = createContext("sanity/_singletons/context/events", null), FieldActionsContext = createContext("sanity/_singletons/context/field-actions", {
15
14
  actions: [],
@@ -192,6 +191,7 @@ export {
192
191
  CommentsSelectedPathContext,
193
192
  CommentsUpsellContext,
194
193
  CopyPasteContext,
194
+ DialogStackContext,
195
195
  DiffContext,
196
196
  DocumentActionPropsContext,
197
197
  DocumentActionsStateContext,
@@ -1 +1 @@
1
- {"version":3,"file":"_singletons.js","sources":["../src/_singletons/context/ActiveWorkspaceMatcherContext.ts","../src/_singletons/context/AddonDatasetContext.ts","../src/_singletons/context/AppIdCacheContext.ts","../src/_singletons/context/AssetLimitContext.ts","../src/_singletons/context/CalendarContext.ts","../src/_singletons/context/ChangeIndicatorTrackerContexts.ts","../src/_singletons/context/ColorSchemeSetValueContext.ts","../src/_singletons/context/ColorSchemeValueContext.ts","../src/_singletons/context/CommentInputContext.ts","../src/_singletons/context/CommentsAuthoringPathContext.ts","../src/_singletons/context/CommentsContext.ts","../src/_singletons/context/CommentsEnabledContext.ts","../src/_singletons/context/CommentsIntentContext.ts","../src/_singletons/context/CommentsOnboardingContext.ts","../src/_singletons/context/CommentsSelectedPathContext.ts","../src/_singletons/context/CommentsUpsellContext.ts","../src/_singletons/context/CopyPasteContext.ts","../src/_singletons/context/DiffContext.ts","../src/_singletons/context/DocumentActionPropsContext.ts","../src/_singletons/context/DocumentActionsStateContext.ts","../src/_singletons/context/DocumentChangeContext.ts","../src/_singletons/context/DocumentFieldActionsContext.ts","../src/_singletons/context/DocumentIdContext.ts","../src/_singletons/context/DocumentLimitContext.ts","../src/_singletons/context/DocumentPaneContext.ts","../src/_singletons/context/DocumentSheetListContext.ts","../src/_singletons/context/EnhancedObjectDialogContext.ts","../src/_singletons/context/EventsContext.ts","../src/_singletons/context/FieldActionsContext.ts","../src/_singletons/context/FormBuilderContext.ts","../src/_singletons/context/FormCallbacksContext.ts","../src/_singletons/context/FormFieldPresenceContext.ts","../src/_singletons/context/FormValueContext.ts","../src/_singletons/context/FreeTrialContext.ts","../src/_singletons/context/FullscreenPTEContext.ts","../src/_singletons/context/GetFormValueContext.ts","../src/_singletons/context/HoveredFieldContext.ts","../src/_singletons/context/IsLastPaneContext.ts","../src/_singletons/context/LiveUserApplicationContext.tsx","../src/_singletons/context/LocaleContext.ts","../src/_singletons/context/MediaLibraryIdsContext.ts","../src/_singletons/context/MentionUserContext.ts","../src/_singletons/context/NavbarContext.ts","../src/_singletons/context/PackageVersionInfoContext.tsx","../src/_singletons/context/PaneContext.ts","../src/_singletons/context/PaneLayoutContext.ts","../src/_singletons/context/PaneRouterContext.tsx","../src/_singletons/context/PerspectiveContext.ts","../src/_singletons/context/PortableTextMarkersContext.ts","../src/_singletons/context/PortableTextMemberItemElementRefsContext.ts","../src/_singletons/context/PortableTextMemberItemsContext.ts","../src/_singletons/context/PresenceContext.ts","../src/_singletons/context/PresenceTrackerContexts.ts","../src/_singletons/context/PresentationContext.ts","../src/_singletons/context/PresentationDisplayedDocumentContext.ts","../src/_singletons/context/PresentationDocumentContext.ts","../src/_singletons/context/PresentationNavigateContext.ts","../src/_singletons/context/PresentationPanelsContext.ts","../src/_singletons/context/PresentationParamsContext.ts","../src/_singletons/context/PresentationSharedStateContext.ts","../src/_singletons/context/PreviewCardContext.ts","../src/_singletons/context/ReferenceInputOptionsContext.ts","../src/_singletons/context/ReferenceItemRefContext.ts","../src/_singletons/context/ReleasesMetadataContext.ts","../src/_singletons/context/ReleasesTableContext.ts","../src/_singletons/context/ReleasesUpsellContext.ts","../src/_singletons/context/ResolvedPanesContext.tsx","../src/_singletons/context/ResourceCacheContext.ts","../src/_singletons/context/ReviewChangesContext.ts","../src/_singletons/context/RouterContext.ts","../src/_singletons/context/RouterHistoryContext.ts","../src/_singletons/context/SanityCreateConfigContext.tsx","../src/_singletons/context/ScheduledPublishingEnabledContext.ts","../src/_singletons/context/SchedulePublishingUpsellContext.ts","../src/_singletons/context/SchedulesContext.ts","../src/_singletons/context/ScrollContext.ts","../src/_singletons/context/SearchContext.ts","../src/_singletons/context/SingleDocReleaseContext.ts","../src/_singletons/context/SingleDocReleaseEnabledContext.ts","../src/_singletons/context/SingleDocReleaseUpsellContext.ts","../src/_singletons/context/SortableItemIdContext.ts","../src/_singletons/context/SourceContext.ts","../src/_singletons/context/StructureToolContext.ts","../src/_singletons/context/StudioAnnouncementsContext.ts","../src/_singletons/context/TasksContext.ts","../src/_singletons/context/TasksEnabledContext.ts","../src/_singletons/context/TasksNavigationContext.ts","../src/_singletons/context/TasksUpsellContext.ts","../src/_singletons/context/UserApplicationCacheContext.ts","../src/_singletons/context/UserColorManagerContext.ts","../src/_singletons/context/ValidationContext.ts","../src/_singletons/context/VirtualizerScrollInstanceContext.ts","../src/_singletons/context/WorkspaceContext.ts","../src/_singletons/context/WorkspacesContext.ts","../src/_singletons/context/ZIndexContext.ts"],"sourcesContent":["import {createContext} from 'sanity/_createContext'\n\nimport type {ActiveWorkspaceMatcherContextValue} from '../../core/studio/activeWorkspaceMatcher/ActiveWorkspaceMatcherContext'\n\n/** @internal */\nexport const ActiveWorkspaceMatcherContext =\n createContext<ActiveWorkspaceMatcherContextValue | null>(\n 'sanity/_singletons/context/active-workspace-matcher',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AddonDatasetContextValue} from '../../core/studio/addonDataset/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const AddonDatasetContext = createContext<AddonDatasetContextValue | null>(\n 'sanity/_singletons/context/addon-dataset',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AppIdCache} from '../../core/create/studio-app/appIdCache'\n\n/**\n * @internal\n */\nexport const AppIdCacheContext = createContext<AppIdCache | null>(\n 'sanity/_singletons/context/app-id-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface AssetLimitUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const AssetLimitUpsellContext = createContext<AssetLimitUpsellContextValue | null>(\n 'sanity/_singletons/context/asset-limit-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CalendarContextValue} from '../../core/studio/components/navbar/search/components/filters/filter/inputs/date/datePicker/calendar/contexts/CalendarContext'\n\n/**\n * @internal\n */\nexport const CalendarContext = createContext<CalendarContextValue | undefined>(\n 'sanity/_singletons/context/calendar',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n ChangeIndicatorTrackerContextStoreType,\n ChangeIndicatorTrackerGetSnapshotType,\n} from '../../core/changeIndicators/ChangeIndicatorTrackerContexts'\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextStore =\n createContext<ChangeIndicatorTrackerContextStoreType>(\n 'sanity/_singletons/context/change-indicator-tracker-store',\n null,\n )\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextGetSnapshot =\n createContext<ChangeIndicatorTrackerGetSnapshotType>(\n 'sanity/_singletons/context/change-indicator-tracker-get-snapshot',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders\n * If set to false then the UI should adjust to reflect that the Studio can't change the color scheme\n * @internal\n */\nexport const ColorSchemeSetValueContext = createContext<\n ((nextScheme: StudioThemeColorSchemeKey) => void) | false | null\n>('sanity/_singletons/context/color-scheme-set-value', null)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * Used to keep track of the internal value, which can be \"system\" in addition to \"light\" and \"dark\"\n * @internal\n */\nexport const ColorSchemeValueContext = createContext<StudioThemeColorSchemeKey | null>(\n 'sanity/_singletons/context/color-scheme-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentInputContextValue} from '../../core/comments/components/pte/comment-input/CommentInputProvider'\n\n/**\n * @internal\n */\nexport const CommentInputContext = createContext<CommentInputContextValue | null>(\n 'sanity/_singletons/context/comment-input',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsAuthoringPathContextValue} from '../../core/comments/context/authoring-path/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const CommentsAuthoringPathContext = createContext<CommentsAuthoringPathContextValue | null>(\n 'sanity/_singletons/context/comments-authoring-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsContextValue} from '../../core/comments/context/comments/types'\n\n/**\n * @internal\n */\nexport const CommentsContext = createContext<CommentsContextValue | null>(\n 'sanity/_singletons/context/comments',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsEnabledContextValue} from '../../core/comments/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the comments feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// comments functionality is included by default in all new studio\n// configurations. Therefore, in the absence of a specific provider\n// (CommentsEnabledProvider), we assume that the feature is disabled.\n/**\n * @internal\n */\nexport const CommentsEnabledContext = createContext<CommentsEnabledContextValue>(\n 'sanity/_singletons/context/comments-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsIntentContextValue} from '../../core/comments/context/intent/types'\n\n/**\n * @internal\n */\nexport const CommentsIntentContext = createContext<CommentsIntentContextValue | undefined>(\n 'sanity/_singletons/context/comments-intent',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsOnboardingContextValue} from '../../core/comments/context/onboarding/types'\n\n/**\n * @internal\n */\nexport const CommentsOnboardingContext = createContext<CommentsOnboardingContextValue | null>(\n 'sanity/_singletons/context/comments-onboarding',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsSelectedPathContextValue} from '../../core/comments/context/selected-path/types'\n\n/**\n * @internal\n */\nexport const CommentsSelectedPathContext = createContext<CommentsSelectedPathContextValue | null>(\n 'sanity/_singletons/context/comments-selected-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsUpsellContextValue} from '../../core/comments/context/upsell/types'\n\n/**\n * @internal\n */\nexport const CommentsUpsellContext = createContext<CommentsUpsellContextValue | null>(\n 'sanity/_singletons/context/comments-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CopyPasteContextType} from '../../core/studio/copyPaste'\n\n/**\n * @beta\n * @hidden\n */\nexport const CopyPasteContext = createContext<CopyPasteContextType | null>(\n 'sanity/_singletons/context/copy-paste',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport const DiffContext = createContext<{\n path: Path\n}>('sanity/_singletons/context/diff', {\n path: [],\n})\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentActionProps} from '../../core/config/document/actions'\n\n/**\n * @internal\n */\nexport const DocumentActionPropsContext = createContext<DocumentActionProps | undefined>(\n 'sanity/_singletons/context/document-action-props',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentActionDescription} from '../../core/config/document/actions'\n\n/**\n * @internal\n */\nexport const DocumentActionsStateContext = createContext<DocumentActionDescription[] | null>(\n 'sanity/_singletons/context/actions-state',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentChangeContextInstance} from '../../core/field/diff/contexts/DocumentChangeContext'\n\n/** @internal */\nexport const DocumentChangeContext = createContext<DocumentChangeContextInstance | null>(\n 'sanity/_singletons/context/document-change',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldAction} from '../../core/config/document/fieldActions/types'\n\n/**\n * @internal\n */\nexport interface DocumentFieldActionsContextValue {\n actions: DocumentFieldAction[]\n}\n\n/**\n * @internal\n */\nexport const DocumentFieldActionsContext = createContext<DocumentFieldActionsContextValue | null>(\n 'sanity/_singletons/context/document-field-actions',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface DocumentIdContextValue {\n id: string\n}\n\n/**\n * @internal\n */\nexport const DocumentIdContext = createContext<DocumentIdContextValue | null>(\n 'sanity/_singletons/context/document-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface DocumentLimitUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const DocumentLimitUpsellContext = createContext<DocumentLimitUpsellContextValue | null>(\n 'sanity/_singletons/context/document-limit-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentPaneContextValue} from '../../structure/panes/document/DocumentPaneContext'\n\n/** @internal */\nexport const DocumentPaneContext = createContext<DocumentPaneContextValue | null>(\n 'sanity/_singletons/context/document-pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentSheetListContextValue} from '../../structure/panes/documentList/sheetList/DocumentSheetListProvider'\n\n/** @internal */\nexport const DocumentSheetListContext = createContext<DocumentSheetListContextValue | undefined>(\n 'sanity/_singletons/context/document-sheet-list',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {EnhancedObjectDialogContextValue} from '../../core/form/studio/tree-editing/context/enabled/useEnhancedObjectDialog'\n\n/**\n * @internal\n */\nexport const EnhancedObjectDialogContext = createContext<EnhancedObjectDialogContextValue>(\n 'sanity/_singletons/context/enhanced-object-dialog-enabled',\n {\n enabled: false,\n isDialogAvailable: false,\n legacyEditing: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {EventsStore} from '../../core/store/events/types'\n\n/**\n * @internal\n */\nexport const EventsContext = createContext<EventsStore | null>(\n 'sanity/_singletons/context/events',\n null,\n)\n","import type {ReactNode} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldActionNode} from '../../core/config/document/fieldActions/types'\nimport type {FieldCommentsProps} from '../../core/form/types/fieldProps'\n\n/** @internal */\nexport interface FieldActionsContextValue {\n actions: DocumentFieldActionNode[]\n __internal_comments?: FieldCommentsProps\n __internal_slot?: ReactNode\n focused?: boolean\n hovered: boolean\n onMouseEnter: () => void\n onMouseLeave: () => void\n}\n\n/** @internal */\nexport const FieldActionsContext = createContext<FieldActionsContextValue>(\n 'sanity/_singletons/context/field-actions',\n {\n actions: [],\n focused: false,\n hovered: false,\n // eslint-disable-next-line camelcase\n __internal_slot: undefined,\n // eslint-disable-next-line camelcase\n __internal_comments: undefined,\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormBuilderContextValue} from '../../core/form/FormBuilderContext'\n\n/**\n * @internal\n */\nexport const FormBuilderContext = createContext<FormBuilderContextValue | null>(\n 'sanity/_singletons/context/form-builder',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormCallbacksValue} from '../../core/form/studio/contexts/FormCallbacks'\n\n/**\n * @internal\n */\nexport const FormCallbacksContext = createContext<FormCallbacksValue | null>(\n 'sanity/_singletons/context/form-callbacks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/** @internal */\nexport const FormFieldPresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/form-field-presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormValueContextValue} from '../../core/form/contexts/FormValue'\n\n/**\n * @internal\n */\nexport const FormValueContext = createContext<FormValueContextValue | null>(\n 'sanity/_singletons/context/form-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FreeTrialContextProps} from '../../core/studio/components/navbar/free-trial/FreeTrialContext'\n\n/**\n * @internal\n */\nexport const FreeTrialContext = createContext<FreeTrialContextProps | undefined>(\n 'sanity/_singletons/context/free-trial',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FullscreenPTEContextValue} from '../../core/form/inputs/PortableText/contexts/fullscreen/FullscreenPTEContext'\n\n/**\n * @internal\n */\nexport const FullscreenPTEContext = createContext<FullscreenPTEContextValue>(\n 'sanity/_singletons/context/fullscreen-pte',\n {\n getFullscreenPath: () => undefined,\n setFullscreenPath: () => {},\n hasAnyFullscreen: () => false,\n allFullscreenPaths: [],\n },\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n * @hidden\n */\nexport type GetFormValueContextValue = (path: Path) => unknown\n\n/**\n * @internal\n */\nexport const GetFormValueContext = createContext<GetFormValueContextValue | null>(\n 'sanity/_singletons/context/get-form-value',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport interface HoveredFieldContextValue {\n store: {\n subscribe: (onStoreCallback: () => void) => () => void\n getSnapshot: () => string[]\n }\n onMouseEnter: (path: Path) => void\n onMouseLeave: (path: Path) => void\n}\n\n/** @internal */\nexport const HoveredFieldContext = createContext<HoveredFieldContextValue>(\n 'sanity/_singletons/context/hovered-field',\n {\n store: {\n subscribe: () => () => undefined,\n getSnapshot: () => [],\n },\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * TODO: remove this context when alternate document-specific context are\n * introduced.\n *\n * The following context is used in the structure tool to set the active\n * document if it's the last pane open in the structure tool. This is a\n * temporary context provider that was introduced when the comments and tasks\n * plugins were refactor and decoupled from the structure tool. ideally this\n * should be removed and replaced with a document-specific context that gives\n * plugin authors access to what the `usePane`, `usePaneRouter`, and\n * `useDocumentPane` provides without exposing specifics from the structure tool\n */\n/**\n * @internal\n */\nexport const IsLastPaneContext = createContext<boolean>(\n 'sanity/_singletons/context/is-last-pane',\n false,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserApplication} from '../../core/store/userApplications'\n\n/**\n * @hidden\n * @internal\n */\nexport type LiveUserApplicationContextValue = {\n userApplication: UserApplication | undefined\n}\n/**\n *\n * @hidden\n * @internal\n */\nexport const LiveUserApplicationContext = createContext<LiveUserApplicationContextValue>(\n 'sanity/_singletons/context/live-user-application',\n {\n userApplication: undefined,\n },\n)\n","// eslint-disable-next-line @sanity/i18n/no-i18next-import -- figure out how to have the linter be fine with importing types-only\nimport type {i18n} from 'i18next'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {Locale} from '../../core/i18n/types'\n\n/**\n * @internal\n * @hidden\n */\nexport interface LocaleContextValue {\n locales: Locale[]\n currentLocale: Locale\n __internal: {\n i18next: i18n\n }\n changeLocale: (newLocale: string) => Promise<void>\n}\n\n/**\n * @internal\n * @hidden\n */\nexport const LocaleContext = createContext<LocaleContextValue | undefined>(\n 'sanity/_singletons/context/locale',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {MediaLibraryIds} from '../../core/form/studio/assetSourceMediaLibrary/shared/MediaLibraryProvider'\n\n/** @internal */\nexport const MediaLibraryIdsContext = createContext<MediaLibraryIds | null>(\n 'sanity/_singletons/context/media-library',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {MentionUserContextValue} from '../../core/tasks/context/mentionUser/types'\n\n/**\n * @internal\n */\nexport const MentionUserContext = createContext<MentionUserContextValue | null>(\n 'sanity/_singletons/context/mention-user',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {NavbarContextValue} from '../../core/studio/StudioLayout'\n\n/** @internal */\nexport const NavbarContext = createContext<NavbarContextValue>(\n 'sanity/_singletons/context/navbar',\n {\n onSearchFullscreenOpenChange: () => '',\n onSearchOpenChange: () => '',\n searchFullscreenOpen: false,\n searchFullscreenPortalEl: null,\n searchOpen: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\nimport type {SemVer} from 'semver'\n\n/**\n * @hidden\n * @internal\n */\nexport type PackageVersionInfoContextValue = {\n /**\n * Request a new update check\n */\n checkForUpdates: () => void\n\n /**\n * Status of version check (i.e. are we currently checking for updates)\n */\n versionCheckStatus: {lastCheckedAt: Date | null; checking: boolean}\n\n /**\n * Whether this Studio is configured to be auto-updating\n */\n isAutoUpdating: boolean\n\n /**\n * If an importmap for the sanity module exists in the DOM, includes details\n * will be undefined if no importmap is found\n */\n importMapInfo?: {valid: false; error: Error} | {valid: true; minVersion: SemVer; appId?: string}\n\n /**\n * What is the version tagged as latest (periodically checked)\n */\n latestTaggedVersion?: SemVer\n\n /**\n * What version is the Studio currently running\n */\n currentVersion: SemVer\n\n /**\n * What is the current auto-updating version (as periodically resolved via module server and configured via manage)\n */\n autoUpdatingVersion?: SemVer\n}\n/**\n *\n * @hidden\n * @internal\n */\nexport const PackageVersionInfoContext = createContext<PackageVersionInfoContextValue>(\n 'sanity/_singletons/context/package-version-info',\n {\n isAutoUpdating: false,\n checkForUpdates: () => {},\n get currentVersion(): never {\n throw new Error('PackageVersionInfoContext not provided')\n },\n versionCheckStatus: {lastCheckedAt: null, checking: false},\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneContext = createContext<PaneContextValue | null>(\n 'sanity/_singletons/context/pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneLayoutContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneLayoutContext = createContext<PaneLayoutContextValue | null>(\n 'sanity/_singletons/context/pane-layout',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneRouterContextValue} from '../../structure/components/paneRouter/types'\n\nfunction missingContext<T = unknown>(): T {\n throw new Error('Pane is missing router context')\n}\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PaneRouterContext = createContext<PaneRouterContextValue>(\n 'sanity/_singletons/context/pane-router',\n {\n index: 0,\n groupIndex: 0,\n siblingIndex: 0,\n payload: undefined,\n params: {},\n hasGroupSiblings: false,\n groupLength: 0,\n routerPanesState: [],\n BackLink: () => missingContext(),\n ChildLink: () => missingContext(),\n ReferenceChildLink: () => missingContext(),\n handleEditReference: () => missingContext(),\n ParameterizedLink: () => missingContext(),\n replaceCurrent: () => missingContext(),\n closeCurrentAndAfter: () => missingContext(),\n closeCurrent: () => missingContext(),\n duplicateCurrent: () => missingContext(),\n setView: () => missingContext(),\n setParams: () => missingContext(),\n setPayload: () => missingContext(),\n navigateIntent: () => missingContext(),\n createPathWithParams: () => missingContext(),\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PerspectiveContextValue} from '../../core/perspective/types'\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PerspectiveContext = createContext<PerspectiveContextValue | null>(\n 'sanity/_singletons/context/perspective-context',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMarker} from '../../core/form/types/_transitional'\n\n/**\n * @internal\n */\nexport const PortableTextMarkersContext = createContext<PortableTextMarker[]>(\n 'sanity/_singletons/context/portable-text-markers',\n [],\n)\n","import {BehaviorSubject} from 'rxjs'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport type PortableTextEditorElement = HTMLDivElement | HTMLSpanElement\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemElementRefsContext = createContext<\n BehaviorSubject<Record<string, PortableTextEditorElement | null | undefined>>\n>('sanity/_singletons/context/portable-text-member-item-element-refs', new BehaviorSubject({}))\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMemberItem} from '../../core/form/inputs/PortableText/PortableTextInput'\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemsContext = createContext<PortableTextMemberItem[]>(\n 'sanity/_singletons/context/portable-text-member-items',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/**\n * @internal\n */\nexport const PresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n PresenceTrackerContextStoreType,\n PresenceTrackerGetSnapshotType,\n} from '../../core/presence/overlay/PresenceTrackerContexts'\n\n/** @internal */\nexport const PresenceTrackerContextStore = createContext<PresenceTrackerContextStoreType>(\n 'sanity/_singletons/context/presence-tracker-store',\n null,\n)\n\n/** @internal */\nexport const PresenceTrackerContextGetSnapshot = createContext<PresenceTrackerGetSnapshotType>(\n 'sanity/_singletons/context/presence-tracker-get-snapshot',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationContext = createContext<PresentationContextValue | null>(\n 'sanity/_singletons/context/presentation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDisplayedDocumentContextValue} from '../../presentation/loader/types'\n\n/**\n * @internal\n */\nexport const PresentationDisplayedDocumentContext =\n createContext<PresentationDisplayedDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/displayed-document',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDocumentContextValue} from '../../presentation/document/types'\n\n/**\n * @internal\n */\nexport const PresentationDocumentContext = createContext<PresentationDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/document',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationNavigateContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationNavigateContext = createContext<PresentationNavigateContextValue | null>(\n 'sanity/_singletons/context/presentation/navigate',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationPanelsContextValue} from '../../presentation/panels/types'\n\n/**\n * @internal\n */\nexport const PresentationPanelsContext = createContext<PresentationPanelsContextValue | null>(\n 'sanity/_singletons/context/presentation/panels',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationParamsContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationParamsContext = createContext<PresentationParamsContextValue | null>(\n 'sanity/_singletons/context/presentation/params',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationSharedStateContextValue} from '../../presentation/overlays/types'\n\n/**\n * @internal\n */\nexport const PresentationSharedStateContext =\n createContext<PresentationSharedStateContextValue | null>(\n 'sanity/_singletons/context/presentation/shared-state',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PreviewCardContextValue} from '../../core/components/previewCard/PreviewCard'\n\n/**\n * @internal\n */\nexport const PreviewCardContext = createContext<PreviewCardContextValue>(\n 'sanity/_singletons/context/preview-card',\n {\n selected: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReferenceInputOptions} from '../../core/form/studio/contexts/ReferenceInputOptions'\n\n/**\n * @internal\n */\nexport const ReferenceInputOptionsContext = createContext<ReferenceInputOptions>(\n 'sanity/_singletons/context/reference-input-options',\n {},\n)\n","import type {MutableRefObject} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface ReferenceItemRef {\n menuRef: MutableRefObject<HTMLDivElement | null>\n menuButtonRef: MutableRefObject<HTMLButtonElement | null>\n containerRef: MutableRefObject<HTMLDivElement | null>\n}\n\n/**\n * This is a way to store ref of the menu as well as the container of the ReferenceItem\n * so it can be used down the tree for clickOutside handling\n * @internal\n */\nexport const ReferenceItemRefContext = createContext<ReferenceItemRef | null>(\n 'sanity/_singletons/context/reference-item-ref',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesMetadataContextValue} from '../../core/releases/contexts/ReleasesMetadataProvider'\n\n/**\n * @internal\n * @hidden\n */\nexport const ReleasesMetadataContext = createContext<ReleasesMetadataContextValue | null>(\n 'sanity/_singletons/context/releases-metadata',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TableContextValue} from '../../core/releases/tool/components/Table/TableProvider'\n\n/**\n * @internal\n */\nexport const TableContext = createContext<TableContextValue | null>(\n 'sanity/_singletons/context/releases-table',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesUpsellContextValue} from '../../core/releases/contexts/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const ReleasesUpsellContext = createContext<ReleasesUpsellContextValue | null>(\n 'sanity/_singletons/context/releases-upsell',\n null,\n)\n","import type {ReactNode} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {Panes} from '../../structure/structureResolvers/useResolvedPanes'\n\n/**\n * @internal\n */\nexport const ResolvedPanesContext = createContext<Panes | null>(\n 'sanity/_singletons/context/resolved-panes',\n null,\n)\n\n/**\n * @internal\n */\nexport function ResolvedPanesProvider({children, value}: {children: ReactNode; value: Panes}) {\n return <ResolvedPanesContext.Provider value={value}>{children}</ResolvedPanesContext.Provider>\n}\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ResourceCache} from '../../core/store/_legacy/ResourceCacheProvider'\n\n/**\n * @internal\n */\nexport const ResourceCacheContext = createContext<ResourceCache | null>(\n 'sanity/_singletons/context/resource-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ConnectorContextValue} from '../../core/changeIndicators/ConnectorContext'\n\n/** @internal */\nexport const ReviewChangesContext = createContext<ConnectorContextValue>(\n 'sanity/_singletons/context/review-changes',\n {\n onOpenReviewChanges: () => undefined,\n onSetFocus: () => undefined,\n isReviewChangesOpen: false,\n isInteractive: true,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterContextValue} from '../../router/types'\n\n/**\n * @internal\n */\nexport const RouterContext = createContext<RouterContextValue | null>(\n 'sanity/_singletons/context/router',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterHistory} from '../../core/studio/router'\n\n/**\n * Internal use only. Userland should leverage the public `useRouter` APIs.\n * @internal\n */\nexport const RouterHistoryContext = createContext<RouterHistory | null>(\n 'sanity/_singletons/context/router-history',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SanityCreateConfigContextValue} from '../../core'\n\n/**\n * @internal\n */\nexport const SanityCreateConfigContext = createContext<SanityCreateConfigContextValue>(\n 'sanity/_singletons/context/start-in-create-enabled',\n {\n startInCreateEnabled: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {HasUsedScheduledPublishing} from '../../core/scheduledPublishing/tool/contexts/useHasUsedScheduledPublishing'\n\n/**\n * @internal\n */\nexport type ScheduledPublishingEnabledContextValue =\n | {\n enabled: false\n mode: null\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n | {\n enabled: true\n mode: 'default' | 'upsell'\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n\nconst DEFAULT: ScheduledPublishingEnabledContextValue = {\n enabled: false,\n mode: null,\n hasUsedScheduledPublishing: {\n used: false,\n loading: false,\n },\n}\n\n/**\n * @internal\n */\nexport const ScheduledPublishingEnabledContext =\n createContext<ScheduledPublishingEnabledContextValue>(\n 'sanity/_singletons/context/scheduled-publishing-enabled',\n DEFAULT,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface SchedulePublishUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelViewed: (source: UpsellDialogViewedInfo['source']) => void\n panelDismissed: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const SchedulePublishUpsellContext = createContext<SchedulePublishUpsellContextValue>(\n 'sanity/_singletons/context/schedule-publish-upsell',\n {\n upsellData: null,\n handleOpenDialog: () => null,\n handleClose: () => null,\n upsellDialogOpen: false,\n telemetryLogs: {\n dialogSecondaryClicked: () => null,\n dialogPrimaryClicked: () => null,\n panelViewed: () => null,\n panelDismissed: () => null,\n panelPrimaryClicked: () => null,\n panelSecondaryClicked: () => null,\n },\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n// oxlint-disable-next-line no-restricted-imports\nimport type {SchedulesContextValue} from '../../core/scheduled-publishing/contexts/Schedules'\n\n/**\n * @deprecated we will be dropping support for scheduled publishing on a future major version\n * @internal\n */\nexport const SchedulesContext = createContext<SchedulesContextValue | undefined>(\n 'sanity/_singletons/context/schedules',\n undefined,\n)\n","import type {PubSub} from 'nano-pubsub'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ScrollContext = createContext<null | PubSub<Event>>(\n 'sanity/_singletons/context/scroll',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SearchContextValue} from '../../core/studio/components/navbar/search/contexts/search/SearchContext'\n\n/**\n * @internal\n */\nexport const SearchContext = createContext<SearchContextValue | undefined>(\n 'sanity/_singletons/context/search',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface SingleDocReleaseContextValue {\n /**\n * Sets the scheduled draft perspective into the local router params.\n */\n onSetScheduledDraftPerspective: (releaseId: string) => void\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseContext = createContext<SingleDocReleaseContextValue | null>(\n 'sanity/_singletons/context/single-doc-release-context',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport type SingleDocReleaseEnabledContextValue =\n | {enabled: false; mode: null}\n | {enabled: true; mode: 'default' | 'upsell'}\n\nconst DEFAULT: SingleDocReleaseEnabledContextValue = {\n enabled: false,\n mode: null,\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseEnabledContext = createContext<SingleDocReleaseEnabledContextValue>(\n 'sanity/_singletons/context/single-doc-release-enabled',\n DEFAULT,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface SingleDocReleaseUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelViewed: (source: UpsellDialogViewedInfo['source']) => void\n panelDismissed: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseUpsellContext = createContext<SingleDocReleaseUpsellContextValue>(\n 'sanity/_singletons/context/single-doc-release-upsell',\n {\n upsellData: null,\n handleOpenDialog: () => null,\n handleClose: () => null,\n upsellDialogOpen: false,\n telemetryLogs: {\n dialogSecondaryClicked: () => null,\n dialogPrimaryClicked: () => null,\n panelViewed: () => null,\n panelDismissed: () => null,\n panelPrimaryClicked: () => null,\n panelSecondaryClicked: () => null,\n },\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const SortableItemIdContext = createContext<string | null>(\n 'sanity/_singletons/context/sortable-item-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Source} from '../../core/config/types'\n\n/**\n * @internal\n */\nexport const SourceContext = createContext<Source | null>('sanity/_singletons/context/source', null)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StructureToolContextValue} from '../../structure/types'\n\n/**\n * @internal\n */\nexport const StructureToolContext = createContext<StructureToolContextValue | null>(\n 'sanity/_singletons/context/structure-tool',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioAnnouncementsContextValue} from '../../core/studio/studioAnnouncements/types'\n\n/**\n * @internal\n */\nexport const StudioAnnouncementContext = createContext<StudioAnnouncementsContextValue | undefined>(\n 'sanity/_singletons/context/studioAnnouncements',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksContextValue} from '../../core/tasks/context/tasks/types'\n\n/**\n * @internal\n */\nexport const TasksContext = createContext<TasksContextValue | null>(\n 'sanity/_singletons/context/tasks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksEnabledContextValue} from '../../core/tasks/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the tasks feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// Tasks are included by default in all new Studio configurations. Therefore,\n// in the absence of a specific provider (TasksEnabledProvider), we assume that\n// the feature is disabled.\n/**\n * @internal\n */\nexport const TasksEnabledContext = createContext<TasksEnabledContextValue>(\n 'sanity/_singletons/context/tasks-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksNavigationContextValue} from '../../core/tasks/context/navigation/types'\n\n/**\n * @internal\n */\nexport const TasksNavigationContext = createContext<TasksNavigationContextValue | null>(\n 'sanity/_singletons/context/tasks-navigation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksUpsellContextValue} from '../../core/tasks/context/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const TasksUpsellContext = createContext<TasksUpsellContextValue | null>(\n 'sanity/_singletons/context/tasks-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserApplicationCache} from '../../core/store/userApplications/userApplicationCache'\n\n/**\n * @internal\n */\nexport const UserApplicationCacheContext = createContext<UserApplicationCache | null>(\n 'sanity/_singletons/context/user-application-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserColorManager} from '../../core/user-color/types'\n\n/**\n * @internal\n */\nexport const UserColorManagerContext = createContext<UserColorManager | null>(\n 'sanity/_singletons/context/user-color-manager',\n null,\n)\n","import type {ValidationMarker} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ValidationContext = createContext<ValidationMarker[]>(\n 'sanity/_singletons/context/validation',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {VirtualizerScrollInstance} from '../../core/form/inputs/arrays/ArrayOfObjectsInput/List/useVirtualizerScrollInstance'\n\n/**\n * This is used to store the reference to the scroll element for virtualizer\n * @internal\n */\nexport const VirtualizerScrollInstanceContext = createContext<VirtualizerScrollInstance | null>(\n 'sanity/_singletons/context/virtualizer-scroll-instance',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Workspace} from '../../core/config/types'\n\n/**\n * @internal\n */\nexport const WorkspaceContext = createContext<Workspace | null>(\n 'sanity/_singletons/context/workspace',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {WorkspacesContextValue} from '../../core/studio/workspaces/WorkspacesContext'\n\n/** @internal */\nexport const WorkspacesContext = createContext<WorkspacesContextValue | null>(\n 'sanity/_singletons/context/workspaces',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ZIndexContextValue} from '../../core/components/zOffsets/types'\n\n/**\n * @internal\n */\nexport const zIndexContextDefaults: ZIndexContextValue = {\n navbar: 200,\n navbarPopover: 500000,\n navbarDialog: 500001,\n // pane\n pane: 100,\n paneHeader: [110, 15000],\n paneFooter: [120, 20000],\n paneResizer: [130, 25000],\n paneDialog: [140, 5000],\n //\n popover: 200,\n modal: 200,\n movingItem: 10000,\n drawershade: 1000000,\n drawer: 1000001,\n fullscreen: 1200000,\n toast: [100, 11000],\n // NOT IN USE\n portal: 200,\n dropdown: 200,\n navbarFixed: 1010,\n fullscreenEdit: 1050,\n popoverBackground: 1060,\n tooltip: 200,\n modalBackground: 2000,\n spinner: 3000,\n}\n\n/**\n * TODO: Rename to `ZOffsetsContext`\n *\n * @internal\n */\nexport const ZIndexContext = createContext<ZIndexContextValue>(\n 'sanity/_singletons/context/z-index',\n zIndexContextDefaults,\n)\n"],"names":["ActiveWorkspaceMatcherContext","createContext","AddonDatasetContext","AppIdCacheContext","AssetLimitUpsellContext","CalendarContext","undefined","ChangeIndicatorTrackerContextStore","ChangeIndicatorTrackerContextGetSnapshot","ColorSchemeSetValueContext","ColorSchemeValueContext","CommentInputContext","CommentsAuthoringPathContext","CommentsContext","CommentsEnabledContext","enabled","mode","CommentsIntentContext","CommentsOnboardingContext","CommentsSelectedPathContext","CommentsUpsellContext","CopyPasteContext","DiffContext","path","DocumentActionPropsContext","DocumentActionsStateContext","DocumentChangeContext","DocumentFieldActionsContext","DocumentIdContext","DocumentLimitUpsellContext","DocumentPaneContext","DocumentSheetListContext","EnhancedObjectDialogContext","isDialogAvailable","legacyEditing","EventsContext","FieldActionsContext","actions","focused","hovered","__internal_slot","__internal_comments","onMouseEnter","onMouseLeave","FormBuilderContext","FormCallbacksContext","FormFieldPresenceContext","FormValueContext","FreeTrialContext","FullscreenPTEContext","getFullscreenPath","setFullscreenPath","hasAnyFullscreen","allFullscreenPaths","GetFormValueContext","HoveredFieldContext","store","subscribe","getSnapshot","IsLastPaneContext","LiveUserApplicationContext","userApplication","LocaleContext","MediaLibraryIdsContext","MentionUserContext","NavbarContext","onSearchFullscreenOpenChange","onSearchOpenChange","searchFullscreenOpen","searchFullscreenPortalEl","searchOpen","PackageVersionInfoContext","isAutoUpdating","checkForUpdates","currentVersion","Error","versionCheckStatus","lastCheckedAt","checking","PaneContext","PaneLayoutContext","missingContext","PaneRouterContext","index","groupIndex","siblingIndex","payload","params","hasGroupSiblings","groupLength","routerPanesState","BackLink","ChildLink","ReferenceChildLink","handleEditReference","ParameterizedLink","replaceCurrent","closeCurrentAndAfter","closeCurrent","duplicateCurrent","setView","setParams","setPayload","navigateIntent","createPathWithParams","PerspectiveContext","PortableTextMarkersContext","PortableTextMemberItemElementRefsContext","BehaviorSubject","PortableTextMemberItemsContext","PresenceContext","PresenceTrackerContextStore","PresenceTrackerContextGetSnapshot","PresentationContext","PresentationDisplayedDocumentContext","PresentationDocumentContext","PresentationNavigateContext","PresentationPanelsContext","PresentationParamsContext","PresentationSharedStateContext","PreviewCardContext","selected","ReferenceInputOptionsContext","ReferenceItemRefContext","ReleasesMetadataContext","TableContext","ReleasesUpsellContext","ResolvedPanesContext","ResolvedPanesProvider","t0","$","_c","children","value","t1","ResourceCacheContext","ReviewChangesContext","onOpenReviewChanges","onSetFocus","isReviewChangesOpen","isInteractive","RouterContext","RouterHistoryContext","SanityCreateConfigContext","startInCreateEnabled","DEFAULT","hasUsedScheduledPublishing","used","loading","ScheduledPublishingEnabledContext","SchedulePublishUpsellContext","upsellData","handleOpenDialog","handleClose","upsellDialogOpen","telemetryLogs","dialogSecondaryClicked","dialogPrimaryClicked","panelViewed","panelDismissed","panelPrimaryClicked","panelSecondaryClicked","SchedulesContext","ScrollContext","SearchContext","SingleDocReleaseContext","SingleDocReleaseEnabledContext","SingleDocReleaseUpsellContext","SortableItemIdContext","SourceContext","StructureToolContext","StudioAnnouncementContext","TasksContext","TasksEnabledContext","TasksNavigationContext","TasksUpsellContext","UserApplicationCacheContext","UserColorManagerContext","ValidationContext","VirtualizerScrollInstanceContext","WorkspaceContext","WorkspacesContext","zIndexContextDefaults","navbar","navbarPopover","navbarDialog","pane","paneHeader","paneFooter","paneResizer","paneDialog","popover","modal","movingItem","drawershade","drawer","fullscreen","toast","portal","dropdown","navbarFixed","fullscreenEdit","popoverBackground","tooltip","modalBackground","spinner","ZIndexContext"],"mappings":";;;;AAKO,MAAMA,gCACXC,cACE,uDACA,IACF,GCDWC,sBAAsBD,cACjC,4CACA,IACF,GCJaE,oBAAoBF,cAC/B,2CACA,IACF,GCWaG,0BAA0BH,cACrC,iDACA,IACF,GCjBaI,kBAAkBJ,cAC7B,uCACAK,MACF,GCFaC,qCACXN,cACE,6DACA,IACF,GAGWO,2CACXP,cACE,oEACA,IACF,GCVWQ,6BAA6BR,cAExC,qDAAqD,IAAI,GCH9CS,0BAA0BT,cACrC,iDACA,IACF,GCJaU,sBAAsBV,cACjC,4CACA,IACF,GCFaW,+BAA+BX,cAC1C,sDACA,IACF,GCJaY,kBAAkBZ,cAC7B,uCACA,IACF,GCGaa,yBAAyBb,cACpC,+CACA;AAAA,EACEc,SAAS;AAAA,EACTC,MAAM;AACR,CACF,GCZaC,wBAAwBhB,cACnC,8CACAK,MACF,GCHaY,4BAA4BjB,cACvC,kDACA,IACF,GCHakB,8BAA8BlB,cACzC,qDACA,IACF,GCHamB,wBAAwBnB,cACnC,8CACA,IACF,GCFaoB,mBAAmBpB,cAC9B,yCACA,IACF,GCPaqB,cAAcrB,cAExB,mCAAmC;AAAA,EACpCsB,MAAM,CAAA;AACR,CAAC,GCDYC,6BAA6BvB,cACxC,oDACAK,MACF,GCHamB,8BAA8BxB,cACzC,4CACA,IACF,GCLayB,wBAAwBzB,cACnC,8CACA,IACF,GCMa0B,8BAA8B1B,cACzC,qDACA,IACF,GCLa2B,oBAAoB3B,cAC/B,0CAC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AQ;AAAA,EACRC,YAAY;AAAA,EACZC,OAAO,CAAC,KAAK,IAAK;AAAA;AAAA,EAElBC,QAAQ;AAAA,EACRC,UAAU;AAAA,EACVC,aAAa;AAAA,EACbC,gBAAgB;AAAA,EAChBC,mBAAmB;AAAA,EACnBC,SAAS;AAAA,EACTC,iBAAiB;AAAA,EACjBC,SAAS;AACX,GAOaC,gBAAgB7M,cAC3B,sCACAqL,qBACF;"}
1
+ {"version":3,"file":"_singletons.js","sources":["../src/_singletons/context/ActiveWorkspaceMatcherContext.ts","../src/_singletons/context/AddonDatasetContext.ts","../src/_singletons/context/AppIdCacheContext.ts","../src/_singletons/context/AssetLimitContext.ts","../src/_singletons/context/CalendarContext.ts","../src/_singletons/context/ChangeIndicatorTrackerContexts.ts","../src/_singletons/context/ColorSchemeSetValueContext.ts","../src/_singletons/context/ColorSchemeValueContext.ts","../src/_singletons/context/CommentInputContext.ts","../src/_singletons/context/CommentsAuthoringPathContext.ts","../src/_singletons/context/CommentsContext.ts","../src/_singletons/context/CommentsEnabledContext.ts","../src/_singletons/context/CommentsIntentContext.ts","../src/_singletons/context/CommentsOnboardingContext.ts","../src/_singletons/context/CommentsSelectedPathContext.ts","../src/_singletons/context/CommentsUpsellContext.ts","../src/_singletons/context/CopyPasteContext.ts","../src/_singletons/context/DialogStackContext.ts","../src/_singletons/context/DiffContext.ts","../src/_singletons/context/DocumentActionPropsContext.ts","../src/_singletons/context/DocumentActionsStateContext.ts","../src/_singletons/context/DocumentChangeContext.ts","../src/_singletons/context/DocumentFieldActionsContext.ts","../src/_singletons/context/DocumentIdContext.ts","../src/_singletons/context/DocumentLimitContext.ts","../src/_singletons/context/DocumentPaneContext.ts","../src/_singletons/context/DocumentSheetListContext.ts","../src/_singletons/context/EnhancedObjectDialogContext.ts","../src/_singletons/context/EventsContext.ts","../src/_singletons/context/FieldActionsContext.ts","../src/_singletons/context/FormBuilderContext.ts","../src/_singletons/context/FormCallbacksContext.ts","../src/_singletons/context/FormFieldPresenceContext.ts","../src/_singletons/context/FormValueContext.ts","../src/_singletons/context/FreeTrialContext.ts","../src/_singletons/context/FullscreenPTEContext.ts","../src/_singletons/context/GetFormValueContext.ts","../src/_singletons/context/HoveredFieldContext.ts","../src/_singletons/context/IsLastPaneContext.ts","../src/_singletons/context/LiveUserApplicationContext.tsx","../src/_singletons/context/LocaleContext.ts","../src/_singletons/context/MediaLibraryIdsContext.ts","../src/_singletons/context/MentionUserContext.ts","../src/_singletons/context/NavbarContext.ts","../src/_singletons/context/PackageVersionInfoContext.tsx","../src/_singletons/context/PaneContext.ts","../src/_singletons/context/PaneLayoutContext.ts","../src/_singletons/context/PaneRouterContext.tsx","../src/_singletons/context/PerspectiveContext.ts","../src/_singletons/context/PortableTextMarkersContext.ts","../src/_singletons/context/PortableTextMemberItemElementRefsContext.ts","../src/_singletons/context/PortableTextMemberItemsContext.ts","../src/_singletons/context/PresenceContext.ts","../src/_singletons/context/PresenceTrackerContexts.ts","../src/_singletons/context/PresentationContext.ts","../src/_singletons/context/PresentationDisplayedDocumentContext.ts","../src/_singletons/context/PresentationDocumentContext.ts","../src/_singletons/context/PresentationNavigateContext.ts","../src/_singletons/context/PresentationPanelsContext.ts","../src/_singletons/context/PresentationParamsContext.ts","../src/_singletons/context/PresentationSharedStateContext.ts","../src/_singletons/context/PreviewCardContext.ts","../src/_singletons/context/ReferenceInputOptionsContext.ts","../src/_singletons/context/ReferenceItemRefContext.ts","../src/_singletons/context/ReleasesMetadataContext.ts","../src/_singletons/context/ReleasesTableContext.ts","../src/_singletons/context/ReleasesUpsellContext.ts","../src/_singletons/context/ResolvedPanesContext.tsx","../src/_singletons/context/ResourceCacheContext.ts","../src/_singletons/context/ReviewChangesContext.ts","../src/_singletons/context/RouterContext.ts","../src/_singletons/context/RouterHistoryContext.ts","../src/_singletons/context/SanityCreateConfigContext.tsx","../src/_singletons/context/ScheduledPublishingEnabledContext.ts","../src/_singletons/context/SchedulePublishingUpsellContext.ts","../src/_singletons/context/SchedulesContext.ts","../src/_singletons/context/ScrollContext.ts","../src/_singletons/context/SearchContext.ts","../src/_singletons/context/SingleDocReleaseContext.ts","../src/_singletons/context/SingleDocReleaseEnabledContext.ts","../src/_singletons/context/SingleDocReleaseUpsellContext.ts","../src/_singletons/context/SortableItemIdContext.ts","../src/_singletons/context/SourceContext.ts","../src/_singletons/context/StructureToolContext.ts","../src/_singletons/context/StudioAnnouncementsContext.ts","../src/_singletons/context/TasksContext.ts","../src/_singletons/context/TasksEnabledContext.ts","../src/_singletons/context/TasksNavigationContext.ts","../src/_singletons/context/TasksUpsellContext.ts","../src/_singletons/context/UserApplicationCacheContext.ts","../src/_singletons/context/UserColorManagerContext.ts","../src/_singletons/context/ValidationContext.ts","../src/_singletons/context/VirtualizerScrollInstanceContext.ts","../src/_singletons/context/WorkspaceContext.ts","../src/_singletons/context/WorkspacesContext.ts","../src/_singletons/context/ZIndexContext.ts"],"sourcesContent":["import {createContext} from 'sanity/_createContext'\n\nimport type {ActiveWorkspaceMatcherContextValue} from '../../core/studio/activeWorkspaceMatcher/ActiveWorkspaceMatcherContext'\n\n/** @internal */\nexport const ActiveWorkspaceMatcherContext =\n createContext<ActiveWorkspaceMatcherContextValue | null>(\n 'sanity/_singletons/context/active-workspace-matcher',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AddonDatasetContextValue} from '../../core/studio/addonDataset/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const AddonDatasetContext = createContext<AddonDatasetContextValue | null>(\n 'sanity/_singletons/context/addon-dataset',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AppIdCache} from '../../core/create/studio-app/appIdCache'\n\n/**\n * @internal\n */\nexport const AppIdCacheContext = createContext<AppIdCache | null>(\n 'sanity/_singletons/context/app-id-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface AssetLimitUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const AssetLimitUpsellContext = createContext<AssetLimitUpsellContextValue | null>(\n 'sanity/_singletons/context/asset-limit-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CalendarContextValue} from '../../core/studio/components/navbar/search/components/filters/filter/inputs/date/datePicker/calendar/contexts/CalendarContext'\n\n/**\n * @internal\n */\nexport const CalendarContext = createContext<CalendarContextValue | undefined>(\n 'sanity/_singletons/context/calendar',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n ChangeIndicatorTrackerContextStoreType,\n ChangeIndicatorTrackerGetSnapshotType,\n} from '../../core/changeIndicators/ChangeIndicatorTrackerContexts'\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextStore =\n createContext<ChangeIndicatorTrackerContextStoreType>(\n 'sanity/_singletons/context/change-indicator-tracker-store',\n null,\n )\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextGetSnapshot =\n createContext<ChangeIndicatorTrackerGetSnapshotType>(\n 'sanity/_singletons/context/change-indicator-tracker-get-snapshot',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders\n * If set to false then the UI should adjust to reflect that the Studio can't change the color scheme\n * @internal\n */\nexport const ColorSchemeSetValueContext = createContext<\n ((nextScheme: StudioThemeColorSchemeKey) => void) | false | null\n>('sanity/_singletons/context/color-scheme-set-value', null)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * Used to keep track of the internal value, which can be \"system\" in addition to \"light\" and \"dark\"\n * @internal\n */\nexport const ColorSchemeValueContext = createContext<StudioThemeColorSchemeKey | null>(\n 'sanity/_singletons/context/color-scheme-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentInputContextValue} from '../../core/comments/components/pte/comment-input/CommentInputProvider'\n\n/**\n * @internal\n */\nexport const CommentInputContext = createContext<CommentInputContextValue | null>(\n 'sanity/_singletons/context/comment-input',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsAuthoringPathContextValue} from '../../core/comments/context/authoring-path/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const CommentsAuthoringPathContext = createContext<CommentsAuthoringPathContextValue | null>(\n 'sanity/_singletons/context/comments-authoring-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsContextValue} from '../../core/comments/context/comments/types'\n\n/**\n * @internal\n */\nexport const CommentsContext = createContext<CommentsContextValue | null>(\n 'sanity/_singletons/context/comments',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsEnabledContextValue} from '../../core/comments/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the comments feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// comments functionality is included by default in all new studio\n// configurations. Therefore, in the absence of a specific provider\n// (CommentsEnabledProvider), we assume that the feature is disabled.\n/**\n * @internal\n */\nexport const CommentsEnabledContext = createContext<CommentsEnabledContextValue>(\n 'sanity/_singletons/context/comments-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsIntentContextValue} from '../../core/comments/context/intent/types'\n\n/**\n * @internal\n */\nexport const CommentsIntentContext = createContext<CommentsIntentContextValue | undefined>(\n 'sanity/_singletons/context/comments-intent',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsOnboardingContextValue} from '../../core/comments/context/onboarding/types'\n\n/**\n * @internal\n */\nexport const CommentsOnboardingContext = createContext<CommentsOnboardingContextValue | null>(\n 'sanity/_singletons/context/comments-onboarding',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsSelectedPathContextValue} from '../../core/comments/context/selected-path/types'\n\n/**\n * @internal\n */\nexport const CommentsSelectedPathContext = createContext<CommentsSelectedPathContextValue | null>(\n 'sanity/_singletons/context/comments-selected-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsUpsellContextValue} from '../../core/comments/context/upsell/types'\n\n/**\n * @internal\n */\nexport const CommentsUpsellContext = createContext<CommentsUpsellContextValue | null>(\n 'sanity/_singletons/context/comments-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CopyPasteContextType} from '../../core/studio/copyPaste'\n\n/**\n * @beta\n * @hidden\n */\nexport const CopyPasteContext = createContext<CopyPasteContextType | null>(\n 'sanity/_singletons/context/copy-paste',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * Entry in the dialog stack.\n *\n * @beta\n */\nexport interface DialogStackEntry {\n id: string\n path?: Path\n}\n\n/**\n * Context value for tracking the dialog stack.\n *\n * @beta\n */\nexport interface DialogStackContextValue {\n /** Stack of dialog entries, last one is the top */\n stack: DialogStackEntry[]\n /** Push a dialog onto the stack */\n push: (id: string, path?: Path) => void\n /** Remove a dialog from the stack */\n remove: (id: string) => void\n /** Update the path of an existing dialog entry */\n update: (id: string, path?: Path) => void\n /** Close dialogs (might not close all of them, depending on fullscreen mode) */\n close: () => void\n}\n\n/**\n * Context for tracking the stack of open dialogs.\n *\n * @beta\n */\nexport const DialogStackContext = createContext<DialogStackContextValue | null>(\n 'sanity/_singletons/context/dialog-stack',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport const DiffContext = createContext<{\n path: Path\n}>('sanity/_singletons/context/diff', {\n path: [],\n})\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentActionProps} from '../../core/config/document/actions'\n\n/**\n * @internal\n */\nexport const DocumentActionPropsContext = createContext<DocumentActionProps | undefined>(\n 'sanity/_singletons/context/document-action-props',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentActionDescription} from '../../core/config/document/actions'\n\n/**\n * @internal\n */\nexport const DocumentActionsStateContext = createContext<DocumentActionDescription[] | null>(\n 'sanity/_singletons/context/actions-state',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentChangeContextInstance} from '../../core/field/diff/contexts/DocumentChangeContext'\n\n/** @internal */\nexport const DocumentChangeContext = createContext<DocumentChangeContextInstance | null>(\n 'sanity/_singletons/context/document-change',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldAction} from '../../core/config/document/fieldActions/types'\n\n/**\n * @internal\n */\nexport interface DocumentFieldActionsContextValue {\n actions: DocumentFieldAction[]\n}\n\n/**\n * @internal\n */\nexport const DocumentFieldActionsContext = createContext<DocumentFieldActionsContextValue | null>(\n 'sanity/_singletons/context/document-field-actions',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface DocumentIdContextValue {\n id: string\n}\n\n/**\n * @internal\n */\nexport const DocumentIdContext = createContext<DocumentIdContextValue | null>(\n 'sanity/_singletons/context/document-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface DocumentLimitUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const DocumentLimitUpsellContext = createContext<DocumentLimitUpsellContextValue | null>(\n 'sanity/_singletons/context/document-limit-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentPaneContextValue} from '../../structure/panes/document/DocumentPaneContext'\n\n/** @internal */\nexport const DocumentPaneContext = createContext<DocumentPaneContextValue | null>(\n 'sanity/_singletons/context/document-pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentSheetListContextValue} from '../../structure/panes/documentList/sheetList/DocumentSheetListProvider'\n\n/** @internal */\nexport const DocumentSheetListContext = createContext<DocumentSheetListContextValue | undefined>(\n 'sanity/_singletons/context/document-sheet-list',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {EnhancedObjectDialogContextValue} from '../../core/form/studio/tree-editing/context/enabled/useEnhancedObjectDialog'\n\n/**\n * @internal\n */\nexport const EnhancedObjectDialogContext = createContext<EnhancedObjectDialogContextValue>(\n 'sanity/_singletons/context/enhanced-object-dialog-enabled',\n {\n enabled: false,\n legacyEditing: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {EventsStore} from '../../core/store/events/types'\n\n/**\n * @internal\n */\nexport const EventsContext = createContext<EventsStore | null>(\n 'sanity/_singletons/context/events',\n null,\n)\n","import type {ReactNode} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldActionNode} from '../../core/config/document/fieldActions/types'\nimport type {FieldCommentsProps} from '../../core/form/types/fieldProps'\n\n/** @internal */\nexport interface FieldActionsContextValue {\n actions: DocumentFieldActionNode[]\n __internal_comments?: FieldCommentsProps\n __internal_slot?: ReactNode\n focused?: boolean\n hovered: boolean\n onMouseEnter: () => void\n onMouseLeave: () => void\n}\n\n/** @internal */\nexport const FieldActionsContext = createContext<FieldActionsContextValue>(\n 'sanity/_singletons/context/field-actions',\n {\n actions: [],\n focused: false,\n hovered: false,\n // eslint-disable-next-line camelcase\n __internal_slot: undefined,\n // eslint-disable-next-line camelcase\n __internal_comments: undefined,\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormBuilderContextValue} from '../../core/form/FormBuilderContext'\n\n/**\n * @internal\n */\nexport const FormBuilderContext = createContext<FormBuilderContextValue | null>(\n 'sanity/_singletons/context/form-builder',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormCallbacksValue} from '../../core/form/studio/contexts/FormCallbacks'\n\n/**\n * @internal\n */\nexport const FormCallbacksContext = createContext<FormCallbacksValue | null>(\n 'sanity/_singletons/context/form-callbacks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/** @internal */\nexport const FormFieldPresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/form-field-presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormValueContextValue} from '../../core/form/contexts/FormValue'\n\n/**\n * @internal\n */\nexport const FormValueContext = createContext<FormValueContextValue | null>(\n 'sanity/_singletons/context/form-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FreeTrialContextProps} from '../../core/studio/components/navbar/free-trial/FreeTrialContext'\n\n/**\n * @internal\n */\nexport const FreeTrialContext = createContext<FreeTrialContextProps | undefined>(\n 'sanity/_singletons/context/free-trial',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FullscreenPTEContextValue} from '../../core/form/inputs/PortableText/contexts/fullscreen/FullscreenPTEContext'\n\n/**\n * @internal\n */\nexport const FullscreenPTEContext = createContext<FullscreenPTEContextValue>(\n 'sanity/_singletons/context/fullscreen-pte',\n {\n getFullscreenPath: () => undefined,\n setFullscreenPath: () => {},\n hasAnyFullscreen: () => false,\n allFullscreenPaths: [],\n },\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n * @hidden\n */\nexport type GetFormValueContextValue = (path: Path) => unknown\n\n/**\n * @internal\n */\nexport const GetFormValueContext = createContext<GetFormValueContextValue | null>(\n 'sanity/_singletons/context/get-form-value',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport interface HoveredFieldContextValue {\n store: {\n subscribe: (onStoreCallback: () => void) => () => void\n getSnapshot: () => string[]\n }\n onMouseEnter: (path: Path) => void\n onMouseLeave: (path: Path) => void\n}\n\n/** @internal */\nexport const HoveredFieldContext = createContext<HoveredFieldContextValue>(\n 'sanity/_singletons/context/hovered-field',\n {\n store: {\n subscribe: () => () => undefined,\n getSnapshot: () => [],\n },\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * TODO: remove this context when alternate document-specific context are\n * introduced.\n *\n * The following context is used in the structure tool to set the active\n * document if it's the last pane open in the structure tool. This is a\n * temporary context provider that was introduced when the comments and tasks\n * plugins were refactor and decoupled from the structure tool. ideally this\n * should be removed and replaced with a document-specific context that gives\n * plugin authors access to what the `usePane`, `usePaneRouter`, and\n * `useDocumentPane` provides without exposing specifics from the structure tool\n */\n/**\n * @internal\n */\nexport const IsLastPaneContext = createContext<boolean>(\n 'sanity/_singletons/context/is-last-pane',\n false,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserApplication} from '../../core/store/userApplications'\n\n/**\n * @hidden\n * @internal\n */\nexport type LiveUserApplicationContextValue = {\n userApplication: UserApplication | undefined\n}\n/**\n *\n * @hidden\n * @internal\n */\nexport const LiveUserApplicationContext = createContext<LiveUserApplicationContextValue>(\n 'sanity/_singletons/context/live-user-application',\n {\n userApplication: undefined,\n },\n)\n","// eslint-disable-next-line @sanity/i18n/no-i18next-import -- figure out how to have the linter be fine with importing types-only\nimport type {i18n} from 'i18next'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {Locale} from '../../core/i18n/types'\n\n/**\n * @internal\n * @hidden\n */\nexport interface LocaleContextValue {\n locales: Locale[]\n currentLocale: Locale\n __internal: {\n i18next: i18n\n }\n changeLocale: (newLocale: string) => Promise<void>\n}\n\n/**\n * @internal\n * @hidden\n */\nexport const LocaleContext = createContext<LocaleContextValue | undefined>(\n 'sanity/_singletons/context/locale',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {MediaLibraryIds} from '../../core/form/studio/assetSourceMediaLibrary/shared/MediaLibraryProvider'\n\n/** @internal */\nexport const MediaLibraryIdsContext = createContext<MediaLibraryIds | null>(\n 'sanity/_singletons/context/media-library',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {MentionUserContextValue} from '../../core/tasks/context/mentionUser/types'\n\n/**\n * @internal\n */\nexport const MentionUserContext = createContext<MentionUserContextValue | null>(\n 'sanity/_singletons/context/mention-user',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {NavbarContextValue} from '../../core/studio/StudioLayout'\n\n/** @internal */\nexport const NavbarContext = createContext<NavbarContextValue>(\n 'sanity/_singletons/context/navbar',\n {\n onSearchFullscreenOpenChange: () => '',\n onSearchOpenChange: () => '',\n searchFullscreenOpen: false,\n searchFullscreenPortalEl: null,\n searchOpen: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\nimport type {SemVer} from 'semver'\n\n/**\n * @hidden\n * @internal\n */\nexport type PackageVersionInfoContextValue = {\n /**\n * Request a new update check\n */\n checkForUpdates: () => void\n\n /**\n * Status of version check (i.e. are we currently checking for updates)\n */\n versionCheckStatus: {lastCheckedAt: Date | null; checking: boolean}\n\n /**\n * Whether this Studio is configured to be auto-updating\n */\n isAutoUpdating: boolean\n\n /**\n * If an importmap for the sanity module exists in the DOM, includes details\n * will be undefined if no importmap is found\n */\n importMapInfo?: {valid: false; error: Error} | {valid: true; minVersion: SemVer; appId?: string}\n\n /**\n * What is the version tagged as latest (periodically checked)\n */\n latestTaggedVersion?: SemVer\n\n /**\n * What version is the Studio currently running\n */\n currentVersion: SemVer\n\n /**\n * What is the current auto-updating version (as periodically resolved via module server and configured via manage)\n */\n autoUpdatingVersion?: SemVer\n}\n/**\n *\n * @hidden\n * @internal\n */\nexport const PackageVersionInfoContext = createContext<PackageVersionInfoContextValue>(\n 'sanity/_singletons/context/package-version-info',\n {\n isAutoUpdating: false,\n checkForUpdates: () => {},\n get currentVersion(): never {\n throw new Error('PackageVersionInfoContext not provided')\n },\n versionCheckStatus: {lastCheckedAt: null, checking: false},\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneContext = createContext<PaneContextValue | null>(\n 'sanity/_singletons/context/pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneLayoutContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneLayoutContext = createContext<PaneLayoutContextValue | null>(\n 'sanity/_singletons/context/pane-layout',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneRouterContextValue} from '../../structure/components/paneRouter/types'\n\nfunction missingContext<T = unknown>(): T {\n throw new Error('Pane is missing router context')\n}\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PaneRouterContext = createContext<PaneRouterContextValue>(\n 'sanity/_singletons/context/pane-router',\n {\n index: 0,\n groupIndex: 0,\n siblingIndex: 0,\n payload: undefined,\n params: {},\n hasGroupSiblings: false,\n groupLength: 0,\n routerPanesState: [],\n BackLink: () => missingContext(),\n ChildLink: () => missingContext(),\n ReferenceChildLink: () => missingContext(),\n handleEditReference: () => missingContext(),\n ParameterizedLink: () => missingContext(),\n replaceCurrent: () => missingContext(),\n closeCurrentAndAfter: () => missingContext(),\n closeCurrent: () => missingContext(),\n duplicateCurrent: () => missingContext(),\n setView: () => missingContext(),\n setParams: () => missingContext(),\n setPayload: () => missingContext(),\n navigateIntent: () => missingContext(),\n createPathWithParams: () => missingContext(),\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PerspectiveContextValue} from '../../core/perspective/types'\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PerspectiveContext = createContext<PerspectiveContextValue | null>(\n 'sanity/_singletons/context/perspective-context',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMarker} from '../../core/form/types/_transitional'\n\n/**\n * @internal\n */\nexport const PortableTextMarkersContext = createContext<PortableTextMarker[]>(\n 'sanity/_singletons/context/portable-text-markers',\n [],\n)\n","import {BehaviorSubject} from 'rxjs'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport type PortableTextEditorElement = HTMLDivElement | HTMLSpanElement\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemElementRefsContext = createContext<\n BehaviorSubject<Record<string, PortableTextEditorElement | null | undefined>>\n>('sanity/_singletons/context/portable-text-member-item-element-refs', new BehaviorSubject({}))\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMemberItem} from '../../core/form/inputs/PortableText/PortableTextInput'\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemsContext = createContext<PortableTextMemberItem[]>(\n 'sanity/_singletons/context/portable-text-member-items',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/**\n * @internal\n */\nexport const PresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n PresenceTrackerContextStoreType,\n PresenceTrackerGetSnapshotType,\n} from '../../core/presence/overlay/PresenceTrackerContexts'\n\n/** @internal */\nexport const PresenceTrackerContextStore = createContext<PresenceTrackerContextStoreType>(\n 'sanity/_singletons/context/presence-tracker-store',\n null,\n)\n\n/** @internal */\nexport const PresenceTrackerContextGetSnapshot = createContext<PresenceTrackerGetSnapshotType>(\n 'sanity/_singletons/context/presence-tracker-get-snapshot',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationContext = createContext<PresentationContextValue | null>(\n 'sanity/_singletons/context/presentation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDisplayedDocumentContextValue} from '../../presentation/loader/types'\n\n/**\n * @internal\n */\nexport const PresentationDisplayedDocumentContext =\n createContext<PresentationDisplayedDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/displayed-document',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDocumentContextValue} from '../../presentation/document/types'\n\n/**\n * @internal\n */\nexport const PresentationDocumentContext = createContext<PresentationDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/document',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationNavigateContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationNavigateContext = createContext<PresentationNavigateContextValue | null>(\n 'sanity/_singletons/context/presentation/navigate',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationPanelsContextValue} from '../../presentation/panels/types'\n\n/**\n * @internal\n */\nexport const PresentationPanelsContext = createContext<PresentationPanelsContextValue | null>(\n 'sanity/_singletons/context/presentation/panels',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationParamsContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationParamsContext = createContext<PresentationParamsContextValue | null>(\n 'sanity/_singletons/context/presentation/params',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationSharedStateContextValue} from '../../presentation/overlays/types'\n\n/**\n * @internal\n */\nexport const PresentationSharedStateContext =\n createContext<PresentationSharedStateContextValue | null>(\n 'sanity/_singletons/context/presentation/shared-state',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PreviewCardContextValue} from '../../core/components/previewCard/PreviewCard'\n\n/**\n * @internal\n */\nexport const PreviewCardContext = createContext<PreviewCardContextValue>(\n 'sanity/_singletons/context/preview-card',\n {\n selected: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReferenceInputOptions} from '../../core/form/studio/contexts/ReferenceInputOptions'\n\n/**\n * @internal\n */\nexport const ReferenceInputOptionsContext = createContext<ReferenceInputOptions>(\n 'sanity/_singletons/context/reference-input-options',\n {},\n)\n","import type {MutableRefObject} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface ReferenceItemRef {\n menuRef: MutableRefObject<HTMLDivElement | null>\n menuButtonRef: MutableRefObject<HTMLButtonElement | null>\n containerRef: MutableRefObject<HTMLDivElement | null>\n}\n\n/**\n * This is a way to store ref of the menu as well as the container of the ReferenceItem\n * so it can be used down the tree for clickOutside handling\n * @internal\n */\nexport const ReferenceItemRefContext = createContext<ReferenceItemRef | null>(\n 'sanity/_singletons/context/reference-item-ref',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesMetadataContextValue} from '../../core/releases/contexts/ReleasesMetadataProvider'\n\n/**\n * @internal\n * @hidden\n */\nexport const ReleasesMetadataContext = createContext<ReleasesMetadataContextValue | null>(\n 'sanity/_singletons/context/releases-metadata',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TableContextValue} from '../../core/releases/tool/components/Table/TableProvider'\n\n/**\n * @internal\n */\nexport const TableContext = createContext<TableContextValue | null>(\n 'sanity/_singletons/context/releases-table',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesUpsellContextValue} from '../../core/releases/contexts/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const ReleasesUpsellContext = createContext<ReleasesUpsellContextValue | null>(\n 'sanity/_singletons/context/releases-upsell',\n null,\n)\n","import type {ReactNode} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {Panes} from '../../structure/structureResolvers/useResolvedPanes'\n\n/**\n * @internal\n */\nexport const ResolvedPanesContext = createContext<Panes | null>(\n 'sanity/_singletons/context/resolved-panes',\n null,\n)\n\n/**\n * @internal\n */\nexport function ResolvedPanesProvider({children, value}: {children: ReactNode; value: Panes}) {\n return <ResolvedPanesContext.Provider value={value}>{children}</ResolvedPanesContext.Provider>\n}\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ResourceCache} from '../../core/store/_legacy/ResourceCacheProvider'\n\n/**\n * @internal\n */\nexport const ResourceCacheContext = createContext<ResourceCache | null>(\n 'sanity/_singletons/context/resource-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ConnectorContextValue} from '../../core/changeIndicators/ConnectorContext'\n\n/** @internal */\nexport const ReviewChangesContext = createContext<ConnectorContextValue>(\n 'sanity/_singletons/context/review-changes',\n {\n onOpenReviewChanges: () => undefined,\n onSetFocus: () => undefined,\n isReviewChangesOpen: false,\n isInteractive: true,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterContextValue} from '../../router/types'\n\n/**\n * @internal\n */\nexport const RouterContext = createContext<RouterContextValue | null>(\n 'sanity/_singletons/context/router',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterHistory} from '../../core/studio/router'\n\n/**\n * Internal use only. Userland should leverage the public `useRouter` APIs.\n * @internal\n */\nexport const RouterHistoryContext = createContext<RouterHistory | null>(\n 'sanity/_singletons/context/router-history',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SanityCreateConfigContextValue} from '../../core'\n\n/**\n * @internal\n */\nexport const SanityCreateConfigContext = createContext<SanityCreateConfigContextValue>(\n 'sanity/_singletons/context/start-in-create-enabled',\n {\n startInCreateEnabled: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {HasUsedScheduledPublishing} from '../../core/scheduledPublishing/tool/contexts/useHasUsedScheduledPublishing'\n\n/**\n * @internal\n */\nexport type ScheduledPublishingEnabledContextValue =\n | {\n enabled: false\n mode: null\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n | {\n enabled: true\n mode: 'default' | 'upsell'\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n\nconst DEFAULT: ScheduledPublishingEnabledContextValue = {\n enabled: false,\n mode: null,\n hasUsedScheduledPublishing: {\n used: false,\n loading: false,\n },\n}\n\n/**\n * @internal\n */\nexport const ScheduledPublishingEnabledContext =\n createContext<ScheduledPublishingEnabledContextValue>(\n 'sanity/_singletons/context/scheduled-publishing-enabled',\n DEFAULT,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface SchedulePublishUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelViewed: (source: UpsellDialogViewedInfo['source']) => void\n panelDismissed: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const SchedulePublishUpsellContext = createContext<SchedulePublishUpsellContextValue>(\n 'sanity/_singletons/context/schedule-publish-upsell',\n {\n upsellData: null,\n handleOpenDialog: () => null,\n handleClose: () => null,\n upsellDialogOpen: false,\n telemetryLogs: {\n dialogSecondaryClicked: () => null,\n dialogPrimaryClicked: () => null,\n panelViewed: () => null,\n panelDismissed: () => null,\n panelPrimaryClicked: () => null,\n panelSecondaryClicked: () => null,\n },\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n// oxlint-disable-next-line no-restricted-imports\nimport type {SchedulesContextValue} from '../../core/scheduled-publishing/contexts/Schedules'\n\n/**\n * @deprecated we will be dropping support for scheduled publishing on a future major version\n * @internal\n */\nexport const SchedulesContext = createContext<SchedulesContextValue | undefined>(\n 'sanity/_singletons/context/schedules',\n undefined,\n)\n","import type {PubSub} from 'nano-pubsub'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ScrollContext = createContext<null | PubSub<Event>>(\n 'sanity/_singletons/context/scroll',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SearchContextValue} from '../../core/studio/components/navbar/search/contexts/search/SearchContext'\n\n/**\n * @internal\n */\nexport const SearchContext = createContext<SearchContextValue | undefined>(\n 'sanity/_singletons/context/search',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface SingleDocReleaseContextValue {\n /**\n * Sets the scheduled draft perspective into the local router params.\n */\n onSetScheduledDraftPerspective: (releaseId: string) => void\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseContext = createContext<SingleDocReleaseContextValue | null>(\n 'sanity/_singletons/context/single-doc-release-context',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport type SingleDocReleaseEnabledContextValue =\n | {enabled: false; mode: null}\n | {enabled: true; mode: 'default' | 'upsell'}\n\nconst DEFAULT: SingleDocReleaseEnabledContextValue = {\n enabled: false,\n mode: null,\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseEnabledContext = createContext<SingleDocReleaseEnabledContextValue>(\n 'sanity/_singletons/context/single-doc-release-enabled',\n DEFAULT,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface SingleDocReleaseUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n handleClose: () => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelViewed: (source: UpsellDialogViewedInfo['source']) => void\n panelDismissed: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const SingleDocReleaseUpsellContext = createContext<SingleDocReleaseUpsellContextValue>(\n 'sanity/_singletons/context/single-doc-release-upsell',\n {\n upsellData: null,\n handleOpenDialog: () => null,\n handleClose: () => null,\n upsellDialogOpen: false,\n telemetryLogs: {\n dialogSecondaryClicked: () => null,\n dialogPrimaryClicked: () => null,\n panelViewed: () => null,\n panelDismissed: () => null,\n panelPrimaryClicked: () => null,\n panelSecondaryClicked: () => null,\n },\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const SortableItemIdContext = createContext<string | null>(\n 'sanity/_singletons/context/sortable-item-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Source} from '../../core/config/types'\n\n/**\n * @internal\n */\nexport const SourceContext = createContext<Source | null>('sanity/_singletons/context/source', null)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StructureToolContextValue} from '../../structure/types'\n\n/**\n * @internal\n */\nexport const StructureToolContext = createContext<StructureToolContextValue | null>(\n 'sanity/_singletons/context/structure-tool',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioAnnouncementsContextValue} from '../../core/studio/studioAnnouncements/types'\n\n/**\n * @internal\n */\nexport const StudioAnnouncementContext = createContext<StudioAnnouncementsContextValue | undefined>(\n 'sanity/_singletons/context/studioAnnouncements',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksContextValue} from '../../core/tasks/context/tasks/types'\n\n/**\n * @internal\n */\nexport const TasksContext = createContext<TasksContextValue | null>(\n 'sanity/_singletons/context/tasks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksEnabledContextValue} from '../../core/tasks/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the tasks feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// Tasks are included by default in all new Studio configurations. Therefore,\n// in the absence of a specific provider (TasksEnabledProvider), we assume that\n// the feature is disabled.\n/**\n * @internal\n */\nexport const TasksEnabledContext = createContext<TasksEnabledContextValue>(\n 'sanity/_singletons/context/tasks-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksNavigationContextValue} from '../../core/tasks/context/navigation/types'\n\n/**\n * @internal\n */\nexport const TasksNavigationContext = createContext<TasksNavigationContextValue | null>(\n 'sanity/_singletons/context/tasks-navigation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksUpsellContextValue} from '../../core/tasks/context/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const TasksUpsellContext = createContext<TasksUpsellContextValue | null>(\n 'sanity/_singletons/context/tasks-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserApplicationCache} from '../../core/store/userApplications/userApplicationCache'\n\n/**\n * @internal\n */\nexport const UserApplicationCacheContext = createContext<UserApplicationCache | null>(\n 'sanity/_singletons/context/user-application-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserColorManager} from '../../core/user-color/types'\n\n/**\n * @internal\n */\nexport const UserColorManagerContext = createContext<UserColorManager | null>(\n 'sanity/_singletons/context/user-color-manager',\n null,\n)\n","import type {ValidationMarker} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ValidationContext = createContext<ValidationMarker[]>(\n 'sanity/_singletons/context/validation',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {VirtualizerScrollInstance} from '../../core/form/inputs/arrays/ArrayOfObjectsInput/List/useVirtualizerScrollInstance'\n\n/**\n * This is used to store the reference to the scroll element for virtualizer\n * @internal\n */\nexport const VirtualizerScrollInstanceContext = createContext<VirtualizerScrollInstance | null>(\n 'sanity/_singletons/context/virtualizer-scroll-instance',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Workspace} from '../../core/config/types'\n\n/**\n * @internal\n */\nexport const WorkspaceContext = createContext<Workspace | null>(\n 'sanity/_singletons/context/workspace',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {WorkspacesContextValue} from '../../core/studio/workspaces/WorkspacesContext'\n\n/** @internal */\nexport const WorkspacesContext = createContext<WorkspacesContextValue | null>(\n 'sanity/_singletons/context/workspaces',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ZIndexContextValue} from '../../core/components/zOffsets/types'\n\n/**\n * @internal\n */\nexport const zIndexContextDefaults: ZIndexContextValue = {\n navbar: 200,\n navbarPopover: 500000,\n navbarDialog: 500001,\n // pane\n pane: 100,\n paneHeader: [110, 15000],\n paneFooter: [120, 20000],\n paneResizer: [130, 25000],\n paneDialog: [140, 5000],\n //\n popover: 200,\n modal: 200,\n movingItem: 10000,\n drawershade: 1000000,\n drawer: 1000001,\n fullscreen: 1200000,\n toast: [100, 11000],\n // NOT IN USE\n portal: 200,\n dropdown: 200,\n navbarFixed: 1010,\n fullscreenEdit: 1050,\n popoverBackground: 1060,\n tooltip: 200,\n modalBackground: 2000,\n spinner: 3000,\n}\n\n/**\n * TODO: Rename to `ZOffsetsContext`\n *\n * @internal\n */\nexport const ZIndexContext = createContext<ZIndexContextValue>(\n 'sanity/_singletons/context/z-index',\n zIndexContextDefaults,\n)\n"],"names":["ActiveWorkspaceMatcherContext","createContext","AddonDatasetContext","AppIdCacheContext","AssetLimitUpsellContext","CalendarContext","undefined","ChangeIndicatorTrackerContextStore","ChangeIndicatorTrackerContextGetSnapshot","ColorSchemeSetValueContext","ColorSchemeValueContext","CommentInputContext","CommentsAuthoringPathContext","CommentsContext","CommentsEnabledContext","enabled","mode","CommentsIntentContext","CommentsOnboardingContext","CommentsSelectedPathContext","CommentsUpsellContext","CopyPasteContext","DialogStackContext","DiffContext","path","DocumentActionPropsContext","DocumentActionsStateContext","DocumentChangeContext","DocumentFieldActionsContext","DocumentIdContext","DocumentLimitUpsellContext","DocumentPaneContext","DocumentSheetListContext","EnhancedObjectDialogContext","legacyEditing","EventsContext","FieldActionsContext","actions","focused","hovered","__internal_slot","__internal_comments","onMouseEnter","onMouseLeave","FormBuilderContext","FormCallbacksContext","FormFieldPresenceContext","FormValueContext","FreeTrialContext","FullscreenPTEContext","getFullscreenPath","setFullscreenPath","hasAnyFullscreen","allFullscreenPaths","GetFormValueContext","HoveredFieldContext","store","subscribe","getSnapshot","IsLastPaneContext","LiveUserApplicationContext","userApplication","LocaleContext","MediaLibraryIdsContext","MentionUserContext","NavbarContext","onSearchFullscreenOpenChange","onSearchOpenChange","searchFullscreenOpen","searchFullscreenPortalEl","searchOpen","PackageVersionInfoContext","isAutoUpdating","checkForUpdates","currentVersion","Error","versionCheckStatus","lastCheckedAt","checking","PaneContext","PaneLayoutContext","missingContext","PaneRouterContext","index","groupIndex","siblingIndex","payload","params","hasGroupSiblings","groupLength","routerPanesState","BackLink","ChildLink","ReferenceChildLink","handleEditReference","ParameterizedLink","replaceCurrent","closeCurrentAndAfter","closeCurrent","duplicateCurrent","setView","setParams","setPayload","navigateIntent","createPathWithParams","PerspectiveContext","PortableTextMarkersContext","PortableTextMemberItemElementRefsContext","BehaviorSubject","PortableTextMemberItemsContext","PresenceContext","PresenceTrackerContextStore","PresenceTrackerContextGetSnapshot","PresentationContext","PresentationDisplayedDocumentContext","PresentationDocumentContext","PresentationNavigateContext","PresentationPanelsContext","PresentationParamsContext","PresentationSharedStateContext","PreviewCardContext","selected","ReferenceInputOptionsContext","ReferenceItemRefContext","ReleasesMetadataContext","TableContext","ReleasesUpsellContext","ResolvedPanesContext","ResolvedPanesProvider","t0","$","_c","children","value","t1","ResourceCacheContext","ReviewChangesContext","onOpenReviewChanges","onSetFocus","isReviewChangesOpen","isInteractive","RouterContext","RouterHistoryContext","SanityCreateConfigContext","startInCreateEnabled","DEFAULT","hasUsedScheduledPublishing","used","loading","ScheduledPublishingEnabledContext","SchedulePublishUpsellContext","upsellData","handleOpenDialog","handleClose","upsellDialogOpen","telemetryLogs","dialogSecondaryClicked","dialogPrimaryClicked","panelViewed","panelDismissed","panelPrimaryClicked","panelSecondaryClicked","SchedulesContext","ScrollContext","SearchContext","SingleDocReleaseContext","SingleDocReleaseEnabledContext","SingleDocReleaseUpsellContext","SortableItemIdContext","SourceContext","StructureToolContext","StudioAnnouncementContext","TasksContext","TasksEnabledContext","TasksNavigationContext","TasksUpsellContext","UserApplicationCacheContext","UserColorManagerContext","ValidationContext","VirtualizerScrollInstanceContext","WorkspaceContext","WorkspacesContext","zIndexContextDefaults","navbar","navbarPopover","navbarDialog","pane","paneHeader","paneFooter","paneResizer","paneDialog","popover","modal","movingItem","drawershade","drawer","fullscreen","toast","portal","dropdown","navbarFixed","fullscreenEdit","popoverBackground","tooltip","modalBackground","spinner","ZIndexContext"],"mappings":";;;;AAKO,MAAMA,gCACXC,cACE,uDACA,IACF,GCDWC,sBAAsBD,cACjC,4CACA,IACF,GCJaE,oBAAoBF,cAC/B,2CACA,IACF,GCWaG,0BAA0BH,cACrC,iDACA,IACF,GCjBaI,kBAAkBJ,cAC7B,uCACAK,MACF,GCFaC,qCACXN,cACE,6DACA,IACF,GAGWO,2CACXP,cACE,oEACA,IACF,GCVWQ,6BAA6BR,cAExC,qDAAqD,IAAI,GCH9CS,0BAA0BT,cACrC,iDACA,IACF,GCJaU,sBAAsBV,cACjC,4CACA,IACF,GCFaW,+BAA+BX,cAC1C,sDACA,IACF,GCJaY,kBAAkBZ,cAC7B,uCACA,IACF,GCGaa,yBAAyBb,cACpC,+CACA;AAAA,EACEc,SAAS;AAAA,EACTC,MAAM;AACR,CACF,GCZaC,wBAAwBhB,cACnC,8CACAK,MACF,GCHaY,4BAA4BjB,cACvC,kDACA,IACF,GCHakB,8BAA8BlB,cACzC,qDACA,IACF,GCHamB,wBAAwBnB,cACnC,8CACA,IACF,GCFaoB,mBAAmBpB,cAC9B,yCACA,IACF,GCyBaqB,qBAAqBrB,cAChC,2CACA,IACF,GCnCasB,cAActB,cAExB,mCAAmC;AAAA,EACpCuB,MAAM,CAAA;AACR,CAAC,GCDYC,6BAA6BxB,cACxC,oDACAK,MACF,GCHaoB,8BAA8BzB,cACzC,4CACA,IACF,GCLa0B,wBAAwB1B,cACnC,8CACA,IACF,GCMa2B,8BAA8B3B,cACzC,qDACA,IACF,GCLa4B,oBAAoB5B,cAC/B,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AAY;AAAA,EACZC,OAAO,CAAC,KAAK,IAAK;AAAA;AAAA,EAElBC,QAAQ;AAAA,EACRC,UAAU;AAAA,EACVC,aAAa;AAAA,EACbC,gBAAgB;AAAA,EAChBC,mBAAmB;AAAA,EACnBC,SAAS;AAAA,EACTC,iBAAiB;AAAA,EACjBC,SAAS;AACX,GAOaC,gBAAgB7M,cAC3B,sCACAqL,qBACF;"}
package/lib/desk.d.ts CHANGED
@@ -8752,16 +8752,6 @@ declare interface ObjectInputProps<
8752
8752
  * @hidden
8753
8753
  * @beta */
8754
8754
  elementProps: ComplexElementProps
8755
- /**
8756
- * @deprecated – DO NOT USE
8757
- *
8758
- * The node for the array editing modal.
8759
- * This node renders the array editing modal as a child of the root input.
8760
- * It is necessary for the array editing dialog to be a child of the root input
8761
- * because the root input may be wrapped in a React context using the Components API,
8762
- * which is utilized by inputs in the form.
8763
- */
8764
- __internal_enhancedbjectDialog?: ReactNode
8765
8755
  }
8766
8756
 
8767
8757
  /**
@@ -8844,16 +8834,6 @@ declare interface ObjectInputProps_2<
8844
8834
  * @hidden
8845
8835
  * @beta */
8846
8836
  elementProps: ComplexElementProps_2
8847
- /**
8848
- * @deprecated – DO NOT USE
8849
- *
8850
- * The node for the array editing modal.
8851
- * This node renders the array editing modal as a child of the root input.
8852
- * It is necessary for the array editing dialog to be a child of the root input
8853
- * because the root input may be wrapped in a React context using the Components API,
8854
- * which is utilized by inputs in the form.
8855
- */
8856
- __internal_enhancedbjectDialog?: ReactNode
8857
8837
  }
8858
8838
 
8859
8839
  /** @public */
package/lib/index.d.ts CHANGED
@@ -38,6 +38,7 @@ import {CurrentUser} from '@sanity/types'
38
38
  import {DefinedTelemetryLog} from '@sanity/telemetry'
39
39
  import {DeprecatedProperty} from '@sanity/types'
40
40
  import {DialogProps} from '@sanity/ui'
41
+ import {DialogStackEntry} from 'sanity/_singletons'
41
42
  import {Diff as Diff_2} from '@sanity/diff'
42
43
  import {Dispatch} from 'react'
43
44
  import {DocumentHandle} from '@sanity/sdk'
@@ -4120,6 +4121,13 @@ declare interface DialogProps_2 extends SharedProps {
4120
4121
  onClose?: () => void
4121
4122
  }
4122
4123
 
4124
+ declare interface DialogProps_3 extends SharedProps_2 {
4125
+ type: 'dialog'
4126
+ id?: string
4127
+ autofocus?: boolean
4128
+ onClose?: () => void
4129
+ }
4130
+
4123
4131
  /** @internal */
4124
4132
  export declare type Diff<A = unknown, O extends object = Record<string, any>> =
4125
4133
  | ArrayDiff<A>
@@ -5596,6 +5604,18 @@ export declare const EMPTY_OBJECT: Record<string, unknown>
5596
5604
  */
5597
5605
  export declare function encodePath(formBuilderPath: Path): string
5598
5606
 
5607
+ /**
5608
+ * @beta
5609
+ * Creates a dialog or a popover for editing content.
5610
+ * Handles presence and virtual scrolling.
5611
+ *
5612
+ * When multiple dialogs are open, only the top-most dialog is visible.
5613
+ * Non-top dialogs are hidden via CSS while preserving their state.
5614
+ */
5615
+ export declare function EnhancedObjectDialog(
5616
+ props: PopoverProps_4 | DialogProps_3,
5617
+ ): React.JSX.Element
5618
+
5599
5619
  /**
5600
5620
  * @internal
5601
5621
  */
@@ -5604,10 +5624,6 @@ declare interface EnhancedObjectDialogContextValue {
5604
5624
  * A boolean indicating whether tree editing is enabled
5605
5625
  */
5606
5626
  enabled: boolean
5607
- /**
5608
- * A boolean indicating whether the EnhancedObjectDialog component is available in this tree to handle paths
5609
- */
5610
- isDialogAvailable: boolean
5611
5627
  /**
5612
5628
  * A boolean indicating whether legacy editing is enabled - meaning that it will use the old modal based editing experience
5613
5629
  */
@@ -9403,16 +9419,6 @@ export declare interface ObjectInputProps<
9403
9419
  * @hidden
9404
9420
  * @beta */
9405
9421
  elementProps: ComplexElementProps
9406
- /**
9407
- * @deprecated – DO NOT USE
9408
- *
9409
- * The node for the array editing modal.
9410
- * This node renders the array editing modal as a child of the root input.
9411
- * It is necessary for the array editing dialog to be a child of the root input
9412
- * because the root input may be wrapped in a React context using the Components API,
9413
- * which is utilized by inputs in the form.
9414
- */
9415
- __internal_enhancedbjectDialog?: ReactNode
9416
9422
  }
9417
9423
 
9418
9424
  /** @public */
@@ -10134,6 +10140,13 @@ declare interface PopoverProps_3 extends SharedProps {
10134
10140
  onClose: () => void
10135
10141
  }
10136
10142
 
10143
+ declare interface PopoverProps_4 extends SharedProps_2 {
10144
+ type: 'popover'
10145
+ id?: string
10146
+ legacy_referenceElement: HTMLElement | null
10147
+ onClose: () => void
10148
+ }
10149
+
10137
10150
  /**
10138
10151
  * Input component for editing block content
10139
10152
  * ({@link https://github.com/portabletext/portabletext | Portable Text}) in the Sanity Studio.
@@ -12421,6 +12434,12 @@ declare interface SharedProps {
12421
12434
  width: ResponsiveWidthProps['width']
12422
12435
  }
12423
12436
 
12437
+ declare interface SharedProps_2 {
12438
+ children?: ReactNode
12439
+ header: string
12440
+ width: ResponsiveWidthProps['width']
12441
+ }
12442
+
12424
12443
  /** @internal */
12425
12444
  export declare interface SharedResizeObserver {
12426
12445
  observe: (
@@ -16548,6 +16567,24 @@ export declare type UseDateTimeFormatOptions = Omit<
16548
16567
  'fractionalSecondDigits'
16549
16568
  >
16550
16569
 
16570
+ /**
16571
+ * Hook to register a dialog in the stack and check if it's the top-most one.
16572
+ *
16573
+ * @beta
16574
+ */
16575
+ export declare function useDialogStack({path}?: {path?: Path}): {
16576
+ /** Unique ID for this dialog instance */
16577
+ dialogId: string
16578
+ /** The current top dialog entry */
16579
+ topEntry: DialogStackEntry | null
16580
+ /** The full stack of dialog entries (each has id and path) */
16581
+ stack: DialogStackEntry[]
16582
+ /** Check if this dialog is on top */
16583
+ isTop: boolean
16584
+ /** Close dialogs */
16585
+ close: () => void
16586
+ }
16587
+
16551
16588
  /**
16552
16589
  * A hook for doing side effects as a response to a change in a hook value between renders
16553
16590
  *