パッケージの詳細

@portabletext/toolkit

portabletext1.1mMIT2.0.17

Toolkit of handy utility functions for dealing with Portable Text

sanity, cms, headless, realtime

readme

@portabletext/toolkit

npm versionnpm bundle sizeBuild Status

Javascript toolkit of handy utility functions for dealing with Portable Text.

Particularly useful for building rendering libraries for Portable Text that outputs HTML.

Installation

npm install --save @portabletext/toolkit

Documentation

See https://portabletext.github.io/toolkit/

Usage

import {toPlainText} from '@portabletext/toolkit'

console.log(toPlainText(myPortableTextBlocks))

License

MIT © Sanity.io

更新履歴

📓 Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.0.17 (2025-02-06)

Bug Fixes

  • guard against markDefs being null (#92) (1f1644a)
  • typeError: Marking markDefs as optional to resolve TS error when markDefs array is missing (#96) (eedd7c7)

2.0.16 (2024-11-02)

Bug Fixes

  • prevent double spaces in toPlainText when span follows non-span (#93) (43b963f)

2.0.15 (2024-04-11)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.13 (#85) (e5a0247)

2.0.14 (2024-04-05)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.12 (#78) (eaaa9a1)

2.0.13 (2024-03-20)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.11 (#73) (e85b103)

2.0.12 (2024-03-18)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.10 (#70) (2b8e7f6)

2.0.11 (2024-03-16)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.9 (#65) (83c5700)

2.0.10 (2023-10-10)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.8 (#48) (36cdd6f)

2.0.9 (2023-09-28)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.7 (#40) (16f8ee7)

2.0.8 (2023-08-23)

Bug Fixes

  • deps: update dependency @portabletext/types to ^2.0.6 (#35) (0eadb67)

2.0.7 (2023-08-23)

Bug Fixes

2.0.6 (2023-08-23)

Bug Fixes

  • isPortableTextBlock not accounting for markDefs: undefined (#25) (db076c8)

2.0.5 (2023-08-23)

Bug Fixes

  • add node.module condition (1b369ba)

2.0.4 (2023-06-26)

Bug Fixes

2.0.3 (2023-06-26)

Bug Fixes

  • refactor to type: module (1dc6579)

2.0.2 (2023-06-23)

Bug Fixes

  • remove ESM wrapper (not needed) (be72cb2)