Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sanity): content releases #7011

Draft
wants to merge 576 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
576 commits
Select commit Hold shift + click to select a range
af5370d
feat(core): add duplicate action to the versions
RitaDias Nov 4, 2024
df8bf4d
fix(core): issue displaying the footer actions when document doesn't …
RitaDias Nov 4, 2024
fe87c5a
fix(sanity): fix issue where creating version from version was breaking
RitaDias Nov 4, 2024
d308098
fix(sanity): prevent adding versions to scheduled / scheduling releases
RitaDias Nov 4, 2024
55997fb
refactor(releases): move releases store into core/releases
bjoerge Nov 1, 2024
dc16512
fix(releases): fix mock paths
bjoerge Nov 1, 2024
4b870e1
refactor(releases): move useReleasesStore out of legacy
bjoerge Nov 1, 2024
ee198ab
chore(ci): revert unintentional edits from merge
bjoerge Nov 1, 2024
ebfc5c3
chore(releases): remove _version field from documents
bjoerge Nov 1, 2024
5fc8720
chore(releases): remove unused import
bjoerge Nov 1, 2024
2199dae
fix(sanity): prevent adding versions to scheduled / scheduling releas…
RitaDias Nov 4, 2024
f50524d
fix(sanity): fix chip select state when adding banners
RitaDias Nov 4, 2024
ed1169a
chore(deps): update visual-editing to latest
pedrobonamin Nov 4, 2024
5174074
fix(structure): move banners position
pedrobonamin Nov 4, 2024
15045d4
chore(deps): update visual-editing to latest
pedrobonamin Nov 4, 2024
daca134
chore(deps): update visual-editing to latest again
pedrobonamin Nov 4, 2024
b223327
chore(router): remove perspective state from router (#7749)
pedrobonamin Nov 5, 2024
49310e8
Merge branch 'next' into corel
bjoerge Nov 5, 2024
d670fe9
fix(ci): avoid literal as const package exports due to etl error
bjoerge Nov 5, 2024
9745162
Merge branch 'next' into corel
bjoerge Nov 5, 2024
90ca666
refactor(sanity): update date format
RitaDias Nov 6, 2024
10dea69
fix(sanity): issue where the scheduled for banner was appearing in re…
RitaDias Nov 6, 2024
b5fc349
fix(sanity): update header paddings to reduce document switch flickering
RitaDias Nov 6, 2024
327db99
Merge branch 'next' into corel
bjoerge Nov 6, 2024
2d3951a
test(core): fix reference e2e test (#7772)
RitaDias Nov 7, 2024
7146342
refactor(core): move some documentPerspective components from structu…
RitaDias Nov 7, 2024
264d4c9
refactor(core): rename dialogs (#7774)
RitaDias Nov 7, 2024
daede00
refactor(sanity): fix date formating, add locked chips and locked doc…
RitaDias Nov 7, 2024
a634563
chore(core): remove corel details screen top border
pedrobonamin Nov 8, 2024
1fe9d31
Merge branch 'next' into corel
bjoerge Nov 8, 2024
3e3e17c
fix(sanity): published references shown as drafts in reference inputs
RitaDias Nov 11, 2024
90331e6
Merge branch 'next' into corel
bjoerge Nov 11, 2024
b5ce373
fix(core): update releases table empty state
pedrobonamin Nov 11, 2024
fdea1cd
chore: [remove before merge]: tweak pnpm overrides
bjoerge Nov 11, 2024
79bc048
chore: regenerate lockfile
bjoerge Nov 11, 2024
e3e2a34
fix(sanity): fix issue where the input change wasn't impacting the ca…
RitaDias Nov 12, 2024
9a38017
refactor(sanity): add ability to change padding to dateTimeInput
RitaDias Nov 12, 2024
4ccbf7e
fix(core): update getPublishDateFromRelease, add ScheduledRelease typ…
pedrobonamin Nov 12, 2024
65673fa
fix: issue with the US formatting used by formatRelative when no loca…
jordanl17 Nov 13, 2024
78b8316
Merge branch 'next' into corel
bjoerge Nov 13, 2024
d46e8c9
feat(sanity): Add timezones to create release and to the release deta…
RitaDias Nov 13, 2024
e16fdfb
chore(sanity): only call getPublishDateFromRelease if the release typ…
RitaDias Nov 14, 2024
d830411
fix(sanity): issue with draft being selected when it shouldn't
RitaDias Nov 14, 2024
6b9fe6e
Merge branch 'next' into corel
bjoerge Nov 15, 2024
78c3214
refactor: move to system-only release documents (#7824)
bjoerge Nov 15, 2024
eea0283
fix(releases): fix broken query
bjoerge Nov 15, 2024
474bfba
feat(releases): adding correct confirmation dialog to archive release…
jordanl17 Nov 18, 2024
1a0c038
test(releases): turning on most of ReleasesOverview tests
jordanl17 Nov 18, 2024
8171a71
Merge branch 'corel' of github.com:sanity-io/sanity into corel
jordanl17 Nov 18, 2024
89137be
fix: skipping broken releasesOverview tests due to unknown issues
jordanl17 Nov 18, 2024
ca2bf71
test(releases): comprehensive testing on release nav (#7840)
jordanl17 Nov 19, 2024
ff28a57
test(releases): calendar tests for releases overview (#7850)
jordanl17 Nov 20, 2024
3a29f90
fix(core): update metadata property name, add delay after creation
pedrobonamin Nov 20, 2024
2cc67f8
fix(core): update slug validator to account for version documents
pedrobonamin Nov 20, 2024
a3dc693
test: resolving mismatch on snapshot for updated slugValidator (#7855)
jordanl17 Nov 21, 2024
0c715af
fix(sanity): add ability to search version documents from AddDocument…
RitaDias Nov 21, 2024
dbdee62
test(sanity): update and re-write unit tests (CreateReleaseDialog/use…
RitaDias Nov 21, 2024
4c753b3
test(sanity): re-add checkoutPair tests
RitaDias Nov 21, 2024
c893edc
test(sanity): update and activate corel tests (#7860)
RitaDias Nov 21, 2024
e78b029
fix(releases): can only add documents to active releases
jordanl17 Nov 21, 2024
20034ee
fix(releases): untitled releases have placeholder in breadcrumb
jordanl17 Nov 21, 2024
07c92c7
Merge branch 'corel' of github.com:sanity-io/sanity into corel
jordanl17 Nov 21, 2024
7a6ff5f
feat(releases): timezone selection updates filtering and dateTime dis…
jordanl17 Nov 21, 2024
237694b
fix: release tables can sort by strings and dates
jordanl17 Nov 22, 2024
465c105
fix: table styling on headers
jordanl17 Nov 22, 2024
e64ea96
fix: table styling on headers
jordanl17 Nov 22, 2024
41a63c8
fix(core): remove timeout and retry from releases store (#7866)
pedrobonamin Nov 22, 2024
027aabf
fix: support creating version with initial value (#7878)
bjoerge Nov 26, 2024
3e700a8
Merge branch 'next' into corel
bjoerge Nov 26, 2024
3057e2b
feat: Start in Create button is now enabled by default (#7884)
snorrees Nov 26, 2024
25eb4f2
Revert "feat: Start in Create button is now enabled by default (#7884)"
snorrees Nov 26, 2024
735f831
test(sanity): ReleaseSummary tests (#7870)
RitaDias Nov 26, 2024
12b308d
fix: when selected perspective is not active, remove perspective from…
jordanl17 Nov 26, 2024
e1b455e
fix: resolving ts error on DocumentStatusLine
jordanl17 Nov 26, 2024
157150f
Merge branch 'next' into corel
bjoerge Nov 27, 2024
170fdd3
fix: calendar filter tests using today's date
jordanl17 Nov 27, 2024
9de21db
fix: opt-out @tanstack/react-virtual from React Compiler
jordanl17 Nov 28, 2024
97f610e
fix(releases): only throw error when release type is scheduled but no…
jordanl17 Nov 28, 2024
6bd667f
fix(structure): add support to edit live documents in published persp…
pedrobonamin Nov 28, 2024
2cfed5e
refactor(sanity): simplify releases plugin document action composition
juice49 Nov 28, 2024
58ff054
feat(sanity): add `action.compare-versions` string
juice49 Nov 28, 2024
8ac1d1c
fix: react compiler and the Symbol prop value in ToneIcon renamed to …
jordanl17 Nov 29, 2024
7a4b7a3
Merge branch 'corel' of github.com:sanity-io/sanity into corel
jordanl17 Nov 29, 2024
5deba91
fix(core): `VersionOriginType` to `DocumentVariantType` (#7924)
pedrobonamin Dec 2, 2024
229ecf3
Merge branch 'next' into corel
bjoerge Dec 2, 2024
f5cedf1
fix(core): when publishing a release unpin it (#7925)
pedrobonamin Dec 2, 2024
28e91ea
Merge branch 'next' into corel
bjoerge Dec 4, 2024
8b93392
fix(deps): remove @sanity/ui and @sanity/icons overrides
bjoerge Dec 2, 2024
38a3aa2
fix(deps): remove pnpm override
bjoerge Dec 3, 2024
dbdbee3
refactor(sanity): remove bundle-prefix, move away from bundlePerspective
bjoerge Dec 3, 2024
100b646
fix(sanity): fix ts errors after sanity/ui upgrade
bjoerge Dec 3, 2024
edd4897
refactor: address PR feedback
bjoerge Dec 3, 2024
5113189
chore(structure): fix lint error
bjoerge Dec 3, 2024
c829d7e
fix(structure): fix pane header padding issue
bjoerge Dec 4, 2024
75bbf61
fix: use the latest `corel` version of `@sanity/presentation` (#7941)
stipsan Dec 4, 2024
e26f7ce
fix: disable api actions for visual editing test studio
bjoerge Dec 4, 2024
1f4d553
chore(deps): upgrade to @sanity/[email protected]
bjoerge Dec 4, 2024
241a34d
feat(releases): support delete release server action (#7943)
jordanl17 Dec 5, 2024
03fa5c1
fix(sanity): fix issue where you could click the published chip even …
RitaDias Dec 5, 2024
1087b3e
fix(structure): live edit documents need to be editable in published …
pedrobonamin Dec 5, 2024
f3a73eb
test(e2e): update unpublish test to match update (#7951)
RitaDias Dec 5, 2024
19e999d
fix(deps): bump `@sanity/presentation` to `1.19.5-release.3` (#7956)
stipsan Dec 5, 2024
e9a1674
fix(sanity): fix issue where you could click the published chip even …
RitaDias Dec 5, 2024
5677b53
feat(releases): unschedule release from release menu button menu (#7954)
jordanl17 Dec 6, 2024
351a6a4
fix(sanity): issue with the publish chip disable + update tests (#7968)
RitaDias Dec 6, 2024
89a0b59
fix(deps): bump `@sanity/presentation` to `1.19.8-release.0` (#7970)
stipsan Dec 6, 2024
d37b324
Merge branch 'next' into corel
bjoerge Dec 6, 2024
1ae808e
feat(sanity): add unpublish document to release (#7947)
RitaDias Dec 6, 2024
e696576
chore(cli): remove v2 test fixtures
bjoerge Dec 6, 2024
d0579da
chore(cli): remove v2 test branches
bjoerge Dec 6, 2024
74f1754
test(cli): make it easier to configure token for running cli tests lo…
bjoerge Dec 6, 2024
6a9d4c3
test(cli): increase test timeouts
bjoerge Dec 6, 2024
4f2194b
fix(releases): blocking UI elements that allow for adding documents t…
jordanl17 Dec 6, 2024
c6e5ee5
chore(core): remove `releaseStack` from releasesStore (#7990)
pedrobonamin Dec 9, 2024
7b28097
feat(core): adds events based history (#7922)
pedrobonamin Dec 9, 2024
7406916
fix(structure): enable published chip for live edit documents (#8000)
pedrobonamin Dec 10, 2024
14c3097
chore(core): add new function getTransactionsLogs (#8004)
pedrobonamin Dec 10, 2024
089c5eb
fix(core): documents history fixes (#8007)
pedrobonamin Dec 10, 2024
f991463
feat(core): corel publish 2 action - test (#8015)
pedrobonamin Dec 11, 2024
63b2792
feat: showing documents in archived and published releases (#7994)
jordanl17 Dec 11, 2024
7198895
Merge branch 'next' into corel
bjoerge Dec 12, 2024
1a6483d
fix(core): update pnpm lock file
pedrobonamin Dec 12, 2024
ea86580
fix(core): release events types are lowercase (#8024)
pedrobonamin Dec 12, 2024
2bd96f6
feat(core): releases history (#7973)
pedrobonamin Dec 13, 2024
b9d599f
feat(core): option to exclude draft perspective (#8028)
pedrobonamin Dec 13, 2024
bcfe37f
fix(core): catch error for release events
pedrobonamin Dec 13, 2024
2800b1d
chore(core): refactor usePerspective hook (#8029)
pedrobonamin Dec 13, 2024
0dee912
fix(releases): stabilising observable for archived and published vers…
jordanl17 Dec 14, 2024
f5f6824
feat(releases): reverting releases (#8008)
jordanl17 Dec 14, 2024
e99f431
fix: `WebSocket is closed before the connection is established` warni…
stipsan Dec 18, 2024
5769c3e
fix(deps): Update dev-non-major (#8100)
renovate[bot] Dec 18, 2024
3eea18c
chore(deps): update dependency turbo to ^2.3.3 (#8099)
renovate[bot] Dec 18, 2024
10e89f3
feat(typegen): add support for astro (#8098)
sgulseth Dec 18, 2024
0fddbf8
fix(deps): update dependency @sanity/icons to ^3.5.5 (#8106)
renovate[bot] Dec 19, 2024
34bf7f6
chore(deps): update typescript-tooling (#8104)
renovate[bot] Dec 19, 2024
27a942e
chore(deps): update dependency @sanity/tsdoc to v1.0.153 (#8107)
renovate[bot] Dec 19, 2024
f0d988f
fix(deps): update dependency react-rx to ^4.1.10 (#8109)
renovate[bot] Dec 19, 2024
d60b451
fix(deps): update dependency @sanity/ui to ^2.10.12 (#8108)
renovate[bot] Dec 19, 2024
67abc06
fix(deps): update dependency @sanity/icons to ^3.5.5 (#8105)
renovate[bot] Dec 19, 2024
1adb6e3
Merge branch 'next' into corel
bjoerge Dec 19, 2024
8c79998
fix(field): Use jsx stead of createElement
bjoerge Dec 19, 2024
2c997b3
fix(deps): unpin vitest version
bjoerge Dec 19, 2024
f613af6
fix(field): Use jsx stead of createElement
bjoerge Dec 19, 2024
5a58f2d
chore: bump presentation (#8119)
stipsan Dec 20, 2024
12c37ca
test(releases): fixing issues with virtual list and releases overview…
jordanl17 Dec 20, 2024
d6c6663
fix(releases): when reverting, published versions are used to derive …
jordanl17 Dec 20, 2024
be255dc
chore: updating release telemetry to conform to style guides (#8135)
jordanl17 Dec 23, 2024
cd2d8ac
fix(releases): hiding calendar on release picker dialog when not sche…
jordanl17 Dec 24, 2024
91ac9b0
fix(releases): remounting the title/description form for release when…
jordanl17 Dec 24, 2024
6c1a71e
feat(releases): published label; unarchive server action; and fixture…
jordanl17 Dec 25, 2024
c4c664f
chore: merge next into corel (#8139)
jordanl17 Dec 27, 2024
303c3d4
refactor: releasesOverview into utils and smaller components for cale…
jordanl17 Dec 27, 2024
c784561
chore: removing deprecated motion for motion.create (#8145)
jordanl17 Dec 27, 2024
5ff3aae
chore(core): remove unused PerspectiveBadge component (#8152)
pedrobonamin Jan 2, 2025
8245993
fix(core): do not throw if schemaType is not found (#8163)
pedrobonamin Jan 3, 2025
9d0d549
fix(structure): add opt out option from releases in DocumentPaneProvi…
pedrobonamin Jan 3, 2025
0a29d00
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 3, 2025
b512378
fix(core): replace sanity imports in corel for relative paths
pedrobonamin Jan 3, 2025
e9a5002
fix(structure): add support to force a version for the pane provider …
pedrobonamin Jan 3, 2025
5d3ba18
chore: disabling actions API for staging dataset
jordanl17 Jan 7, 2025
c6c0085
chore: enabling events API for staging dataset
jordanl17 Jan 7, 2025
3184656
Merge branch 'corel' of github.com:sanity-io/sanity into corel
jordanl17 Jan 7, 2025
4f85a54
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 8, 2025
bae10ef
fix(core): update types to match with react-19
pedrobonamin Jan 8, 2025
35011d0
refactor: useBundleDocuments only invoked when release menu is opened…
jordanl17 Jan 9, 2025
89eb4df
test: longer timeout for flakes on ReleaseDashboardFooter.test
jordanl17 Jan 9, 2025
a332233
chore: using motion.create in calendar filter
jordanl17 Jan 9, 2025
e363892
refactor: removing unnecessary use of useBundleDocuments in ReleaseMe…
jordanl17 Jan 10, 2025
afb4f7c
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 13, 2025
249c72e
chore(test-studio): restore sanity assist in presentation studio
pedrobonamin Jan 13, 2025
28b2418
chore(core): update commentsProvider to receive releaseId
pedrobonamin Jan 13, 2025
c6dfca6
fix(core): use comments version id where necessary
pedrobonamin Jan 13, 2025
91b805c
chore(core): corel-324 request access screen rebase fix
pedrobonamin Jan 13, 2025
a7ebc3c
chore: Pr small cleanup
pedrobonamin Jan 13, 2025
278dca4
fix(test): revert author schema changes
pedrobonamin Jan 13, 2025
ed37a55
fix(core): update ui-components button props
pedrobonamin Jan 13, 2025
4d4aba8
fix(core): support serverDocumentActions flag in plugins (#8233)
pedrobonamin Jan 13, 2025
66626eb
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 14, 2025
b2330a6
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 15, 2025
489120f
feat(sanity): add release layering support to `groq2024` search strategy
juice49 Jan 13, 2025
640033c
fix(test): restore skipped tests (#8278)
pedrobonamin Jan 15, 2025
5a98259
fix(core): remove useBundleDeletedToast, move to usePerspective hook …
pedrobonamin Jan 15, 2025
d52c0ac
fix(structure): only reset history params if needed (#8284)
pedrobonamin Jan 16, 2025
cc1dc74
fix: forcing all search strategies to use vX API whilst releases not …
jordanl17 Jan 16, 2025
da1979a
feat: releases overview shows total docs in release (#8232)
jordanl17 Jan 16, 2025
c0e41c5
fix: restore package json sanity/ui reference (#8287)
pedrobonamin Jan 16, 2025
287f032
chore: updating test studio dependencies to versions to support corel…
jordanl17 Jan 16, 2025
10dc77f
chore: merge next into corel (#8303)
jordanl17 Jan 16, 2025
4d7ea9e
Revert "chore: merge next into corel" (#8306)
jordanl17 Jan 16, 2025
0b96e34
Merge branch 'next' into corel
jordanl17 Jan 16, 2025
3a35e46
fix(deps): upgrade `@sanity/presentation` to v1.22.1-release.0 (#8296)
stipsan Jan 16, 2025
1501203
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 17, 2025
86ecfa7
Merge branch 'next' into corel
jordanl17 Jan 17, 2025
4b2d6c8
test(e2e): update reference tests for corel (#8314)
RitaDias Jan 17, 2025
bc92a49
Merge branch 'next' into corel
jordanl17 Jan 17, 2025
d4112d7
feat(sanity): use API `vX` when executing actions
juice49 Jan 16, 2025
e2cf16d
fix(sanity): editing version document using Actions API
juice49 Jan 16, 2025
edbb298
feat(test-studio): enable Actions API
juice49 Jan 16, 2025
b47e306
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 17, 2025
69d60cd
refactor: migrate `@sanity/presentation@corel` codebase (#8312) (#8317)
stipsan Jan 20, 2025
b342017
refactor(sanity): refine perspective stack types
juice49 Jan 14, 2025
0ecd85a
feat(vision): allow `options` values to be arrays in `encodeQueryString`
juice49 Jan 14, 2025
ba3f36f
feat(vision): add release layering support
juice49 Jan 14, 2025
6379767
fix(core): duplicate should work with version documents (#8323)
pedrobonamin Jan 20, 2025
2046949
refactor(core): perf work for useReleases (#8281)
RitaDias Jan 20, 2025
150e2e3
fix(core): references to documents on same release are valid (#8322)
pedrobonamin Jan 21, 2025
3514b58
fix(core): update getIdPair to calculate the new id given the version…
pedrobonamin Jan 21, 2025
6e6a43c
fix(core): issue opening references with published perspective (#8345)
pedrobonamin Jan 21, 2025
951aefc
fix(structure): collapsed document show document title (#8347)
pedrobonamin Jan 21, 2025
ec50096
refactor: moving calendar inputs from scheduled pub. to `core/compone…
jordanl17 Jan 21, 2025
84dd2ba
chore(structure): remove `TimelineStore` from `<DocumentPaneProvider/…
pedrobonamin Jan 21, 2025
b0f6dae
feat(test-studio): add Cross Dataset Reference error replication
juice49 Jan 20, 2025
a8a86ce
fix(@sanity/schema): allow Cross Dataset References in Portable Text …
juice49 Jan 20, 2025
01d9cbf
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 21, 2025
b1f2306
fix(core): update pnpm lock after merge
pedrobonamin Jan 21, 2025
9cac7ff
fix(core): use apiVersion X in documentIdSet observable
pedrobonamin Jan 21, 2025
bc1b7c3
test(e2e): make e2e sturdier (#8348)
RitaDias Jan 22, 2025
03fa6f1
fix: revert back to vite v5 (#8362)
bjoerge Jan 22, 2025
ca904b1
feat(core): create references from version documents and new version …
pedrobonamin Jan 22, 2025
bdd3ed4
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 22, 2025
61f3f41
fix: fixing issue with counting documents in archived or published re…
jordanl17 Jan 22, 2025
22446d3
fix: resolving issue where action menu on the release action menu wou…
jordanl17 Jan 22, 2025
995072f
fix(presentation): support releases in optimistic updates (#8366)
stipsan Jan 23, 2025
03ad512
refactor(core): adds perspective provider + split usePerspective to s…
RitaDias Jan 23, 2025
9a58441
fix(presentation): perspective switching regression (#8384)
stipsan Jan 23, 2025
a02c351
refactor(core): refactor the global perspective menu (#8359)
RitaDias Jan 24, 2025
4712d01
fix: scheduled published releases allow for reverting (#8402)
jordanl17 Jan 24, 2025
2b92063
fix(core): reference to drafts not showing values (#8393)
pedrobonamin Jan 24, 2025
3d03fa6
fix(core): add _updated date if the document doesn't have _updatedDat…
RitaDias Jan 24, 2025
98cb6b7
refactor(core): adds confirmation when there are no documents in a re…
RitaDias Jan 24, 2025
1c114e9
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 24, 2025
4e9fd32
refactor(sanity): remove references to defunct `_version` field
juice49 Jan 24, 2025
7339d9c
fix(core): revert lost changes from #7597 (#8408)
pedrobonamin Jan 27, 2025
a6536e8
chore: small `corel` changes (#8412)
pedrobonamin Jan 27, 2025
a5ed360
chore(core): revert `Timeline` changes which added to support version…
pedrobonamin Jan 27, 2025
cf420d8
fix(core): support searching references in same release (#8392)
pedrobonamin Jan 27, 2025
63268df
fix(structure): deprecate `selectedReleaseId` and `forcedVersion` in …
pedrobonamin Jan 27, 2025
46abc69
fix(structure): disable publish and unpublish actions for releases (#…
pedrobonamin Jan 27, 2025
23628a1
fix(core): remove `version` from `formBuilder`, replace for `usePersp…
pedrobonamin Jan 28, 2025
f62873e
feat(core): update events api routes and config flags, fix events sor…
pedrobonamin Jan 28, 2025
22bb384
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 28, 2025
bc5300e
fix(core): fix addParentToEvents
pedrobonamin Jan 28, 2025
d06b8cf
refactor(sanity): remove defunct release migration
juice49 Jan 29, 2025
341523f
fix(structure): make form readOnly in published view (#8444)
pedrobonamin Jan 29, 2025
055d730
feat(structure): document status updates (#8442)
pedrobonamin Jan 29, 2025
09c54be
fix(core): move searchProvider to wrap the item preview (#8437)
pedrobonamin Jan 29, 2025
3ab0433
Merge remote-tracking branch 'origin/next' into corel
pedrobonamin Jan 29, 2025
5433b6a
refactor(core): add document title to the toast when adding document …
RitaDias Jan 30, 2025
fc0b122
feat(sanity): use new name for `sanity::versionsOf` (#8449)
rneatherway Jan 30, 2025
9c634c1
Merge branch 'next' into corel
bjoerge Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ const config = {
'sortOrder',
'status',
'group',
'textWeight',
'showChangesBy',
],
},
},
Expand Down
4 changes: 2 additions & 2 deletions dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@portabletext/block-tools": "^1.1.2",
"@portabletext/editor": "^1.26.0",
"@portabletext/react": "^3.0.0",
"@sanity/assist": "^3.0.2",
"@sanity/assist": "^3.1.0",
"@sanity/client": "^6.27.1",
"@sanity/color": "^3.0.0",
"@sanity/color-input": "^4.0.1",
Expand All @@ -34,7 +34,7 @@
"@sanity/logos": "^2.1.2",
"@sanity/migrate": "workspace:*",
"@sanity/preview-url-secret": "^2.1.3",
"@sanity/react-loader": "^1.8.3",
"@sanity/react-loader": "^1.10.35",
"@sanity/tsdoc": "1.0.169",
"@sanity/types": "workspace:*",
"@sanity/ui": "^2.11.4",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-studio/preview/loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const client = createClient({
projectId: 'ppsg7ml5',
dataset: 'playground',
useCdn: true,
apiVersion: '2023-02-06',
apiVersion: 'X',
stega: {
enabled: true,
studioUrl: '/presentation',
Expand Down
2 changes: 2 additions & 0 deletions dev/test-studio/sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export default defineConfig([
dataset: 'playground',
plugins: [sharedSettings()],
basePath: '/playground',
beta: {eventsAPI: {enabled: true}},
},
{
name: 'listener-events',
Expand Down Expand Up @@ -253,6 +254,7 @@ export default defineConfig([
plugins: [sharedSettings()],
basePath: '/staging',
apiHost: 'https://api.sanity.work',
beta: {eventsAPI: {enabled: true}},
auth: {
loginMethod: 'token',
},
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/types/src/schema/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export interface PrepareViewOptions {

/** @public */
export interface PreviewValue {
_id?: string
_createdAt?: string
_updatedAt?: string
title?: string
subtitle?: string
description?: string
Expand Down
3 changes: 2 additions & 1 deletion packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
"json5": "^2.2.3",
"lodash": "^4.17.21",
"quick-lru": "^5.1.1",
"react-compiler-runtime": "19.0.0-beta-decd7b8-20250118"
"react-compiler-runtime": "19.0.0-beta-decd7b8-20250118",
"react-fast-compare": "^3.2.2"
},
"devDependencies": {
"@repo/package.config": "workspace:*",
Expand Down
5 changes: 3 additions & 2 deletions packages/@sanity/vision/src/SanityVision.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {type Tool, useClient} from 'sanity'
import {type Tool, useClient, usePerspective} from 'sanity'

import {DEFAULT_API_VERSION} from './apiVersions'
import {VisionContainer} from './containers/VisionContainer'
Expand All @@ -11,14 +11,15 @@ interface SanityVisionProps {

function SanityVision(props: SanityVisionProps) {
const client = useClient({apiVersion: '1'})
const perspective = usePerspective()
const config: VisionConfig = {
defaultApiVersion: DEFAULT_API_VERSION,
...props.tool.options,
}

return (
<VisionErrorBoundary>
<VisionContainer client={client} config={config} />
<VisionContainer client={client} config={config} pinnedPerspective={perspective} />
</VisionErrorBoundary>
)
}
Expand Down
Loading
Loading