Sanity Studio – Rapidly configure content workspaces powered by structured content
MIT License
Bot releases are hidden (Show)
Published by vicmeow almost 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Per-Kristian Nordnes | fix(portable-text-editor): removing marks must be done without normalization | 573b5bd0c |
Per-Kristian Nordnes | test(portable-text-editor): test remove annotations and resulting normalization | 65d37a6d2 |
Marius Lundgård | fix(desk-tool): display older version when selected | b83b5d3a2 |
Marius Lundgård | refactor(test-studio): improve user component pane test | 976f656bd |
Espen Hovlandsdal | chore(vision): upgrade react-json-view | 189c88566 |
Marius Lundgård | fix(base): fix radius for visual consistency | 9315f088e |
Espen Hovlandsdal | fix(client): bump max dataset length to 64 characters (#2888) | 59faadc7f |
Marius Lundgård | refactor(test-studio): use calendar icon from @sanity/icons
|
0c0ffefc8 |
Published by ricokahler almost 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | test(test-studio): improve custom pane debugging | 157cfc9b0 |
Mikolaj Dobrucki | feat(desk-tool): improve status icons in document footer and default preview (#2816) | 55a760f9b |
Marius Lundgård | chore(test-studio): add @sanity/orderable-document-list plugin |
4ca273600 |
Victoria Bergquist | refactor(base): migrate global create menu to @sanity/ui (#2626) |
97883c992 |
Espen Hovlandsdal | chore(test-studio): upgrade markdown plugin | fd78a1e15 |
Bjørge Næss | fix(base): use document type as part of the document pair cache key (#2884) | 674f1ee32 |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
localStorage
.@sanity/vision
autocomplete styling.withDocument
higher-order component to pass on the edited document before it was fully loaded.Author | Message | Commit |
---|---|---|
Rico Kahler | fix(desk-tool): force re-renders on user components on navigation (#2868) | d8bd5087d |
Espen Hovlandsdal | fix(default-layout): respect space redirect on initial load (#2874) | a8656fd5e |
Rico Kahler | refactor(desk-tool): up TS coverage; introduce pane types (#2853) | 4fbdb5315 |
hermanwikner | fix(desk-tool): hide custom pane content if the pane is collapsed | 1a53747cb |
Fred Carlsen | fix(form-builder): fix performance issues in default image source (#2873) | 1bde86b45 |
Victoria Bergquist | refactor(form-builder): remove unused array item warning component (#2828) | 2a884a75f |
Espen Hovlandsdal | fix(core): use non-opaque origin when mocking browser env | f5054ead4 |
Fred Carlsen | fix(vision): fix codemirror autocomplete styling (#2875) | 9b10c556e |
hermanwikner | fix(desk-tool): add missing dependency in useMemo in FormView
|
bf9d007de |
hermanwikner | fix(desk-tool) reset documentType when documentId changes in useDocumentType
|
d0468f54b |
Bjørge Næss | fix(base): return ready state from useEditState()
|
0326d9cc6 |
Per-Kristian Nordnes | fix(portable-text-editor): fix bug with removing annotations | 9a9afa91b |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
withDocument
higher-order component would sometimes return null
initiallytool
property, resulting in incorrect contextAuthor | Message | Commit |
---|---|---|
Bjørge Næss | fix(desk-tool): don't pass null as document value | 156a1d35c |
Bjørge Næss | fix(desk-tool): defer form rendering until document is loaded | b939ddab4 |
Rico Kahler | fix(desk-tool): force document pane re-render on expand (#2865) | 3350d200a |
Espen Hovlandsdal | fix(types): add tool prop to tool component typing | 73b0fb0b6 |
Espen Hovlandsdal | fix(default-layout): pass tool prop to tool components | 2e22cb320 |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Unknown document type *
withDocument
higher-order component to get stuck on an initial null
valueAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | chore(examples): add default mux input config | 10560aa86 |
Espen Hovlandsdal | refactor(base): use typescript for core schema types | 56a2cb4e5 |
Espen Hovlandsdal | feat(types): introduce blurhash as metadata on image assets | 03368a671 |
Espen Hovlandsdal | feat(client): allow specifying blurhash as metadata to extract | 4ec50cc73 |
Espen Hovlandsdal | feat(base): add blurHash field to image asset metadata type | ea731fa55 |
Espen Hovlandsdal | fix(base): add hidden uploadId field to image asset schema type | 825ebd4f6 |
Marius Lundgård | chore(test-studio): restructure files | a8739be96 |
Marius Lundgård | chore(test-studio): restructure schemas and structure configuration | 17c80e462 |
Marius Lundgård | test(form-builder): update tests after restructure | 84eca1c13 |
Marius Lundgård | chore(test-studio): install markdown plugin | 6d4310d5b |
Marius Lundgård | chore(test-studio): configure canHandleIntent
|
27a1bd6dd |
Marius Lundgård | docs(test-studio): update description and README | a85eb6aa6 |
Marius Lundgård | chore(test-studio): add markdown field to root-level document | 1e783374c |
Marius Lundgård | build(test-studio): update sanity-plugin-markdown
|
5dbc0f7ef |
Sindre Gulseth | test(core): add assertion tests for graphql schema generation | 154cfa860 |
Sindre Gulseth | fix(core): fixes slow graphql schema generation. | 4bea2d769 |
Espen Hovlandsdal | fix(structure): require schema type to be specified for documents | 019614ac4 |
Espen Hovlandsdal | fix(structure): optimize useDocumentType | ed53eaa82 |
Espen Hovlandsdal | test(core): update snapshot to include blurHash, uploadId fields | f38901cfd |
Rico Kahler | refactor(desk-tool): remove closable prop (#2846) | cbf9a2e68 |
Sindre Gulseth | fix(core): update graphql tests to be self isolated | c66d1337d |
Espen Hovlandsdal | fix(form-builder): guard unset operation with value check | 287d30844 |
Marius Lundgård | chore(test-studio): add test case for withDocument
|
e0f8b3424 |
Bjørge Næss | fix(base): show change indicator pencil on hover only (#2851) | 90da719ee |
Mikolaj Dobrucki | fix(default-layout): improve app loading screen (#2850) | 3e6ff25b9 |
Rico Kahler | chore: use @typescript-eslint/no-shadow (#2852) | 79f242477 |
Bjørge Næss | fix(desk-tool): fix issue with withDocument HOC not receiving initial document | 5645d708b |
Bjørge Næss | test(cypress): add some waiting in date input tests to allow for the form to become enabled | 5be7793e3 |
Espen Hovlandsdal | feat(test-studio): add reproduction of editor without schema type | cf09dfbba |
Espen Hovlandsdal | feat(base): add resoleTypeForDocument method to document store | ba80b9749 |
Espen Hovlandsdal | refactor(desk-tool): move document type resolving out of intentResolver | f2f65d040 |
Espen Hovlandsdal | fix(desk-tool): add document type resolve step if not defined for pane | 9cdd586e9 |
Espen Hovlandsdal | fix(structure): make schemaType check a warning instead of error | e0d82f06f |
Marius Lundgård | fix(desk-tool): add UI for error and loading states | 53c76020a |
Espen Hovlandsdal | fix(default-layout): prevent crash on invalid schema | cef2300a6 |
Espen Hovlandsdal | fix(client): emit error if query is too large for listener (#2857) | 1af704910 |
Bjørge Næss | chore: add verify monorepo dependency script + run on postinstall | 5231c4049 |
Marius Lundgård | fix(desk-tool): attempt to find document type in template | 823030153 |
Espen Hovlandsdal | fix(desk-tool): documentListItem appearing as untitled inside regular list | cfc17f3a3 |
Bjørge Næss | chore(test-studio): add cases for documentListItem inside of list | f63d2e812 |
Mikolaj Dobrucki | fix(desk-tool): hide version dropdown on mobile | 12000a81d |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | refactor(workshop): improve logging of uncaught errors | c1276964a4 |
Marius Lundgård | refactor(default-layout): adjust UI of update dialog | 679b1c64be |
Marius Lundgård | test(desk-tool): improve split panes workshop | c80d3e8197 |
Marius Lundgård | refactor(desk-tool): make pane collapse/expand more intuitive | 23695615bd |
Marius Lundgård | fix(form-builder): support overflow in datepicker popover | e804788356 |
Published by ricokahler about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | feat(test-studio): test nested document lists | 6a3831be9 |
Marius Lundgård | fix(desk-tool): default to show icons | 647ce5fcd |
Bjørge Næss | fix(base): enable delete if current user has access to update draft and no published document exists | ecef92bce |
Bjørge Næss | fix(desk-tool): check for 'discardDraft' permission instead of 'delete' in the DiscardDraft document action | a6423ce05 |
Marius Lundgård | fix(structure): clone with schemaTypeName
|
b6dda97d9 |
Fred Carlsen | fix(vision): sync peer dependency with latest @sanity/base version |
554260b70 |
Rico Kahler | fix(default-layout): fix bug with spaces (#2835) | 31697bded |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
@sanity/default-layout
to Sanity UIThe navbar and all of its elements have been migrated with @sanity/ui
. The migration fixes a long-standing issue with responsiveness of the navbar, especially when it comes to the tool menu.
@sanity/desk-tool
to Sanity UIThe pane system has been rewritten from scratch, and the UI of Desk Tool is completely refactored to using @sanity/ui
.
Panes now support dynamic minimum and maximum widths, to provide a more responsive behavior.
.gitignore
sanity hook
commands updated to be forwards-compatible with upcoming webhook changesAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | ci(github): add experimental run for tests on windows | 181506b3df |
Espen Hovlandsdal | ci(github): improve workflow names | cd6f2c4691 |
Espen Hovlandsdal | test(form-builder): set timezone in cross-platform way | bb0b409d10 |
Espen Hovlandsdal | test(resolver): normalize paths before asserting | 907b6779ae |
Henrique Doro | fix(resolver): replace fs-extra w/ fs.promises | 3c35eb93be |
Henrique Doro | test(resolver): provide correct paths on Windows | 2720883c4e |
Espen Hovlandsdal | test(client): drop unnecessary environment variable | 86ca7f566e |
Espen Hovlandsdal | test(plugin-loader): use simple cross-platform css class name generation | 85746c77b1 |
Espen Hovlandsdal | ci(github): attempt using bash shell for cli build | a61d4e4bb3 |
Espen Hovlandsdal | chore(server): use monorepo aliases if applicable for all webpack configs | 3eb14bb378 |
Espen Hovlandsdal | ci(github): use node script for abstracting os-specifics | c2d98c0947 |
Espen Hovlandsdal | ci(github): handle async errors in cli test script | 307dea8f58 |
Espen Hovlandsdal | ci(github): spawn node instead of cli directly | f0a1f4baa9 |
Fred Carlsen | refactor(base): move logos to __legacy directory (#2793) | 6086e0e991 |
Marius Lundgård | build: update dependencies | 2f23060129 |
Marius Lundgård | refactor(workshop): improve workshop | 30d6aa73cf |
Per-Kristian Nordnes | refactor(base): export types as Type | 3454cc358b |
Per-Kristian Nordnes | refactor(form-builder): rename PTE css files to module.css | 4f13af19ea |
Per-Kristian Nordnes | refactor(form-builder): export type as Type | 9935f62ecd |
Per-Kristian Nordnes | test(form-builder): add workshop for the PTE | 68b972b706 |
Per-Kristian Nordnes | test(portable-text-editor): fix broken / commented out unit tests | 599a971785 |
Marius Lundgård | build(form-builder): add @sanity/ui-workshop as dependency |
28ef97fa5b |
Per-Kristian Nordnes | refactor(form-builder): remove unused props in PTE components | 0602203a9a |
hermanwikner | chore(default-layout): update dependencies | 975bb1e96f |
hermanwikner | refactor(default-layout): migrate SideMenu to @sanity/ui
|
c7b73f9d92 |
hermanwikner | refactor(default-layout): migrate DatasetSelect to @sanity/ui
|
41944695e3 |
hermanwikner | refactor(default-layout): migrate LoginStatus to @sanity/ui
|
45fa763898 |
hermanwikner | refactor(default-layout): migrate PresenceMenu + PresenceMenuItem to @sanity/ui
|
c282db166e |
hermanwikner | refactor(default-layout): migrate ToolMenu to @sanity/ui
|
3cd105ab0f |
hermanwikner | refactor(default-layout): migrate Navbar to @sanity/ui
|
5f1d3f5fec |
hermanwikner | refactor(default-layout): migrate DefaultLayout to @sanity/ui
|
aeabde48f9 |
hermanwikner | refactor(default-layout): migrate search to @sanity/ui
|
0423836820 |
hermanwikner | fix(default-layout): update file casing | 723cb78bfd |
hermanwikner | refactor(default-layout): migrate Sidecar to @sanity/ui
|
0e0be2955e |
hermanwikner | refactor(default-layout): migrate CreateDocumentDialog (previous name ActionDialog ) to @sanity/ui
|
a0541f7918 |
hermanwikner | refactor(default-layout): ui updates and code clean up in Navbar
|
23a2ec765e |
Marius Lundgård | fix(default-layout): add equality check to prevent render loop | ecc6409abf |
Marius Lundgård | fix(state-router): fix equality check | 9003d21864 |
hermanwikner | refactor(default-layout): add ToolCollapseMenu component with updated CollapseMenu + StatusButton
|
a9779713d2 |
hermanwikner | refactor(default-layout): migrate studioStatus to @sanity/ui
|
652f90be8d |
hermanwikner | refactor(default-layout): migrate SchemaErrors to @sanity/ui
|
25201260ac |
hermanwikner | refactor(default-layout): migrate InitialValueTemplateError to @sanity/ui
|
0c35486063 |
hermanwikner | refactor(default-layout): migrate NotFound to @sanity/ui
|
c9335c8c7f |
hermanwikner | refactor(default-layout): migrate RenderTool to @sanity/ui
|
f21df7a64a |
hermanwikner | test(default-layout): update navbar test |
68e675646c |
hermanwikner | fix(default-layout): update DefaultLayout import in Root
|
1ced488330 |
hermanwikner | refactor(default-layout): migrate ErrorScreen to @sanity/ui
|
5bd737c9b0 |
hermanwikner | fix(default-layout): update main exports and imports |
8d403a7d15 |
hermanwikner | fix(default-layout): update NotFound import in Root
|
bc7dfa5624 |
hermanwikner | refactor(default-layout): remove NavbarContainer
|
af6438b2e4 |
hermanwikner | refactor(default-layout): migrate Branding to @sanity/ui
|
f6f4f3f262 |
hermanwikner | fix(default-layout): Update LoginStatus and SideMenu casing |
e235fcb7de |
hermanwikner | fix(default-layout): update PresenceMenu and PresenceMenuItem casing |
dd5656a33a |
hermanwikner | feat(base): add CollapaseMenu component |
f9663265ac |
hermanwikner | fix(default-layout): remove CollapseMenu (moved to base/components ) |
67368ca267 |
hermanwikner | refactor(default-layout): improve ToolCollapseMenu
|
4fef99200c |
Marius Lundgård | refactor(default-layout): add part implementation for resolving tool menu | 86de17ea31 |
hermanwikner | chore(base): add "react-intersection-observer" dependency | 89602e9b58 |
hermanwikner | fix(default-layout): ui fixes and code clean up in search | 2aafe419b6 |
hermanwikner | refactor(default-layout): update DefaultLayout styles |
54c33ce85e |
hermanwikner | refactor(default-layout): refactor DataSelect to functional component |
27b3018eb8 |
hermanwikner | refactor(default-layout): ui updates in LoginStatus
|
604b7c5a88 |
hermanwikner | refactor(base): move CollapseMenuStory
|
5175fe586f |
Bjørge Næss | refactor(default-layout): clean up router typings | a40c2853e6 |
hermanwikner | refactor(default-layout): use useDefaultLayout hook |
9f5df36b4b |
hermanwikner | refactor(default-layout): presence ui updates | 6447a7efc2 |
hermanwikner | refactor(default-layout): ui fix and rename prop in Navbar
|
b361f9b39e |
hermanwikner | refactor(default-layout): ui updates in DefaultLayout
|
b5d9e5cc14 |
Marius Lundgård | build(default-layout): update dependency | 353241b85d |
Victoria Bergquist | refactor(desk-tool): migrate timeline menu to @sanity/ui and styled-components (#2714) |
38ad25cb08 |
Marius Lundgård | chore: fix typo | c22696fbcd |
Marius Lundgård | fix(imagetool): fix prop types | 664af874e6 |
Marius Lundgård | fix(base): improve memoization | ec9e94df45 |
Marius Lundgård | refactor(base): memoize margins
|
e4950581df |
Marius Lundgård | refactor(test-studio): improve DeveloperPreview
|
93bdc51efd |
Marius Lundgård | refactor(types): improve SanityDefaultPreview types |
5e93bbf845 |
Marius Lundgård | refactor(base): improve default z-offsets | a3d83b0dfa |
Marius Lundgård | refactor(base): adjust pane resizer z-offset | f3af0972df |
Marius Lundgård | refactor(base): improve preview | 9117d9cdc8 |
Marius Lundgård | test(base): improve change indicator workshop | 31be3d3e72 |
Marius Lundgård | refactor(base): improve presence components | 9465d904f1 |
Marius Lundgård | test(desk-tool): remove router mock | 086670f4a7 |
Marius Lundgård | build(desk-tool): update dependencies | ad02ff6530 |
Marius Lundgård | chore(desk-tool): add lint script |
dea9d21f12 |
Marius Lundgård | chore(desk-tool): add type definition for StructureBuilder
|
ee2806cba4 |
Marius Lundgård | feat(desk-tool): add settings hook for simpler usage | 4165ddd23c |
Marius Lundgård | refactor(desk-tool): add badge typings | 9aa7e96acc |
Marius Lundgård | refactor(desk-tool): improve document action types | 1326f03f04 |
Marius Lundgård | refactor(desk-tool): rename files | 46214306ae |
Marius Lundgård | chore(desk-tool): delete unused files | 60215aaf41 |
Marius Lundgård | refactor(desk-tool): improve components | e3d072d5c6 |
Marius Lundgård | refactor(desk-tool): improve DeskTool
|
8aa6f25cce |
Marius Lundgård | feat(desk-tool): add components/pane
|
1f4df8c5e2 |
Marius Lundgård | test(desk-tool): add pane workshop | 83151754ba |
Marius Lundgård | refactor(desk-tool): improve DeskToolPane
|
0eebb9952d |
Marius Lundgård | refactor(desk-tool): improve PaneRouterProvider
|
5449bdd918 |
Marius Lundgård | feat(desk-tool): add DeskToolProvider
|
1ba46f32d9 |
Marius Lundgård | refactor(desk-tool): use new pane components in DocumentPane
|
387f691f04 |
Marius Lundgård | refactor(desk-tool): use new pane components in DocumentsListPane
|
878c3efa41 |
Marius Lundgård | refactor(desk-tool): use new pane components in ErrorPane
|
13138703b0 |
Marius Lundgård | refactor(desk-tool): use new pane components in ListPane
|
7361b2468b |
Marius Lundgård | refactor(desk-tool): use new pane components in LoadingPane
|
53ef04fd13 |
Marius Lundgård | refactor(desk-tool): use new pane components in UnknownPane
|
ec5d2fd432 |
Marius Lundgård | refactor(desk-tool): use new pane components in UserComponentPane
|
3b7e79eff8 |
Marius Lundgård | test(default-layout): update e2e test | 20104e3289 |
Marius Lundgård | refactor(desk-tool): rename files according to convention | 4ef34764ff |
Marius Lundgård | chore(desk-tool): move part implementations to _parts
|
55e26e4bf3 |
Marius Lundgård | refactor(desk-tool): improve DocumentPane
|
4cb4cb47e6 |
Marius Lundgård | refactor(desk-tool): improve DocumentListPane
|
c009adba13 |
Marius Lundgård | refactor(desk-tool): improve ListPane
|
2823bf6e07 |
Marius Lundgård | refactor(desk-tool): improve LoadingPane
|
2d17611a3c |
Marius Lundgård | refactor(desk-tool): improve UserComponentPane
|
5bc066cd4c |
Marius Lundgård | chore(desk-tool): remove TS part reference | 8e926be60c |
Marius Lundgård | fix(state-router): fix return type | 5eaed3cc5f |
Marius Lundgård | fix(default-layout): fix media queries to size tool wrapper correctly | e550d69ce5 |
Marius Lundgård | fix(desk-tool): fix isDocumentWithType function |
75dc2814a6 |
Marius Lundgård | refactor(desk-tool): remove extra span in title | 18b517f25d |
Marius Lundgård | refactor(base): remove extra span in PreviewFields
|
bc4cf0b5ce |
Marius Lundgård | refactor(base): use data-testid
|
bb116e7ce5 |
Marius Lundgård | fix(desk-tool): increase z-offset of PaneHeader
|
d959eeb663 |
Marius Lundgård | refactor(desk-tool): add data-testid to portal element |
f388eeaeae |
Marius Lundgård | fix(form-builder): fix layering of scroll styles of portable text in fullscreen | c4a0eff8b3 |
Marius Lundgård | fix(desk-tool): revert patch channel memoization | 6a5854f662 |
Marius Lundgård | build: update dependencies | 4461ca25be |
RitaDias | refactor(popovers): migrate to @sanity/ui and replace icons (#2796) |
459ebf90ec |
hermanwikner | fix(default-layout): forward ref to StateLink in ToolCollapseMenu to enable keyboard navigation |
49602e04f2 |
Fred Carlsen | fix(base): make sure the old styles properly for previews still work (#2797) |
7efd12512e |
Fred Carlsen | fix(language-filter): fixes popover placement issue when language list is long (#2801) | b05491f4e1 |
Espen Hovlandsdal | fix(cli): include gitignore in bootstrapped studios | ff94fa648a |
Marius Lundgård | fix(base): make sure color theme is only modernized when using default theme | f99b12ebcc |
RitaDias | fix(desk-tool): fix line when withinSelection (#2809) | 1f76d386ad |
Rico Kahler | test: unify test config (#2803) | 1946edd176 |
Marius Lundgård | fix(base): re-export as type | 44dac10c68 |
Marius Lundgård | chore(field): remove unused import | 7dad5b9f87 |
Marius Lundgård | refactor(workshop): add overflow: hidden on body |
a7d158a8d0 |
Marius Lundgård | refactor(base): add missing argument type | 0f5a32e79c |
Marius Lundgård | feat(test-studio): add custom DebugPane for testing |
5fd4064229 |
Marius Lundgård | refactor(state-router): rename props interface | ef093df735 |
Marius Lundgård | test(desk-tool): improve pane workshop | 44dd9c5dd2 |
Marius Lundgård | refactor(desk-tool): increase hit area of pane title | dbce48c1b6 |
Marius Lundgård | fix(desk-tool): add key to action items | a6db238383 |
Marius Lundgård | fix(desk-tool): pass correct props to user component | abb39c3631 |
Marius Lundgård | chore(design-studio): test custom pane props | 92ce6ccc89 |
Marius Lundgård | fix(desk-tool): respect showAsAction in UserComponentPane
|
d10cfc1041 |
Marius Lundgård | refactor(default-layout): adjust error UI | 78f9286816 |
Marius Lundgård | refactor(desk-tool): improve pane router types | f20c7d78cd |
Marius Lundgård | refactor(test-studio): migrate array type search to @sanity/ui
|
7717fa4f39 |
Fred Carlsen | refactor(vision): complete the migration to Sanity UI (#2805) | f0f424a6ef |
Espen Hovlandsdal | chore(field): upgrade asset utils dependency | 84051402e6 |
Espen Hovlandsdal | fix(import): use json format for checking image assets | 3cd07ee3ac |
Espen Hovlandsdal | chore: build with node 12 as minimum requirement for import modules | 9493613e88 |
Sindre Gulseth | fix(cli): version SAML login under non-experimental version | 634cb729b9 |
Rico Kahler | test: desk tool coverage (#2808) | 6c731cbd2d |
RitaDias | fix(base): Add new prop called withtooltip & fix visual navigation in timeline (#2818) | 26ab7af4d0 |
Fred Carlsen | refactor(structure): replace icons with icons from @sanity/icons (#2812) |
15f4702f2b |
RitaDias | refactor(base): migrate change indicators to styled components (#2817) | 1219e69857 |
Fred Carlsen | fix(vision): empty previous result before listening | 17c100840a |
RitaDias | fix(form-builder): add fix for reference input when it's disabled (#2820) | f4f1166ef5 |
Marius Lundgård | fix(react-hooks): improve reset and memoization of useEditState
|
09c7e11263 |
Marius Lundgård | refactor(desk-tool): add DocumentPaneProvider
|
d53a233eec |
Marius Lundgård | refactor(default-layout): improve rendering performance | d6f3b1c7f8 |
Marius Lundgård | refactor(desk-tool): improve rendering performance | 3b4fe9629b |
Marius Lundgård | fix(desk-tool): keep local clicked state in PaneItem to avoid flash |
b89bd9dd24 |
Rico Kahler | test(desk-tool): check for scrollTo for jsdom env | da0099a545 |
Marius Lundgård | fix(desk-tool): fix TS errors after rebase | 670157d7a7 |
Marius Lundgård | fix(default-layout): improve search experience for keyboard users | f5b0ff204d |
Marius Lundgård | refactor(default-layout): use light navbar when searching in fullscreen | 855e80def1 |
Marius Lundgård | fix(base): set position: fixed on error overlay |
d9d63f4c9e |
Marius Lundgård | fix(default-layout): make tool fill height on narrow devices | aa6610c006 |
Marius Lundgård | refactor(desk-tool): move IntentResolver
|
d0efe272e5 |
Marius Lundgård | fix(desk-tool): fix hook dependencies in IntentResolver
|
1034c2821d |
Marius Lundgård | refactor(desk-tool): improve after peer review | 47cb392c50 |
Marius Lundgård | fix(default-login): fix react warnings | 9f492978fd |
Marius Lundgård | refactor(default-login): adjust UI | 2e69737883 |
Marius Lundgård | refactor(desk-tool): improve tooltips | ef057b4c3a |
Marius Lundgård | refactor(base): improve tooltip | da5a652580 |
Marius Lundgård | refactor(default-layout): improve tooltips | a1a3a51dd3 |
Marius Lundgård | refactor(desk-tool): remove DocumentHistoryContext
|
198048e1f9 |
Marius Lundgård | refactor(default-layout): lift tools to config |
1f1cc60037 |
Marius Lundgård | refactor(default-layout): improve route handling | 62c6ef0edc |
Marius Lundgård | refactor(default-layout): memoize CreateDocumentDialog
|
c3fa091497 |
Marius Lundgård | refactor(state-router): improve types | 9d2d85a6e3 |
Marius Lundgård | refactor(default-layout): remove unnecessary memoization | 05832e4a3a |
Marius Lundgård | refactor(default-layout): improve url state memoization | c28e06771f |
Marius Lundgård | refactor(desk-tool): remove unnecessary memoization | c8c1fc16cc |
Rico Kahler | perf(default-layout): prevent re-renders on route change (#2824) | 34e12e580e |
Marius Lundgård | test(form-builder): test readOnly property |
48a3190433 |
Victoria Bergquist | refactor(base): migrate missingProjectConfig to @sanity/ui (#2825) |
fd6a7c9bbe |
Per-Kristian Nordnes | refactor(form-builder): use editorId and readOnly as key for editable | 6cd185c38a |
Per-Kristian Nordnes | refactor(form-builder): memoize observable prohibiting re-render | 8e1319b4f1 |
Bjørge Næss | fix(base): fix issue that disallowed editing the draft of a document that has been published (#2827) | 911317398b |
Marius Lundgård | feat(design-studio): add logo | 7eca97a319 |
Marius Lundgård | fix(default-login): align logo in login dialog | 8a6da08512 |
Marius Lundgård | fix(default-layout): reset min-height of tools | c4d1c9808c |
Espen Hovlandsdal | chore(design-studio): add missing dependency | 60eb72a805 |
Fred Carlsen | refactor(dashboard): remove css parts from readme (#2823) | 2da89423c8 |
Espen Hovlandsdal | feat(core): add support for groq-powered webhooks (#2831) | a2d2bd020e |
Espen Hovlandsdal | test: provide mock for 'sanity:versions' part | 39f9b6d394 |
Espen Hovlandsdal | fix(client): correct typings for observable request method | 650bb0a4e2 |
Espen Hovlandsdal | feat(base): add useModuleStatus hook, deprecate VersionChecker | 760423ab41 |
Espen Hovlandsdal | feat(default-layout): replace VersionChecker with useModuleStatus hook | 08658ff0f9 |
Espen Hovlandsdal | fix(base): make coverage script use jest | 012e6eecfb |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
When declaring a custom structure for your desk tool navigation that includes document lists with custom filters, you can now specify which API version the filters use. This can be helpful for utilizing newer GROQ features such as geospatial queries, or in some cases for speeding up queries.
To use this feature, you can call the apiVersion()
method:
// Restaurants in Oslo!
S.documentList()
.title('Oslo restaurants')
.apiVersion('v2021-06-07')
.filter(`
_type == $type &&
geo::distance(
location, // Location field
geo::latLng($osloLat, $osloLng)
) < $threshold
`)
.params({
type: 'restaurant',
osloLat: 59.913,
osloLng: 10.7522,
threshold: 10000 // Meters
})
@sanity/ui
migrationsThe migration to our new UI framework continues, bringing improved visual consistency. In this release, the presence indicators and dashboard document previews are two of the pieces that is now fully migrated.
Author | Message | Commit |
---|---|---|
Marius Lundgård | build: remove unused dependency | 999452d73 |
Marius Lundgård | chore(workshop): improve client mock | 1b2634e3b |
Marius Lundgård | test(base): add UserAvatar workshop |
7ba459e37 |
Marius Lundgård | test(base): update UserAvatar workshop |
5c5395134 |
Marius Lundgård | chore: upgrade @sanity/ui-workshop
|
723b28111 |
Espen Hovlandsdal | chore: require node 12 (#2770) | bb5a73387 |
Marius Lundgård | chore(workshop): improve client mock | e78d9eaa1 |
Marius Lundgård | refactor(studio-hints): improve toggle button | 00f66654e |
Marius Lundgård | fix(imagetool): add guard | 6c4dc57fb |
Marius Lundgård | fix(base): export all names | e82d14f58 |
Marius Lundgård | feat(base): support shortcut property on legacy menu items |
d6cf8ebf4 |
Marius Lundgård | refactor(base): improve MenuItem typing |
511556b48 |
Marius Lundgård | chore(base): add release tag | e27777d9c |
Marius Lundgård | refactor(base): improve types of presence components | 84948a375 |
Marius Lundgård | test(base): add workshop for FormField
|
5b2754152 |
Marius Lundgård | refactor(base): improve types for legacy DefaultButton
|
a3bd5833d |
Marius Lundgård | fix(base): fix type export | d3e062ed2 |
Marius Lundgård | test(base): add workshop for change indicators | 3360520df |
Marius Lundgård | test(base): add workshop for preview components | 864b6fd72 |
Marius Lundgård | refactor(base): improve scroll container | f66238275 |
Marius Lundgård | fix(base): add reset css | 4775f240e |
Marius Lundgård | refactor(base): refresh unhandled error screen | d6889cd88 |
Marius Lundgård | refactor(base): use standard theme when possible | 96f245ad0 |
Marius Lundgård | refactor(base): remove unnecessary scheme property |
c6e5e9f49 |
Marius Lundgård | refactor(test-studio): prettify | 07d8417cd |
Marius Lundgård | chore(design-studio): improve preview configuration in schema | b81a674fd |
Marius Lundgård | chore(test-studio): host dev server on local network | a6ffe2caf |
Marius Lundgård | feat(design-studio): add document view with styled component | 2f3aba174 |
Marius Lundgård | feat(design-studio): add many tabs to test rendering | be38e535d |
Marius Lundgård | feat(design-studio): add iframe example | a93110232 |
Marius Lundgård | fix(react-hooks): set initial stream value | 09db72cbb |
Marius Lundgård | refactor(form-builder): improve types of FormBuilderInput | c31ec8a7e |
Marius Lundgård | refactor(form-builder): remove unused property in ReferenceInput
|
88ee0ee63 |
Marius Lundgård | refactor(form-builder): remove unused property in FileInput
|
f3d831955 |
Marius Lundgård | refactor(base): clean up change indicators | 362736920 |
Marius Lundgård | test(base): improve change connector workshop | d9b7f0f8a |
Fred Carlsen | refactor(cli): migrate BarcodeInput to Sanity UI/part-less setup (#2773) |
d24b6576e |
Fred Carlsen | refactor(dashboard): update DefaultPreview in ProjectUsers widget (#2785) |
93e13ed29 |
Marius Lundgård | refactor(state-router): move hooks to separate files and simplify | 1d8bee4a2 |
Marius Lundgård | refactor(state-router): improve hook dependencies | 73725d5f4 |
RitaDias | refactor(base): migrate Presence to @sanity/ui and styled components (#2772) |
6f10ed991 |
Espen Hovlandsdal | chore(base): remove unused preview component (#2786) | a6c3a5650 |
Espen Hovlandsdal | chore(structure): fix lint errors | c47b3c4ec |
Espen Hovlandsdal | feat(structure): specify tag for document type resolve query | 14cb2b973 |
Espen Hovlandsdal | feat(structure): use modern api version for document type lookup | e289c27b7 |
Espen Hovlandsdal | feat(base): allow specifying API version for listenQuery | 3f48c9963 |
Espen Hovlandsdal | feat(structure): add methods for setting/getting api version on document lists | 041a136b9 |
Espen Hovlandsdal | feat(desk-tool): pass on api version from structure in document lists | 27318a3ba |
Espen Hovlandsdal | feat(structure): use modern api version for document type lists | f42a4704f |
Marius Lundgård | build(ecommerce-studio): fix dependency version | 01defde9c |
Bjørge Næss | refactor(state-router): add exports directory | a92eac9e9 |
Bjørge Næss | refactor: replace router part import with package import | 86975d9e3 |
Fred Carlsen | refactor(code-input): migrate icon to @sanity/icons
|
5644bff56 |
Espen Hovlandsdal | chore(server): use forked webpack-dev-middleware (#2792) | b27c76b55 |
Rico Kahler | chore: global eslint jest config (#2787) | 3e4f2b96c |
Marius Lundgård | build(vision): update dependencies | 4a98e8cff |
Marius Lundgård | chore(base): remove dev comments | 2046c17a5 |
Marius Lundgård | fix(form-builder): enable scrolling in value preview box | 8c8dd3a65 |
Geoff Ball | fix(cli): correct double init in usage | 85b7dcab7 |
RitaDias | refactor(LoadError): replace all components with sanity/ui alternatives (#2791) | 2e029ba55 |
Fred Carlsen | refactor(cli): migrate schema icon to @sanity/icons (#2789) |
fdceaf674 |
Published by rexxars about 3 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Fred Carlsen | fix(base): fix image overflowing container in default preview | f9caf98ed |
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Marius Lundgård | chore(workshop): configure build on vercel | 96277c471 |
Marius Lundgård | chore(workshop): setup build step | e7c6cbae1 |
Bjørge Næss | fix(form-builder): don't unset empty objects if on root level (#2784) | ed4a0e457 |
Published by rexxars about 3 years ago
Upgrade Sanity Studio with:
sanity upgrade
sanity deploy
and sanity build
commands might crash after installing styled-components
dependency interactivelyAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | fix(core): return early on dependency installation in build/deploy | fd683277b |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
sanity start
commands might crash after installing styled-components
dependency interactivelyAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | fix(cli): compile with node 12 as minimum requirement | 4a7b63672 |
Espen Hovlandsdal | fix(core): re-run cli command on dependency install | 791f6ec7e |
Espen Hovlandsdal | fix(cli): check for node 12 or higher on start | 763d57aa6 |
Published by rexxars about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
styled-components
as first-level dependencyWe've been hard at work migrating the internals of Sanity Studio from CSS modules Sanity UI, which is based on styled-components.
Over the past releases, we've seen a few reported issues where multiple versions of the styled-components
dependency could end up in the same studio, causing issues that were hard to understand (sanity is undefined
) and would require a full dependency tree reinstall to resolve (rm -rf node_modules && sanity install
).
In this version, we're introducing styled-components
as a first-level dependency in the studio, in the same way that react
and react-dom
is.
The first time you run sanity start
, sanity build
or sanity upgrade
after the upgrade, you will be asked to install the dependency - and in non-interactive it will install automatically.
This migration should be seamless for most studios. We anticipate that in certain cases (custom monorepo setups, for instance) it might require manual changes, like adding styled-components
as a dependency of the studio.
For a more in-depth look at the rationale behind this change, see the pull request for this change.
The sanity documents query
CLI command now has a new flag: --api-version
.
This is useful for testing how queries behave in different API versions. For now, the command will still use v1
as the default.
Error
instance, which would crash the error boundaryAuthor | Message | Commit |
---|---|---|
Espen Hovlandsdal | chore(deps): move styled-component from deps to peerDeps | b2e0d92de |
Espen Hovlandsdal | chore(core): allow typescript in @sanity/core | 0450f0af3 |
Espen Hovlandsdal | chore(deps): upgrade fs-extra, semver dependencies | 73e46b3c3 |
Espen Hovlandsdal | feat(core): verify/prompt for styled-components dependency | 417c783d5 |
Espen Hovlandsdal | fix(cli): add styled-components as dependency for new studios | d06bbfe74 |
Espen Hovlandsdal | chore(examples): add styled-components to dependencies | da87a8791 |
Espen Hovlandsdal | chore(core): temporarily add inquirer as dev dependency | 9bda8b2dc |
Espen Hovlandsdal | fix(core): skip package-manager prompt if non-interactive | 8d9af8299 |
Espen Hovlandsdal | refactor(core): use semver.minVersion over custom function | 1728000aa |
Espen Hovlandsdal | chore(storybook): remove unmaintained storybook integration (#2750) | 85f1d4265 |
Espen Hovlandsdal | fix(core): allow studio manifest without name & version props | 8e6d73612 |
Dain Cilke | feat(default-login): add support for sso login providers | af9423ca4 |
RitaDias | refactor(base): move style folder to __legacy and update paths in sanity.json (#2745) | d837868e8 |
Marius Lundgård | build: update dependencies | 62d24172c |
Per-Kristian Nordnes | test(portable-text-editor): add real life collaboration tests | 9ae43a8a3 |
Per-Kristian Nordnes | refactor(portable-text-editor): memo editor instance spesific placeholder block | 25585b900 |
Per-Kristian Nordnes | refactor(portable-text-editor): rename prop | 97ba516d8 |
Per-Kristian Nordnes | fix(form-builder): update prop name changed in PTE | e415e0a74 |
Per-Kristian Nordnes | fix(portable-text-editor): remove uneccesary 'any' typing | a17d84e13 |
Per-Kristian Nordnes | fix(portable-text-editor): don't return empty diffmatch patch | 6531f15fa |
Per-Kristian Nordnes | refactor(portable-text-editor): remove uneccesary string usage | d66b7c261 |
Per-Kristian Nordnes | fix(portable-text-editor): previousChildren must be stored sperately for incoming patch adjustments | 53d5ff666 |
Per-Kristian Nordnes | fix(portable-text-editor): use < and not <= for determining correct offset | aab163dc7 |
Per-Kristian Nordnes | fix(portable-text-editor): fix incorrectness in line merging operation | 6a7a62554 |
Per-Kristian Nordnes | test(portable-text-editor): use revId to measure change propagation in the browsers | 983f6c1e9 |
Per-Kristian Nordnes | test(portable-text-editor): selection event delay must be much less | 09ecadcbc |
Per-Kristian Nordnes | test(portable-text-editor): refactor collab test to reliably wait for selection changes | 56cc8a447 |
Per-Kristian Nordnes | test(portable-text-editor): wait for exact selection where we can test for that | 8821c60dd |
Espen Hovlandsdal | chore(import-cli): upgrade meow dependency (#2755) | 03781c9f4 |
Marius Lundgård | build: update dependencies | c4b36532b |
Espen Hovlandsdal | fix(default-layout): handle render errors with no Error instance in boundary (#2754) | 22c123f7f |
Espen Hovlandsdal | fix(server): alias styled-components in webpack config (#2752) | 99a7dcfd9 |
Per-Kristian Nordnes | refactor(portabletext-editor): split util fn out in more spesific files | f124c6f19 |
Geoff Ball | docs(client): add detail to create drafts | aa964e7c4 |
Espen Hovlandsdal | feat(core): add --api-version flag for documents query command (#2759) | 955c70435 |
Espen Hovlandsdal | chore(components): remove deprecated @sanity/components module | ea460b7a0 |
Espen Hovlandsdal | fix(cli): drop @sanity/components from bootstrapped dependencies | e45afc470 |
Espen Hovlandsdal | refactor(plugin-loader): remove references to @sanity/components | e6781d1ce |
Espen Hovlandsdal | refactor(util): remove references to @sanity/components | a634a89ba |
Espen Hovlandsdal | refactor(base): migrate search utils to typescript | 0ff433071 |
Espen Hovlandsdal | refactor(base): use plain import for search utils instead of part | 819334c77 |
Espen Hovlandsdal | fix(types): experimental search paths are compiled to string arrays | be207010d |
Fred Carlsen | feat(base): new preview components using Sanity UI (#2749) | 369672890 |
Espen Hovlandsdal | refactor(base): import preview-resolver part from central location | 5791530f3 |
Espen Hovlandsdal | refactor(base): migrate asset url builder to typescript | b69ad4e19 |
Espen Hovlandsdal | refactor(base): drop usage of parts from default preview | e279bcf49 |
Espen Hovlandsdal | refactor(base): remove unused upload progress bar | 1974cea15 |
Bjørge Næss | refactor(base): rename css file | 9ba888ca5 |
Fred Carlsen | fix(base): fix usage of inset property (#2769) | 3448ee77c |
Dain Cilke | feat(cli): increase max dataset name length (#2768) | b1937c312 |
Published by bjoerge about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Rule.required()
.Author | Message | Commit |
---|---|---|
Fred Carlsen | refactor(language-filter): migrate to sanity ui and typescript (#2723) | 8c83e3dbf |
Bjørge Næss | chore(util): add support for package export entries | 286589c07 |
Per-Kristian Nordnes | feat(code-input): add java, go, xml, c#, tsx, ruby, yaml support to code input (#2676) | 9fa0cfcad |
Bjørge Næss | test(util): replace tap with jest | 76d354235 |
Bjørge Næss | test(resolver): replace mocha with jest | 04bb8f3a8 |
Bjørge Næss | test(mutator): replace tap with jest | d67cc7358 |
Bjørge Næss | test: consolidate jest configuration across packages | 00d6e35f3 |
Bjørge Næss | chore: hoist jest et al. to monorepo root and upgrade to latest | 8a6057f5f |
Bjørge Næss | test: update npm test script + workflow action | 4e6476095 |
Bjørge Næss | chore: use gulp for building cli + deps | a31072fee |
Bjørge Næss | chore: upgrade typescript-eslint plugin+parser | e7a83519b |
Bjørge Næss | chore: normalize dependencies | df416ff00 |
Bjørge Næss | test: make 'npm test' run all tests | afad30454 |
Per-Kristian Nordnes | fix(portable-text-editor): fix re-render regression from v2.16.0 | 0a58ed6e1 |
Espen Hovlandsdal | chore: upgrade image-url library (#2729) | 02895c849 |
Rico Kahler | chore: upgrade terser (#2731) | d2ec9607d |
Marius Lundgård | test(depcheck): ignore @types/webpack-env
|
2a5746998 |
Marius Lundgård | refactor(test-studio): improve author preview | 0c4c234f3 |
Marius Lundgård | refactor(dev): restructure design-studio | 4c3fb65a0 |
Marius Lundgård | build(workshop): add @sanity/types dependency |
f7a0c2a3a |
Marius Lundgård | build(workshop): add chalk dependency |
10a688c5c |
Marius Lundgård | refactor(workshop): improve collection names | eecb81ba8 |
Marius Lundgård | fix(workshop): fix aliases | be2942d4e |
Marius Lundgård | refactor(workshop): pretty print part console messages | 3df7ce132 |
Marius Lundgård | refactor(workshop): improve workshop | 7ed8b65ee |
Marius Lundgård | refactor(design-studio): add list pane example with menu items | 93af7db3d |
Marius Lundgård | feat(types): add collate type |
5bc05a16d |
Marius Lundgård | fix(types): add missing typing for PreviewFields
|
4c2169e71 |
Marius Lundgård | refactor(studio-hints): adjust ui | 683ba7653 |
Marius Lundgård | refactor(schema): improve types | c16a990b9 |
Marius Lundgård | fix(state-router): fix TS errors | 13824618b |
Marius Lundgård | refactor(state-router): improve types | 7e9783385 |
Rico Kahler | build: run build before publish-tag (#2737) | 458b3c545 |
Rico Kahler | build: ignore test files in src folder | 8fc50c546 |
Rico Kahler | fix(validation): run nested validation in nested fields if required | 41e516da1 |
Rico Kahler | fix(validation): remove throw for undefined parent w/ valueOfField | cbcbcfe8a |
Rico Kahler | refactor(validation): unify code paths | 8dbba8fb2 |
Rico Kahler | fix(form-builder): unset objects and arrays if empty | 86397075c |
Marius Lundgård | feat(design-studio): add custom pane example | 28565f93f |
Espen Hovlandsdal | fix: use correct width/height for preview images, scale by dpr (#2728) | 4de82b34c |
Espen Hovlandsdal | chore(generate-help-url): add typings for module | a2ce8c7b5 |
Rico Kahler | chore: fix gulpfile test file ignore pattern | 7454021a3 |
Rico Kahler | chore: prefer @typescript-eslint/no-unused-vars in ts files | f33df776b |
Rico Kahler | chore: update test match patterns | f332f2a4c |
Rico Kahler | chore: add @deprecated tsdoc for better DX | dc7b6432c |
Rico Kahler | refactor(validation): hoist validation to BaseSchemaType | 1cc45484c |
Rico Kahler | fix(validation): pass path and parent correctly to validateItem | ac546ec16 |
Victoria Bergquist | refactor(base): create new validationList components and migrate to @sanity/ui (#2610) | 1d9054e0d |
Published by skogsmaskin about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
If you add schema fields and run sanity graphql deploy
you will no longer be warned about “dangerous changes.” Previously we followed the behavior of graphql.js, which treats added fields as “dangerous.” We have had a lot of feedback that in practice, this has been more bothersome than useful.
Author | Message | Commit |
---|---|---|
Bjørge Næss | chore(schema): warn if inputComponent is set on type but doesn't look like a react component | 2fa301f50 |
Bjørge Næss | refactor(state-router): use vite as demo server | faa3437b5 |
Bjørge Næss | refactor(state-router): refactor Link, IntentLink and StateLink to functional/forwardRef components | b588ae953 |
Bjørge Næss | chore(state-router): cleanup wonky typings in withRouter HOC | ac8d1fe4e |
Bjørge Næss | refactor(base): export IntentLink directly from @sanity/state-router | 1567225e8 |
RitaDias | refactor(imagetool): use styled-components instead of css modules (#2695) | b1d34659e |
Marius Lundgård | build: update @sanity/ui
|
ad30a7ca7 |
Marius Lundgård | fix(form-builder): add minor ui adjustments to ActivateOnFocus
|
f7e694327 |
Bjørge Næss | chore: fix bad npmignore pattern | 4dfb7b804 |
Bjørge Næss | chore(schema): add support for package export entries | ee86865a0 |
Bjørge Næss | refactor(base): import from @sanity/schema's internal package exports instead of lib | 9da0aa8ef |
Marius Lundgård | fix(form-builder): pass inputId to FormField
|
08e81c938 |
Marius Lundgård | build: depend on locked versions of monorepo dependencies | 7422350ad |
Bjørge Næss | chore: use correct webpack alias for schema | 0a470583f |
Per-Kristian Nordnes | fix(portable-text-editor): fix bug in value conversion | f512a73e8 |
RitaDias | refactor(form-builder): remove old ActivateOnFocus usage (#2708) | 7d51d52e8 |
RitaDias | fix(activateonfocus): Fix ActivateOnFocus overlay when used with change indicator (#2721) | 7a6ba05c6 |
Espen Hovlandsdal | feat(core): GraphQL: treat added optional input fields as non-dangerous | d59dc0ce1 |
Rico Kahler | chore: upgrade lerna | c02198e74 |
hermanwikner | fix(default-login): remove temporary fix to hide the close button in dialogs | f23aa0fcb |
Published by ricokahler about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Rico Kahler | fix(validation): resolve array items without _type (#2715) | 4bd808273 |
Rico Kahler | fix(validation): fix and clarify item-level paths | 7c40692c7 |
Rico Kahler | test(validation): add failing slug test; configure jest | 9522cc932 |
Rico Kahler | chore: upgrade to typescript 4.4 | 711e698be |
Published by bjoerge about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
A lot of you have been waiting for this for a while: A way to show and hide fields based on the value of some other field. The wait is over! In this release of the Sanity Studio the hidden field has been upgraded to take a callback function.
export default {
type: 'object',
name: 'dropdownExample',
fields: [
{
name: 'kind',
type: 'string',
options: {list: ['foo', 'bar', 'baz']},
},
{
name: 'fooOptions',
type: 'object',
hidden: ({parent}) => !(parent?.kind === 'foo'),
fields: [/* ... */],
},
{
name: 'barOptions',
type: 'number',
hidden: ({parent}) => !(parent?.kind === 'bar'),
fields: [/* ... */],
},
],
}
Get more code examples and read more about the nitty gritty details in our docs.
Author | Message | Commit |
---|---|---|
Marius Lundgård | chore(dev): introduce UI workshop (#2692) | 2467b69880 |
Fred Carlsen | fix(form-builder): fix default asset source for file input (#2702) | 4ab43c0cd6 |
Bjørge Næss | chore: fix eslint errors | 8d8d8740a0 |
Bjørge Næss | fix(form-builder): improve typings of the withDocument HOC | 319597014c |
Bjørge Næss | feat(test-studio): add example schemas for hidden callback | 126d36489e |
Bjørge Næss | fix(form-builder): require hidden on field type to be a boolean | 29228f4683 |
Bjørge Næss | feat(types): add typings for hidden callback | c889d7b8b7 |
Bjørge Næss | feat(form-builder): support callback for hidden option on object field types | 1bc019bfc3 |
Bjørge Næss | fix(form-builder): warn if hidden predicate returns a promise | e2f5ae36fa |
Bjørge Næss | refactor(form-builder): rewrite to ConditionalField to functional component | 636e187505 |
Bjørge Næss | fix(form-builder): wrap hidden callback in try/catch and console log error | aec1afe0b5 |
Bjørge Næss | fix(form-builder): import HiddenOption directly from @sanity/types | 659b6957e0 |
Bjørge Næss | fix(types): remove hidden option from BaseSchemaType and support callback on ObjectField type | f8e995422f |
Bjørge Næss | fix(field): hide diff for fields that are always hidden | 947d224aa4 |
Bjørge Næss | fix(types): only allow hidden property on object field types | 3cc4ae7d6f |
Bjørge Næss | refactor(types): move User and CurrentUser interfaces to @sanity/types | 940de8235d |
Bjørge Næss | feat(form-builder): pass current user as context to hidden callback | 3644076235 |
Bjørge Næss | refactor(form-builder): refactor file + imageinput to fix typing issue | 5a17a51495 |
Bjørge Næss | fix(form-builder): get around forwardRef warning | eec7dbcd1c |
Bjørge Næss | feat(form-builder) support conditional fields on image and file types | 69b9f6be18 |
Per-Kristian Nordnes | chore(portable-text-editor): upgrade @sanity/slate-react | a520ab519 |
Published by rexxars about 3 years ago
Upgrade Sanity Studio with:
sanity upgrade
Author | Message | Commit |
---|---|---|
Espen Hovlandsdal | fix(form-builder): use newer api version for reference search | acf02d347 |
Published by ricokahler about 3 years ago
Upgrade the Command Line Interface (CLI) with:
npm install --global @sanity/cli
Upgrade Sanity Studio with:
sanity upgrade
This feature aligns the File field with the Image field by adding asset source support — allowing you to select existing assets in addition to uploading directly.
Adding custom asset sources for the File field follows the same pattern as the Image field, by adding a new part:
{
"implements": "part:@sanity/form-builder/input/file/asset-sources",
"path": "./parts/assetSources.js"
}
@sanity/desk-tool/structure-builder
(#2687)Author | Message | Commit |
---|---|---|
Magnus Holm | feat(client): support proxy in config + options (#2661) |
fbda7beea |
Magnus Holm | fix(base): remove duplicate parts definition (#2642) | 875103c12 |
Magnus Holm | fix(cli): determine correct base path for sanity exec (#2641) |
1a53440a7 |
Bjørge Næss | chore(default-layout): add missing project references | 96a629164 |
Petter | feat(google-maps-input): add defaultLocale config option (#2663) |
89220461d |
Marius Lundgård | docs(cypress): update readme | 2abfa6531 |
Bjørge Næss | chore(test-studio): add project reference to desk-tool | 98940d9da |
Bjørge Næss | chore(base): remove redundant typesVersion config | 2f097ea55 |
Bjørge Næss | refactor(desk-tool): add package exports directory and add proper type exports (#2687) | 11b7fac11 |
Per-Kristian Nordnes | chore(portable-text-editor): add portable-text-editor from external repo. | 1afe41613 |
Bjørge Næss | refactor(portable-text-editor): replace next with vite in dev server | 8e1af5870 |
Per-Kristian Nordnes | refactor(portable-text-editor): refactor demo app with Sanity UI | 69d356270 |
Per-Kristian Nordnes | chore(portable-text-editor): adapt package files to monorepo settings | 81ac5edae |
Per-Kristian Nordnes | chore: upgrade is-hotkey patch version | 2a2e0ee3d |
Fred Carlsen | feat(form-builder): Add asset source support and file select to file input (#2678) | 0ac5da724 |
Henrique Doro | docs(code-input): clarify languageAlternatives , theme (#1953) |
448aabb81 |
Espen Hovlandsdal | feat(search): apply pt::text() when searching portable text fields (#2679) | 7f422155d |
Rico Kahler | refactor(validation): convert @sanity/validation to TypeScript (#2691) | 9abfef244 |
RitaDias | refactor(ActivateOnFocus) remake ActivateOnFocus to use sanity ui (#2693) | ad928c778 |
Espen Hovlandsdal | refactor(portable-text-editor): use type assignment over import assignment | f85226637 |
Espen Hovlandsdal | fix(portable-text-editor): add npmignore | 6cfbe5c85 |