@depup/sanity 5.17.1-depup.0
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/LICENSE +21 -0
- package/README.md +57 -0
- package/bin/sanity +209 -0
- package/changes.json +114 -0
- package/lib/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +16164 -0
- package/lib/_chunks-dts/index.d.ts +780 -0
- package/lib/_chunks-dts/types.d.ts +2765 -0
- package/lib/_chunks-dts/types2.d.ts +656 -0
- package/lib/_chunks-dts/types3.d.ts +303 -0
- package/lib/_chunks-es/BroadcastDisplayedDocument.js +20 -0
- package/lib/_chunks-es/BroadcastDisplayedDocument.js.map +1 -0
- package/lib/_chunks-es/DisplayedDocumentBroadcaster.js +32 -0
- package/lib/_chunks-es/DisplayedDocumentBroadcaster.js.map +1 -0
- package/lib/_chunks-es/LiveQueries.js +339 -0
- package/lib/_chunks-es/LiveQueries.js.map +1 -0
- package/lib/_chunks-es/MenuGroup.js +106 -0
- package/lib/_chunks-es/MenuGroup.js.map +1 -0
- package/lib/_chunks-es/PostMessageDocuments.js +72 -0
- package/lib/_chunks-es/PostMessageDocuments.js.map +1 -0
- package/lib/_chunks-es/PostMessagePerspective.js +23 -0
- package/lib/_chunks-es/PostMessagePerspective.js.map +1 -0
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js +69 -0
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js.map +1 -0
- package/lib/_chunks-es/PostMessageRefreshMutations.js +74 -0
- package/lib/_chunks-es/PostMessageRefreshMutations.js.map +1 -0
- package/lib/_chunks-es/PostMessageSchema.js +502 -0
- package/lib/_chunks-es/PostMessageSchema.js.map +1 -0
- package/lib/_chunks-es/PostMessageTelemetry.js +21 -0
- package/lib/_chunks-es/PostMessageTelemetry.js.map +1 -0
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +3848 -0
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -0
- package/lib/_chunks-es/QRCodeSVG.js +692 -0
- package/lib/_chunks-es/QRCodeSVG.js.map +1 -0
- package/lib/_chunks-es/StructureToolProvider.js +2360 -0
- package/lib/_chunks-es/StructureToolProvider.js.map +1 -0
- package/lib/_chunks-es/VideoPlayer.js +22 -0
- package/lib/_chunks-es/VideoPlayer.js.map +1 -0
- package/lib/_chunks-es/ViteDevServerStopped.js +52 -0
- package/lib/_chunks-es/ViteDevServerStopped.js.map +1 -0
- package/lib/_chunks-es/index.js +285 -0
- package/lib/_chunks-es/index.js.map +1 -0
- package/lib/_chunks-es/index2.js +105 -0
- package/lib/_chunks-es/index2.js.map +1 -0
- package/lib/_chunks-es/index3.js +139 -0
- package/lib/_chunks-es/index3.js.map +1 -0
- package/lib/_chunks-es/index4.js +1020 -0
- package/lib/_chunks-es/index4.js.map +1 -0
- package/lib/_chunks-es/pane.js +5 -0
- package/lib/_chunks-es/pane.js.map +1 -0
- package/lib/_chunks-es/pane2.js +5 -0
- package/lib/_chunks-es/pane2.js.map +1 -0
- package/lib/_chunks-es/presentation.js +549 -0
- package/lib/_chunks-es/presentation.js.map +1 -0
- package/lib/_chunks-es/resources.js +303 -0
- package/lib/_chunks-es/resources.js.map +1 -0
- package/lib/_chunks-es/resources2.js +459 -0
- package/lib/_chunks-es/resources2.js.map +1 -0
- package/lib/_chunks-es/resources3.js +281 -0
- package/lib/_chunks-es/resources3.js.map +1 -0
- package/lib/_chunks-es/resources4.js +184 -0
- package/lib/_chunks-es/resources4.js.map +1 -0
- package/lib/_chunks-es/resources5.js +161 -0
- package/lib/_chunks-es/resources5.js.map +1 -0
- package/lib/_chunks-es/resources6.js +141 -0
- package/lib/_chunks-es/resources6.js.map +1 -0
- package/lib/_chunks-es/resources7.js +24 -0
- package/lib/_chunks-es/resources7.js.map +1 -0
- package/lib/_chunks-es/resources8.js +603 -0
- package/lib/_chunks-es/resources8.js.map +1 -0
- package/lib/_chunks-es/resources9.js +126 -0
- package/lib/_chunks-es/resources9.js.map +1 -0
- package/lib/_chunks-es/structureTool.js +13673 -0
- package/lib/_chunks-es/structureTool.js.map +1 -0
- package/lib/_chunks-es/version.js +17 -0
- package/lib/_chunks-es/version.js.map +1 -0
- package/lib/_createContext.d.ts +12 -0
- package/lib/_createContext.js +38 -0
- package/lib/_createContext.js.map +1 -0
- package/lib/_internal.d.ts +9 -0
- package/lib/_internal.js +12 -0
- package/lib/_internal.js.map +1 -0
- package/lib/_singletons.d.ts +951 -0
- package/lib/_singletons.js +284 -0
- package/lib/_singletons.js.map +1 -0
- package/lib/cli.d.ts +3 -0
- package/lib/cli.js +9 -0
- package/lib/cli.js.map +1 -0
- package/lib/desk.d.ts +910 -0
- package/lib/desk.js +71 -0
- package/lib/desk.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +92934 -0
- package/lib/index.js.map +1 -0
- package/lib/media-library.d.ts +85 -0
- package/lib/media-library.js +11 -0
- package/lib/media-library.js.map +1 -0
- package/lib/migrate.d.ts +1 -0
- package/lib/migrate.js +2 -0
- package/lib/migrate.js.map +1 -0
- package/lib/presentation.d.ts +28 -0
- package/lib/presentation.js +10 -0
- package/lib/presentation.js.map +1 -0
- package/lib/router.d.ts +560 -0
- package/lib/router.js +777 -0
- package/lib/router.js.map +1 -0
- package/lib/structure.d.ts +3 -0
- package/lib/structure.js +639 -0
- package/lib/structure.js.map +1 -0
- package/mock-browser-env-stub-loader.mjs +27 -0
- package/package.json +383 -0
- package/static/favicons/apple-touch-icon.png +0 -0
- package/static/favicons/favicon-192.png +0 -0
- package/static/favicons/favicon-512.png +0 -0
- package/static/favicons/favicon-96.png +0 -0
- package/static/favicons/favicon.ico +0 -0
- package/static/favicons/favicon.svg +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure.js","sources":["../src/structure/components/incomingReferencesDecoration/CrossDatasetIncomingReference/CrossDatasetIncomingReferenceType.tsx","../src/structure/components/incomingReferencesDecoration/CreateNewIncomingReference.tsx","../src/structure/components/incomingReferencesDecoration/LinkToExistingPreview.tsx","../src/structure/components/incomingReferencesDecoration/AddIncomingReference.tsx","../src/structure/components/incomingReferencesDecoration/IncomingReferencesType.tsx","../src/structure/components/incomingReferencesDecoration/types.ts","../src/structure/components/incomingReferencesDecoration/IncomingReferencesList.tsx","../src/structure/components/incomingReferencesDecoration/IncomingReferencesDecoration.tsx","../src/structure/components/incomingReferencesDecoration/defineIncomingReferenceDecoration.tsx","../src/structure/components/incomingReferencesDecoration/isIncomingReferenceCreation.ts"],"sourcesContent":["import {Box, Card, Flex, Stack, Text} from '@sanity/ui'\nimport {useCallback, useMemo} from 'react'\nimport {useObservable} from 'react-rx'\nimport {\n CommandList,\n type CommandListRenderItemCallback,\n DEFAULT_STUDIO_CLIENT_OPTIONS,\n LoadingBlock,\n useClient,\n useDocumentPreviewStore,\n useSchema,\n useTranslation,\n} from 'sanity'\n\nimport {structureLocaleNamespace} from '../../../i18n'\nimport {INITIAL_STATE} from '../getIncomingReferences'\nimport {INCOMING_REFERENCES_ITEM_HEIGHT, IncomingReferencesListContainer} from '../shared'\nimport {type CrossDatasetIncomingReference} from '../types'\nimport {CrossDatasetIncomingReferenceDocumentPreview} from './CrossDatasetIncomingReferenceDocumentPreview'\nimport {\n type CrossDatasetIncomingReferenceDocument,\n getCrossDatasetIncomingReferences,\n} from './getCrossDatasetIncomingReferences'\n\nexport function CrossDatasetIncomingReferenceType({\n type,\n referenced,\n shouldRenderTitle,\n}: {\n shouldRenderTitle: boolean\n referenced: {id: string; type: string}\n type: CrossDatasetIncomingReference\n}) {\n const client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS)\n const documentPreviewStore = useDocumentPreviewStore()\n\n const references$ = useMemo(\n () =>\n getCrossDatasetIncomingReferences({\n documentId: referenced.id,\n client,\n type: type,\n documentPreviewStore,\n }),\n [client, type, referenced.id, documentPreviewStore],\n )\n\n const {documents, loading} = useObservable(references$, INITIAL_STATE)\n\n const schema = useSchema()\n const {t} = useTranslation(structureLocaleNamespace)\n const schemaType = schema.get(type.type)\n\n const renderItem = useCallback<\n CommandListRenderItemCallback<CrossDatasetIncomingReferenceDocument>\n >(\n (document) => <CrossDatasetIncomingReferenceDocumentPreview document={document} type={type} />,\n [type],\n )\n\n if (!schemaType) return null\n if (loading) {\n return <LoadingBlock showText title={t('incoming-references-input.types-loading')} />\n }\n return (\n <Stack space={2} marginBottom={2}>\n {shouldRenderTitle && (\n <Box paddingY={2} paddingX={0}>\n <Text size={1} weight=\"medium\">\n {type.title || schemaType?.title}\n </Text>\n </Box>\n )}\n <Card radius={2} padding={1} border tone=\"default\">\n {documents && documents.length > 0 ? (\n <IncomingReferencesListContainer $itemCount={documents.length}>\n <CommandList\n activeItemDataAttr=\"data-hovered\"\n ariaLabel={t('incoming-references-input.list-label', {\n type: type.title || schemaType?.title,\n })}\n canReceiveFocus\n fixedHeight\n getItemKey={(index) => documents[index].id}\n itemHeight={INCOMING_REFERENCES_ITEM_HEIGHT}\n items={documents}\n onlyShowSelectionWhenActive\n overscan={5}\n renderItem={renderItem}\n wrapAround={false}\n />\n </IncomingReferencesListContainer>\n ) : (\n <>\n <Flex align=\"center\" justify=\"center\" padding={2}>\n <Text size={1} muted>\n {t('incoming-references-input.no-items')}\n </Text>\n </Flex>\n </>\n )}\n </Card>\n </Stack>\n )\n}\n","import {uuid} from '@sanity/uuid'\nimport {useCallback, useMemo} from 'react'\nimport {\n CreateReferenceButton,\n type CreateReferenceOption,\n getPublishedId,\n isNonNullable,\n useReferenceInputOptions,\n} from 'sanity'\nimport {useRouter} from 'sanity/router'\n\nimport {usePaneRouter} from '../paneRouter'\nimport {type IncomingReferenceCreationParams} from './isIncomingReferenceCreation'\nimport {type IncomingReferencesOptions} from './types'\n\nexport function CreateNewIncomingReference({\n type,\n referenceToId,\n referenceToType,\n onCreateNewReference,\n fieldName,\n creationAllowed,\n}: {\n type: string\n referenceToId: string\n referenceToType: string\n onCreateNewReference: (id: string) => void\n fieldName: string\n creationAllowed: IncomingReferencesOptions['creationAllowed']\n}) {\n const {initialValueTemplateItems} = useReferenceInputOptions()\n\n const {navigate} = useRouter()\n const {routerPanesState, groupIndex} = usePaneRouter()\n\n const handleCreate = useCallback(\n (option: CreateReferenceOption) => {\n const id = uuid()\n navigate({\n panes: [\n ...routerPanesState.slice(0, groupIndex + 1),\n [\n {\n id: getPublishedId(id),\n params: {type, template: option.template.id},\n payload: {\n reference: {\n _type: 'reference',\n _ref: referenceToId,\n _weak: true,\n _strengthenOnPublish: {type: referenceToType},\n },\n from: {fieldName, type: referenceToType},\n // eslint-disable-next-line camelcase\n __internal_isIncomingReferenceCreation: true,\n } satisfies IncomingReferenceCreationParams,\n },\n ],\n ],\n })\n onCreateNewReference(id)\n },\n [\n type,\n navigate,\n routerPanesState,\n groupIndex,\n referenceToId,\n referenceToType,\n onCreateNewReference,\n fieldName,\n ],\n )\n\n const createOptions = useMemo(() => {\n if (!creationAllowed) return []\n return (initialValueTemplateItems || [])\n\n .filter((i) => {\n const typeMatch = type === i.template?.schemaType\n if (Array.isArray(creationAllowed)) {\n // Check if the template id is in the creationAllowed array\n return typeMatch && creationAllowed.includes(i.template.id)\n }\n return typeMatch\n })\n .map((item): CreateReferenceOption | undefined =>\n item.template?.schemaType\n ? {\n id: item.id,\n title: item.title || `${item.template.schemaType} from template ${item.template?.id}`,\n i18n: item.i18n,\n type: item.template.schemaType,\n icon: item.icon,\n template: {\n id: item.template?.id,\n params: item.parameters,\n },\n\n permission: {granted: item.granted, reason: item.reason},\n }\n : undefined,\n )\n .filter(isNonNullable)\n }, [creationAllowed, initialValueTemplateItems, type])\n\n if (!creationAllowed) {\n return null\n }\n return (\n <CreateReferenceButton\n id={`create-new-incoming-reference-${type}`}\n createOptions={createOptions}\n onCreate={handleCreate}\n />\n )\n}\n","import {type SchemaType} from '@sanity/types'\nimport {type BadgeTone, Text} from '@sanity/ui'\nimport {useMemo} from 'react'\nimport {useObservable} from 'react-rx'\nimport {\n type DocumentPreviewStore,\n getPreviewStateObservable,\n getPreviewValueWithFallback,\n getReleaseIdFromReleaseDocumentId,\n getReleaseTone,\n getVersionFromId,\n isDraftId,\n isPublishedId,\n isVersionId,\n PreviewCard,\n ReleaseTitle,\n SanityDefaultPreview,\n useActiveReleases,\n useTranslation,\n VersionInlineBadge,\n} from 'sanity'\n\nexport interface LinkToExistingPreviewProps {\n documentPreviewStore: DocumentPreviewStore\n schemaType: SchemaType\n value: {_id: string; _type: string}\n onLinkToDocument: () => void\n}\n\nconst getPerspective = (id: string) => {\n if (isDraftId(id)) return ['drafts']\n if (isVersionId(id)) return [getVersionFromId(id) as string]\n if (isPublishedId(id)) return ['published']\n return ['raw']\n}\n\nexport function LinkToExistingPreview(props: LinkToExistingPreviewProps) {\n const {schemaType, value, onLinkToDocument} = props\n const {data: releases} = useActiveReleases()\n const {t} = useTranslation()\n\n const previewStateObservable = useMemo(() => {\n return getPreviewStateObservable(\n props.documentPreviewStore,\n schemaType,\n value._id,\n getPerspective(value._id),\n )\n }, [props.documentPreviewStore, schemaType, value._id])\n\n const {snapshot, original, isLoading} = useObservable(previewStateObservable, {\n snapshot: null,\n isLoading: true,\n original: null,\n })\n\n const badgeProps = useMemo(():\n | {kind: 'static'; tone: BadgeTone; text: string}\n | {kind: 'release'; tone: BadgeTone; releaseTitle: string | undefined; releaseFallback: string}\n | null => {\n const id = value._id\n if (isDraftId(id)) {\n return {\n kind: 'static',\n tone: getReleaseTone('drafts'),\n text: t('release.chip.draft'),\n }\n }\n if (isPublishedId(id)) {\n return {\n kind: 'static',\n tone: getReleaseTone('published'),\n text: t('release.chip.published'),\n }\n }\n if (isVersionId(id)) {\n const releaseId = getVersionFromId(id)\n const release = releases.find((r) => getReleaseIdFromReleaseDocumentId(r._id) === releaseId)\n if (release) {\n return {\n kind: 'release',\n tone: getReleaseTone(release),\n releaseTitle: release.metadata.title,\n releaseFallback: release._id,\n }\n }\n }\n return null\n }, [releases, value._id, t])\n\n /**\n * If the document is not found, for example because it will be unpublished.\n * Then we don't want to render the preview of it. Because it shouldn't be possible\n * to link to a document that will be unpublished in this same release\n */\n if (!snapshot && !isLoading) return null\n return (\n <PreviewCard __unstable_focusRing onClick={onLinkToDocument} as=\"button\" radius={2}>\n <SanityDefaultPreview\n {...getPreviewValueWithFallback({snapshot, original, fallback: value})}\n isPlaceholder={isLoading}\n icon={schemaType.icon}\n layout=\"default\"\n status={\n badgeProps ? (\n <Text size={0}>\n {badgeProps.kind === 'release' ? (\n <ReleaseTitle title={badgeProps.releaseTitle} fallback={badgeProps.releaseFallback}>\n {({displayTitle}) => (\n <VersionInlineBadge $tone={badgeProps.tone}>{displayTitle}</VersionInlineBadge>\n )}\n </ReleaseTitle>\n ) : (\n <VersionInlineBadge $tone={badgeProps.tone}>{badgeProps.text}</VersionInlineBadge>\n )}\n </Text>\n ) : undefined\n }\n />\n </PreviewCard>\n )\n}\n","import {DEFAULT_MAX_FIELD_DEPTH} from '@sanity/schema/_internal'\nimport {type SanityDocumentLike} from '@sanity/types'\nimport {Box, Grid, Stack, Text, useToast} from '@sanity/ui'\nimport {useCallback, useMemo, useState} from 'react'\nimport {useObservableEvent} from 'react-rx'\nimport {catchError, concat, filter, map, type Observable, of, scan, switchMap, tap} from 'rxjs'\nimport {\n createSearch,\n DEFAULT_STUDIO_CLIENT_OPTIONS,\n getPublishedId,\n isDraftId,\n isNonNullable,\n isPublishedId,\n isVersionId,\n ReferenceAutocomplete,\n type SanityClient,\n type SchemaType,\n type SearchStrategy,\n useClient,\n useDocumentPreviewStore,\n useSchema,\n useSource,\n useTranslation,\n} from 'sanity'\n\nimport {structureLocaleNamespace} from '../../i18n'\nimport {CreateNewIncomingReference} from './CreateNewIncomingReference'\nimport {LinkToExistingPreview} from './LinkToExistingPreview'\nimport {type IncomingReferencesOptions} from './types'\n\ninterface ReferenceSearchState {\n hits: ReferenceSearchHit[]\n isLoading: boolean\n searchString?: string\n}\n\ninterface ReferenceOption {\n value: string\n hit: ReferenceSearchHit\n}\ninterface ReferenceSearchHit {\n _id: string\n _type: string\n}\n\nconst INITIAL_SEARCH_STATE: ReferenceSearchState = {\n hits: [],\n isLoading: false,\n}\nconst NO_FILTER = () => true\n\nconst incomingReferenceSearch = (\n client: SanityClient,\n schemaType: SchemaType,\n searchStrategy: SearchStrategy | undefined,\n): ((textTerm: string) => Observable<ReferenceSearchHit[]>) => {\n const search = createSearch([schemaType], client, {\n maxDepth: DEFAULT_MAX_FIELD_DEPTH,\n strategy: searchStrategy,\n tag: 'search.incoming-reference',\n })\n return (textTerm: string) =>\n search(textTerm, {perspective: 'raw'}).pipe(\n map(({hits}) => hits.map(({hit}) => hit)),\n map((docs) => {\n // We want to collate drafts and published documents into a single entry, but keep the versions as a separate entry\n const byId: Map<string, SanityDocumentLike> = new Map()\n\n docs.forEach((doc) => {\n if (isVersionId(doc._id)) {\n // We want to preserve version documents as a different entry.\n byId.set(doc._id, doc)\n return\n }\n const publishedId = getPublishedId(doc._id)\n const entry = byId.get(publishedId)\n if (!entry) {\n byId.set(publishedId, doc)\n // If the document is a draft and the entry is published, we want to keep the draft.\n } else if (isDraftId(doc._id) && isPublishedId(entry._id)) {\n byId.set(publishedId, doc)\n }\n })\n return Array.from(byId.values())\n }),\n map((collated) =>\n collated.map((entry) => ({\n _id: entry._id,\n _type: entry._type,\n })),\n ),\n map((docs) => docs.slice(0, 100)),\n )\n}\n\n/**\n * This component is responsible for two things:\n * 1) Search for the document type to add to the incoming references.\n * 2) Render the CreateNewIncomingReference button. Allowing users to add a new incoming reference.\n */\nexport function AddIncomingReference({\n type,\n referenced,\n onCreateNewReference,\n onLinkDocument,\n fieldName,\n creationAllowed,\n}: {\n type: string\n referenced: {id: string; type: string}\n onCreateNewReference: (id: string) => void\n onLinkDocument: (documentId: string) => void\n fieldName: string\n creationAllowed: IncomingReferencesOptions['creationAllowed']\n}) {\n const {t} = useTranslation(structureLocaleNamespace)\n const {push} = useToast()\n const schema = useSchema()\n const schemaType = schema.get(type)\n const client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS)\n const source = useSource()\n const {strategy: searchStrategy} = source.search\n const documentPreviewStore = useDocumentPreviewStore()\n const handleSearch = useMemo(\n () => incomingReferenceSearch(client, schemaType!, searchStrategy),\n [client, schemaType, searchStrategy],\n )\n\n const [searchState, setSearchState] = useState(INITIAL_SEARCH_STATE)\n const handleQueryChange = useObservableEvent((inputValue$: Observable<string | null>) => {\n return inputValue$.pipe(\n filter(isNonNullable),\n switchMap((searchString) =>\n concat(\n of({isLoading: true, hits: []}),\n handleSearch(searchString).pipe(\n map((hits) => ({hits, searchString, isLoading: false})),\n catchError((error) => {\n push({\n title: 'Reference search failed',\n description: error.message,\n status: 'error',\n id: `reference-search-fail-${type}`,\n })\n console.error(error)\n return of({hits: [], isLoading: false})\n }),\n ),\n ),\n ),\n\n scan(\n (prevState, nextState: ReferenceSearchState) => ({...prevState, ...nextState}),\n INITIAL_SEARCH_STATE,\n ),\n\n tap(setSearchState),\n )\n })\n\n const options: ReferenceOption[] = useMemo(() => {\n return searchState.hits.map((hit) => ({\n value: hit._id,\n hit: hit,\n }))\n }, [searchState.hits])\n\n const handleAutocompleteOpenButtonClick = useCallback(() => {\n handleQueryChange('')\n }, [handleQueryChange])\n\n const renderOption = useCallback(\n (option: ReferenceOption) => {\n return (\n <LinkToExistingPreview\n onLinkToDocument={() => onLinkDocument(option.value)}\n documentPreviewStore={documentPreviewStore}\n schemaType={schemaType!}\n value={option.hit}\n />\n )\n },\n [documentPreviewStore, schemaType, onLinkDocument],\n )\n\n return (\n <Stack space={2} padding={2}>\n <Box paddingY={2}>\n <Text size={1} weight=\"medium\">\n {t('incoming-references-input.reference-from', {type})}\n </Text>\n </Box>\n <Grid gap={creationAllowed ? 2 : 0} style={{gridTemplateColumns: '1fr min-content'}}>\n <ReferenceAutocomplete\n id={`${type}-autocomplete`}\n radius={2}\n autoFocus\n options={options}\n placeholder={t('incoming-references-input.type-to-search')}\n onQueryChange={handleQueryChange}\n filterOption={NO_FILTER}\n path={[]}\n // @ts-expect-error - Types are not derived correctly\n renderOption={renderOption}\n openButton={{onClick: handleAutocompleteOpenButtonClick}}\n referenceElement={null}\n loading={searchState.isLoading}\n />\n <CreateNewIncomingReference\n type={type}\n referenceToId={referenced.id}\n referenceToType={referenced.type}\n creationAllowed={creationAllowed}\n onCreateNewReference={onCreateNewReference}\n fieldName={fieldName}\n />\n </Grid>\n </Stack>\n )\n}\n","import {AddIcon} from '@sanity/icons'\nimport {type SanityDocument} from '@sanity/types'\nimport {Box, Card, Flex, Stack, Text, useToast} from '@sanity/ui'\nimport {useCallback, useEffect, useMemo, useState} from 'react'\nimport {useObservable} from 'react-rx'\nimport {\n CommandList,\n type CommandListRenderItemCallback,\n DEFAULT_STUDIO_CLIENT_OPTIONS,\n getDraftId,\n getPublishedId,\n isPublishedId,\n LoadingBlock,\n SanityDefaultPreview,\n useClient,\n useDocumentPreviewStore,\n useSchema,\n useSource,\n useTranslation,\n} from 'sanity'\n\nimport {Button} from '../../../ui-components/button/Button'\nimport {structureLocaleNamespace} from '../../i18n'\nimport {useDocumentPane} from '../../panes/document/useDocumentPane'\nimport {AddIncomingReference} from './AddIncomingReference'\nimport {CreateNewIncomingReference} from './CreateNewIncomingReference'\nimport {getIncomingReferences, INITIAL_STATE} from './getIncomingReferences'\nimport {IncomingReferenceDocument} from './IncomingReferenceDocument'\nimport {INCOMING_REFERENCES_ITEM_HEIGHT, IncomingReferencesListContainer} from './shared'\nimport {type IncomingReferencesOptions, type IncomingReferenceType} from './types'\n\nexport function IncomingReferencesType({\n type,\n referenced,\n onLinkDocument,\n actions,\n shouldRenderTitle,\n fieldName,\n creationAllowed,\n filter,\n filterParams,\n}: {\n shouldRenderTitle: boolean\n referenced: {id: string; type: string}\n fieldName: string\n type: IncomingReferenceType\n onLinkDocument: IncomingReferencesOptions['onLinkDocument']\n actions: IncomingReferencesOptions['actions']\n creationAllowed: IncomingReferencesOptions['creationAllowed']\n filter: IncomingReferencesOptions['filter']\n filterParams: IncomingReferencesOptions['filterParams']\n}) {\n const documentPreviewStore = useDocumentPreviewStore()\n const {displayed} = useDocumentPane()\n const {getClient} = useSource()\n const displayedId = displayed?._id as string\n const references$ = useMemo(\n () =>\n getIncomingReferences({\n documentId: displayedId,\n documentPreviewStore,\n type: type.type,\n filter,\n filterParams,\n getClient,\n }),\n [documentPreviewStore, type, filter, filterParams, displayedId, getClient],\n )\n\n const {documents, loading} = useObservable(references$, INITIAL_STATE)\n\n const schema = useSchema()\n const {t} = useTranslation(structureLocaleNamespace)\n const schemaType = schema.get(type.type)\n const client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS)\n const [isAdding, setIsAdding] = useState(false)\n const [newReferenceId, setNewReferenceId] = useState<string | null>(null)\n const {editState} = useDocumentPane()\n const toast = useToast()\n const handleAdd = useCallback(() => {\n setIsAdding((p) => !p)\n }, [])\n\n const publishedExists = Boolean(editState?.published)\n\n const handleCreateNewReference = useCallback(async (documentId: string) => {\n setIsAdding(false)\n setNewReferenceId(documentId)\n }, [])\n\n const handleLinkDocument = useCallback(\n async (documentId: string) => {\n setIsAdding(false)\n setNewReferenceId(documentId)\n const liveEdit = Boolean(schemaType?.liveEdit)\n const document = await client.fetch('*[_id == $id][0]', {id: documentId})\n\n const linkedDocument = onLinkDocument?.(document, {\n _type: 'reference',\n _ref: getPublishedId(referenced.id),\n ...(publishedExists ? {} : {_weak: true, _strengthenOnPublish: {type: referenced.type}}),\n })\n if (!linkedDocument) {\n setNewReferenceId(null)\n toast.push({\n title: 'Not possible to link to document',\n description: 'The document you are trying to link cannot be linked to',\n status: 'error',\n })\n return\n }\n\n // if the document is published and the schema is not live edit, we want to update the draft id, not the published id\n // If it's a version, we can update the version document.\n if (isPublishedId(documentId) && !liveEdit) {\n linkedDocument._id = getDraftId(documentId)\n }\n await client.createOrReplace(linkedDocument)\n },\n [client, onLinkDocument, referenced, publishedExists, toast, schemaType?.liveEdit],\n )\n\n useEffect(() => {\n if (documents.length > 0 && newReferenceId) {\n // new reference is now part of the documents, we need to remove it from the newReferenceId state\n const isAdded = documents.find(\n (document) => getPublishedId(document._id) === getPublishedId(newReferenceId),\n )\n if (isAdded) setNewReferenceId(null)\n }\n }, [documents, newReferenceId])\n\n const renderItem = useCallback<CommandListRenderItemCallback<SanityDocument>>(\n (document) => (\n <IncomingReferenceDocument\n document={document}\n referenceToId={referenced.id}\n actions={actions}\n />\n ),\n [referenced.id, actions],\n )\n\n if (!schemaType) return null\n if (loading) {\n return <LoadingBlock showText title={t('incoming-references-input.types-loading')} />\n }\n return (\n <Stack space={2} marginBottom={2}>\n {shouldRenderTitle && (\n <Box paddingY={2} paddingX={0}>\n <Text size={1} weight=\"medium\">\n {type.title || schemaType?.title}\n </Text>\n </Box>\n )}\n <Card radius={2} padding={1} border tone=\"default\">\n {documents.length > 0 ? (\n <IncomingReferencesListContainer $itemCount={documents.length}>\n <CommandList\n activeItemDataAttr=\"data-hovered\"\n ariaLabel={t('incoming-references-input.list-label', {\n type: type.title || schemaType?.title,\n })}\n canReceiveFocus\n fixedHeight\n getItemKey={(index) => documents[index]._id}\n itemHeight={INCOMING_REFERENCES_ITEM_HEIGHT}\n items={documents}\n onlyShowSelectionWhenActive\n overscan={5}\n renderItem={renderItem}\n wrapAround={false}\n />\n </IncomingReferencesListContainer>\n ) : (\n <>\n <Flex\n align=\"center\"\n justify=\"center\"\n padding={2}\n hidden={isAdding || Boolean(newReferenceId)}\n >\n <Text size={1} muted>\n {t('incoming-references-input.no-items')}\n </Text>\n </Flex>\n </>\n )}\n\n {newReferenceId && (\n <SanityDefaultPreview icon={schemaType.icon} layout={'default'} isPlaceholder />\n )}\n {isAdding && (\n <AddIncomingReference\n type={type.type}\n referenced={referenced}\n onCreateNewReference={handleCreateNewReference}\n onLinkDocument={handleLinkDocument}\n creationAllowed={creationAllowed}\n fieldName={fieldName}\n />\n )}\n </Card>\n {onLinkDocument ? (\n <Button\n size=\"large\"\n disabled={false}\n icon={AddIcon}\n mode=\"ghost\"\n onClick={handleAdd}\n text={t('incoming-references-input.add-reference-item')}\n />\n ) : (\n <CreateNewIncomingReference\n type={type.type}\n referenceToId={referenced.id}\n referenceToType={referenced.type}\n creationAllowed={creationAllowed}\n onCreateNewReference={handleCreateNewReference}\n fieldName={fieldName}\n />\n )}\n </Stack>\n )\n}\n","import {type SelectableTone} from '@sanity/ui'\nimport {\n type ActionComponent,\n type DocumentActionDialogProps,\n type PreviewConfig,\n type SanityClient,\n type SanityDocument,\n} from 'sanity'\n\nexport type IncomingReferenceActionsContext = {\n /**\n * The document that is linked to the reference.\n */\n document: SanityDocument\n getClient: (options: {apiVersion: string}) => SanityClient\n}\n\nexport type IncomingReferenceActionDescription = {\n label: string\n icon?: React.ElementType\n tone?: SelectableTone\n disabled?: boolean\n onHandle: (() => Promise<void>) | (() => void)\n dialog?: DocumentActionDialogProps | false | null\n}\n\n/**\n * Incoming reference action component definition.\n * Allows users to define actions that will be shown in the IncomingReferences component as part\n * of each reference\n * example:\n * ```ts\n * export const LogReferenceAction: IncomingReferenceAction = ({document, getClient}) => {\n * return {\n * label: 'Log reference',\n * icon: LogIcon,\n * onHandle: () => console.log(document._id)\n * }\n * }\n * ```\n *\n * @beta\n */\nexport type IncomingReferenceAction = ActionComponent<\n IncomingReferenceActionsContext,\n IncomingReferenceActionDescription\n>\n\nexport interface CrossDatasetIncomingReference {\n type: string\n title?: string\n dataset: string\n preview: PreviewConfig\n studioUrl?: (document: {id: string; type?: string}) => string | null\n}\n\nexport interface IncomingReferenceType {\n type: string\n dataset?: never\n title?: string\n}\n\nexport function isCrossDatasetIncomingReference(\n type: IncomingReferenceType | CrossDatasetIncomingReference,\n): type is CrossDatasetIncomingReference {\n return Boolean(type.dataset)\n}\n\nexport type IncomingReferencesFilterResolver = (context: {\n document: SanityDocument | undefined\n getClient: (options: {apiVersion: string}) => SanityClient\n}) =>\n | string\n | {filter: string; filterParams?: Record<string, string>}\n | Promise<{filter: string; filterParams?: Record<string, string>}>\n\nexport type IncomingReferencesOptions = {\n name: string\n title?: string\n description?: string\n /**\n * The type of the incoming references.\n */\n types: (IncomingReferenceType | CrossDatasetIncomingReference)[]\n\n /**\n * The filter query to apply to the incoming references in addition to the type filter.\n * For example: filter all books that are from an specific editorial brand: `editorialBrand == \"Random House\"`\n * The `_type` filter is applied automatically.\n */\n filter?: string | IncomingReferencesFilterResolver\n filterParams?: Record<string, string>\n\n /**\n * Callback to link a document to a reference.\n *\n * This function is called when a user wants to link an existing document to the current document.\n * It receives two parameters:\n * - The document that will be linked (the target document)\n * - The reference object with all properties needed to establish the link\n *\n * The developer must implement this function to define where and how the reference\n * should be placed within the document structure. The function should return the\n * modified document with the reference properly added.\n *\n * For example:\n * - We want to link a book to an author:\n * ```ts\n * onLinkDocument: (document, reference) => {\n * return {\n * ...document,\n * author: reference,\n * }\n * }\n * ```\n *\n *\n * @param document - The document to link to the reference.\n * @param reference - The reference to link to the document.\n * @returns The document to link to the reference. If false, the document will not be linked to the reference.\n */\n\n onLinkDocument?: (\n document: SanityDocument,\n reference: {\n _type: 'reference'\n _ref: string\n _weak?: boolean\n _strengthenOnPublish?: {\n type: string\n }\n },\n ) => SanityDocument | false\n /**\n * Callback to define the actions that will be shown for the incoming reference document.\n *\n * For example:\n * ```ts\n * actions: ({document, client}) => {\n * return [\n * {label: 'Unlink document',\n * icon: TrashIcon,\n * tone: 'critical',\n * onClick: async () => {\n * await client.createOrReplace({...document, _id: getDraftId(document._id), author: undefined})\n * }\n * }\n * ]\n * }\n * ```\n * @param context - The context of the linked document.\n * @returns The actions that will be shown for the linked document.\n\n */\n actions?: IncomingReferenceAction[]\n /**\n * Whether to allow creation of new references.\n * default: true\n *\n * If false, it will only be possible to link to existing documents, if the `onLinkDocument` callback is provided.\n * If true, it will be possible to create new references to any template of the type.\n * If an array is provided, it will only be possible to create new references that match the template id in the array provided.\n *\n * To define how a creation will be handled, you can use the `initialValue` option in the\n * document type that will be linked.\n *\n * For example:\n * I want to create a new book from an author:\n * In the author we will have the <IncomingReferenceInput /> with the creationAllowed set to true.\n *\n * Then in the book type, we will have the `initialValue` option to define the default values for the new book.\n * This initialValue callback will receive the `reference` object that needs to be linked to the book in the params.\n *\n * ```ts\n * // Book type\n * export default {\n * type: 'document',\n * name: 'book',\n * title: 'Book',\n * fields: [\n * {\n * name: 'author',\n * type: 'reference',\n * to: [{type: 'author'}],\n * },\n * ],\n * initialValue: (params) => {\n * return {\n * author: params?.reference,\n * }\n * }\n * ```\n */\n creationAllowed?: boolean | string[]\n}\n","import {Card, Flex, Stack, Text} from '@sanity/ui'\nimport {useTranslation} from 'sanity'\n\nimport {structureLocaleNamespace} from '../../i18n'\nimport {useDocumentPane} from '../../panes/document/useDocumentPane'\nimport {CrossDatasetIncomingReferenceType} from './CrossDatasetIncomingReference/CrossDatasetIncomingReferenceType'\nimport {IncomingReferencesType} from './IncomingReferencesType'\nimport {type IncomingReferencesOptions, isCrossDatasetIncomingReference} from './types'\n\nexport function IncomingReferencesList({\n types,\n onLinkDocument,\n actions,\n filter,\n filterParams,\n name,\n creationAllowed,\n}: IncomingReferencesOptions) {\n const {documentId, documentType} = useDocumentPane()\n const {t} = useTranslation(structureLocaleNamespace)\n\n if (!types || types?.length === 0) {\n return (\n <Card border radius={2} padding={3} tone=\"critical\">\n <Flex align=\"center\" justify=\"center\">\n <Text size={1} muted>\n {t('incoming-references-input.types-not-defined')}\n </Text>\n </Flex>\n </Card>\n )\n }\n\n return (\n <Stack space={3}>\n {types.map((type) => {\n if (isCrossDatasetIncomingReference(type)) {\n return (\n <CrossDatasetIncomingReferenceType\n key={`${type.type}-${type.dataset || ''}`}\n type={type}\n referenced={{id: documentId, type: documentType}}\n shouldRenderTitle={types.length > 1}\n />\n )\n }\n return (\n <IncomingReferencesType\n key={type.type}\n type={type}\n referenced={{id: documentId, type: documentType}}\n onLinkDocument={onLinkDocument}\n actions={actions}\n shouldRenderTitle={types.length > 1}\n fieldName={name}\n creationAllowed={creationAllowed}\n filter={filter}\n filterParams={filterParams}\n />\n )\n })}\n </Stack>\n )\n}\n","import {Box, Flex, Stack, Text} from '@sanity/ui'\nimport startCase from 'lodash-es/startCase.js'\n\nimport {IncomingReferencesList} from './IncomingReferencesList'\nimport {type IncomingReferencesOptions} from './types'\n\n/**\n * @beta\n */\nexport function IncomingReferencesDecoration(\n props: IncomingReferencesOptions & {\n name: string\n title?: string\n description?: string\n },\n) {\n const {\n onLinkDocument,\n actions,\n filter,\n filterParams,\n name,\n creationAllowed = true,\n types,\n title,\n description,\n } = props\n\n return (\n <Stack space={2}>\n <Box paddingY={2}>\n <Stack space={3}>\n <Flex align=\"center\" paddingY={1}>\n <Text as=\"label\" weight=\"medium\" size={1}>\n {title || startCase(name)}\n </Text>\n </Flex>\n\n {description && (\n <Text muted size={1}>\n {description}\n </Text>\n )}\n </Stack>\n </Box>\n <IncomingReferencesList\n name={name}\n types={types}\n onLinkDocument={onLinkDocument}\n actions={actions}\n filter={filter}\n filterParams={filterParams}\n creationAllowed={creationAllowed}\n />\n </Stack>\n )\n}\n","import {type DecorationMember} from 'sanity'\n\nimport {IncomingReferencesDecoration} from './IncomingReferencesDecoration'\nimport {type IncomingReferencesOptions} from './types'\n\n/**\n * Helper function to define an incoming references decoration.\n *\n * example:\n * ```ts\n * defineType({\n * name: 'author',\n * type: 'document',\n * renderMembers: (members) => {\n * return [\n * ...members,\n * defineIncomingReferenceDecoration({\n * name: 'incomingReferences',\n * title: 'Incoming references',\n * types: [{type: 'author'}],\n * }),\n * ]\n * },\n * })\n * ```\n *\n * @beta\n */\nexport function defineIncomingReferenceDecoration(\n options: IncomingReferencesOptions,\n): DecorationMember {\n return {\n kind: 'decoration',\n key: options.name,\n component: <IncomingReferencesDecoration {...options} />,\n }\n}\n","import {type DocumentDefinition} from 'sanity'\n\nexport interface IncomingReferenceCreationParams {\n reference: {\n _type: 'reference'\n _ref: string\n _weak?: boolean\n _strengthenOnPublish?: {\n type: string\n }\n }\n from: {\n fieldName: string\n type: string\n }\n __internal_isIncomingReferenceCreation: true\n [key: string]: unknown\n}\n\n/**\n * Helper function to check if the document is being created from an incoming reference.\n * It will be used in the initialValue callback to determine if the document is being created from an incoming reference.\n *\n * example:\n * ```ts\n * defineType({\n * name: 'book',\n * type: 'document',\n * fields: [...],\n * initialValue: (params) => {\n * // If the document is being created from an incoming reference, return the reference\n * // Otherwise, return undefined\n * return {\n * author: isIncomingReferenceCreation(params) ? params.reference : undefined,\n * }\n * },\n * })\n * ```\n *\n * @beta\n */\nexport function isIncomingReferenceCreation(\n initialValue: DocumentDefinition['initialValue'],\n): initialValue is IncomingReferenceCreationParams {\n return (\n typeof initialValue === 'object' &&\n initialValue !== null &&\n '__internal_isIncomingReferenceCreation' in initialValue\n )\n}\n"],"names":["CrossDatasetIncomingReferenceType","t0","$","_c","type","referenced","shouldRenderTitle","client","useClient","DEFAULT_STUDIO_CLIENT_OPTIONS","documentPreviewStore","useDocumentPreviewStore","t1","id","getCrossDatasetIncomingReferences","documentId","references$","documents","loading","useObservable","INITIAL_STATE","schema","useSchema","t","useTranslation","structureLocaleNamespace","T0","T1","t10","t2","t3","t4","t5","t6","t7","t8","t9","Symbol","for","bb0","schemaType","get","t11","document","renderItem","t12","t13","Stack","title","Card","length","index","INCOMING_REFERENCES_ITEM_HEIGHT","CreateNewIncomingReference","referenceToId","referenceToType","onCreateNewReference","fieldName","creationAllowed","initialValueTemplateItems","useReferenceInputOptions","navigate","useRouter","routerPanesState","groupIndex","usePaneRouter","option","uuid","panes","slice","getPublishedId","params","template","payload","reference","_type","_ref","_weak","_strengthenOnPublish","from","__internal_isIncomingReferenceCreation","handleCreate","i","typeMatch","Array","isArray","includes","filter","map","_temp","isNonNullable","createOptions","item","i18n","icon","parameters","permission","granted","reason","undefined","getPerspective","isDraftId","isVersionId","getVersionFromId","isPublishedId","LinkToExistingPreview","props","value","onLinkToDocument","data","releases","useActiveReleases","_id","getPreviewStateObservable","previewStateObservable","snapshot","isLoading","original","getReleaseTone","kind","tone","text","releaseId","r","getReleaseIdFromReleaseDocumentId","release","find","releaseTitle","metadata","releaseFallback","badgeProps","getPreviewValueWithFallback","fallback","displayTitle","INITIAL_SEARCH_STATE","hits","NO_FILTER","incomingReferenceSearch","searchStrategy","search","createSearch","maxDepth","DEFAULT_MAX_FIELD_DEPTH","strategy","tag","textTerm","perspective","pipe","hit","docs","byId","Map","forEach","doc","set","publishedId","entry","values","collated","AddIncomingReference","onLinkDocument","push","useToast","source","useSource","handleSearch","searchState","setSearchState","useState","inputValue$","switchMap","searchString","concat","of","catchError","error","description","message","status","console","scan","tap","handleQueryChange","useObservableEvent","_temp2","options","handleAutocompleteOpenButtonClick","renderOption","gridTemplateColumns","t14","onClick","t15","t16","t17","t18","prevState","nextState","IncomingReferencesType","actions","filterParams","displayed","useDocumentPane","getClient","displayedId","getIncomingReferences","isAdding","setIsAdding","newReferenceId","setNewReferenceId","editState","toast","handleAdd","publishedExists","Boolean","published","handleCreateNewReference","liveEdit","documentId_0","fetch","linkedDocument","getDraftId","createOrReplace","handleLinkDocument","document_0","useEffect","document_1","AddIcon","p","isCrossDatasetIncomingReference","dataset","IncomingReferencesList","types","name","documentType","IncomingReferencesDecoration","startCase","defineIncomingReferenceDecoration","key","component","isIncomingReferenceCreation","initialValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBO,SAAAA,kCAAAC,IAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GAA2C;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAAL,IAShDM,SAAeC,UAAUC,6BAA6B,GACtDC,uBAA6BC,wBAAAA;AAAyB,MAAAC;AAAAV,IAAA,CAAA,MAAAK,UAAAL,SAAAQ,wBAAAR,EAAA,CAAA,MAAAG,WAAAQ,MAAAX,SAAAE,QAIlDQ,KAAAE,kCAAkC;AAAA,IAAAC,YACpBV,WAAUQ;AAAAA,IAAGN;AAAAA,IAAAH;AAAAA,IAAAM;AAAAA,EAAAA,CAI1B,GAACR,OAAAK,QAAAL,OAAAQ,sBAAAR,EAAA,CAAA,IAAAG,WAAAQ,IAAAX,OAAAE,MAAAF,OAAAU,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AAA;AAAAA,IAAAA;AAAAA,IAeAC;AAAAA,EAAAA,EAAAA,CASF,GAAQ9B,QAAA6B,IAAA7B,QAAA8B,IAAA9B,QAAA+B,MAAAA,KAAA/B,EAAA,EAAA,GAzBR+B;AAyBQ;AC1BL,SAAS2M,kCACdnD,SACkB;AAClB,SAAO;AAAA,IACLlE,MAAM;AAAA,IACNsH,KAAKpD,QAAQ+C;AAAAA,IACbM,WAAW,oBAAC,8BAAA,EAA6B,GAAIrD,QAAAA,CAAQ;AAAA,EAAA;AAEzD;ACKO,SAASsD,4BACdC,cACiD;AACjD,SACE,OAAOA,gBAAiB,YACxBA,iBAAiB,QACjB,4CAA4CA;AAEhD;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const fileExtensions = [
|
|
2
|
+
'.css',
|
|
3
|
+
'.eot',
|
|
4
|
+
'.gif',
|
|
5
|
+
'.jpeg',
|
|
6
|
+
'.jpg',
|
|
7
|
+
'.otf',
|
|
8
|
+
'.png',
|
|
9
|
+
'.sass',
|
|
10
|
+
'.scss',
|
|
11
|
+
'.svg',
|
|
12
|
+
'.ttf',
|
|
13
|
+
'.webp',
|
|
14
|
+
'.woff',
|
|
15
|
+
'.woff2',
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export async function load(url, context, nextLoad) {
|
|
19
|
+
if (fileExtensions.some((extension) => url.endsWith(extension))) {
|
|
20
|
+
return {
|
|
21
|
+
format: 'module',
|
|
22
|
+
source: `export default ${JSON.stringify(url)}`,
|
|
23
|
+
shortCircuit: true,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return nextLoad(url, context)
|
|
27
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/sanity",
|
|
3
|
+
"version": "5.17.1-depup.0",
|
|
4
|
+
"description": "[DepUp] Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"depup",
|
|
7
|
+
"dependency-bumped",
|
|
8
|
+
"updated-deps",
|
|
9
|
+
"sanity",
|
|
10
|
+
"cms",
|
|
11
|
+
"content",
|
|
12
|
+
"headless",
|
|
13
|
+
"realtime"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://www.sanity.io/",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/sanity-io/sanity/issues"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Sanity.io <hello@sanity.io>",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/sanity-io/sanity.git",
|
|
24
|
+
"directory": "packages/sanity"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"sanity": "./bin/sanity"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"bin",
|
|
31
|
+
"lib",
|
|
32
|
+
"dist",
|
|
33
|
+
"static",
|
|
34
|
+
"mock-browser-env-stub-loader.mjs",
|
|
35
|
+
"changes.json",
|
|
36
|
+
"README.md"
|
|
37
|
+
],
|
|
38
|
+
"type": "module",
|
|
39
|
+
"sideEffects": false,
|
|
40
|
+
"main": "./lib/index.js",
|
|
41
|
+
"types": "./lib/index.d.ts",
|
|
42
|
+
"typesVersions": {
|
|
43
|
+
"*": {
|
|
44
|
+
"_internal": [
|
|
45
|
+
"./lib/_internal.d.ts"
|
|
46
|
+
],
|
|
47
|
+
"_singletons": [
|
|
48
|
+
"./lib/_singletons.d.ts"
|
|
49
|
+
],
|
|
50
|
+
"_createContext": [
|
|
51
|
+
"./lib/_createContext.d.ts"
|
|
52
|
+
],
|
|
53
|
+
"cli": [
|
|
54
|
+
"./lib/cli.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"desk": [
|
|
57
|
+
"./lib/desk.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"migrate": [
|
|
60
|
+
"./lib/migrate.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"presentation": [
|
|
63
|
+
"./lib/presentation.d.ts"
|
|
64
|
+
],
|
|
65
|
+
"router": [
|
|
66
|
+
"./lib/router.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"structure": [
|
|
69
|
+
"./lib/structure.d.ts"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"exports": {
|
|
74
|
+
".": "./lib/index.js",
|
|
75
|
+
"./_internal": "./lib/_internal.js",
|
|
76
|
+
"./_singletons": "./lib/_singletons.js",
|
|
77
|
+
"./_createContext": "./lib/_createContext.js",
|
|
78
|
+
"./cli": "./lib/cli.js",
|
|
79
|
+
"./desk": "./lib/desk.js",
|
|
80
|
+
"./presentation": "./lib/presentation.js",
|
|
81
|
+
"./router": "./lib/router.js",
|
|
82
|
+
"./structure": "./lib/structure.js",
|
|
83
|
+
"./media-library": "./lib/media-library.js",
|
|
84
|
+
"./migrate": "./lib/migrate.js",
|
|
85
|
+
"./package.json": "./package.json"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@algorithm.ts/lcs": "^4.0.5",
|
|
89
|
+
"@date-fns/tz": "^1.4.1",
|
|
90
|
+
"@dnd-kit/core": "^6.3.1",
|
|
91
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
92
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
93
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
94
|
+
"@isaacs/ttlcache": "^2.1.4",
|
|
95
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
96
|
+
"@mux/mux-player-react": "^3.11.5",
|
|
97
|
+
"@portabletext/editor": "^6.5.0",
|
|
98
|
+
"@portabletext/html": "^1.0.0",
|
|
99
|
+
"@portabletext/patches": "^2.0.4",
|
|
100
|
+
"@portabletext/plugin-markdown-shortcuts": "^7.0.20",
|
|
101
|
+
"@portabletext/plugin-one-line": "^6.0.20",
|
|
102
|
+
"@portabletext/plugin-paste-link": "^3.0.20",
|
|
103
|
+
"@portabletext/plugin-typography": "^7.0.20",
|
|
104
|
+
"@portabletext/react": "^6.0.3",
|
|
105
|
+
"@portabletext/sanity-bridge": "^3.0.0",
|
|
106
|
+
"@portabletext/to-html": "^5.0.2",
|
|
107
|
+
"@portabletext/toolkit": "^5.0.2",
|
|
108
|
+
"@rexxars/react-json-inspector": "^9.0.1",
|
|
109
|
+
"@sanity/asset-utils": "^2.3.0",
|
|
110
|
+
"@sanity/bifur-client": "^1.0.0",
|
|
111
|
+
"@sanity/cli": "^6.1.7",
|
|
112
|
+
"@sanity/client": "^7.17.0",
|
|
113
|
+
"@sanity/color": "^3.0.6",
|
|
114
|
+
"@sanity/comlink": "^4.0.1",
|
|
115
|
+
"@sanity/diff-match-patch": "^3.2.0",
|
|
116
|
+
"@sanity/diff-patch": "^6.0.0",
|
|
117
|
+
"@sanity/eventsource": "^5.0.2",
|
|
118
|
+
"@sanity/icons": "^3.7.4",
|
|
119
|
+
"@sanity/id-utils": "^1.0.0",
|
|
120
|
+
"@sanity/image-url": "^2.0.3",
|
|
121
|
+
"@sanity/insert-menu": "^3.0.4",
|
|
122
|
+
"@sanity/logos": "^2.2.2",
|
|
123
|
+
"@sanity/media-library-types": "^1.2.0",
|
|
124
|
+
"@sanity/message-protocol": "^0.19.0",
|
|
125
|
+
"@sanity/migrate": "^6.0.0",
|
|
126
|
+
"@sanity/mutate": "^0.16.1",
|
|
127
|
+
"@sanity/presentation-comlink": "^2.0.1",
|
|
128
|
+
"@sanity/preview-url-secret": "^4.0.3",
|
|
129
|
+
"@sanity/sdk": "^2.8.0",
|
|
130
|
+
"@sanity/telemetry": "^0.8.1",
|
|
131
|
+
"@sanity/ui": "^3.1.14",
|
|
132
|
+
"@sanity/uuid": "^3.0.2",
|
|
133
|
+
"@sentry/react": "^10.44.0",
|
|
134
|
+
"@tanstack/react-table": "^8.21.3",
|
|
135
|
+
"@tanstack/react-virtual": "^3.13.23",
|
|
136
|
+
"@xstate/react": "^6.1.0",
|
|
137
|
+
"classnames": "^2.5.1",
|
|
138
|
+
"color2k": "^2.0.3",
|
|
139
|
+
"dataloader": "^2.2.3",
|
|
140
|
+
"date-fns": "^4.1.0",
|
|
141
|
+
"debug": "^4.4.3",
|
|
142
|
+
"exif-component": "^1.0.1",
|
|
143
|
+
"fast-deep-equal": "3.1.3",
|
|
144
|
+
"groq-js": "^1.29.0",
|
|
145
|
+
"history": "^5.3.0",
|
|
146
|
+
"i18next": "^25.8.18",
|
|
147
|
+
"is-hotkey-esm": "^1.0.0",
|
|
148
|
+
"isomorphic-dompurify": "^3.5.0",
|
|
149
|
+
"json-reduce": "^3.0.0",
|
|
150
|
+
"json-stable-stringify": "^1.3.0",
|
|
151
|
+
"lodash-es": "^4.17.23",
|
|
152
|
+
"mendoza": "^3.0.8",
|
|
153
|
+
"motion": "^12.38.0",
|
|
154
|
+
"nano-pubsub": "^3.0.0",
|
|
155
|
+
"nanoid": "^5.1.7",
|
|
156
|
+
"observable-callback": "^1.0.3",
|
|
157
|
+
"path-to-regexp": "^8.3.0",
|
|
158
|
+
"player.style": "^0.3.1",
|
|
159
|
+
"polished": "^4.3.1",
|
|
160
|
+
"quick-lru": "^7.3.0",
|
|
161
|
+
"raf": "^3.4.1",
|
|
162
|
+
"react-fast-compare": "^3.2.2",
|
|
163
|
+
"react-focus-lock": "^2.13.7",
|
|
164
|
+
"react-i18next": "^16.5.8",
|
|
165
|
+
"react-is": "^19.2.4",
|
|
166
|
+
"react-refractor": "^4.0.0",
|
|
167
|
+
"react-rx": "^4.2.2",
|
|
168
|
+
"refractor": "^5.0.0",
|
|
169
|
+
"rxjs": "^7.8.2",
|
|
170
|
+
"rxjs-exhaustmap-with-trailing": "^2.1.1",
|
|
171
|
+
"rxjs-mergemap-array": "^0.1.0",
|
|
172
|
+
"scroll-into-view-if-needed": "^3.1.0",
|
|
173
|
+
"scrollmirror": "^1.2.4",
|
|
174
|
+
"semver": "^7.7.4",
|
|
175
|
+
"shallow-equals": "^1.0.0",
|
|
176
|
+
"speakingurl": "^14.0.1",
|
|
177
|
+
"urlpattern-polyfill": "10.1.0",
|
|
178
|
+
"use-device-pixel-ratio": "^1.1.2",
|
|
179
|
+
"use-hot-module-reload": "^2.0.0",
|
|
180
|
+
"use-sync-external-store": "^1.6.0",
|
|
181
|
+
"uuid": "^13.0.0",
|
|
182
|
+
"web-vitals": "^5.1.0",
|
|
183
|
+
"xstate": "^5.28.0",
|
|
184
|
+
"@sanity/diff": "5.17.1",
|
|
185
|
+
"@sanity/schema": "5.17.1",
|
|
186
|
+
"@sanity/mutator": "5.17.1",
|
|
187
|
+
"@sanity/util": "5.17.1",
|
|
188
|
+
"@sanity/types": "5.17.1"
|
|
189
|
+
},
|
|
190
|
+
"devDependencies": {
|
|
191
|
+
"@playwright/experimental-ct-react": "1.57.0",
|
|
192
|
+
"@playwright/test": "1.57.0",
|
|
193
|
+
"@sanity/eslint-config-i18n": "^2.0.0",
|
|
194
|
+
"@sanity/generate-help-url": "^4.0.0",
|
|
195
|
+
"@sanity/pkg-utils": "^10.4.10",
|
|
196
|
+
"@sanity/visual-editing-csm": "^3.0.5",
|
|
197
|
+
"@sentry/types": "^8.55.0",
|
|
198
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
199
|
+
"@testing-library/react": "^16.3.1",
|
|
200
|
+
"@testing-library/user-event": "^14.6.1",
|
|
201
|
+
"@types/debug": "^4.1.12",
|
|
202
|
+
"@types/lodash-es": "^4.17.12",
|
|
203
|
+
"@types/node": "^24.3.0",
|
|
204
|
+
"@types/raf": "^3.4.3",
|
|
205
|
+
"@types/react": "^19.2.11",
|
|
206
|
+
"@types/react-dom": "^19.2.3",
|
|
207
|
+
"@types/react-is": "^19.2.0",
|
|
208
|
+
"@types/semver": "^7.7.0",
|
|
209
|
+
"@types/shallow-equals": "^1.0.3",
|
|
210
|
+
"@types/speakingurl": "^13.0.6",
|
|
211
|
+
"@types/use-sync-external-store": "^1.5.0",
|
|
212
|
+
"@types/wicg-task-scheduling": "^2024.1.0",
|
|
213
|
+
"@typescript/native-preview": "7.0.0-dev.20260112.1",
|
|
214
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
215
|
+
"@vitest/expect": "^4.0.18",
|
|
216
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
217
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
218
|
+
"blob-polyfill": "^9.0.20240710",
|
|
219
|
+
"eslint": "^9.39.2",
|
|
220
|
+
"eslint-plugin-boundaries": "^5.3.1",
|
|
221
|
+
"eslint-plugin-testing-library": "^7.15.4",
|
|
222
|
+
"globals": "^16.2.0",
|
|
223
|
+
"jsdom": "^26.1.0",
|
|
224
|
+
"react": "^19.2.4",
|
|
225
|
+
"react-dom": "^19.2.4",
|
|
226
|
+
"rimraf": "^6.1.3",
|
|
227
|
+
"rxjs-etc": "^10.6.2",
|
|
228
|
+
"styled-components": "npm:@sanity/styled-components@^6.1.24",
|
|
229
|
+
"swr": "2.2.5",
|
|
230
|
+
"tsx": "^4.21.0",
|
|
231
|
+
"vite": "^7.3.1",
|
|
232
|
+
"vitest": "^4.0.18",
|
|
233
|
+
"vitest-package-exports": "^1.1.2",
|
|
234
|
+
"@repo/eslint-config": "5.17.1",
|
|
235
|
+
"@repo/test-config": "5.17.1",
|
|
236
|
+
"@repo/package.config": "5.17.1",
|
|
237
|
+
"@repo/tsconfig": "5.17.1",
|
|
238
|
+
"@repo/package.bundle": "5.17.1"
|
|
239
|
+
},
|
|
240
|
+
"peerDependencies": {
|
|
241
|
+
"react": "^19.2.2",
|
|
242
|
+
"react-dom": "^19.2.2",
|
|
243
|
+
"styled-components": "^6.1.15"
|
|
244
|
+
},
|
|
245
|
+
"browserslist": [
|
|
246
|
+
"node >=20.19",
|
|
247
|
+
"node >=22.12",
|
|
248
|
+
"baseline 2024"
|
|
249
|
+
],
|
|
250
|
+
"engines": {
|
|
251
|
+
"node": ">=20.19 <22 || >=22.12"
|
|
252
|
+
},
|
|
253
|
+
"scripts": {
|
|
254
|
+
"build": "pnpm clean && pkg-utils build --strict --check --clean",
|
|
255
|
+
"build:bundle": "vite build --configLoader runner --config package.bundle.ts",
|
|
256
|
+
"check:types": "(cd ../.. && tsgo --project packages/sanity/tsconfig.check.json --erasableSyntaxOnly)",
|
|
257
|
+
"clean": "rimraf _internal.js _singletons.js _createContext.js cli.js desk.js migrate.js presentation.js router.js structure.js lib",
|
|
258
|
+
"coverage": "vitest --coverage",
|
|
259
|
+
"docs:typedocs:cleanup": "rimraf docs",
|
|
260
|
+
"docs:typedocs:generate": "typedoc --options typedoc.config.json",
|
|
261
|
+
"lint": "eslint .",
|
|
262
|
+
"test": "vitest run",
|
|
263
|
+
"test:ct": "rimraf playwright-ct/template/.cache && playwright test -c playwright-ct.config.ts",
|
|
264
|
+
"watch": "pkg-utils watch"
|
|
265
|
+
},
|
|
266
|
+
"depup": {
|
|
267
|
+
"changes": {
|
|
268
|
+
"@dnd-kit/modifiers": {
|
|
269
|
+
"from": "^6.0.1",
|
|
270
|
+
"to": "^9.0.0"
|
|
271
|
+
},
|
|
272
|
+
"@dnd-kit/sortable": {
|
|
273
|
+
"from": "^7.0.2",
|
|
274
|
+
"to": "^10.0.0"
|
|
275
|
+
},
|
|
276
|
+
"@isaacs/ttlcache": {
|
|
277
|
+
"from": "^1.4.1",
|
|
278
|
+
"to": "^2.1.4"
|
|
279
|
+
},
|
|
280
|
+
"@mux/mux-player-react": {
|
|
281
|
+
"from": "^3.10.2",
|
|
282
|
+
"to": "^3.11.5"
|
|
283
|
+
},
|
|
284
|
+
"@portabletext/editor": {
|
|
285
|
+
"from": "^6.4.0",
|
|
286
|
+
"to": "^6.5.0"
|
|
287
|
+
},
|
|
288
|
+
"@portabletext/plugin-markdown-shortcuts": {
|
|
289
|
+
"from": "^7.0.19",
|
|
290
|
+
"to": "^7.0.20"
|
|
291
|
+
},
|
|
292
|
+
"@portabletext/plugin-one-line": {
|
|
293
|
+
"from": "^6.0.19",
|
|
294
|
+
"to": "^6.0.20"
|
|
295
|
+
},
|
|
296
|
+
"@portabletext/plugin-paste-link": {
|
|
297
|
+
"from": "^3.0.19",
|
|
298
|
+
"to": "^3.0.20"
|
|
299
|
+
},
|
|
300
|
+
"@portabletext/plugin-typography": {
|
|
301
|
+
"from": "^7.0.19",
|
|
302
|
+
"to": "^7.0.20"
|
|
303
|
+
},
|
|
304
|
+
"@sanity/cli": {
|
|
305
|
+
"from": "^6.1.5",
|
|
306
|
+
"to": "^6.1.7"
|
|
307
|
+
},
|
|
308
|
+
"@sanity/diff-patch": {
|
|
309
|
+
"from": "^5.0.0",
|
|
310
|
+
"to": "^6.0.0"
|
|
311
|
+
},
|
|
312
|
+
"@sanity/sdk": {
|
|
313
|
+
"from": "2.1.2",
|
|
314
|
+
"to": "^2.8.0"
|
|
315
|
+
},
|
|
316
|
+
"@sentry/react": {
|
|
317
|
+
"from": "^8.55.0",
|
|
318
|
+
"to": "^10.44.0"
|
|
319
|
+
},
|
|
320
|
+
"@tanstack/react-virtual": {
|
|
321
|
+
"from": "^3.13.18",
|
|
322
|
+
"to": "^3.13.23"
|
|
323
|
+
},
|
|
324
|
+
"@xstate/react": {
|
|
325
|
+
"from": "^6.0.0",
|
|
326
|
+
"to": "^6.1.0"
|
|
327
|
+
},
|
|
328
|
+
"classnames": {
|
|
329
|
+
"from": "^2.2.5",
|
|
330
|
+
"to": "^2.5.1"
|
|
331
|
+
},
|
|
332
|
+
"i18next": {
|
|
333
|
+
"from": "^25.8.17",
|
|
334
|
+
"to": "^25.8.18"
|
|
335
|
+
},
|
|
336
|
+
"isomorphic-dompurify": {
|
|
337
|
+
"from": "2.26.0",
|
|
338
|
+
"to": "^3.5.0"
|
|
339
|
+
},
|
|
340
|
+
"lodash-es": {
|
|
341
|
+
"from": "^4.17.22",
|
|
342
|
+
"to": "^4.17.23"
|
|
343
|
+
},
|
|
344
|
+
"motion": {
|
|
345
|
+
"from": "^12.27.1",
|
|
346
|
+
"to": "^12.38.0"
|
|
347
|
+
},
|
|
348
|
+
"nanoid": {
|
|
349
|
+
"from": "^3.3.11",
|
|
350
|
+
"to": "^5.1.7"
|
|
351
|
+
},
|
|
352
|
+
"path-to-regexp": {
|
|
353
|
+
"from": "^6.3.0",
|
|
354
|
+
"to": "^8.3.0"
|
|
355
|
+
},
|
|
356
|
+
"player.style": {
|
|
357
|
+
"from": "^0.1.9",
|
|
358
|
+
"to": "^0.3.1"
|
|
359
|
+
},
|
|
360
|
+
"react-i18next": {
|
|
361
|
+
"from": "15.6.1",
|
|
362
|
+
"to": "^16.5.8"
|
|
363
|
+
},
|
|
364
|
+
"semver": {
|
|
365
|
+
"from": "^7.7.2",
|
|
366
|
+
"to": "^7.7.4"
|
|
367
|
+
},
|
|
368
|
+
"uuid": {
|
|
369
|
+
"from": "^11.1.0",
|
|
370
|
+
"to": "^13.0.0"
|
|
371
|
+
},
|
|
372
|
+
"xstate": {
|
|
373
|
+
"from": "^5.25.1",
|
|
374
|
+
"to": "^5.28.0"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"depsUpdated": 27,
|
|
378
|
+
"originalPackage": "sanity",
|
|
379
|
+
"originalVersion": "5.17.1",
|
|
380
|
+
"processedAt": "2026-03-17T22:57:21.545Z",
|
|
381
|
+
"smokeTest": "failed"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="512" height="512" fill="#0B0B0B"/>
|
|
3
|
+
<rect width="256" height="256" fill="#0B0B0B"/>
|
|
4
|
+
<g clip-path="url(#clip0_261_6485)">
|
|
5
|
+
<path d="M431.519 304.966L417.597 280.733L350.26 321.759L425.051 226.504L436.358 219.867L433.56 215.662L438.697 209.096L415.097 189.445L404.295 203.215L186.253 330.829L266.869 233.849L417.024 151.513L402.758 123.926L320.972 168.755L361.246 120.336L338.174 100L247.535 209.026L157.515 258.413L226.435 167.267L269.621 144.782L255.906 116.888L130.085 182.407L164.396 136.987L140.429 117.785L68 213.678L69.1238 214.576L82.6554 242.139L162.951 200.31L89.7653 297.077L101.76 306.69L108.893 320.484L193.431 274.12L100.338 386.121L123.411 406.457L128.044 400.883L352.623 269.018L278.061 364.014L279.277 365.029L279.162 365.1L294.62 392.002L393.791 331.561L355.604 393.207L381.199 410L442 311.863L431.519 304.966Z" fill="white"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_261_6485">
|
|
9
|
+
<rect width="374" height="310" fill="white" transform="translate(68 100)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|