Détail du package

@prismicio/types-internal

prismicio275.9kApache-2.03.15.0

Prismic types for Custom Types and Prismic Data

typescript, prismic

readme

@prismicio/types-internal

npm version npm downloads Github Actions CI Codecov Conventional Commits License

A library that provides TypeScript types and runtime parsers for Prismic data. It handles models and content in the editor format. It is used in many Prismic TypeScript packages.

Install

npm install @prismicio/types-internal

Documentation

To discover what's new on this package check out the changelog.

Contributing

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Prismic developer community!

Reporting a bug: Open an issue explaining your application's setup and the bug you're encountering.

Suggesting an improvement: Open an issue explaining your improvement or feature so we can discuss and learn more.

Submitting code changes: For small fixes, feel free to open a pull request with a description of your changes. For large changes, please first open an issue so we can discuss if and how the changes should be implemented.

For more clarity on this project, check out the detailed CONTRIBUTING.md document.

License

Copyright 2013-2024 Prismic <contact@prismic.io> (https://prismic.io)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

3.15.0 (2025-06-25)

Features

  • allow only one ct to be selected in a cr (#135) (35d92c3)

Chore

3.15.0-alpha.0 (2025-06-24)

Features

  • allow only one ct to be selected in a cr (#135) (35d92c3)

Chore

3.14.0 (2025-06-22)

Features

  • allow only one ct to be selected in a cr (#135) (35d92c3)
  • export CustomTypes codec (#127) (abe0466)
  • group-content: add support for optional group item keys (#136) (cdfb4df)
  • legacy/keys: Encode decode keys (#133) (84a869b)

Chore

3.13.0 (2025-06-20)

Features

  • group-content: add support for optional group item keys (#136) (cdfb4df)

3.12.0 (2025-06-17)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

Chore

3.11.2 (2025-06-13)

Features

Chore

3.11.2-alpha.1 (2025-06-11)

3.11.2-alpha.0 (2025-06-11)

Features

Chore

3.11.1 (2025-06-09)

Features

Chore

3.11.0 (2025-06-05)

Features

Chore

3.11.0-alpha.0 (2025-06-04)

Features

Chore

3.10.1 (2025-05-16)

Chore

3.10.0 (2025-05-15)

3.10.0-alpha.1 (2025-05-14)

3.10.0-alpha.0 (2025-04-28)

3.9.0 (2025-04-23)

3.9.0-alpha.0 (2025-04-16)

3.8.0 (2025-03-17)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

3.8.0-alpha.0 (2025-03-14)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

3.7.0 (2025-03-10)

3.7.0-alpha.1 (2025-03-10)

Features

Bug Fixes

Chore

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)
  • test: remove columnWidth (a5f4703)

3.7.0-alpha.0 (2025-03-05)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

3.6.0 (2025-02-10)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

3.5.0 (2025-02-04)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

Chore

  • release: 3.4.0 (77ceacf)
  • remove old comment (3d642fe)
  • return empty table cell when filtered out (981a46d)

3.4.0 (2025-02-04)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

Chore

  • remove old comment (3d642fe)
  • return empty table cell when filtered out (981a46d)

3.4.0-alpha.16 (2025-01-30)

Features

Bug Fixes

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

Documentation

  • add a note about fieldset (fd6b675)

Chore

  • rename to TableCellConfig (06cddd5)

3.4.0-alpha.15 (2025-01-30)

Features

  • add TableRow type export (0c745b1)
  • make table cell content a rich text field (f882caf)
  • make table cell content a rich text field (#114) (7f8e794)

Bug Fixes

  • legacy parsing issue + tests (4689458)

Refactor

  • stop using .is from codec for group and repeatable (#113) (421ee5c)

3.4.0-alpha.11 (2025-01-22)

Chore

  • remove the unneeded fieldset property (6a617b8)

3.4.0-alpha.3 (2025-01-21)

Bug Fixes

  • add fieldset to Table field (241437b)

3.4.0-alpha.2 (2025-01-21)

Features

  • add table to NestableWidget and NestableContent (f1146a6)

3.4.0-alpha.1 (2025-01-21)

Features

Chore

3.4.0-alpha.0 (2025-01-21)

Features

3.3.0 (2024-12-17)

Features

3.3.0-alpha.2 (2024-12-12)

3.3.0-alpha.1 (2024-12-10)

3.3.0-alpha.0 (2024-12-05)

Chore

3.3.0-alpha.0 (2024-12-05)

3.2.0 (2024-12-09)

3.2.0-alpha.7 (2024-12-09)

Refactor

Chore

3.2.0-alpha.6 (2024-12-09)

Bug Fixes

  • remove unwanted repeat check (1e3ebf3)

3.2.0-alpha.5 (2024-12-06)

Bug Fixes

  • avoid setting undefined model on repeat true on shared slice (2dac602)

3.2.0-alpha.4 (2024-12-06)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78
  • support repeatable links (#89) (1f1c37d)

Bug Fixes

  • avoid setting undefined model on repeat true (3edaa42)

Chore

3.2.0-alpha.3 (2024-12-05)

3.2.0-alpha.2 (2024-12-05)

3.2.0-alpha.1 (2024-12-05)

3.2.0-alpha.0 (2024-12-05)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78
  • support repeatable links (#89) (1f1c37d)

Chore

3.1.0 (2024-11-29)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78
  • support repeatable links (#89) (1f1c37d)

Chore

3.1.0-alpha.5 (2024-11-26)

3.1.0-alpha.4 (2024-11-22)

3.1.0-alpha.3 (2024-11-21)

3.1.0-alpha.2 (2024-11-20)

Features

3.1.0-alpha.1 (2024-11-19)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)

Chore

3.1.0-alpha.0 (2024-11-18)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)

Refactor

Chore

3.0.0 (2024-11-15)

Features

  • ensure correct types for image and file link kind (#92) (31750c5)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

3.0.0-alpha.0 (2024-11-06)

Features

  • ensure correct types for image and file link kind (0d7627d)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

2.9.0-alpha.5 (2024-11-15)

Features

  • adapt document link to allow empty (1fece63)
  • adapt external link to allow empty (bd9f9f5)
  • adapt file link to allow empty (04adfbb)
  • adapt image link to allow empty (b9ba367)
  • adapt media link to allow empty (f320497)

Bug Fixes

2.9.0-alpha.4 (2024-11-15)

Features

  • adapt any link to allow empty text (a3e09ae)

2.9.0-alpha.3 (2024-11-11)

2.9.0-alpha.2 (2024-11-08)

2.9.0-alpha.1 (2024-11-08)

Features

  • support traverse of repeatable links items (d684b48)

2.9.0-alpha.0 (2024-10-19)

Features

  • add fallback for Link repeat (c1421d3)
  • add repeat prop to link config (1fce59e)
  • add support & tests for repeating link content (0643aa6)
  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

2.8.0 (2024-09-24)

Features

  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

2.7.0 (2024-09-17)

2.7.0-alpha.9 (2024-09-16)

2.7.0-alpha.8 (2024-09-13)

2.7.0-alpha.7 (2024-09-11)

2.7.0-alpha.6 (2024-09-11)

2.7.0-alpha.5 (2024-09-10)

Chore

2.7.0-alpha.4 (2024-09-10)

Chore

2.7.0-alpha.3 (2024-09-10)

2.7.0-alpha.2 (2024-08-26)

2.7.0-alpha.1 (2024-08-07)

2.7.0-alpha.0 (2024-08-06)

Features

  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

2.6.0 (2024-06-25)

Features

  • revert creating RepeatableContent for old group items without nested group (#80) (bb4bca3)
  • support nesting groups (#77) (2164625), closes #78

Chore

2.5.0 (2024-06-20)

Features

Chore

  • new CONTRIBUTING.md and pull request template (#76) (61fd901)

2.5.0-alpha.4 (2024-06-04)

Bug Fixes

  • use t.Type<A, O> over t.Mixed (44a847d)

Refactor

  • prefer t.Mixed over t.Type<any> (378a57d)

2.5.0-alpha.3 (2024-05-30)

Refactor

  • only limit groups nesting in model and allow infinite nesting in content (2bd7d62)

2.5.0-alpha.2 (2024-05-29)

Refactor

  • disallow nested groups in slice's items (7086f1a)
  • per review (73b7714)

2.5.0-alpha.1 (2024-05-28)

Features

Bug Fixes

  • traversing nested groups (121a003)

Chore

2.4.1 (2024-05-13)

2.4.1-alpha.1 (2024-05-13)

Chore

2.4.1-alpha.0 (2024-05-13)

Bug Fixes

Chore

2.5.0-alpha.0 (2024-05-07)

Features

  • diff slice group fields (8107f1a)

2.4.0 (2024-05-07)

Features

  • slice: allow groups in slice primary property (#70) (c29b8b7)

0.3.1 (2022-07-06)

0.3.1-beta.0 (2022-06-23)

Bug Fixes

  • test StructuredTextContent (62405b5)
  • validate widget id format (fe0fbec)