Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eeacms/volto-accordion-block

Package Overview
Dependencies
Maintainers
9
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eeacms/volto-accordion-block - npm Package Compare versions

Comparing version 10.2.0 to 10.3.0

locales/en/LC_MESSAGES/volto.po

18

CHANGELOG.md

@@ -7,2 +7,20 @@ ### Changelog

### [10.3.0](https://github.com/eea/volto-accordion-block/compare/10.2.0...10.3.0) - 29 August 2023
#### :rocket: New Features
- feat: open Panels on diff - refs #256378 [dobri1408 - [`47cfb04`](https://github.com/eea/volto-accordion-block/commit/47cfb044ba98a984b50c2b4c321174a7a280ad1c)]
#### :bug: Bug Fixes
- fix(ssr): by passing intl by passing from extendedSchema function [David Ichim - [`b69612a`](https://github.com/eea/volto-accordion-block/commit/b69612a99519f0f989c72c7090d09999c016dc01)]
#### :house: Internal changes
- chore: Remove i18n.js script [Alin Voinea - [`d7e5e38`](https://github.com/eea/volto-accordion-block/commit/d7e5e38c216459f6e00a02db1d6c2d9329ac7189)]
#### :hammer_and_wrench: Others
- i18n: Add en [Alin Voinea - [`13f2685`](https://github.com/eea/volto-accordion-block/commit/13f26851c2d9ff6dfed2319443afa19a24f7db02)]
- Release 10.3.0 [Alin Voinea - [`4b59ff2`](https://github.com/eea/volto-accordion-block/commit/4b59ff2af0d988de7d8cc72eeb59d865b01b6f38)]
### [10.2.0](https://github.com/eea/volto-accordion-block/compare/10.1.1...10.2.0) - 28 August 2023

@@ -9,0 +27,0 @@

2

package.json
{
"name": "@eeacms/volto-accordion-block",
"version": "10.2.0",
"version": "10.3.0",
"description": "volto-accordion-block: Volto accordion block",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -1,2 +0,2 @@

import { defineMessages, createIntlCache, createIntl } from 'react-intl';
import { defineMessages } from 'react-intl';

@@ -113,13 +113,3 @@ const messages = defineMessages({

const cache = createIntlCache();
const intl = createIntl(
{
locale: 'en',
messages: messages,
},
cache,
);
const Schema = {
export default (intl) => ({
title: intl.formatMessage(messages.AccordionBlockSettings),

@@ -221,4 +211,2 @@ fieldsets: [

required: [],
};
export default Schema;
});

@@ -25,2 +25,8 @@ import React from 'react';

const metadata = props.metadata || props.properties;
const diffView =
location?.pathname.slice(
location?.pathname.lastIndexOf('/'),
location?.pathname.length,
) === '/diff';
const [activeIndex, setActiveIndex] = React.useState([]);

@@ -185,3 +191,3 @@ const [activePanel, setActivePanel] = React.useState([]);

duration={500}
height={active ? 'auto' : 0}
height={active || diffView ? 'auto' : 0}
onTransitionEnd={() => {

@@ -194,3 +200,3 @@ if (!!activePanels && id === itemToScroll) {

>
<Accordion.Content active={active}>
<Accordion.Content active={diffView ? true : active}>
<RenderBlocks

@@ -197,0 +203,0 @@ {...props}

@@ -46,9 +46,10 @@ import accordionSVG from '@plone/volto/icons/list-arrows.svg';

choices.push(['accordion', intl.formatMessage(messages.accordionTitle)]);
const accordionLayoutSchema = AccordionLayoutSchema(intl);
return {
...AccordionLayoutSchema,
...accordionLayoutSchema,
properties: {
...AccordionLayoutSchema.properties,
...accordionLayoutSchema.properties,
allowedBlocks: {
...AccordionLayoutSchema.properties.allowedBlocks,
...accordionLayoutSchema.properties.allowedBlocks,
items: {

@@ -55,0 +56,0 @@ choices: choices,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc