@eeacms/volto-n2k 1.0.35 → 1.1.0
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/.eslintrc.js +65 -0
- package/CHANGELOG.md +23 -8
- package/jest-addon.config.js +19 -4
- package/jest.setup.js +65 -0
- package/package.json +6 -5
- package/src/components/manage/Blocks/BodyClass/index.js +2 -2
- package/src/components/manage/Blocks/BodyClass/schema.js +3 -1
- package/src/components/manage/Blocks/BubbleChart/BubbleChart.jsx +4 -4
- package/src/components/manage/Blocks/BubbleChart/View.jsx +2 -2
- package/src/components/manage/Blocks/BubbleChart/index.js +2 -2
- package/src/components/manage/Blocks/CDDACountryProfileMap/View.jsx +4 -9
- package/src/components/manage/Blocks/CDDACountryProfileMap/index.js +2 -2
- package/src/components/manage/Blocks/CarouselHorizontal/index.js +19 -16
- package/src/components/manage/Blocks/CarouselHorizontal/schema.js +30 -11
- package/src/components/manage/Blocks/CddaShape/index.js +2 -2
- package/src/components/manage/Blocks/ConnectedLinkList/index.js +2 -2
- package/src/components/manage/Blocks/ContactBlock/index.js +2 -2
- package/src/components/manage/Blocks/ExplodedPiesChart/index.js +2 -2
- package/src/components/manage/Blocks/ExplodedPiesChart/style.less +1 -1
- package/src/components/manage/Blocks/ExploreHabitats/View.jsx +3 -8
- package/src/components/manage/Blocks/ExploreHabitats/index.js +2 -2
- package/src/components/manage/Blocks/ExploreHabitats/schema.js +3 -1
- package/src/components/manage/Blocks/ExploreSites/View.jsx +3 -8
- package/src/components/manage/Blocks/ExploreSites/index.js +2 -2
- package/src/components/manage/Blocks/ExploreSites/schema.js +3 -1
- package/src/components/manage/Blocks/ExploreSpecies/View.jsx +3 -8
- package/src/components/manage/Blocks/ExploreSpecies/index.js +2 -2
- package/src/components/manage/Blocks/ExploreSpecies/schema.js +3 -1
- package/src/components/manage/Blocks/HabitatClassification/index.js +2 -2
- package/src/components/manage/Blocks/HabitatDistribution/index.js +2 -2
- package/src/components/manage/Blocks/HabitatProtectedSites/index.js +2 -2
- package/src/components/manage/Blocks/HabitatsBanner/Edit.jsx +0 -1
- package/src/components/manage/Blocks/HabitatsBanner/View.jsx +46 -38
- package/src/components/manage/Blocks/HabitatsBanner/index.js +2 -2
- package/src/components/manage/Blocks/HabitatsBanner/style.less +0 -2
- package/src/components/manage/Blocks/ImageText/View.jsx +12 -5
- package/src/components/manage/Blocks/ImageText/index.js +2 -2
- package/src/components/manage/Blocks/ImageText/schema.js +69 -67
- package/src/components/manage/Blocks/LabeledList/index.js +2 -2
- package/src/components/manage/Blocks/LabeledList/style.less +1 -1
- package/src/components/manage/Blocks/Landing/EditBlockWrapper.jsx +3 -3
- package/src/components/manage/Blocks/Landing/index.js +3 -4
- package/src/components/manage/Blocks/List/View.jsx +6 -3
- package/src/components/manage/Blocks/List/index.js +2 -2
- package/src/components/manage/Blocks/List/style.less +1 -1
- package/src/components/manage/Blocks/N2KCountryProfileMap/View.jsx +2 -5
- package/src/components/manage/Blocks/N2KCountryProfileMap/index.js +2 -2
- package/src/components/manage/Blocks/NavigationAnchors/index.js +2 -2
- package/src/components/manage/Blocks/NavigationAnchors/schema.js +37 -35
- package/src/components/manage/Blocks/SimpleDataTable/index.js +2 -2
- package/src/components/manage/Blocks/SimpleDataTable/templates/colored/style.less +2 -2
- package/src/components/manage/Blocks/SiteBanner/index.js +2 -2
- package/src/components/manage/Blocks/SiteBanner/style.less +1 -1
- package/src/components/manage/Blocks/SiteHabitatsList/index.js +2 -2
- package/src/components/manage/Blocks/SiteHabitatsList/style.less +2 -2
- package/src/components/manage/Blocks/SiteProtectedHabitats/index.js +2 -2
- package/src/components/manage/Blocks/SiteProtectedHabitats/style.less +1 -1
- package/src/components/manage/Blocks/SiteProtectedSpecies/index.js +2 -2
- package/src/components/manage/Blocks/SiteProtectedSpecies/style.less +1 -1
- package/src/components/manage/Blocks/SiteShape/index.js +2 -2
- package/src/components/manage/Blocks/SiteSpeciesList/index.js +2 -2
- package/src/components/manage/Blocks/SlateSVG/styles.less +1 -1
- package/src/components/manage/Blocks/SpeciesBanner/Edit.jsx +0 -1
- package/src/components/manage/Blocks/SpeciesBanner/View.jsx +7 -4
- package/src/components/manage/Blocks/SpeciesBanner/index.js +2 -2
- package/src/components/manage/Blocks/SpeciesBanner/style.less +0 -2
- package/src/components/manage/Blocks/SpeciesClassification/index.js +2 -2
- package/src/components/manage/Blocks/SpeciesDistribution/index.js +2 -2
- package/src/components/manage/Blocks/SpeciesProtectedSites/index.js +2 -2
- package/src/components/manage/Blocks/StackedBarChart/StackedBars.jsx +4 -10
- package/src/components/manage/Blocks/StackedBarChart/View.jsx +2 -2
- package/src/components/manage/Blocks/StackedBarChart/index.js +2 -2
- package/src/components/manage/Blocks/StatusList/index.js +2 -2
- package/src/components/manage/Blocks/StatusList/style.less +1 -1
- package/src/components/manage/Blocks/TilesImages/index.js +2 -2
- package/src/components/manage/Blocks/TilesImages/schema.js +47 -45
- package/src/components/theme/AppExtras/index.js +2 -2
- package/src/customizations/@eeacms/volto-group-block/components/manage/Blocks/Group/EditBlockWrapper.jsx +2 -8
- package/src/less/styles.less +5 -5
- package/.project.eslintrc.js +0 -49
package/.project.eslintrc.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
const projectRootPath = fs.existsSync("./project")
|
|
5
|
-
? fs.realpathSync("./project")
|
|
6
|
-
: fs.realpathSync("./../../../");
|
|
7
|
-
const packageJson = require(path.join(projectRootPath, "package.json"));
|
|
8
|
-
const jsConfig = require(path.join(
|
|
9
|
-
projectRootPath,
|
|
10
|
-
"jsconfig.json"
|
|
11
|
-
)).compilerOptions;
|
|
12
|
-
|
|
13
|
-
const pathsConfig = jsConfig.paths;
|
|
14
|
-
|
|
15
|
-
let voltoPath = path.join(projectRootPath, "node_modules/@plone/volto");
|
|
16
|
-
|
|
17
|
-
Object.keys(pathsConfig).forEach((pkg) => {
|
|
18
|
-
if (pkg === "@plone/volto") {
|
|
19
|
-
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig[pkg][0]}`;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const AddonConfigurationRegistry = require(`${voltoPath}/addon-registry.js`);
|
|
23
|
-
const reg = new AddonConfigurationRegistry(projectRootPath);
|
|
24
|
-
|
|
25
|
-
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
26
|
-
const addonAliases = Object.keys(reg.packages).map((o) => [
|
|
27
|
-
o,
|
|
28
|
-
reg.packages[o].modulePath,
|
|
29
|
-
]);
|
|
30
|
-
|
|
31
|
-
module.exports = {
|
|
32
|
-
extends: `${projectRootPath}/node_modules/@plone/volto/.eslintrc`,
|
|
33
|
-
settings: {
|
|
34
|
-
"import/resolver": {
|
|
35
|
-
alias: {
|
|
36
|
-
map: [
|
|
37
|
-
["@plone/volto", "@plone/volto/src"],
|
|
38
|
-
...addonAliases,
|
|
39
|
-
["@package", `${__dirname}/src`],
|
|
40
|
-
["~", `${__dirname}/src`],
|
|
41
|
-
],
|
|
42
|
-
extensions: [".js", ".jsx", ".json"],
|
|
43
|
-
},
|
|
44
|
-
"babel-plugin-root-import": {
|
|
45
|
-
rootPathSuffix: "src",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|