Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

<!-- towncrier release notes start -->

## 1.1.3 (2025-11-10)

### Internal

- Remove @plone/volto as peerDep. @sneridagh

## 1.1.2 (2024-09-17)

### Bugfix
Expand Down
1 change: 1 addition & 0 deletions news/27.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix our use of the `intl` provider. @mauritsvanrees
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kitconcept/volto-quote-block",
"version": "1.1.2",
"version": "1.1.3",
"description": "volto-quote-block: Volto add-on",
"main": "src/index.js",
"license": "MIT",
Expand Down Expand Up @@ -41,8 +41,5 @@
"stylelint-config-idiomatic-order": "9.0.0",
"stylelint-config-sass-guidelines": "10.0.0",
"stylelint-prettier": "4.0.2"
},
"peerDependencies": {
"@plone/volto": "^17.0.0"
}
}
3 changes: 3 additions & 0 deletions src/components/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import { SidebarPortal } from '@plone/volto/components';
import View from './View';
import config from '@plone/volto/registry';
import { useIntl } from 'react-intl';

const Edit = (props) => {
const {
Expand All @@ -15,6 +16,7 @@ const Edit = (props) => {
onAddBlock,
disableEnter = false,
} = props;
const intl = useIntl();

const handleEnterKey = (e, index) => {
const isMultipleSelection = e.shiftKey;
Expand All @@ -38,6 +40,7 @@ const Edit = (props) => {
<SidebarPortal selected={selected}>
<QuoteBlockSidebar
{...props}
intl={intl}
data={data}
block={block}
onChangeBlock={onChangeBlock}
Expand Down
4 changes: 2 additions & 2 deletions src/components/View.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import config from '@plone/volto/registry';
import { useSelector } from 'react-redux';
import { useIntl } from 'react-intl';
import { flattenToAppURL } from '@plone/volto/helpers';
import { DetachedTextBlockEditor } from '@plone/volto-slate/blocks/Text/DetachedTextBlockEditor';
import { TextBlockView } from '@plone/volto-slate/blocks/Text';

const View = (props) => {
const { data, isEditMode } = props;
const intl = useSelector((state) => state.intl);
const intl = useIntl();

const customSlateSettings = {
...props,
Expand Down
4 changes: 3 additions & 1 deletion src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const messages = defineMessages({
},
});

export const QuoteBlockSchema = ({ intl }) => {
export const QuoteBlockSchema = (props) => {
const { intl } = props;

return {
title: intl.formatMessage(messages.quote),
block: 'quote',
Expand Down
2 changes: 0 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1858,8 +1858,6 @@ __metadata:
stylelint-config-idiomatic-order: 9.0.0
stylelint-config-sass-guidelines: 10.0.0
stylelint-prettier: 4.0.2
peerDependencies:
"@plone/volto": ^17.0.0
languageName: unknown
linkType: soft

Expand Down