@eeacms/volto-timeline-block 0.2.3 → 1.0.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.
@@ -2,7 +2,7 @@ const defaultBabel = require('@plone/volto/babel');
2
2
 
3
3
  function applyDefault(api) {
4
4
  const voltoBabel = defaultBabel(api);
5
- voltoBabel.plugins.push('@babel/plugin-transform-modules-commonjs', 'transform-class-properties', 'istanbul');
5
+ voltoBabel.plugins.push('istanbul');
6
6
  return voltoBabel;
7
7
  }
8
8
 
@@ -0,0 +1 @@
1
+ module.exports = require('@plone/volto/babel');
package/CHANGELOG.md CHANGED
@@ -4,38 +4,46 @@ 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
- #### [0.2.3](https://github.com/eea/volto-timeline-block/compare/0.2.2...0.2.3)
7
+ ### [1.0.0](https://github.com/eea/volto-timeline-block/compare/0.2.3...1.0.0) - 28 October 2022
8
8
 
9
+ #### :nail_care: Enhancements
9
10
 
10
- #### [0.2.2](https://github.com/eea/volto-timeline-block/compare/0.2.1...0.2.2)
11
+ - refactor(volto-slate): Replace volto-slate with core @plone/volto-slate [Alin Voinea - [`aa18d6a`](https://github.com/eea/volto-timeline-block/commit/aa18d6a01e6f3e4468a602f1bd26dfa73228308c)]
11
12
 
12
- > 8 June 2022
13
+ #### :hammer_and_wrench: Others
13
14
 
14
- - Release [`#3`](https://github.com/eea/volto-timeline-block/pull/3)
15
- - fix(timeline_block): BlockChooser Icon [`8a7b653`](https://github.com/eea/volto-timeline-block/commit/8a7b653a3f9fb9083e06b65860e6fbe73a19969b)
16
- - Remove useless from block title [`2eecc11`](https://github.com/eea/volto-timeline-block/commit/2eecc11c3e1791b222ebcceae691ec6e92854a4e)
15
+ - Jenkinsfile [Alin Voinea - [`56815ff`](https://github.com/eea/volto-timeline-block/commit/56815ffa6c1905f8a6463f14f312255e75a2ee76)]
16
+ - test(cypress): Cypress 10 / Razzle 4 [Alin Voinea - [`ca50ec9`](https://github.com/eea/volto-timeline-block/commit/ca50ec9a9ab4db0faf0b33fa250814d788741478)]
17
+ - Cleanup [Alin Voinea - [`28c2444`](https://github.com/eea/volto-timeline-block/commit/28c244491045ca3ba6a3c182818364f73951f765)]
18
+ - Update dependencies [Alin Voinea - [`ab59000`](https://github.com/eea/volto-timeline-block/commit/ab590002fdef3c95d4580893b6e407b51746a290)]
19
+ ### [0.2.3](https://github.com/eea/volto-timeline-block/compare/0.2.2...0.2.3) - 30 June 2022
17
20
 
18
- #### [0.2.1](https://github.com/eea/volto-timeline-block/compare/0.2.0...0.2.1)
21
+ ### [0.2.2](https://github.com/eea/volto-timeline-block/compare/0.2.1...0.2.2) - 8 June 2022
19
22
 
20
- > 22 April 2022
23
+ #### :bug: Bug Fixes
21
24
 
22
- - fix(icon): Remove console warning about invalid name ri-icon- [`#2`](https://github.com/eea/volto-timeline-block/pull/2)
25
+ - fix(timeline_block): BlockChooser Icon [Alin Voinea - [`8a7b653`](https://github.com/eea/volto-timeline-block/commit/8a7b653a3f9fb9083e06b65860e6fbe73a19969b)]
23
26
 
24
- #### [0.2.0](https://github.com/eea/volto-timeline-block/compare/0.1.0...0.2.0)
27
+ #### :hammer_and_wrench: Others
25
28
 
26
- > 29 March 2022
29
+ - Remove useless from block title [Alin Voinea - [`2eecc11`](https://github.com/eea/volto-timeline-block/commit/2eecc11c3e1791b222ebcceae691ec6e92854a4e)]
30
+ ### [0.2.1](https://github.com/eea/volto-timeline-block/compare/0.2.0...0.2.1) - 22 April 2022
27
31
 
28
- - Implement timeline block [`#1`](https://github.com/eea/volto-timeline-block/pull/1)
29
- - Release 0.2.0 [`296e2c1`](https://github.com/eea/volto-timeline-block/commit/296e2c1247bb12c71d03cb294a1bf5bc6b5332f4)
30
- - Update description [`ce5a657`](https://github.com/eea/volto-timeline-block/commit/ce5a657d3f3f692b0e36345b2153179866881fab)
31
- - Update README: Add screenshot [`d237607`](https://github.com/eea/volto-timeline-block/commit/d237607c843f12e3692a87b8cdef6ff7f751300d)
32
- - Move timeline block to common group [`57552b9`](https://github.com/eea/volto-timeline-block/commit/57552b9641aa7458acf3432ccfd37590758db5b0)
33
- - Add description [`eab3def`](https://github.com/eea/volto-timeline-block/commit/eab3def6d3ea273252e4881ca448643eb8eb6d25)
34
- - don't use timeline from volto-eea-design-system [`bfcf521`](https://github.com/eea/volto-timeline-block/commit/bfcf52143f656b908f12b3374cc3d596b35fc1f7)
35
- - Run bootstrap [`5edf844`](https://github.com/eea/volto-timeline-block/commit/5edf844a3a00cb9b5a40cd2bed0a9fea49f5c841)
32
+ #### :hammer_and_wrench: Others
36
33
 
37
- #### 0.1.0
34
+ ### [0.2.0](https://github.com/eea/volto-timeline-block/compare/0.1.0...0.2.0) - 29 March 2022
38
35
 
39
- > 23 March 2022
36
+ #### :hammer_and_wrench: Others
40
37
 
41
- - Initial commit [`b336dc7`](https://github.com/eea/volto-timeline-block/commit/b336dc76bdfad08e161f67312053a44570584e40)
38
+ - Release 0.2.0 [Alin Voinea - [`296e2c1`](https://github.com/eea/volto-timeline-block/commit/296e2c1247bb12c71d03cb294a1bf5bc6b5332f4)]
39
+ - Update description [Alin Voinea - [`ce5a657`](https://github.com/eea/volto-timeline-block/commit/ce5a657d3f3f692b0e36345b2153179866881fab)]
40
+ - Update README: Add screenshot [Alin Voinea - [`d237607`](https://github.com/eea/volto-timeline-block/commit/d237607c843f12e3692a87b8cdef6ff7f751300d)]
41
+ - Move timeline block to common group [Miu Razvan - [`57552b9`](https://github.com/eea/volto-timeline-block/commit/57552b9641aa7458acf3432ccfd37590758db5b0)]
42
+ - Add description [Miu Razvan - [`eab3def`](https://github.com/eea/volto-timeline-block/commit/eab3def6d3ea273252e4881ca448643eb8eb6d25)]
43
+ - don't use timeline from volto-eea-design-system [Miu Razvan - [`bfcf521`](https://github.com/eea/volto-timeline-block/commit/bfcf52143f656b908f12b3374cc3d596b35fc1f7)]
44
+ - Run bootstrap [Miu Razvan - [`5edf844`](https://github.com/eea/volto-timeline-block/commit/5edf844a3a00cb9b5a40cd2bed0a9fea49f5c841)]
45
+ ### 0.1.0 - 23 March 2022
46
+
47
+ #### :hammer_and_wrench: Others
48
+
49
+ - Initial commit [Miu Razvan - [`b336dc7`](https://github.com/eea/volto-timeline-block/commit/b336dc76bdfad08e161f67312053a44570584e40)]
package/babel.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = function (api) {
2
2
  api.cache(true);
3
- const presets = ['razzle/babel'];
3
+ const presets = ['razzle'];
4
4
  const plugins = [
5
5
  [
6
6
  'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
@@ -0,0 +1,26 @@
1
+ const { defineConfig } = require('cypress');
2
+
3
+ module.exports = defineConfig({
4
+ viewportWidth: 1280,
5
+ defaultCommandTimeout: 8888,
6
+ chromeWebSecurity: false,
7
+ reporter: 'junit',
8
+ video: true,
9
+ retries: {
10
+ runMode: 8,
11
+ openMode: 0,
12
+ },
13
+ reporterOptions: {
14
+ mochaFile: 'cypress/reports/cypress-[hash].xml',
15
+ jenkinsMode: true,
16
+ toConsole: true,
17
+ },
18
+ e2e: {
19
+ setupNodeEvents(on, config) {
20
+ // e2e testing node events setup code
21
+ require('@cypress/code-coverage/task')(on, config);
22
+ return config;
23
+ },
24
+ baseUrl: 'http://localhost:3000',
25
+ },
26
+ });
@@ -9,18 +9,18 @@ module.exports = {
9
9
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
10
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
11
11
  '@package/(.*)$': '<rootDir>/src/$1',
12
+ '@root/(.*)$': '<rootDir>/src/$1',
12
13
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
13
14
  '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
14
- 'volto-slate/(.*)$': '<rootDir>/src/addons/volto-slate/src/$1',
15
+ '@plone/volto-slate':
16
+ '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
15
17
  '~/(.*)$': '<rootDir>/src/$1',
16
18
  'load-volto-addons':
17
19
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
20
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
18
21
  },
19
22
  transform: {
20
23
  '^.+\\.js(x)?$': 'babel-jest',
21
- '^.+\\.css$': 'jest-css-modules',
22
- '^.+\\.less$': 'jest-css-modules',
23
- '^.+\\.scss$': 'jest-css-modules',
24
24
  '^.+\\.(png)$': 'jest-file',
25
25
  '^.+\\.(jpg)$': 'jest-file',
26
26
  '^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-timeline-block",
3
- "version": "0.2.3",
3
+ "version": "1.0.0",
4
4
  "description": "@eeacms/volto-timeline-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -17,27 +17,30 @@
17
17
  "url": "git@github.com:eea/volto-timeline-block.git"
18
18
  },
19
19
  "dependencies": {
20
- "@plone/scripts": "*"
21
20
  },
22
21
  "devDependencies": {
23
- "@cypress/code-coverage": "^3.9.5",
24
- "babel-plugin-transform-class-properties": "^6.24.1"
22
+ "@plone/scripts": "*",
23
+ "@cypress/code-coverage": "^3.10.0",
24
+ "babel-plugin-transform-class-properties": "^6.24.1",
25
+ "md5": "^2.3.0"
25
26
  },
26
27
  "scripts": {
27
28
  "release": "release-it",
29
+ "release-major-beta": "release-it major --preRelease=beta",
30
+ "release-beta": "release-it --preRelease=beta",
28
31
  "bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
29
32
  "test": "make test",
30
33
  "test:fix": "make test-update",
31
34
  "pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
32
- "stylelint": "if [ -d ./project ]; then ./project/node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'; else ../../../node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'; fi",
33
- "stylelint:overrides": "if [ -d ./project ]; then ./project/node_modules/.bin/stylelint --syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'; else ../../../node_modules/.bin/stylelint --syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'; fi",
34
- "stylelint:fix": "yarn stylelint --fix && yarn stylelint:overrides --fix",
35
- "prettier": "if [ -d ./project ]; then ./project/node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,json,css,less,md}'; else ../../../node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,json,css,less,md}'; fi",
36
- "prettier:fix": "if [ -d ./project ]; then ./project/node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'; else ../../../node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'; fi",
37
- "lint": "if [ -d ./project ]; then ./project/node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx}'; else ../../../node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx}'; fi",
38
- "lint:fix": "if [ -d ./project ]; then ./project/node_modules/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx}'; else ../../../node_modules/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx}'; fi",
39
- "i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon",
40
- "cypress:run": "if [ -d ./project ]; then NODE_ENV=development ./project/node_modules/cypress/bin/cypress run; else NODE_ENV=development ../../../node_modules/cypress/bin/cypress run; fi",
41
- "cypress:open": "if [ -d ./project ]; then NODE_ENV=development ./project/node_modules/cypress/bin/cypress open; else NODE_ENV=development ../../../node_modules/cypress/bin/cypress open; fi"
35
+ "stylelint": "make stylelint",
36
+ "stylelint:overrides": "make stylelint-overrides",
37
+ "stylelint:fix": "make stylelint-fix",
38
+ "prettier": "make prettier",
39
+ "prettier:fix": "make prettier-fix",
40
+ "lint": "make lint",
41
+ "lint:fix": "make lint-fix",
42
+ "i18n": "make i18n",
43
+ "cypress:run": "make cypress-run",
44
+ "cypress:open": "make cypress-open"
42
45
  }
43
46
  }
package/cypress.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "baseUrl": "http://localhost:3000",
3
- "viewportWidth": 1280,
4
- "defaultCommandTimeout": 8888,
5
- "chromeWebSecurity": false,
6
- "reporter": "junit",
7
- "video": true,
8
- "retries": {
9
- "runMode": 8,
10
- "openMode": 0
11
- },
12
- "reporterOptions": {
13
- "mochaFile": "cypress/reports/cypress-[hash].xml",
14
- "jenkinsMode": true,
15
- "toConsole": true
16
- }
17
- }