Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 2, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
@portabletext/editor (source) ^2.6.9 -> ^2.13.0 age confidence

Release Notes

portabletext/editor (@​portabletext/editor)

v2.13.0

Compare Source

Minor Changes
Patch Changes

v2.12.3

Compare Source

Patch Changes

v2.12.2

Compare Source

Patch Changes

v2.12.1

Compare Source

Patch Changes

v2.12.0

Compare Source

Minor Changes
  • #​1658 b9af25b Thanks @​christianhg! - feat: improve insert.text composition

    As part of the editors Core Behaviors, insert.text now triggers
    insert.child whenever the marks on the given span should change. This
    means, you can now execute insert.text events to circumvent that Behavior. Or forward/execute insert.text events from insert.child events.

v2.11.0

Compare Source

Minor Changes

v2.10.0

Compare Source

Minor Changes
  • #​1640 74dc56a Thanks @​christianhg! - fix: raise insert.child from insert.(span|inline object)

    insert.span and insert.inline object now raise insert.child internally.

  • #​1640 7cdcb11 Thanks @​christianhg! - feat: add insert.child event

    A new insert.child event can now be used to insert and select spans or
    inline objects at the current editor selection.

Patch Changes
  • #​1654 6071455 Thanks @​renovate! - fix(deps): update sanity monorepo to ^4.9.0

  • #​1640 52a3a72 Thanks @​christianhg! - fix(block.set): validate marDefs

    Adding markDefs to a text block using block.set now validates the markDefs against the schema to make sure only known annotations are added.

  • #​1640 eaf3ff1 Thanks @​christianhg! - fix: derive Snapshot selection on demand

    In some cases, the selection on snapshot.context.selection could be
    slightly out of sync. Now, the selection is derived on demand whenever a
    Snapshot is requested.

  • #​1640 9dbf915 Thanks @​christianhg! - fix(behaviors): perform groups of raised or executed events without normalization

    This is useful if one event depends on a previous event. For example, raising
    block.set together with insert.child to add an annotation will happen
    without the editor normalizing the unused markDef away between the two events.

    defineBehavior({
      on: 'insert.span',
      guard: ({snapshot, event}) => {
        const focusTextBlock = getFocusTextBlock(snapshot)
        const markDefs =
          event.annotations?.map((annotation) => ({
            _type: annotation.name,
            _key: snapshot.context.keyGenerator(),
            ...annotation.value,
          })) ?? []
    
        return {markDefs, focusTextBlock}
      },
      actions: [
        ({snapshot, event}, {markDefs, focusTextBlock}) => [
          ...(focusTextBlock
            ? [
                raise({
                  type: 'block.set',
                  at: focusTextBlock.path,
                  props: {
                    markDefs: [
                      ...(focusTextBlock.node.markDefs ?? []),
                      ...markDefs,
                    ],
                  },
                }),
              ]
            : []),
          raise({
            type: 'insert.child',
            child: {
              _type: snapshot.context.schema.span.name,
              text: event.text,
              marks: [
                ...(event.decorators ?? []),
                ...markDefs.map((markDef) => markDef._key),
              ],
            },
          }),
        ],
      ],
    })
  • Updated dependencies [6071455]:

v2.9.2

Compare Source

Patch Changes

v2.9.1

Compare Source

Patch Changes
  • #​1646 9ca66b7 Thanks @​christianhg! - fix: avoid thrown error if the editor has been unmounted

    The editor attempts to validate its selection upon unexpected DOM changes. However, in some cases, this logic might run after the editor has been unmounted and removed from the DOM. In this case an error would be thrown because no editor DOM node could be found. This error has now been suppressed as there is no need to surface it to the user.

v2.9.0

Compare Source

Minor Changes
  • #​1644 4a87bb5 Thanks @​christianhg! - feat: add select.block event

    You can now send, raise, execute and forward select.block events. Under the hood they convert into select events. For convenience, you can select the block either at the 'start' or 'end' ('start' is default).

    raise({
      type: 'select.block',
      at: [{_key: firstBlockKey}],
      select: 'start',
    })
Patch Changes

v2.8.4

Compare Source

Patch Changes
  • #​1638 d7f34d4 Thanks @​renovate! - fix(deps): update sanity monorepo to ^4.8.1

  • #​1641 97288ec Thanks @​christianhg! - fix: improve history stack heuristics

    Sending custom Behavior events will now create distinct steps in the history stack:

    // Creates one step in the history stack
    editor.send({type: 'custom.insert block', text: 'foo'})
    // Creates another step in the history stack
    editor.send({type: 'custom.insert block', text: 'bar'})
  • #​1643 4ccb9ab Thanks @​christianhg! - fix: send inside effect now has access to focus/blur events

    defineBehavior({
      on: 'decorator.add',
      actions: [
        ({event}) => [
          forward(event),
          effect(({send}) => {
            send({type: 'blur'})
          }),
        ],
      ],
    })
  • Updated dependencies [d7f34d4]:

v2.8.3

Compare Source

Patch Changes

v2.8.2

Compare Source

Patch Changes

v2.8.1

Compare Source

Patch Changes

v2.8.0

Compare Source

Minor Changes
Patch Changes

v2.7.2

Compare Source

Patch Changes

v2.7.1

Compare Source

Patch Changes

v2.7.0

Compare Source

Minor Changes
Patch Changes

Configuration

📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates 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

Copy link

changeset-bot bot commented Sep 2, 2025

🦋 Changeset detected

Latest commit: c88a457

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@portabletext/plugin-character-pair-decorator Patch
@portabletext/plugin-markdown-shortcuts Patch
@portabletext/plugin-one-line Patch
@portabletext/plugin-sdk-value Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
portable-text-plugins-playground Ready Ready Preview Comment Sep 23, 2025 0:38am

Copy link

socket-security bot commented Sep 2, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedxstate@​5.21.0 ⏵ 5.22.0100 +110010094 +3100
Updated@​portabletext/​editor@​2.6.9 ⏵ 2.13.099 +1100100100 +1100

View full report

@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 81f29cb to 5e418ee Compare September 4, 2025 12:58
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.7.2 fix(deps): update dependency @portabletext/editor to ^2.8.0 Sep 4, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from bb1e59e to b337654 Compare September 5, 2025 10:01
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.8.0 fix(deps): update dependency @portabletext/editor to ^2.8.1 Sep 5, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 17b1b9d to afd411f Compare September 5, 2025 14:14
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.8.1 fix(deps): update dependency @portabletext/editor to ^2.8.2 Sep 5, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 916fe5f to 5e04d8e Compare September 8, 2025 11:32
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.8.2 fix(deps): update dependency @portabletext/editor to ^2.8.3 Sep 8, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from c324074 to 2899777 Compare September 11, 2025 09:54
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.8.3 fix(deps): update dependency @portabletext/editor to ^2.8.4 Sep 11, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from abed7d9 to f64416a Compare September 11, 2025 19:07
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.8.4 fix(deps): update dependency @portabletext/editor to ^2.9.0 Sep 11, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 9c5bddc to 213ddd1 Compare September 13, 2025 18:14
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.9.0 fix(deps): update dependency @portabletext/editor to ^2.9.1 Sep 13, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from e3e7bb4 to 6b0e806 Compare September 15, 2025 20:58
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.9.1 fix(deps): update dependency @portabletext/editor to ^2.9.2 Sep 15, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from c2afd8e to 48022d4 Compare September 17, 2025 15:39
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.9.2 fix(deps): update dependency @portabletext/editor to ^2.11.0 Sep 17, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 9d74ecf to 1a54391 Compare September 18, 2025 10:49
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.11.0 fix(deps): update dependency @portabletext/editor to ^2.12.0 Sep 18, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 45f2573 to c4a2dea Compare September 19, 2025 10:03
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.12.0 fix(deps): update dependency @portabletext/editor to ^2.12.1 Sep 19, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from c3cdf74 to 86e6d13 Compare September 22, 2025 18:42
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.12.1 fix(deps): update dependency @portabletext/editor to ^2.12.2 Sep 22, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from 79e3794 to 6a7e2bf Compare September 23, 2025 08:51
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.12.2 fix(deps): update dependency @portabletext/editor to ^2.12.3 Sep 23, 2025
@renovate renovate bot force-pushed the renovate/portabletext-editor-2.x branch from ce7fcee to 9433462 Compare September 23, 2025 12:37
@renovate renovate bot changed the title fix(deps): update dependency @portabletext/editor to ^2.12.3 fix(deps): update dependency @portabletext/editor to ^2.13.0 Sep 23, 2025
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.

0 participants