Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sanity/presentation-comlink

sanity-io708kMIT1.0.21TypeScript support: included

[!WARNING] > This package is not meant to be used directly, it's a shared dependency of sanity/presentation and @sanity/visual-editing. Using it in production is at your own risk.

readme

@sanity/presentation-comlink

[!WARNING]
This package is not meant to be used directly, it's a shared dependency of sanity/presentation and @sanity/visual-editing. Using it in production is at your own risk.

The sanity/presentation tool requires a way to communicate with the application that lives within its preview iframe. The application is required to load up at least @sanity/visual-editing, but can also load up @sanity/core-loader, @sanity/next-loader, @sanity/svelte-loader, and @sanity/react-loader. It uses @sanity/comlink to communicate over the iframe, and any popup preview windows, over the window.postMessage protocol. The typings for those messages are defined in this package, as well as utils for maintaining compatibility with how older versions of sanity/presentation and @sanity/visual-editing used to format its message payloads, and helpers for handling payloads..

changelog

Changelog

1.0.21 (2025-05-29)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/comlink bumped to 3.0.5
      • @sanity/visual-editing-types bumped to 1.1.0

1.0.20 (2025-05-21)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/comlink bumped to 3.0.4

1.0.19 (2025-05-07)

Bug Fixes

  • deps: update dependency @sanity/client to v7.1.0 (#2984) (a9f8b89)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/comlink bumped to 3.0.3
      • @sanity/visual-editing-types bumped to 1.0.18

1.0.18 (2025-04-30)

Bug Fixes

  • deps: require peer dependency @sanity/client to ^7.0.0 (de3db1f)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.17

1.0.17 (2025-04-30)

Bug Fixes

  • deps: update dependency @sanity/client to v7 (#2964) (473f7ed)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/comlink bumped to 3.0.2
      • @sanity/visual-editing-types bumped to 1.0.16

1.0.16 (2025-04-11)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.29.0 (2a8ff1e)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.15

1.0.15 (2025-04-10)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.14

1.0.14 (2025-04-01)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.28.4 (#2884) (be6dca0)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.13

1.0.13 (2025-03-24)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.12

1.0.12 (2025-03-17)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.11

1.0.11 (2025-03-14)

Bug Fixes

  • support upcoming presentation debug features (00db0db)

1.0.10 (2025-03-12)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.28.2 (#2779) (6336984)
  • deps: update dependency @sanity/client to ^6.28.3 (#2808) (a2f657d)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.10

1.0.9 (2025-03-03)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.9

1.0.8 (2025-02-24)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.8

1.0.7 (2025-02-17)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.7

1.0.6 (2025-02-10)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.6

1.0.5 (2025-02-07)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.5

1.0.4 (2025-01-28)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.27.2 (#2578) (de598b8)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.4

1.0.3 (2025-01-22)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.27.0 (main) (#2548) (faeb98f)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.3

1.0.2 (2025-01-22)

Bug Fixes

  • deps: update dependency @sanity/client to ^6.26.0 (#2539) (668143a)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.2

1.0.1 (2025-01-21)

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/visual-editing-types bumped to 1.0.1

1.0.0 (2025-01-17)

Bug Fixes

Dependencies

  • The following workspace dependencies were updated
    • dependencies
      • @sanity/comlink bumped to 3.0.1
      • @sanity/visual-editing-types bumped to 1.0.0