@kitconcept/volto-light-theme 1.0.0-rc.2 → 1.0.0-rc.20

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.
Files changed (102) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc +48 -0
  3. package/.github/workflows/acceptance.yml +52 -0
  4. package/.github/workflows/changelog.yml +1 -1
  5. package/.github/workflows/deploy.yml +105 -0
  6. package/.prettierrc +12 -0
  7. package/CHANGELOG.md +246 -0
  8. package/Makefile +53 -27
  9. package/README.md +215 -11
  10. package/acceptance/cypress/fixtures/halfdome2022.jpg +0 -0
  11. package/acceptance/cypress/support/e2e.js +4 -0
  12. package/acceptance/cypress/tests/basic.cy.js +23 -23
  13. package/acceptance/cypress/tests/blocks-map.cy.js +56 -0
  14. package/acceptance/cypress/tests/blocks-table.cy.js +127 -0
  15. package/acceptance/cypress/tests/listing-grid.cy.js +77 -0
  16. package/acceptance/docker-compose.yml +4 -8
  17. package/acceptance/package.json +1 -1
  18. package/acceptance/yarn.lock +102 -61
  19. package/babel.config.js +17 -0
  20. package/devops/stacks/light-theme.kitconcept.io.yml +66 -0
  21. package/dockerfiles/Dockerfile +12 -4
  22. package/dockerfiles/Dockerfile.acceptance +6 -0
  23. package/dockerfiles/Dockerfile.dev +4 -0
  24. package/dockerfiles/docker-compose.yml +27 -5
  25. package/dockerfiles/helper.py +132 -0
  26. package/locales/de/LC_MESSAGES/volto.po +222 -9
  27. package/locales/en/LC_MESSAGES/volto.po +216 -8
  28. package/locales/volto.pot +217 -9
  29. package/package.json +32 -10
  30. package/src/components/Anontools/Anontools.jsx +44 -70
  31. package/src/components/Blocks/Button/schema.js +4 -4
  32. package/src/components/Blocks/Image/Edit.jsx +462 -0
  33. package/src/components/Blocks/Image/ImageSidebar.jsx +130 -0
  34. package/src/components/Blocks/Image/View.jsx +149 -0
  35. package/src/components/Blocks/Image/adapter.js +65 -0
  36. package/src/components/Blocks/Image/schema.js +44 -0
  37. package/src/components/Blocks/Listing/DefaultTemplate.jsx +47 -0
  38. package/src/components/Blocks/Listing/GridTemplate.jsx +2 -2
  39. package/src/components/Blocks/Listing/ListingBody.jsx +188 -0
  40. package/src/components/Blocks/Maps/schema.js +5 -0
  41. package/src/components/Blocks/Search/TopSideFacets.jsx +33 -31
  42. package/src/components/Blocks/Search/components/SearchDetails.jsx +33 -0
  43. package/src/components/Blocks/Search/components/SearchInput.jsx +56 -0
  44. package/src/components/Blocks/Search/schema.js +6 -0
  45. package/src/components/Blocks/Slider/DefaultBody.jsx +151 -0
  46. package/src/components/Blocks/Slider/schema.js +41 -0
  47. package/src/components/Blocks/Teaser/schema.js +5 -0
  48. package/src/components/Blocks/Toc/schema.js +9 -0
  49. package/src/components/Blocks/Video/schema.js +5 -0
  50. package/src/components/Blocks/disableBgColorSchema.js +13 -0
  51. package/src/components/Caption/Caption.jsx +46 -0
  52. package/src/components/Footer/Footer.jsx +8 -0
  53. package/src/components/Header/Header.jsx +3 -3
  54. package/src/components/Theme/EventView.jsx +270 -0
  55. package/src/components/Theme/FileView.jsx +65 -0
  56. package/src/components/Theme/ImageView.jsx +76 -0
  57. package/src/components/Theme/NewsItemView.jsx +56 -0
  58. package/src/customizations/@kitconcept/volto-slider-block/components/DefaultBody.jsx +11 -0
  59. package/src/customizations/volto/components/manage/Blocks/Image/Edit.jsx +9 -0
  60. package/src/customizations/volto/components/manage/Blocks/Image/ImageSidebar.jsx +9 -0
  61. package/src/customizations/volto/components/manage/Blocks/Image/View.jsx +9 -0
  62. package/src/customizations/volto/components/manage/Blocks/Listing/DefaultTemplate.jsx +13 -44
  63. package/src/customizations/volto/components/manage/Blocks/Listing/ListingBody.jsx +8 -0
  64. package/src/customizations/volto/components/manage/Blocks/Listing/default-image.svg +30 -0
  65. package/src/customizations/volto/components/manage/Blocks/Search/components/SearchDetails.jsx +1 -26
  66. package/src/customizations/volto/components/manage/Blocks/Search/components/SearchInput.jsx +2 -50
  67. package/src/customizations/volto/components/theme/View/FileView.jsx +10 -0
  68. package/src/customizations/volto/components/theme/View/ImageView.jsx +10 -0
  69. package/src/customizations/volto/components/theme/View/NewsItemView.jsx +2 -49
  70. package/src/customizations/volto/icons/sort-down.svg +5 -0
  71. package/src/customizations/volto/icons/sort-up.svg +5 -0
  72. package/src/helpers/Filetype.js +64 -0
  73. package/src/index.js +133 -51
  74. package/src/theme/_bgcolor-blocks-layout.scss +6 -3
  75. package/src/theme/_breadcrumbs.scss +6 -1
  76. package/src/theme/_content.scss +204 -11
  77. package/src/theme/_footer.scss +2 -1
  78. package/src/theme/_header.scss +8 -16
  79. package/src/theme/_layout.scss +158 -45
  80. package/src/theme/_typo-custom.scss +41 -0
  81. package/src/theme/_typography.scss +9 -16
  82. package/src/theme/_variables.scss +101 -26
  83. package/src/theme/blocks/_accordion.scss +117 -0
  84. package/src/theme/blocks/_button.scss +9 -0
  85. package/src/theme/blocks/_grid.scss +169 -87
  86. package/src/theme/blocks/_image.scss +60 -42
  87. package/src/theme/blocks/_introduction.scss +4 -1
  88. package/src/theme/blocks/_listing.scss +258 -75
  89. package/src/theme/blocks/_maps.scss +46 -0
  90. package/src/theme/blocks/_search.scss +116 -12
  91. package/src/theme/blocks/_separator.scss +18 -3
  92. package/src/theme/blocks/_slider.scss +83 -53
  93. package/src/theme/blocks/_table.scss +58 -0
  94. package/src/theme/blocks/_teaser.scss +33 -18
  95. package/src/theme/blocks/_toc.scss +4 -0
  96. package/src/theme/collections/form.overrides +19 -0
  97. package/src/theme/collections/grid.variables +2 -5
  98. package/src/theme/main.scss +2 -0
  99. package/volto-light-theme.png +0 -0
  100. package/.eslintrc.local.js +0 -50
  101. package/src/customizations/volto/components/manage/Blocks/Grid/View.jsx +0 -44
  102. package/src/customizations/volto/components/manage/Form/Form.jsx +0 -803
package/.eslintignore CHANGED
@@ -1,2 +1,6 @@
1
1
  container-query-polyfill.modern.js
2
2
  cypress
3
+ node_modules
4
+ acceptance
5
+ *.json
6
+ remove_me
package/.eslintrc ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "extends": ["react-app", "prettier", "plugin:jsx-a11y/recommended"],
3
+ "plugins": ["prettier", "react-hooks", "jsx-a11y"],
4
+ "env": {
5
+ "es6": true,
6
+ "browser": true,
7
+ "node": true,
8
+ "mocha": true,
9
+ "jasmine": true
10
+ },
11
+ "parser": "@babel/eslint-parser",
12
+ "parserOptions": {
13
+ "ecmaVersion": 6,
14
+ "sourceType": "module",
15
+ "ecmaFeatures": {
16
+ "legacyDecorators": true
17
+ }
18
+ },
19
+ "rules": {
20
+ "import/no-unresolved": 0,
21
+ "no-alert": 1,
22
+ "no-console": 1,
23
+ "no-debugger": 1,
24
+ "prettier/prettier": [
25
+ "error",
26
+ { "trailingComma": "all", "singleQuote": true }
27
+ ],
28
+ "react-hooks/rules-of-hooks": "error",
29
+ "react-hooks/exhaustive-deps": "warn",
30
+ "react/react-in-jsx-scope": "off"
31
+ },
32
+ "globals": {
33
+ "root": true,
34
+ "__DEVELOPMENT__": true,
35
+ "__CLIENT__": true,
36
+ "__SERVER__": true,
37
+ "__DISABLE_SSR__": true,
38
+ "__DEVTOOLS__": true,
39
+ "__DEBUG__": true,
40
+ "__SSR__": true,
41
+ "__SENTRY__": true,
42
+ "cy": true,
43
+ "Cypress": true,
44
+ "jest": true,
45
+ "socket": true,
46
+ "webpackIsomorphicTools": true
47
+ }
48
+ }
@@ -0,0 +1,52 @@
1
+ name: Acceptance tests
2
+ on: [push]
3
+
4
+ env:
5
+ ADDON_NAME: "@kitconcept/volto-light-theme"
6
+ ADDON_PATH: "volto-light-theme"
7
+ VOLTO_VERSION: "17.0.0-alpha.27"
8
+
9
+ jobs:
10
+
11
+ acceptance:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Set up Docker Buildx
18
+ uses: docker/setup-buildx-action@v2
19
+
20
+ - name: Install Cypress
21
+ run: |
22
+ cd acceptance
23
+ yarn
24
+
25
+ - name: "Cypress: Acceptance tests"
26
+ uses: cypress-io/github-action@v6
27
+ env:
28
+ BABEL_ENV: production
29
+ CYPRESS_RETRIES: 2
30
+ with:
31
+ parallel: false
32
+ browser: chrome
33
+ working-directory: acceptance
34
+ spec: cypress/tests/*.js
35
+ install: false
36
+ start: |
37
+ docker compose -f ci.yml --profile prod up
38
+ wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000'
39
+
40
+ # Upload Cypress screenshots
41
+ - uses: actions/upload-artifact@v3
42
+ if: failure()
43
+ with:
44
+ name: cypress-screenshots-acceptance
45
+ path: acceptance/cypress/screenshots
46
+
47
+ # Upload Cypress videos
48
+ - uses: actions/upload-artifact@v3
49
+ if: failure()
50
+ with:
51
+ name: cypress-videos-acceptance
52
+ path: acceptance/cypress/videos
@@ -6,7 +6,7 @@ on:
6
6
  - main
7
7
 
8
8
  env:
9
- node-version: 16.x
9
+ node-version: 18.x
10
10
 
11
11
  jobs:
12
12
  build:
@@ -0,0 +1,105 @@
1
+ name: Release and deploy
2
+ on:
3
+ workflow_run:
4
+ workflows: [Acceptance Tests]
5
+ types:
6
+ - completed
7
+ branches:
8
+ - main
9
+ workflow_dispatch:
10
+
11
+ env:
12
+ ENVIRONMENT: "light-theme.kitconcept.io"
13
+ IMAGE_NAME: "ghcr.io/kitconcept/voltolighttheme-frontend"
14
+ VOLTO_VERSION: "17.0.0-alpha.26"
15
+
16
+ jobs:
17
+ meta:
18
+ runs-on: ubuntu-latest
19
+ outputs:
20
+ ENVIRONMENT: ${{ steps.vars.outputs.ENVIRONMENT }}
21
+ STACK_NAME: ${{ steps.vars.outputs.STACK_NAME }}
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v3
25
+
26
+ - name: Set Env Vars
27
+ id: vars
28
+ run: |
29
+ ENVIRONMENT=${{ env.ENVIRONMENT }}
30
+ echo "ENVIRONMENT=${ENVIRONMENT}" >> $GITHUB_OUTPUT
31
+ echo "STACK_NAME=${ENVIRONMENT//./-}" >> $GITHUB_OUTPUT
32
+
33
+ release:
34
+ runs-on: ubuntu-latest
35
+ needs:
36
+ - meta
37
+ steps:
38
+
39
+ - name: Checkout
40
+ uses: actions/checkout@v3
41
+
42
+ - name: Docker meta
43
+ id: meta
44
+ uses: docker/metadata-action@v4
45
+ with:
46
+ images: |
47
+ ${{ env.IMAGE_NAME }}
48
+ labels: |
49
+ org.label-schema.docker.cmd=docker run -d -p 3000:3000 ${{ env.IMAGE_NAME }}
50
+ flavor: |
51
+ latest=false
52
+ tags: |
53
+ type=ref,event=branch
54
+ type=sha
55
+ type=raw,value=latest,enable={{is_default_branch}}
56
+
57
+ - name: Set up Docker Buildx
58
+ uses: docker/setup-buildx-action@v2
59
+
60
+ - name: Login to GitHub Container Registry
61
+ uses: docker/login-action@v2
62
+ with:
63
+ registry: ghcr.io
64
+ username: ${{ github.actor }}
65
+ password: ${{ secrets.GITHUB_TOKEN }}
66
+
67
+ - name: Build and push
68
+ uses: docker/build-push-action@v3
69
+ with:
70
+ platforms: linux/amd64
71
+ context: ./
72
+ file: dockerfiles/Dockerfile
73
+ build-args: |
74
+ ADDON_NAME=@kitconcept/volto-light-theme
75
+ ADDON_PATH=volto-light-theme
76
+ VOLTO_VERSION=${{ env.VOLTO_VERSION }}
77
+ push: ${{ github.event_name != 'pull_request' }}
78
+ tags: ${{ steps.meta.outputs.tags }}
79
+ labels: $${{ steps.meta.outputs.labels }}
80
+ deploy:
81
+ if: ${{ github.ref == 'refs/heads/main' }}
82
+ runs-on: ubuntu-latest
83
+ needs:
84
+ - meta
85
+ - release
86
+ environment: ${{ needs.meta.outputs.ENVIRONMENT }}
87
+ steps:
88
+ - name: Checkout
89
+ uses: actions/checkout@v3
90
+
91
+ - name: Deploy to cluster
92
+ uses: kitconcept/docker-stack-deploy@v1.2.0
93
+ with:
94
+ registry: "ghcr.io"
95
+ username: ${{ github.actor }}
96
+ password: ${{ secrets.GITHUB_TOKEN }}
97
+ remote_host: ${{ secrets.DEPLOY_HOST }}
98
+ remote_port: ${{ secrets.DEPLOY_PORT }}
99
+ remote_user: ${{ secrets.DEPLOY_USER }}
100
+ remote_private_key: ${{ secrets.DEPLOY_SSH }}
101
+ stack_file: devops/stacks/${{ needs.meta.outputs.ENVIRONMENT }}.yml
102
+ stack_name: ${{ needs.meta.outputs.STACK_NAME }}
103
+ stack_param: ${{ github.ref_name }}
104
+ env_file: ${{ secrets.ENV_FILE }}
105
+ deploy_timeout: 480
package/.prettierrc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "trailingComma": "all",
3
+ "singleQuote": true,
4
+ "overrides": [
5
+ {
6
+ "files": "*.overrides",
7
+ "options": {
8
+ "parser": "less"
9
+ }
10
+ }
11
+ ]
12
+ }
package/CHANGELOG.md CHANGED
@@ -8,6 +8,252 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.0-rc.20 (2023-09-28)
12
+
13
+ ### Feature
14
+
15
+ - Add volto-highlight-block @sneridagh [#243](https://github.com/kitconcept/volto-light-theme/pull/243)
16
+
17
+
18
+ ## 1.0.0-rc.19 (2023-09-28)
19
+
20
+ ### Bugfix
21
+
22
+ - Remove too large margins on listing blocks @steffenri [#239](https://github.com/kitconcept/volto-light-theme/pull/239)
23
+ - Fix font sizes of one element in grids for edit mode @sneridagh [#241](https://github.com/kitconcept/volto-light-theme/pull/241)
24
+ - Update to latest accordion-block, some fixes @sneridagh [#242](https://github.com/kitconcept/volto-light-theme/pull/242)
25
+
26
+
27
+ ## 1.0.0-rc.18 (2023-09-25)
28
+
29
+ ### Feature
30
+
31
+ - Add button and flagAlign in slider block @iRohitSingh [#37](https://github.com/kitconcept/volto-light-theme/pull/37)
32
+ - Upgrade to Volto 17a27 @sneridagh [#232](https://github.com/kitconcept/volto-light-theme/pull/232)
33
+ - Add kitconcept branding @sneridagh
34
+ Add link to GitHub repo @sneridagh [#233](https://github.com/kitconcept/volto-light-theme/pull/233)
35
+
36
+ ### Bugfix
37
+
38
+ - Fix aspect ratio in slider @sneridagh [#233](https://github.com/kitconcept/volto-light-theme/pull/233)
39
+ - Fix form inputs height, transfer the height property to the parent .ui.input instead of the input itself, which behaves wrong. @sneridagh [#234](https://github.com/kitconcept/volto-light-theme/pull/234)
40
+ - Fix anontools in header, convert it to functional @sneridagh [#236](https://github.com/kitconcept/volto-light-theme/pull/236)
41
+
42
+
43
+ ## 1.0.0-rc.17 (2023-09-18)
44
+
45
+ ### Feature
46
+
47
+ - Upgrade to Volto 17a26 - Fix i18n - Upgrade Cypress 13 @sneridagh [#229](https://github.com/kitconcept/volto-light-theme/pull/229)
48
+ - Upgrade volto-heading-block version @sneridagh [#230](https://github.com/kitconcept/volto-light-theme/pull/230)
49
+
50
+ ### Bugfix
51
+
52
+ - Fix css for showing external link icon. @iFlameing [#19](https://github.com/kitconcept/volto-light-theme/pull/19)
53
+ - Remove extra config from table block @iFlameing. [#91](https://github.com/kitconcept/volto-light-theme/pull/91)
54
+ - Fix `dates` bottom margin for News Item in mobile. @danalvrz
55
+ Fix margins for Image block. @danalvrz
56
+ Fix margins for Video block. @danalvrz
57
+ Fix block title margin for Listing in Edit. @danalvrz
58
+ Fix block title margin for Grid in Edit. @danalvrz
59
+ Fix margin for Heading block in Edit. @danalvrz
60
+ Fix margins for Separator in Edit. @danalvrz
61
+ Fix margins for Maps block. @danalvrz [#220](https://github.com/kitconcept/volto-light-theme/pull/220)
62
+ - Write cypress test for the listing Grid variation. @iFlameing [#221](https://github.com/kitconcept/volto-light-theme/pull/221)
63
+ - Add acceptance test for maps block @iFlameing. [#223](https://github.com/kitconcept/volto-light-theme/pull/223)
64
+ - Fix mismatch of event view with Figma. @iFlameing [#226](https://github.com/kitconcept/volto-light-theme/pull/226)
65
+ - Fix a11y violation in File view. @iFlameing [#227](https://github.com/kitconcept/volto-light-theme/pull/227)
66
+
67
+
68
+ ## 1.0.0-rc.16 (2023-08-15)
69
+
70
+ ### Bugfix
71
+
72
+ - Add icons and default image customizations, fix other small image sizing issues for Listings, fix spacing issues for Search block. @danalvrz [#207](https://github.com/kitconcept/volto-light-theme/pull/207)
73
+ - Fix font-size of alt text description. @iFlameing [#217](https://github.com/kitconcept/volto-light-theme/pull/217)
74
+ - Fix unconditional Register link in header. @fredvd [#219](https://github.com/kitconcept/volto-light-theme/pull/219)
75
+
76
+
77
+ ## 1.0.0-rc.15 (2023-08-09)
78
+
79
+ ### Bugfix
80
+
81
+ - Update the recommended version of volto-separator-block to 4.0.0. @davisagli [#211](https://github.com/kitconcept/volto-light-theme/pull/211)
82
+ - ToC block fixes (remove most fields from the block, add default styling
83
+ schema, fix width in edit mode). @davisagli [#212](https://github.com/kitconcept/volto-light-theme/pull/212)
84
+ - Hide unnecessary Search block fields. @danalvrz [#213](https://github.com/kitconcept/volto-light-theme/pull/213)
85
+ - Upgrade to Volto 17-0.0-alpha.24. @davisagli [#214](https://github.com/kitconcept/volto-light-theme/pull/214)
86
+
87
+
88
+ ## 1.0.0-rc.14 (2023-08-08)
89
+
90
+ ### Feature
91
+
92
+ - Hide change note field. @davisagli [#206](https://github.com/kitconcept/volto-light-theme/pull/206)
93
+
94
+ ### Bugfix
95
+
96
+ - Remove external link icon from ICS download button event content type @iRohitSingh [#201](https://github.com/kitconcept/volto-light-theme/pull/201)
97
+ - Fix teaser right align is not aligned to right side of page @iFlameing. [#202](https://github.com/kitconcept/volto-light-theme/pull/202)
98
+ - Add missing german translations @steffenri [#205](https://github.com/kitconcept/volto-light-theme/pull/205)
99
+
100
+
101
+ ## 1.0.0-rc.13 (2023-08-03)
102
+
103
+ ### Bugfix
104
+
105
+ - Add external link for slate block @iRohitSingh [#188](https://github.com/kitconcept/volto-light-theme/pull/188)
106
+ - Fix responsive of listing block. @iFlameing [#189](https://github.com/kitconcept/volto-light-theme/pull/189)
107
+ - Fix pagination styles for Listings. @danalvrz
108
+
109
+ Change divider bar in News Item head title from string to pseudo-element. @danalvrz
110
+
111
+ Fix text decoration for links. @danalvrz
112
+
113
+ Fix background color for in-Grid Slate. @danalvrz
114
+
115
+ Fix Image block margins. @danalvrz
116
+
117
+ Fix Grid Listing variation CSS. @danalvrz
118
+
119
+ Fix Separator margin when preceded by Image block. @danalvrz
120
+
121
+ Fix Teaser margin in mobile. @danalvrz [#191](https://github.com/kitconcept/volto-light-theme/pull/191)
122
+ - Enable automatic hyphenation. @iFlameing [#193](https://github.com/kitconcept/volto-light-theme/pull/193)
123
+ - Upgrade to Volto 17.0.0-alpha.23 @davisagli [#195](https://github.com/kitconcept/volto-light-theme/pull/195)
124
+ - Fix image rights @iFlameing. [#197](https://github.com/kitconcept/volto-light-theme/pull/197)
125
+ - Fix aspect-ratio and add rule to center object position for all images. @danalvrz [#199](https://github.com/kitconcept/volto-light-theme/pull/199)
126
+
127
+
128
+ ## 1.0.0-rc.12 (2023-07-28)
129
+
130
+ ### Feature
131
+
132
+ - Upgrade to Volto 17a22. @davisagli [#186](https://github.com/kitconcept/volto-light-theme/pull/186)
133
+
134
+ ### Bugfix
135
+
136
+ - Fix responsive font sizing for headings. @danalvrz [#182](https://github.com/kitconcept/volto-light-theme/pull/182)
137
+ - Fix map block. @iFlameing [#183](https://github.com/kitconcept/volto-light-theme/pull/183)
138
+
139
+
140
+ ## 1.0.0-rc.11 (2023-07-28)
141
+
142
+ ### Breaking
143
+
144
+ - Update to Volto 17a21
145
+ Deprecate volto-image-block
146
+ Use new core Image component
147
+ @sneridagh [#177](https://github.com/kitconcept/volto-light-theme/pull/177)
148
+
149
+
150
+ ## 1.0.0-rc.10 (2023-07-26)
151
+
152
+ ### Bugfix
153
+
154
+ - Fix styles for blocks inside the Accordion block. @danalvrz [#146](https://github.com/kitconcept/volto-light-theme/pull/146)
155
+ - Fix styles for Search block's results default and summary listings. @danalvrz [#168](https://github.com/kitconcept/volto-light-theme/pull/168)
156
+ - Fix container problem of Event View @iFlameing [#170](https://github.com/kitconcept/volto-light-theme/pull/170)
157
+ - Add missing translation. @danalvrz [#172](https://github.com/kitconcept/volto-light-theme/pull/172)
158
+ - Fix contained block editor wrapper (for listings) @sneridagh [#173](https://github.com/kitconcept/volto-light-theme/pull/173)
159
+ - Update volto-button-block to 2.3.1 @steffenri [#174](https://github.com/kitconcept/volto-light-theme/pull/174)
160
+ - Update Table block to contain styling fieldset and css fix. @iFlameing [#175](https://github.com/kitconcept/volto-light-theme/pull/175)
161
+ - Remove levels choices h1,h4,h5 and h6 from Toc block @iRohitSingh [#178](https://github.com/kitconcept/volto-light-theme/pull/178)
162
+ - Fix responsiveness of video block. @iFlameing [#180](https://github.com/kitconcept/volto-light-theme/pull/180)
163
+ - Fixed responsive spacings & font sizes for mobile screens. @danalvrz [#181](https://github.com/kitconcept/volto-light-theme/pull/181)
164
+
165
+
166
+ ## 1.0.0-rc.9 (2023-07-19)
167
+
168
+ ### Breaking
169
+
170
+ - Refactor existing customizations, removing the ones no longer needed (because they are present in Volto already) and using the new pattern in the others. Volto 17a20 is required in order to retain consistency. @sneridagh [#166](https://github.com/kitconcept/volto-light-theme/pull/166)
171
+
172
+ ### Bugfix
173
+
174
+ - Fix NewsItemView as wella sd Link View @iFlameing [#127](https://github.com/kitconcept/volto-light-theme/pull/127)
175
+ - Fix Image View in edit mode @iFlameing. [#154](https://github.com/kitconcept/volto-light-theme/pull/154)
176
+ - Update volto-image-block @sneridagh [#159](https://github.com/kitconcept/volto-light-theme/pull/159)
177
+ - Fix File View implementation @iFlameing [#162](https://github.com/kitconcept/volto-light-theme/pull/162)
178
+
179
+ ### Internal
180
+
181
+ - Upgrade volto-image-block to fix the image upload @sneridagh [#149](https://github.com/kitconcept/volto-light-theme/pull/149)
182
+ - Upgrade to Volto 17a20 @sneridagh [#163](https://github.com/kitconcept/volto-light-theme/pull/163)
183
+ - Remove the `apiExpanders` existing locally in the package since it's already in Volto 17a20 @sneridagh [#164](https://github.com/kitconcept/volto-light-theme/pull/164)
184
+
185
+
186
+ ## 1.0.0-rc.8 (2023-07-14)
187
+
188
+ ### Bugfix
189
+
190
+ - Fix Image content type @iRohitSingh [#18](https://github.com/kitconcept/volto-light-theme/pull/18)
191
+ - Fix a11y issues in EventView @steffenri [#147](https://github.com/kitconcept/volto-light-theme/pull/147)
192
+ - Remove typo in fileview @steffenri [#148](https://github.com/kitconcept/volto-light-theme/pull/148)
193
+
194
+ ### Documentation
195
+
196
+ - Documentation on local docker development - local ESlint working @sneridagh [#144](https://github.com/kitconcept/volto-light-theme/pull/144)
197
+
198
+
199
+ ## 1.0.0-rc.7 (2023-07-13)
200
+
201
+ ### Bugfix
202
+
203
+ - Fix File content type @iRohitSingh [#17](https://github.com/kitconcept/volto-light-theme/pull/17)
204
+ - Add idiomatic order CSS package @sneridagh
205
+ Fix margin in edit mode for all blocks @sneridagh [#142](https://github.com/kitconcept/volto-light-theme/pull/142)
206
+ - Fix CSS for Accordion block. @danalvrz [#143](https://github.com/kitconcept/volto-light-theme/pull/143)
207
+
208
+
209
+ ## 1.0.0-rc.6 (2023-07-12)
210
+
211
+ ### Bugfix
212
+
213
+ - Fix Event content type @iRohitSingh [#16](https://github.com/kitconcept/volto-light-theme/pull/16)
214
+ - Fix local linting, add proper eslintignore @sneridagh [#139](https://github.com/kitconcept/volto-light-theme/pull/139)
215
+ - Minor fix for Listing margins. @danalvrz [#140](https://github.com/kitconcept/volto-light-theme/pull/140)
216
+ - Fix gutter for grids for small screens. Improve overall margins calculations for all blocks in the content area. @sneridagh [#141](https://github.com/kitconcept/volto-light-theme/pull/141)
217
+
218
+
219
+ ## 1.0.0-rc.5 (2023-07-11)
220
+
221
+ ### Breaking
222
+
223
+ - Move the container query polyfill to an add-on profile, disabled by default @sneridagh [#137](https://github.com/kitconcept/volto-light-theme/pull/137)
224
+
225
+ ### Feature
226
+
227
+ - Upgrade to Volto 17a17 as baseline @sneridagh [#136](https://github.com/kitconcept/volto-light-theme/pull/136)
228
+ - Add acceptance tests layer, update docker files and Makefile @sneridagh [#137](https://github.com/kitconcept/volto-light-theme/pull/137)
229
+
230
+ ### Bugfix
231
+
232
+ - Check if the separator is present before enhancing it @sneridagh [#138](https://github.com/kitconcept/volto-light-theme/pull/138)
233
+
234
+
235
+ ## 1.0.0-rc.4 (2023-07-11)
236
+
237
+ ### Bugfix
238
+
239
+ - Fix Teaser block CSS. @danalvrz [#134](https://github.com/kitconcept/volto-light-theme/pull/134)
240
+
241
+
242
+ ## 1.0.0-rc.3 (2023-07-10)
243
+
244
+ ### Breaking
245
+
246
+ - Remove `@kitconcept/volto-blocks-grid` dependency @sneridagh [#131](https://github.com/kitconcept/volto-light-theme/pull/131)
247
+
248
+ ### Bugfix
249
+
250
+ - Fix minor style bugs for Listing block @danalvrz [#130](https://github.com/kitconcept/volto-light-theme/pull/130)
251
+
252
+ ### Internal
253
+
254
+ - Create deploy to https://light-theme.kitconcept.io [@ericof] [#72](https://github.com/kitconcept/volto-light-theme/pull/72)
255
+
256
+
11
257
  ## 1.0.0-rc.2 (2023-07-07)
12
258
 
13
259
  ### Bugfix
package/Makefile CHANGED
@@ -22,40 +22,47 @@ RESET=`tput sgr0`
22
22
  YELLOW=`tput setaf 3`
23
23
 
24
24
  PLONE_VERSION=6
25
- VOLTO_VERSION=17.0.0-alpha.16
25
+ VOLTO_VERSION=17.0.0-alpha.27
26
26
 
27
27
  ADDON_NAME='@kitconcept/volto-light-theme'
28
28
  ADDON_PATH='volto-light-theme'
29
- DEV_COMPOSE=dockerfiles/docker-compose.yml
29
+ COMPOSE_FILE=dockerfiles/docker-compose.yml
30
30
  ACCEPTANCE_COMPOSE=acceptance/docker-compose.yml
31
31
  CMD=CURRENT_DIR=${CURRENT_DIR} ADDON_NAME=${ADDON_NAME} ADDON_PATH=${ADDON_PATH} VOLTO_VERSION=${VOLTO_VERSION} PLONE_VERSION=${PLONE_VERSION} docker compose
32
- DOCKER_COMPOSE=${CMD} -p ${ADDON_PATH} -f ${DEV_COMPOSE}
32
+ DOCKER_COMPOSE=${CMD} -p ${ADDON_PATH} -f ${COMPOSE_FILE}
33
+ DEV_COMPOSE=COMPOSE_PROFILES=dev ${DOCKER_COMPOSE}
34
+ LIVE_COMPOSE=COMPOSE_PROFILES=dev ${DOCKER_COMPOSE}
33
35
  ACCEPTANCE=${CMD} -p ${ADDON_PATH}-acceptance -f ${ACCEPTANCE_COMPOSE}
34
36
 
35
37
  .PHONY: build-backend
36
38
  build-backend: ## Build
37
39
  @echo "$(GREEN)==> Build Backend Container $(RESET)"
38
- ${DOCKER_COMPOSE} build backend
40
+ ${DEV_COMPOSE} build backend
39
41
 
40
42
  .PHONY: start-backend
41
43
  start-backend: ## Starts Docker backend
42
44
  @echo "$(GREEN)==> Start Docker-based Plone Backend $(RESET)"
43
- ${DOCKER_COMPOSE} up backend -d
45
+ ${DEV_COMPOSE} up backend -d
44
46
 
45
47
  .PHONY: stop-backend
46
48
  stop-backend: ## Stop Docker backend
47
49
  @echo "$(GREEN)==> Stop Docker-based Plone Backend $(RESET)"
48
- ${DOCKER_COMPOSE} stop backend
50
+ ${DEV_COMPOSE} stop backend
51
+
52
+ .PHONY: build-live
53
+ build-live: ## Build Addon live
54
+ @echo "$(GREEN)==> Build Addon development container $(RESET)"
55
+ ${LIVE_COMPOSE} build addon-live
49
56
 
50
57
  .PHONY: build-addon
51
58
  build-addon: ## Build Addon dev
52
59
  @echo "$(GREEN)==> Build Addon development container $(RESET)"
53
- ${DOCKER_COMPOSE} build addon-dev
60
+ ${DEV_COMPOSE} build addon-dev
54
61
 
55
62
  .PHONY: start-dev
56
63
  start-dev: ## Starts Dev container
57
64
  @echo "$(GREEN)==> Start Addon Development container $(RESET)"
58
- ${DOCKER_COMPOSE} up addon-dev
65
+ ${DEV_COMPOSE} up addon-dev backend
59
66
 
60
67
  .PHONY: dev
61
68
  dev: ## Develop the addon
@@ -69,47 +76,54 @@ dev: ## Develop the addon
69
76
  help: ## Show this help.
70
77
  @echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
71
78
 
79
+ ## Setup the local environment
80
+ .PHONY: install
81
+ install: ## Install the local environment, Cypress, build acceptance containers
82
+ yarn
83
+ make install-acceptance
84
+
72
85
  # Dev Helpers
73
86
  .PHONY: i18n
74
87
  i18n: ## Sync i18n
75
- ${DOCKER_COMPOSE} run addon-dev i18n
88
+ @echo "$(YELLOW)==> Do not forget to setup the local environment (make install) $(RESET)"
89
+ yarn i18n
76
90
 
77
91
  .PHONY: format
78
92
  format: ## Format codebase
79
- ${DOCKER_COMPOSE} run addon-dev lint:fix
80
- ${DOCKER_COMPOSE} run addon-dev prettier:fix
81
- ${DOCKER_COMPOSE} run addon-dev stylelint:fix
93
+ ${DEV_COMPOSE} run --rm addon-dev lint:fix
94
+ ${DEV_COMPOSE} run --rm addon-dev prettier:fix
95
+ ${DEV_COMPOSE} run --rm addon-dev stylelint:fix
82
96
 
83
97
  .PHONY: lint
84
98
  lint: ## Lint Codebase
85
- ${DOCKER_COMPOSE} run addon-dev lint
86
- ${DOCKER_COMPOSE} run addon-dev prettier
87
- ${DOCKER_COMPOSE} run addon-dev stylelint --allow-empty-input
99
+ ${DEV_COMPOSE} run --rm addon-dev lint
100
+ ${DEV_COMPOSE} run --rm addon-dev prettier
101
+ ${DEV_COMPOSE} run --rm addon-dev stylelint --allow-empty-input
88
102
 
89
103
  .PHONY: test
90
104
  test: ## Run unit tests
91
- ${DOCKER_COMPOSE} run addon-dev test --watchAll
105
+ ${DEV_COMPOSE} run --rm addon-dev test --watchAll
92
106
 
93
107
  .PHONY: test-ci
94
108
  test-ci: ## Run unit tests in CI
95
- ${DOCKER_COMPOSE} run -e CI=1 addon-dev test
109
+ ${DEV_COMPOSE} run -e CI=1 addon-dev test
96
110
 
97
111
  ## Acceptance
98
112
  .PHONY: install-acceptance
99
- install-acceptance: ## Install Cypress, build containers
113
+ install-acceptance: ## Install Cypress, build acceptance containers
100
114
  (cd acceptance && yarn)
101
115
  ${ACCEPTANCE} --profile dev --profile prod build
102
116
 
103
117
  .PHONY: start-test-acceptance-server
104
- start-test-acceptance-server: ## Start acceptance server
105
- ${ACCEPTANCE} --profile dev up -d
118
+ start-test-acceptance-server: ## Start acceptance server (for use it in while developing)
119
+ ${ACCEPTANCE} --profile dev up
106
120
 
107
121
  .PHONY: start-test-acceptance-server-prod
108
- start-test-acceptance-server-prod: ## Start acceptance server
122
+ start-test-acceptance-server-prod: ## Start acceptance server in prod (used by CI)
109
123
  ${ACCEPTANCE} --profile prod up -d
110
124
 
111
125
  .PHONY: test-acceptance
112
- test-acceptance: ## Start Cypress
126
+ test-acceptance: ## Start Cypress (for use it while developing)
113
127
  (cd acceptance && ./node_modules/.bin/cypress open)
114
128
 
115
129
  .PHONY: test-acceptance-headless
@@ -117,13 +131,25 @@ test-acceptance-headless: ## Run cypress tests in CI
117
131
  (cd acceptance && ./node_modules/.bin/cypress run)
118
132
 
119
133
  .PHONY: stop-test-acceptance-server
120
- stop-test-acceptance-server: ## Stop acceptance server
121
- ${ACCEPTANCE} down
134
+ stop-test-acceptance-server: ## Stop acceptance server (for use it while finished developing)
135
+ ${ACCEPTANCE} --profile dev down
122
136
 
123
137
  .PHONY: status-test-acceptance-server
124
- status-test-acceptance-server: ## Status of Acceptance Server
138
+ status-test-acceptance-server: ## Status of Acceptance Server (for use it while developing)
125
139
  ${ACCEPTANCE} ps
126
140
 
127
141
  .PHONY: debug-frontend
128
- debug-frontend: ## Run bash in the Frontend container
129
- ${DOCKER_COMPOSE} run --entrypoint bash addon-dev
142
+ debug-frontend: ## Run bash in the Frontend container (for debug infrastructure purposes)
143
+ ${DEV_COMPOSE} run --entrypoint bash addon-dev
144
+
145
+ .PHONY: pull-backend-image
146
+ pull-backend-image: ## Pulls and updates the backend image (for use it while developing)
147
+ docker pull ghcr.io/kitconcept/voltolighttheme:latest
148
+
149
+ .PHONY: release
150
+ release: ## Release a version of the add-on
151
+ yarn release
152
+
153
+ .PHONY: release-rc
154
+ release-rc: ## Release a RC version of the add-on
155
+ npx release-it --preRelease=rc