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: release main #749

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: release main
ecoscript[bot] authored Jan 31, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 12179d5c9028b92253ec76ae07c61907e7f83f23
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"packages/editor":"1.27.0","packages/patches":"1.1.2","packages/racejar":"1.1.2","packages/block-tools":"1.1.4"}
{"packages/editor":"1.28.0","packages/patches":"1.1.2","packages/racejar":"1.1.2","packages/block-tools":"1.1.4"}
18 changes: 18 additions & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [1.28.0](https://github.com/portabletext/editor/compare/editor-v1.27.0...editor-v1.28.0) (2025-01-31)


### Features

* **selectors:** add `getActiveAnnotations` ([2c86729](https://github.com/portabletext/editor/commit/2c8672957958c04ce7bfed61d631fabeeb1f7558))
* **selectors:** add `getSelection` ([950df9f](https://github.com/portabletext/editor/commit/950df9f6e7210bf57fa238cf02611cb861766c8d))
* **selectors:** add `getValue` ([b43e54d](https://github.com/portabletext/editor/commit/b43e54dcdd3efa48947f8286f94680ab8c103ad2))


### Bug Fixes

* add deprecation messages to `PortableTextEditor` methods ([e21a591](https://github.com/portabletext/editor/commit/e21a591483c52bc23577c14602485570dc01bd8c))
* avoid crash on `insert.break` before inline object ([a759bd4](https://github.com/portabletext/editor/commit/a759bd4a1cdfa6c0b56b377a5042cd7f8f2ec8a1))
* **deps:** update dependency slate-dom to ^0.112.2 ([50cf13a](https://github.com/portabletext/editor/commit/50cf13a7c60b05239726f49551a1cfa61423652c))
* remove confusing default annotation component ([9c0c903](https://github.com/portabletext/editor/commit/9c0c9033139735894716b2fbf29826ad9d1b161f))
* render default inline object as a span ([8fb51ae](https://github.com/portabletext/editor/commit/8fb51ae540b18008d21e237335538bbf7cb7e009))

## [1.27.0](https://github.com/portabletext/editor/compare/editor-v1.26.3...editor-v1.27.0) (2025-01-29)


2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@portabletext/editor",
"version": "1.27.0",
"version": "1.28.0",
"description": "Portable Text Editor made in React",
"keywords": [
"sanity",

Unchanged files with check annotations Beta

export const PortableTextEditable = forwardRef<
Omit<HTMLDivElement, 'as' | 'onPaste' | 'onBeforeInput'>,
PortableTextEditableProps
>(function PortableTextEditable(props, forwardedRef) {

Check warning on line 136 in packages/editor/src/editor/Editable.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Support value blocks (conditional, logical, optional chaining, etc) within a try/catch statement (@:637:8)
const {
hotkeys,
onBlur,
* Renders Portable Text block and inline object nodes in Slate
* @internal
*/
export const Element: FunctionComponent<ElementProps> = ({

Check warning on line 61 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (@:138:26)

Check warning on line 61 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (@:171:34)

Check warning on line 61 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (@:196:39)

Check warning on line 61 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (@:211:6)

Check warning on line 61 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

[ReactCompilerBailout] Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef) (@:282:6)
attributes,
children,
element,
contentEditable={false}
>
{renderChild &&
renderChild({

Check warning on line 138 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
annotations: EMPTY_ANNOTATIONS, // These inline objects currently doesn't support annotations. This is a limitation of the current PT spec/model.
children: <DefaultInlineObject value={value} />,
editorElementRef: inlineBlockObjectRef,
(item) => item.value === style,
)
if (renderStyle && blockStyleType) {
renderedBlock = renderStyle({

Check warning on line 171 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
block: element as PortableTextTextBlock,
children,
focused,
(item) => item.value === element.listItem,
)
if (renderListItem && listType) {
renderedBlock = renderListItem({

Check warning on line 196 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
block: value,
children: renderedBlock,
focused,
}
const renderProps: Omit<BlockRenderProps, 'type'> = Object.defineProperty(
{

Check warning on line 211 in packages/editor/src/editor/components/Element.tsx

GitHub Actions / check-lint

Ref values (the `current` property) may not be accessed during render. (https://react.dev/reference/react/useRef)
children: renderedBlock,
editorElementRef: blockRef,
focused,