sanity 5.0.0-next-major.14 → 5.0.0-next-major.20251210134624
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/sanity +2 -1
- package/lib/_chunks-es/LiveQueries.js +1 -1
- package/lib/_chunks-es/LiveQueries.js.map +1 -1
- package/lib/_chunks-es/MenuGroup.js +3 -3
- package/lib/_chunks-es/MenuGroup.js.map +1 -1
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js +2 -2
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js.map +1 -1
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +54 -54
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
- package/lib/_chunks-es/QRCodeSVG.js +1 -1
- package/lib/_chunks-es/QRCodeSVG.js.map +1 -1
- package/lib/_chunks-es/StructureToolProvider.js +1 -1
- package/lib/_chunks-es/StructureToolProvider.js.map +1 -1
- package/lib/_chunks-es/VideoPlayer.js +1 -1
- package/lib/_chunks-es/VideoPlayer.js.map +1 -1
- package/lib/_chunks-es/ViteDevServerStopped.js +6 -6
- package/lib/_chunks-es/ViteDevServerStopped.js.map +1 -1
- package/lib/_chunks-es/_internal.js +1 -1
- package/lib/_chunks-es/_internal.js.map +1 -1
- package/lib/_chunks-es/deployApiAction.js +1 -1
- package/lib/_chunks-es/deployApiAction.js.map +1 -1
- package/lib/_chunks-es/execScript.js +2 -1
- package/lib/_chunks-es/execScript.js.map +1 -1
- package/lib/_chunks-es/exportAssetsAction.js +1 -1
- package/lib/_chunks-es/exportAssetsAction.js.map +1 -1
- package/lib/_chunks-es/extractAction.js +2 -1
- package/lib/_chunks-es/extractAction.js.map +1 -1
- package/lib/_chunks-es/extractManifestAction.js +2 -1
- package/lib/_chunks-es/extractManifestAction.js.map +1 -1
- package/lib/_chunks-es/generate-help-url.esm.js +1 -1
- package/lib/_chunks-es/generate-help-url.esm.js.map +1 -1
- package/lib/_chunks-es/getGraphQLAPIs.js +2 -1
- package/lib/_chunks-es/getGraphQLAPIs.js.map +1 -1
- package/lib/_chunks-es/helpers.js +2 -1
- package/lib/_chunks-es/helpers.js.map +1 -1
- package/lib/_chunks-es/index2.js +1 -1
- package/lib/_chunks-es/index2.js.map +1 -1
- package/lib/_chunks-es/index3.js +8 -8
- package/lib/_chunks-es/index3.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +140 -140
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/presentation.js +4 -4
- package/lib/_chunks-es/presentation.js.map +1 -1
- package/lib/_chunks-es/previewServer.js +2 -1
- package/lib/_chunks-es/previewServer.js.map +1 -1
- package/lib/_chunks-es/runtime.js +14 -13
- package/lib/_chunks-es/runtime.js.map +1 -1
- package/lib/_chunks-es/validateAction.js +2 -1
- package/lib/_chunks-es/validateAction.js.map +1 -1
- package/lib/_chunks-es/validateAction2.js +2 -1
- package/lib/_chunks-es/validateAction2.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_internal/cli/threads/validateDocuments.cjs +1 -1
- package/lib/_internal/cli/threads/validateDocuments.cjs.map +1 -1
- package/lib/_singletons.d.ts +82 -2
- package/lib/_singletons.js +6 -2
- package/lib/_singletons.js.map +1 -1
- package/lib/desk.d.ts +28 -2
- package/lib/index.d.ts +30 -1
- package/lib/index.js +3739 -3306
- package/lib/index.js.map +1 -1
- package/lib/presentation.d.ts +14 -1
- package/lib/structure.d.ts +14 -1
- package/package.json +34 -34
package/lib/_singletons.js.map
CHANGED
|
@@ -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/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/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","// 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 {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","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","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,MAA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CAAqC,IAAI,GCAtFuK,uBAAuBvK,cAClC,6CACA,IACF,GCHawK,4BAA4BxK,cACvC,kDACAK,MACF,GCHaoK,eAAezK,cAC1B,oCACA,IACF,GCGa0K,sBAAsB1K,cACjC,4CACA;AAAA,EACEc,SAAS;AAAA,EACTC,MAAM;AACR,CACF,GCZa4J,yBAAyB3K,cACpC,+CACA,IACF,GCFa4K,qBAAqB5K,cAChC,2CACA,IACF,GCJa6K,0BAA0B7K,cACrC,iDACA,IACF,GCJa8K,oBAAoB9K,cAC/B,yCACA,CAAA,CACF,GCDa+K,mCAAmC/K,cAC9C,0DACA,IACF,GCJagL,mBAAmBhL,cAC9B,wCACA,IACF,GCLaiL,oBAAoBjL,cAC/B,yCACA,IACF,GCDakL,wBAA4C;AAAA,EACvDC,QAAQ;AAAA,EACRC,eAAe;AAAA,EACfC,cAAc;AAAA;AAAA,EAEdC,MAAM;AAAA,EACNC,YAAY,CAAC,KAAK,IAAK;AAAA,EACvBC,YAAY,CAAC,KAAK,GAAK;AAAA,EACvBC,aAAa,CAAC,KAAK,IAAK;AAAA,EACxBC,YAAY,CAAC,KAAK,GAAI;AAAA;AAAA,EAEtBC,SAAS;AAAA,EACTC,OAAO;AAAA,EACPC,YAAY;AAAA,EACZC,aAAa;AAAA,EACbC,QAAQ;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,gBAAgB1M,cAC3B,sCACAkL,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/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,mBAAmBp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AAA,EAEdC,MAAM;AAAA,EACNC,YAAY,CAAC,KAAK,IAAK;AAAA,EACvBC,YAAY,CAAC,KAAK,GAAK;AAAA,EACvBC,aAAa,CAAC,KAAK,IAAK;AAAA,EACxBC,YAAY,CAAC,KAAK,GAAI;AAAA;AAAA,EAEtBC,SAAS;AAAA,EACTC,OAAO;AAAA,EACPC,YAAY;AAAA,EACZC,aAAa;AAAA,EACbC,QAAQ;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;"}
|
package/lib/desk.d.ts
CHANGED
|
@@ -418,7 +418,11 @@ declare interface ArrayOfObjectsInputProps<
|
|
|
418
418
|
/**
|
|
419
419
|
* @hidden
|
|
420
420
|
* @beta */
|
|
421
|
-
onUpload
|
|
421
|
+
onUpload?: (event: UploadEvent) => void
|
|
422
|
+
/**
|
|
423
|
+
* @hidden
|
|
424
|
+
* @beta */
|
|
425
|
+
onSelectFile?: (props: InputOnSelectFileFunctionProps) => void
|
|
422
426
|
/**
|
|
423
427
|
* @hidden
|
|
424
428
|
* @beta */
|
|
@@ -530,7 +534,11 @@ declare interface ArrayOfObjectsInputProps_2<
|
|
|
530
534
|
/**
|
|
531
535
|
* @hidden
|
|
532
536
|
* @beta */
|
|
533
|
-
onUpload
|
|
537
|
+
onUpload?: (event: UploadEvent_2) => void
|
|
538
|
+
/**
|
|
539
|
+
* @hidden
|
|
540
|
+
* @beta */
|
|
541
|
+
onSelectFile?: (props: InputOnSelectFileFunctionProps_2) => void
|
|
534
542
|
/**
|
|
535
543
|
* @hidden
|
|
536
544
|
* @beta */
|
|
@@ -6755,6 +6763,24 @@ declare class InitialValueTemplateItemBuilder_2 implements Serializable<InitialV
|
|
|
6755
6763
|
clone(withSpec?: Partial<InitialValueTemplateItem>): InitialValueTemplateItemBuilder_2
|
|
6756
6764
|
}
|
|
6757
6765
|
|
|
6766
|
+
/**
|
|
6767
|
+
* @hidden
|
|
6768
|
+
* @beta */
|
|
6769
|
+
declare interface InputOnSelectFileFunctionProps {
|
|
6770
|
+
assetSource: AssetSource
|
|
6771
|
+
schemaType: SchemaType
|
|
6772
|
+
file: File
|
|
6773
|
+
}
|
|
6774
|
+
|
|
6775
|
+
/**
|
|
6776
|
+
* @hidden
|
|
6777
|
+
* @beta */
|
|
6778
|
+
declare interface InputOnSelectFileFunctionProps_2 {
|
|
6779
|
+
assetSource: AssetSource
|
|
6780
|
+
schemaType: SchemaType
|
|
6781
|
+
file: File
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6758
6784
|
/**
|
|
6759
6785
|
* @hidden
|
|
6760
6786
|
* @public */
|
package/lib/index.d.ts
CHANGED
|
@@ -609,7 +609,11 @@ export declare interface ArrayOfObjectsInputProps<
|
|
|
609
609
|
/**
|
|
610
610
|
* @hidden
|
|
611
611
|
* @beta */
|
|
612
|
-
onUpload
|
|
612
|
+
onUpload?: (event: UploadEvent) => void
|
|
613
|
+
/**
|
|
614
|
+
* @hidden
|
|
615
|
+
* @beta */
|
|
616
|
+
onSelectFile?: (props: InputOnSelectFileFunctionProps) => void
|
|
613
617
|
/**
|
|
614
618
|
* @hidden
|
|
615
619
|
* @beta */
|
|
@@ -940,6 +944,16 @@ export declare function asLoadable<T>(): OperatorFunction<T, LoadableState<T>>
|
|
|
940
944
|
*/
|
|
941
945
|
export declare type AssetSourceResolver = ComposableOption<AssetSource[], ConfigContext>
|
|
942
946
|
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @hidden
|
|
950
|
+
* @beta
|
|
951
|
+
*/
|
|
952
|
+
export declare type AssetSourcesResolver<S extends SchemaType = SchemaType> = (
|
|
953
|
+
type: S,
|
|
954
|
+
file?: FileLike,
|
|
955
|
+
) => AssetSource[]
|
|
956
|
+
|
|
943
957
|
/**
|
|
944
958
|
* @hidden
|
|
945
959
|
* @beta
|
|
@@ -7643,6 +7657,15 @@ export declare function InlinePreview(props: InlinePreviewProps): JSX.Element
|
|
|
7643
7657
|
* @beta */
|
|
7644
7658
|
export declare type InlinePreviewProps = Omit<PreviewProps<'inline'>, 'renderDefault'>
|
|
7645
7659
|
|
|
7660
|
+
/**
|
|
7661
|
+
* @hidden
|
|
7662
|
+
* @beta */
|
|
7663
|
+
export declare interface InputOnSelectFileFunctionProps {
|
|
7664
|
+
assetSource: AssetSource
|
|
7665
|
+
schemaType: SchemaType
|
|
7666
|
+
file: File
|
|
7667
|
+
}
|
|
7668
|
+
|
|
7646
7669
|
/**
|
|
7647
7670
|
* @hidden
|
|
7648
7671
|
* @public */
|
|
@@ -18351,6 +18374,12 @@ export declare interface WorkspaceSummary extends DefaultPluginsWorkspaceOptions
|
|
|
18351
18374
|
auth: AuthStore
|
|
18352
18375
|
projectId: string
|
|
18353
18376
|
dataset: string
|
|
18377
|
+
/**
|
|
18378
|
+
* API hostname used for requests. Used to determine if the workspace
|
|
18379
|
+
* points to staging or production environment.
|
|
18380
|
+
* @internal
|
|
18381
|
+
*/
|
|
18382
|
+
apiHost?: string
|
|
18354
18383
|
theme: StudioTheme
|
|
18355
18384
|
schema: Schema
|
|
18356
18385
|
i18n: LocaleSource
|