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

chore(lockfile): update dependency react-focus-lock to v2.12.1 #6471

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 23, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-focus-lock 2.11.3 -> 2.12.1 age adoption passing confidence

Release Notes

theKashey/react-focus-lock (react-focus-lock)

v2.12.1

Compare Source

v2.12.0: ESM compatible

Compare Source

Features


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@renovate renovate bot requested a review from a team as a code owner April 23, 2024 20:03
@renovate renovate bot requested review from juice49 and removed request for a team April 23, 2024 20:03
Copy link

vercel bot commented Apr 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Apr 24, 2024 4:57pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2024 4:57pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Apr 24, 2024 4:57pm

Copy link

socket-security bot commented Apr 23, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/core@7.24.4 environment, filesystem, unsafe +24 6.45 MB nicolo-ribaudo
npm/@babel/generator@7.24.4 None +5 861 kB nicolo-ribaudo
npm/@babel/plugin-proposal-class-properties@7.18.6 Transitive: environment +17 2.67 MB nicolo-ribaudo
npm/@babel/preset-env@7.24.4 environment, filesystem Transitive: unsafe +106 6.99 MB nicolo-ribaudo
npm/@babel/preset-react@7.24.1 None +9 211 kB nicolo-ribaudo
npm/@babel/preset-typescript@7.24.1 Transitive: environment +25 3.13 MB nicolo-ribaudo
npm/@babel/register@7.23.7 environment, filesystem, unsafe 0 62 kB nicolo-ribaudo
npm/@babel/traverse@7.24.1 Transitive: environment +11 2.74 MB nicolo-ribaudo
npm/@bjoerge/mutiny@0.5.3 None 0 1.62 MB bjoerge
npm/@codemirror/autocomplete@6.16.0 None +1 479 kB marijn
npm/@codemirror/commands@6.5.0 None +1 461 kB marijn
npm/@codemirror/lang-javascript@6.2.2 Transitive: environment +4 859 kB marijn
npm/@codemirror/language@6.10.1 Transitive: environment +2 707 kB marijn
npm/@codemirror/search@6.5.6 None 0 132 kB marijn
npm/@codemirror/state@6.4.1 None 0 436 kB marijn
npm/@codemirror/view@6.26.3 None 0 1.1 MB marijn
npm/@dnd-kit/core@6.1.0 environment +1 1.07 MB clauderic
npm/@dnd-kit/modifiers@6.0.1 environment 0 47.6 kB clauderic
npm/@dnd-kit/sortable@7.0.2 environment 0 232 kB clauderic
npm/@dnd-kit/utilities@3.2.2 environment 0 88.5 kB clauderic
npm/@jest/expect@29.7.0 None 0 5.23 kB simenb
npm/@jest/globals@29.7.0 Transitive: eval +10 666 kB simenb
npm/@lezer/highlight@1.2.0 None +1 336 kB marijn
npm/@node-ipc/compat@9.2.5 filesystem, network +1 140 kB aarondewes
npm/@playwright/experimental-ct-react@1.41.2 Transitive: environment +1 76 kB yurys
npm/@playwright/test@1.41.2 None 0 25.3 kB yurys
npm/@portabletext/react@3.0.18 None +1 170 kB sanity-io
npm/@portabletext/toolkit@2.0.15 None +1 169 kB sanity-io
npm/@react-three/cannon@6.6.0 Transitive: unsafe +3 5.02 MB isaacmason
npm/@react-three/fiber@8.16.1 environment +5 860 kB codyjasonbennett
npm/@rexxars/gitconfiglocal@3.0.1 environment, filesystem 0 4.52 kB rexxars
npm/@rexxars/react-json-inspector@8.0.1 None 0 25.5 kB rexxars
npm/@rexxars/react-split-pane@0.1.93 None 0 56 kB rexxars
npm/@rollup/plugin-node-resolve@15.2.3 filesystem +3 200 kB shellscape
npm/@sanity/asset-utils@1.3.0 environment 0 363 kB rexxars
npm/@sanity/assist@3.0.3 network +2 4.69 MB sanity-io
npm/@sanity/bifur-client@0.3.1 None 0 59.7 kB bjoerge
npm/@sanity/block-tools@3.39.0 None 0 519 kB ricokahler
npm/@sanity/cli@3.39.0 environment, filesystem 0 24.3 MB ricokahler
npm/@sanity/client@6.15.20 None 0 2.13 MB sanity-io
npm/@sanity/codegen@3.39.0 None 0 263 kB ricokahler
npm/@sanity/color@3.0.6 None 0 171 kB sanity-io
npm/@sanity/diff-match-patch@3.1.1 None 0 533 kB sanity-io
npm/@sanity/diff@3.39.0 None 0 283 kB ricokahler
npm/@sanity/eslint-config-i18n@1.0.0 None +2 280 kB ricokahler
npm/@sanity/eslint-config-studio@4.0.0 Transitive: unsafe +3 394 kB sanity-io
npm/@sanity/eventsource@5.0.2 None +2 20.3 kB sanity-io
npm/@sanity/export@3.37.4 filesystem +2 606 kB ricokahler
npm/@sanity/generate-help-url@3.0.0 None 0 5.25 kB rexxars
npm/@sanity/google-maps-input@4.0.1 None +2 2.9 MB sanity-io
npm/@sanity/icons@2.11.8 None 0 1.27 MB sanity-io
npm/@sanity/image-url@1.0.2 None 0 166 kB rexxars
npm/@sanity/import@3.37.3 filesystem, network +1 922 kB rexxars
npm/@sanity/locale-ko-kr@1.1.4 None 0 1.03 MB sanity-io
npm/@sanity/locale-nb-no@1.1.7 None 0 950 kB sanity-io
npm/@sanity/locale-nn-no@1.1.6 None 0 951 kB sanity-io
npm/@sanity/locale-pt-pt@1.1.3 None 0 972 kB sanity-io
npm/@sanity/locale-sv-se@1.2.4 None 0 957 kB sanity-io
npm/@sanity/logos@2.1.10 None 0 62 kB sanity-io
npm/@sanity/migrate@3.39.0 network 0 6.32 MB ricokahler
npm/@sanity/mutator@3.39.0 None 0 864 kB ricokahler
npm/@sanity/portable-text-editor@3.39.0 environment 0 2.84 MB ricokahler
npm/@sanity/presentation@1.11.4 None +1 1.16 MB sanity-io
npm/@sanity/presentation@1.12.7 None +1 1.16 MB sanity-io
npm/@sanity/prettier-config@1.0.2 None 0 8.4 kB sanity-io
npm/@sanity/preview-url-secret@1.6.11 None 0 115 kB sanity-io
npm/@sanity/react-loader@1.9.14 Transitive: environment +1 1.35 MB sanity-io
npm/@sanity/schema@3.39.0 None 0 1.12 MB ricokahler
npm/@sanity/telemetry@0.7.7 None 0 116 kB bjoerge
npm/@sanity/test@0.0.1-alpha.1 environment 0 73 kB sanity-io
npm/@sanity/tsdoc@1.0.39 filesystem Transitive: environment, eval, shell, unsafe +28 18.9 MB sanity-io
npm/@sanity/types@3.39.0 None 0 403 kB ricokahler
npm/@sanity/ui-workshop@1.2.11 environment +1 3.53 MB sanity-io
npm/@sanity/ui@2.1.4 None +4 4.94 MB sanity-io
npm/@sanity/util@3.39.0 None 0 176 kB ricokahler
npm/@sanity/uuid@3.0.2 None +1 10.1 kB rexxars
npm/@sanity/vision@3.39.0 None 0 564 kB ricokahler
npm/@sanity/visual-editing@1.8.15 environment 0 4 MB sanity-io
npm/@tanstack/react-virtual@3.0.0-beta.54 Transitive: environment +1 600 kB tannerlinsley
npm/@testing-library/jest-dom@6.4.2 None +5 950 kB testing-library-bot
npm/@testing-library/react@13.4.0 environment +9 7.52 MB testing-library-bot
npm/@testing-library/user-event@13.5.0 Transitive: environment +9 3.18 MB testing-library-bot
npm/@turf/helpers@6.5.0 None 0 93.6 kB rowanwins
npm/@turf/points-within-polygon@5.1.5 None +4 372 kB deniscarriere
npm/@types/archiver@6.0.2 None +1 15.1 kB types
npm/@types/arrify@1.0.4 None 0 5.13 kB types
npm/@types/arrify@2.0.1 None 0 1.72 kB types
npm/@types/babel__core@7.20.5 None +2 1.92 MB types
npm/@types/babel__generator@7.6.8 None 0 11.4 kB types
npm/@types/babel__register@7.17.3 None 0 3.88 kB types
npm/@types/babel__traverse@7.20.5 None 0 84.1 kB types
npm/@types/configstore@5.0.1 None 0 6 kB types
npm/@types/connect-history-api-fallback@1.5.4 None +5 76.4 kB types
npm/@types/cpx@1.5.5 None 0 5.66 kB types
npm/@types/debug@4.1.12 None +1 9.65 kB types
npm/@types/decompress@4.2.7 None 0 4.81 kB types
npm/@types/express-ws@3.0.4 None +5 77 kB types
npm/@types/express@4.17.21 None +9 107 kB types
npm/@types/glob@7.2.0 None +1 19.1 kB types
npm/@types/inquirer@6.5.0 None +1 73.4 kB types
npm/@types/jsdom@20.0.1 None +1 35.8 kB types
npm/@types/lodash@4.17.0 None 0 862 kB types
npm/@types/log-symbols@2.0.0 None 0 2.7 kB types
npm/@types/moment@2.13.0 None 0 508 B types
npm/@types/node-ipc@9.2.3 None 0 20.6 kB types
npm/@types/node@18.19.31 None 0 1.97 MB types
npm/@types/object-inspect@1.13.0 None 0 6.05 kB types
npm/@types/raf@3.4.3 None 0 2.85 kB types
npm/@types/react-copy-to-clipboard@5.0.7 None 0 4.36 kB types
npm/@types/react-dom@18.2.25 None 0 34.9 kB types
npm/@types/react-is@18.2.4 None 0 5.67 kB types
npm/@types/react@18.2.78 None +1 440 kB types
npm/@types/refractor@3.4.1 None +1 47 kB types
npm/@types/resolve-from@4.0.0 None 0 3.04 kB types
npm/@types/rimraf@3.0.2 None 0 7.5 kB types
npm/@types/semver-compare@1.0.3 None 0 2.97 kB types
npm/@types/semver@6.2.7 None 0 13.5 kB types
npm/@types/shallow-equals@1.0.3 None 0 2.86 kB types
npm/@types/speakingurl@13.0.6 None 0 3.96 kB types
npm/@types/tar-fs@2.0.4 None 0 5.96 kB types
npm/@types/tar-stream@3.1.3 None 0 7.85 kB types
npm/@types/tar@6.1.12 None 0 30.2 kB types
npm/@types/three@0.150.2 None +2 926 kB types
npm/@types/use-sync-external-store@0.0.6 None 0 3.29 kB types
npm/@types/validate-npm-package-name@3.0.3 None 0 5.2 kB types
npm/@types/which@2.0.2 None 0 6.06 kB types
npm/@types/ws@8.5.10 None 0 21.7 kB types
npm/@types/yargs@17.0.32 None +1 68.8 kB types
npm/@typescript-eslint/eslint-plugin@7.6.0 None +9 5.32 MB jameshenry
npm/@typescript-eslint/parser@7.6.0 None +4 1.37 MB jameshenry
npm/@uiw/react-codemirror@4.21.25 None +4 1.16 MB wcjiang
npm/@vercel/frameworks@1.6.0 filesystem Transitive: eval +1 312 kB vercel-release-bot
npm/@vercel/fs-detectors@4.1.3 environment, filesystem, shell +2 277 kB vercel-release-bot
npm/@vercel/stega@0.1.0 None 0 25.4 kB vercel-release-bot
npm/@vitejs/plugin-react@4.2.1 None +3 64.1 kB vitebot
npm/@vvo/tzdb@6.131.0 None 0 175 kB vvo
npm/archiver@7.0.1 filesystem +3 880 kB ctalkington
npm/async-mutex@0.4.1 None 0 54.7 kB dirtyhairy
npm/groq@3.39.0 None 0 8.84 kB ricokahler
npm/sanity@3.39.0 None 0 36.2 MB ricokahler

🚮 Removed packages: npm/connect-history-api-fallback@1.6.0, npm/glob@7.2.3, npm/import-fresh@3.3.0, npm/is-installed-globally@0.4.0, npm/js-yaml@4.1.0, npm/json5@2.2.3, npm/lodash@4.17.21, npm/minimist@1.2.8, npm/object-inspect@1.13.1, npm/p-filter@2.1.0, npm/pkg-dir@5.0.0, npm/pretty-ms@7.0.1, npm/react-is@18.2.0, npm/read-pkg-up@7.0.1, npm/refractor@3.6.0, npm/resolve-from@5.0.0, npm/rimraf@3.0.2, npm/semver@7.6.0, npm/turbo@1.13.2, npm/which@2.0.2

View full report↗︎

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Apr 23, 2024

Component Testing Report Updated Apr 24, 2024 4:59 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 35s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 27s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 13s 4 2 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 13s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 36s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 3s 13 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 5s 18 0 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 20s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 22s 9 0 0

@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from 7388012 to 332f61a Compare April 23, 2024 20:17
@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from 332f61a to 6855198 Compare April 24, 2024 08:14
@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from 6855198 to f3e607c Compare April 24, 2024 09:33
@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from f3e607c to dd8897b Compare April 24, 2024 09:59
@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from dd8897b to ed67b36 Compare April 24, 2024 12:39
@renovate renovate bot force-pushed the renovate/react-focus-lock-2.x-lockfile branch from ed67b36 to c5adda8 Compare April 24, 2024 12:53
Copy link

socket-security bot commented Apr 24, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@stipsan stipsan added this pull request to the merge queue Apr 24, 2024
Merged via the queue into next with commit 0400af7 Apr 24, 2024
36 of 37 checks passed
@stipsan stipsan deleted the renovate/react-focus-lock-2.x-lockfile branch April 24, 2024 22:27
rexxars pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jordanl17 pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
jordanl17 pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
github-merge-queue bot added a commit that referenced this pull request Apr 29, 2024
* fix: statusButton requires provided aria-label

* fix: commenting on the new translation mapping added

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(cli): mock matchMedia window function (#6472)

* chore: add perf runner to workspace (#6427)

* fix(typegen): fixes a bug where we imported the wrong relative path (#6457)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(typegen): also search for queries in app and sanity folders (#6475)

* feat(typegen): also search for queries in app and sanity folders

* feat(typegen): format generated types with prettier

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.15 (#6465)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency date-fns-tz to v2.0.1 (#6467)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @types/react-is to v18.3.0 (#6491)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* fix(test): remove hydrateroot warning test (#6494)

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* feat: set print width to 40 (#6068)

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency turbo to ^1.13.3 (#6497)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(cli): remove comments from moviedb template, hide location field (#6488)

* fix(search): revert to old search API for now (#6503)

* v3.39.1

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add perf runner to workspace (#6427)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.16 (#6500)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.10 (#6501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(core): implement presence cursors (#6081)

* feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): add tests for range decorations rendering

* fixup! feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): improve some minor test things

* fix(core): update z-index on PTE activate overlay

* feat(core): extend presence data model with `selection`

* feat(structure): include `selection` in presence data

* feat(core): implement presence cursors in PTE

* test(core): add presence cursor workshop story

* refactor(core): use `getTheme_v2` to access theme values

* fix(core): introduce `OnPathFocusPayload` to improve typing

* fix(form/inputs): perf optimization for PT-input decorators

* refactor(form/inputs): also display user presence when user is selecting a range, but only the focus point of it

* fix(core): render presence cursors inline instead of in a portal

* fix(core): broken workshop story

* feat(core): reset presence selection on blur in PTE

* fix(structure): add accidentially removed setFocusPath (DocumentPaneProvider)

This seems to have been lost in a rebase.

* fix(core): use `useFormFieldPresence` in `usePresenceCursorDecorations`

* fix(core): set `focusPath` when receiving a mutation event if there are pending patches

* fix(form/inputs): break don't return

* fix(form/inputs): remove ref that should not be set here

This ref is supposed to be set elsewhere (on the PTE Editable component)
See eca960e

* fix(form/inputs): sort hook deps list

* fix(form/inputs): reconcile presence decorations for PT-Input

Make sure these objects stays as stable as possible in order to not
redraw any range decorations unnecessary.

* fix(form/inputs): return early if focusPath is already selected in PT-Input

* refactor(form/inputs): throttle reporting of focusPath and presence updates for PT-input

* fix(core): import of `FormNodePresence`

* fix(form/inputs): remove lastActive as dep for PT-presence range decorations uniqueness

We are not using this value anyway, and it complicates the reconciliation of the presence decorators

* test(core): add presence cursor workshop story

* fix(core): remove unnecessary z-index in PTE activate overlay

* fix(core): prevent presence cursor user name from being selected

* fix(form/inputs): fix issue where perf opt on focusPath tracking broke tests

This perf opt. broke some tests. It's not clear if it is a problem with the test
or the func. so restoring the old behaviour for now.

* test(core): update snapshots in `Studio.test`

* refactor(core): move presence decorations according to user edits

Use a own state for this.

* refactor(core/form): remove complexity from PortableTextInput

Handle debouncing in the DocumentProvider instead. Setting focusPath must be synchronous

* refactor(structure): announce presence throttled

When we introduced presence in the PortableTextInput, we risk calling the presence updates very often.
There should be no reason for not doing this throttled, as long as we have leading true.

* refactor(core): clean up presence cursors code + add comments

---------

Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>

* fix(deps): Update react monorepo (#6502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lint): add certain unicorn eslint rules (#6352)

* chore(lint): add certain unicorn eslint rules

* chore: fix lint errors

* test: increase timeout for cross-dataset reference test

* chore: fix incorrect path used in workshop story

* chore(deps): dedupe pnpm-lock.yaml (#6506)

Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>

* fix(structure): uncaught error while swapping images in array in PTE (#6399)

* chore(test-studio): add schema for fix

* fix(structure): console error for when selection is zero

* chore(test-studio): update test schema

* chore(core): remove try catch

* test(pte): add test for usecase

* chore(sanity): remove ? since it will always be defined

Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>

* chore(test): fix test file to have .spec.

---------

Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>

* chore(deps): update dependency @types/react to v18.3.1 (#6507)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* v3.39.1

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add perf runner to workspace (#6427)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.15 (#6465)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.16 (#6500)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.10 (#6501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(core): implement presence cursors (#6081)

* feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): add tests for range decorations rendering

* fixup! feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): improve some minor test things

* fix(core): update z-index on PTE activate overlay

* feat(core): extend presence data model with `selection`

* feat(structure): include `selection` in presence data

* feat(core): implement presence cursors in PTE

* test(core): add presence cursor workshop story

* refactor(core): use `getTheme_v2` to access theme values

* fix(core): introduce `OnPathFocusPayload` to improve typing

* fix(form/inputs): perf optimization for PT-input decorators

* refactor(form/inputs): also display user presence when user is selecting a range, but only the focus point of it

* fix(core): render presence cursors inline instead of in a portal

* fix(core): broken workshop story

* feat(core): reset presence selection on blur in PTE

* fix(structure): add accidentially removed setFocusPath (DocumentPaneProvider)

This seems to have been lost in a rebase.

* fix(core): use `useFormFieldPresence` in `usePresenceCursorDecorations`

* fix(core): set `focusPath` when receiving a mutation event if there are pending patches

* fix(form/inputs): break don't return

* fix(form/inputs): remove ref that should not be set here

This ref is supposed to be set elsewhere (on the PTE Editable component)
See eca960e

* fix(form/inputs): sort hook deps list

* fix(form/inputs): reconcile presence decorations for PT-Input

Make sure these objects stays as stable as possible in order to not
redraw any range decorations unnecessary.

* fix(form/inputs): return early if focusPath is already selected in PT-Input

* refactor(form/inputs): throttle reporting of focusPath and presence updates for PT-input

* fix(core): import of `FormNodePresence`

* fix(form/inputs): remove lastActive as dep for PT-presence range decorations uniqueness

We are not using this value anyway, and it complicates the reconciliation of the presence decorators

* test(core): add presence cursor workshop story

* fix(core): remove unnecessary z-index in PTE activate overlay

* fix(core): prevent presence cursor user name from being selected

* fix(form/inputs): fix issue where perf opt on focusPath tracking broke tests

This perf opt. broke some tests. It's not clear if it is a problem with the test
or the func. so restoring the old behaviour for now.

* test(core): update snapshots in `Studio.test`

* refactor(core): move presence decorations according to user edits

Use a own state for this.

* refactor(core/form): remove complexity from PortableTextInput

Handle debouncing in the DocumentProvider instead. Setting focusPath must be synchronous

* refactor(structure): announce presence throttled

When we introduced presence in the PortableTextInput, we risk calling the presence updates very often.
There should be no reason for not doing this throttled, as long as we have leading true.

* refactor(core): clean up presence cursors code + add comments

---------

Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>

* fix(deps): Update react monorepo (#6502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: fix incorrect path used in workshop story

* chore(deps): dedupe pnpm-lock.yaml (#6506)

Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>

* chore(deps): update dependency @types/react to v18.3.1 (#6507)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: ecospark[bot] <128108030+ecospark[bot]@users.noreply.github.com>
Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sindre Gulseth <sgulseth@gmail.com>
Co-authored-by: Bjørge Næss <bjoerge@gmail.com>
Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
Co-authored-by: Rostislav Melkumyan <hello@rosti.no>
Co-authored-by: Espen Hovlandsdal <espen@hovlandsdal.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Herman Wikner <wiknerherman@gmail.com>
Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>
Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>
Co-authored-by: RitaDias <rita@sanity.io>
Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>
cngonzalez pushed a commit that referenced this pull request May 8, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
cngonzalez added a commit that referenced this pull request May 8, 2024
* fix: statusButton requires provided aria-label

* fix: commenting on the new translation mapping added

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(cli): mock matchMedia window function (#6472)

* chore: add perf runner to workspace (#6427)

* fix(typegen): fixes a bug where we imported the wrong relative path (#6457)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(typegen): also search for queries in app and sanity folders (#6475)

* feat(typegen): also search for queries in app and sanity folders

* feat(typegen): format generated types with prettier

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.15 (#6465)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency date-fns-tz to v2.0.1 (#6467)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @types/react-is to v18.3.0 (#6491)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* fix(test): remove hydrateroot warning test (#6494)

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* feat: set print width to 40 (#6068)

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency turbo to ^1.13.3 (#6497)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(cli): remove comments from moviedb template, hide location field (#6488)

* fix(search): revert to old search API for now (#6503)

* v3.39.1

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add perf runner to workspace (#6427)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.16 (#6500)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.10 (#6501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(core): implement presence cursors (#6081)

* feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): add tests for range decorations rendering

* fixup! feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): improve some minor test things

* fix(core): update z-index on PTE activate overlay

* feat(core): extend presence data model with `selection`

* feat(structure): include `selection` in presence data

* feat(core): implement presence cursors in PTE

* test(core): add presence cursor workshop story

* refactor(core): use `getTheme_v2` to access theme values

* fix(core): introduce `OnPathFocusPayload` to improve typing

* fix(form/inputs): perf optimization for PT-input decorators

* refactor(form/inputs): also display user presence when user is selecting a range, but only the focus point of it

* fix(core): render presence cursors inline instead of in a portal

* fix(core): broken workshop story

* feat(core): reset presence selection on blur in PTE

* fix(structure): add accidentially removed setFocusPath (DocumentPaneProvider)

This seems to have been lost in a rebase.

* fix(core): use `useFormFieldPresence` in `usePresenceCursorDecorations`

* fix(core): set `focusPath` when receiving a mutation event if there are pending patches

* fix(form/inputs): break don't return

* fix(form/inputs): remove ref that should not be set here

This ref is supposed to be set elsewhere (on the PTE Editable component)
See eca960e

* fix(form/inputs): sort hook deps list

* fix(form/inputs): reconcile presence decorations for PT-Input

Make sure these objects stays as stable as possible in order to not
redraw any range decorations unnecessary.

* fix(form/inputs): return early if focusPath is already selected in PT-Input

* refactor(form/inputs): throttle reporting of focusPath and presence updates for PT-input

* fix(core): import of `FormNodePresence`

* fix(form/inputs): remove lastActive as dep for PT-presence range decorations uniqueness

We are not using this value anyway, and it complicates the reconciliation of the presence decorators

* test(core): add presence cursor workshop story

* fix(core): remove unnecessary z-index in PTE activate overlay

* fix(core): prevent presence cursor user name from being selected

* fix(form/inputs): fix issue where perf opt on focusPath tracking broke tests

This perf opt. broke some tests. It's not clear if it is a problem with the test
or the func. so restoring the old behaviour for now.

* test(core): update snapshots in `Studio.test`

* refactor(core): move presence decorations according to user edits

Use a own state for this.

* refactor(core/form): remove complexity from PortableTextInput

Handle debouncing in the DocumentProvider instead. Setting focusPath must be synchronous

* refactor(structure): announce presence throttled

When we introduced presence in the PortableTextInput, we risk calling the presence updates very often.
There should be no reason for not doing this throttled, as long as we have leading true.

* refactor(core): clean up presence cursors code + add comments

---------

Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>

* fix(deps): Update react monorepo (#6502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lint): add certain unicorn eslint rules (#6352)

* chore(lint): add certain unicorn eslint rules

* chore: fix lint errors

* test: increase timeout for cross-dataset reference test

* chore: fix incorrect path used in workshop story

* chore(deps): dedupe pnpm-lock.yaml (#6506)

Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>

* fix(structure): uncaught error while swapping images in array in PTE (#6399)

* chore(test-studio): add schema for fix

* fix(structure): console error for when selection is zero

* chore(test-studio): update test schema

* chore(core): remove try catch

* test(pte): add test for usecase

* chore(sanity): remove ? since it will always be defined

Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>

* chore(test): fix test file to have .spec.

---------

Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>

* chore(deps): update dependency @types/react to v18.3.1 (#6507)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* v3.39.1

* chore(deps): dedupe pnpm-lock.yaml (#6463)

Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.4 (#6460)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add perf runner to workspace (#6427)

* chore(deps): update dependency @sanity/tsdoc to v1.0.39 (#6464)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: upgrade groq-js (#6474)

* chore: upgrade groq-js

* chore: always bump groq-js

* chore(deps): dedupe pnpm-lock.yaml (#6476)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.15 (#6465)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.14 (#6466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency i18next to v23.11.2 (#6468)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency zod to v3.23.4 (#6470)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency next to v14.2.2 (#6469)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency react-focus-lock to v2.12.1 (#6471)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.6 (#6482)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo (#6484)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/tsdoc to v1.0.40 (#6483)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.8 (#6485)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update react monorepo to ^18.3.0 (#6490)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: setup next test that embeds the test studio (#6487)

* chore: setup next test that embeds the test studio

* chore: support HMR same way test-studio does

* refactor: replace deprecated `empty()` with `EMPTY`

* refactor: shorter `pnpm dev:next-studio` alias

* chore: add `dev:turbo-studio` to test with turbopack

* chore: remove unused

* chore(deps): dedupe pnpm-lock.yaml (#6493)

Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/pkg-utils to v6.8.7 (#6496)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/logos to v2.1.11 (#6498)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(lockfile): update dependency @sanity/react-loader to v1.9.15 (#6499)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @sanity/visual-editing to v1.8.16 (#6500)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update dependency @sanity/presentation to v1.12.10 (#6501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat(core): implement presence cursors (#6081)

* feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): add tests for range decorations rendering

* fixup! feat(portable-text-editor): improve range decorations perf by comparing prev values

* test(portable-text-editor): improve some minor test things

* fix(core): update z-index on PTE activate overlay

* feat(core): extend presence data model with `selection`

* feat(structure): include `selection` in presence data

* feat(core): implement presence cursors in PTE

* test(core): add presence cursor workshop story

* refactor(core): use `getTheme_v2` to access theme values

* fix(core): introduce `OnPathFocusPayload` to improve typing

* fix(form/inputs): perf optimization for PT-input decorators

* refactor(form/inputs): also display user presence when user is selecting a range, but only the focus point of it

* fix(core): render presence cursors inline instead of in a portal

* fix(core): broken workshop story

* feat(core): reset presence selection on blur in PTE

* fix(structure): add accidentially removed setFocusPath (DocumentPaneProvider)

This seems to have been lost in a rebase.

* fix(core): use `useFormFieldPresence` in `usePresenceCursorDecorations`

* fix(core): set `focusPath` when receiving a mutation event if there are pending patches

* fix(form/inputs): break don't return

* fix(form/inputs): remove ref that should not be set here

This ref is supposed to be set elsewhere (on the PTE Editable component)
See eca960e

* fix(form/inputs): sort hook deps list

* fix(form/inputs): reconcile presence decorations for PT-Input

Make sure these objects stays as stable as possible in order to not
redraw any range decorations unnecessary.

* fix(form/inputs): return early if focusPath is already selected in PT-Input

* refactor(form/inputs): throttle reporting of focusPath and presence updates for PT-input

* fix(core): import of `FormNodePresence`

* fix(form/inputs): remove lastActive as dep for PT-presence range decorations uniqueness

We are not using this value anyway, and it complicates the reconciliation of the presence decorators

* test(core): add presence cursor workshop story

* fix(core): remove unnecessary z-index in PTE activate overlay

* fix(core): prevent presence cursor user name from being selected

* fix(form/inputs): fix issue where perf opt on focusPath tracking broke tests

This perf opt. broke some tests. It's not clear if it is a problem with the test
or the func. so restoring the old behaviour for now.

* test(core): update snapshots in `Studio.test`

* refactor(core): move presence decorations according to user edits

Use a own state for this.

* refactor(core/form): remove complexity from PortableTextInput

Handle debouncing in the DocumentProvider instead. Setting focusPath must be synchronous

* refactor(structure): announce presence throttled

When we introduced presence in the PortableTextInput, we risk calling the presence updates very often.
There should be no reason for not doing this throttled, as long as we have leading true.

* refactor(core): clean up presence cursors code + add comments

---------

Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>

* fix(deps): Update react monorepo (#6502)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: fix incorrect path used in workshop story

* chore(deps): dedupe pnpm-lock.yaml (#6506)

Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>

* chore(deps): update dependency @types/react to v18.3.1 (#6507)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: ecospark[bot] <128108030+ecospark[bot]@users.noreply.github.com>
Co-authored-by: cngonzalez <3969996+cngonzalez@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sindre Gulseth <sgulseth@gmail.com>
Co-authored-by: Bjørge Næss <bjoerge@gmail.com>
Co-authored-by: github-merge-queue[bot] <118344674+github-merge-queue[bot]@users.noreply.github.com>
Co-authored-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
Co-authored-by: Rostislav Melkumyan <hello@rosti.no>
Co-authored-by: Espen Hovlandsdal <espen@hovlandsdal.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Herman Wikner <wiknerherman@gmail.com>
Co-authored-by: Per-Kristian Nordnes <per.kristian.nordnes@gmail.com>
Co-authored-by: rexxars <48200+rexxars@users.noreply.github.com>
Co-authored-by: RitaDias <rita@sanity.io>
Co-authored-by: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant