@eeacms/volto-bise-policy 1.2.15 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- ### [1.2.15](https://github.com/eea/volto-bise-policy/compare/1.2.14...1.2.15) - 13 May 2025
7
+ ### [1.2.16](https://github.com/eea/volto-bise-policy/compare/1.2.15...1.2.16) - 21 May 2025
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: Automated code fix [eea-jenkins - [`d8c804b`](https://github.com/eea/volto-bise-policy/commit/d8c804bf431668610d5915f3b6359cb71eb33a6f)]
12
+ - style: Automated code fix [eea-jenkins - [`3281da4`](https://github.com/eea/volto-bise-policy/commit/3281da44f5fa9e445520b9fdbeb21d97d6975841)]
13
+
14
+ #### :hammer_and_wrench: Others
15
+
16
+ - renamed formatters to dataFormatters [vladcalin-edw - [`c8d8f9f`](https://github.com/eea/volto-bise-policy/commit/c8d8f9fd3e570ba8e4052be057a8a458f468e161)]
17
+ ### [1.2.15](https://github.com/eea/volto-bise-policy/compare/1.2.14...1.2.15) - 19 May 2025
8
18
 
9
19
  #### :rocket: New Features
10
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import { compose } from 'redux';
3
+ import { injectIntl } from 'react-intl';
3
4
  import { SidebarPortal } from '@plone/volto/components'; // EditBlock
4
5
  import InlineForm from '@plone/volto/components/manage/Form/InlineForm';
5
6
  import config from '@plone/volto/registry';
@@ -60,6 +61,7 @@ class Edit extends Component {
60
61
  typeof templateSchema === 'function'
61
62
  ? templateSchema(config)
62
63
  : templateSchema,
64
+ this.props.intl,
63
65
  );
64
66
 
65
67
  // TODO: create picker for columns to include
@@ -105,7 +107,7 @@ const EditWrapper = compose(
105
107
  },
106
108
  };
107
109
  }),
108
- )(Edit);
110
+ )(injectIntl(Edit));
109
111
 
110
112
  const $Edit = (props) => {
111
113
  return (
package/src/index.js CHANGED
@@ -117,6 +117,13 @@ const applyConfig = (config) => {
117
117
  },
118
118
  };
119
119
  // BISE config
120
+
121
+ config.settings.dataFormatters = {
122
+ squareBracketsToItalic: (value) => {
123
+ return value.replace(/\[(.*?)\]/g, '<em>$1</em>');
124
+ },
125
+ };
126
+
120
127
  config.settings.bise = {
121
128
  subsites: [
122
129
  {