Skip to content

Commit

Permalink
fix: update @sanity/presentation and remove deprecated internal exp…
Browse files Browse the repository at this point in the history
…orts no longer in use (#6694)

* chore: add link to list over used internals

* chore: include original codeowners to internals used by presentation

* fix(deps): bump `@sanity/presentation` to v1.15.6

* fix: remove deprecated exports no longer in use by presentation
  • Loading branch information
stipsan committed May 17, 2024
1 parent 39bab8a commit 69246c1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 53 deletions.
51 changes: 26 additions & 25 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,29 @@ packages/sanity/src/core/studio/upsell/ @sanity-io/studio-ex
/packages/@sanity/cli/src/workers/typegenGenerate.ts @sanity-io/content-lake-dx

# Internals used by @sanity/presentation
/packages/sanity/src/_singletons/structure/components/paneRouter/PaneRouterContext.tsx @sanity-io/ecosystem
/packages/sanity/src/core/comments/context/intent/CommentsIntentProvider.tsx @sanity-io/ecosystem
/packages/sanity/src/core/comments/types.ts @sanity-io/ecosystem
/packages/sanity/src/core/config/document/fieldActions/define.ts @sanity-io/ecosystem
/packages/sanity/src/core/config/document/fieldActions/types.ts @sanity-io/ecosystem
/packages/sanity/src/core/field/paths/helpers.ts @sanity-io/ecosystem
/packages/sanity/src/core/hooks/useEditState.ts @sanity-io/ecosystem
/packages/sanity/src/core/preview/components/Preview.tsx @sanity-io/ecosystem
/packages/sanity/src/core/store/_legacy/datastores.ts @sanity-io/ecosystem
/packages/sanity/src/core/store/_legacy/document/document-store.ts @sanity-io/ecosystem
/packages/sanity/src/core/studio/activeWorkspaceMatcher/useActiveWorkspace.ts @sanity-io/ecosystem
/packages/sanity/src/core/studio/workspace.tsx @sanity-io/ecosystem
/packages/sanity/src/core/util/draftUtils.ts @sanity-io/ecosystem
/packages/sanity/src/core/util/isRecord.ts @sanity-io/ecosystem
/packages/sanity/src/core/util/useUnique.ts @sanity-io/ecosystem
/packages/sanity/src/router/utils/jsonParamsEncoding.ts @sanity-io/ecosystem
/packages/sanity/src/structure/components/pane/PaneLayout.tsx @sanity-io/ecosystem
/packages/sanity/src/structure/components/paneRouter/types.ts @sanity-io/ecosystem
/packages/sanity/src/structure/panes/document/DocumentPane.tsx @sanity-io/ecosystem
/packages/sanity/src/structure/panes/document/useDocumentPane.tsx @sanity-io/ecosystem
/packages/sanity/src/structure/panes/documentList/index.ts @sanity-io/ecosystem
/packages/sanity/src/structure/panes/documentList/pane.ts @sanity-io/ecosystem
/packages/sanity/src/structure/panes/documentList/PaneContainer.tsx @sanity-io/ecosystem
/packages/sanity/src/structure/StructureToolProvider.tsx @sanity-io/ecosystem
/packages/sanity/src/structure/types.ts @sanity-io/ecosystem
# See https://github.com/sanity-io/visual-editing/blob/main/packages/presentation/src/internals.ts for exactly which exports
/packages/sanity/src/_singletons/structure/components/paneRouter/PaneRouterContext.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/comments/context/intent/CommentsIntentProvider.tsx @sanity-io/ecosystem @sanity-io/studio-ex
/packages/sanity/src/core/comments/types.ts @sanity-io/ecosystem @sanity-io/studio-ex
/packages/sanity/src/core/config/document/fieldActions/define.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/config/document/fieldActions/types.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/field/paths/helpers.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/hooks/useEditState.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/preview/components/Preview.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/store/_legacy/datastores.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/store/_legacy/document/document-store.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/studio/activeWorkspaceMatcher/useActiveWorkspace.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/studio/workspace.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/util/draftUtils.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/util/isRecord.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/core/util/useUnique.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/router/utils/jsonParamsEncoding.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/components/pane/PaneLayout.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/components/paneRouter/types.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/panes/document/DocumentPane.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/panes/document/useDocumentPane.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/panes/documentList/index.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/panes/documentList/pane.ts @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/panes/documentList/PaneContainer.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/StructureToolProvider.tsx @sanity-io/ecosystem @sanity-io/studio-dx
/packages/sanity/src/structure/types.ts @sanity-io/ecosystem @sanity-io/studio-dx
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.vscode
/.github/CODEOWNERS

/dev/*/.next
/dev/*/.sanity
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"@sanity/migrate": "3.42.1",
"@sanity/mutator": "3.42.1",
"@sanity/portable-text-editor": "3.42.1",
"@sanity/presentation": "1.15.5",
"@sanity/presentation": "1.15.6",
"@sanity/schema": "3.42.1",
"@sanity/telemetry": "^0.7.6",
"@sanity/types": "3.42.1",
Expand Down
23 changes: 0 additions & 23 deletions packages/sanity/src/structure/index.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
/**
* These are provided from `sanity/structure` for backwards compatibility;
* `@sanity/presentation` depends/depended on them from `sanity/structure` originially.
*
* Do not remove until next major version at the earliest (eg v4)
*/
import {
type CommentIntentGetter as _CommentIntentGetter,
CommentsIntentProvider as _CommentsIntentProvider,
} from 'sanity'

/**
* @deprecated Import from `sanity` instead of `sanity/structure`
* @internal
*/
export type CommentIntentGetter = _CommentIntentGetter

/**
* @deprecated Import from `sanity` instead of `sanity/structure`
* @internal
*/
export const CommentsIntentProvider = _CommentsIntentProvider

export type {
BackLinkProps,
ChildLinkProps,
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69246c1

Please sign in to comment.