Skip to content

Commit 2def836

Browse files
authored
Merge branch 'main' into fix/copy-duplicate-fields
2 parents 00a1dcb + d10b984 commit 2def836

File tree

44 files changed

+690
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+690
-147
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
5353
NODE_OPTIONS: --max-old-space-size=4096
5454
TZ: Europe/Amsterdam
55-
- uses: actions/upload-artifact@v3
55+
- uses: actions/upload-artifact@v4
5656
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x' && failure()
5757
with:
5858
name: cypress-results

cypress/e2e/editorial_workflow_spec_test_backend.js

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,16 @@ describe('Test Backend Editorial Workflow', () => {
207207
login();
208208

209209
inSidebar(() => cy.contains('a', 'Pages').click());
210-
inSidebar(() => cy.contains('a', 'Directory'));
210+
inSidebar(() => cy.contains('a', /^Directory$/));
211211
inGrid(() => cy.contains('a', 'Root Page'));
212-
inGrid(() => cy.contains('a', 'Directory'));
213212

214-
inSidebar(() => cy.contains('a', 'Directory').click());
213+
inSidebar(() => cy.contains('a', /^Directory$/).click());
215214

216-
inGrid(() => cy.contains('a', 'Sub Directory'));
217-
inGrid(() => cy.contains('a', 'Another Sub Directory'));
215+
inSidebar(() => cy.contains('a', /^Sub Directory$/));
216+
inSidebar(() => cy.contains('a', 'Another Sub Directory'));
218217

219-
inSidebar(() => cy.contains('a', 'Sub Directory').click());
220-
inGrid(() => cy.contains('a', 'Nested Directory'));
218+
inSidebar(() => cy.contains('a', /^Sub Directory$/).click());
219+
inSidebar(() => cy.contains('a', 'Nested Directory'));
221220
cy.url().should(
222221
'eq',
223222
'http://localhost:8080/#/collections/pages/filter/directory/sub-directory',
@@ -233,21 +232,17 @@ describe('Test Backend Editorial Workflow', () => {
233232
login();
234233

235234
inSidebar(() => cy.contains('a', 'Pages').click());
236-
inSidebar(() => cy.contains('a', 'Directory').click());
237-
inGrid(() => cy.contains('a', 'Another Sub Directory').click());
238-
239-
cy.url().should(
240-
'eq',
241-
'http://localhost:8080/#/collections/pages/entries/directory/another-sub-directory/index',
242-
);
235+
inSidebar(() => cy.contains('a', /^Directory$/).click());
236+
inSidebar(() => cy.contains('a', 'Another Sub Directory').click());
237+
inGrid(() => cy.contains('a', 'Another Sub Directory'));
243238
});
244239

245240
it(`can create a new entry with custom path`, () => {
246241
login();
247242

248243
inSidebar(() => cy.contains('a', 'Pages').click());
249-
inSidebar(() => cy.contains('a', 'Directory').click());
250-
inSidebar(() => cy.contains('a', 'Sub Directory').click());
244+
inSidebar(() => cy.contains('a', /^Directory$/).click());
245+
inSidebar(() => cy.contains('a', /^Sub Directory$/).click());
251246
cy.contains('a', 'New Page').click();
252247

253248
cy.get('[id^="path-field"]').should('have.value', 'directory/sub-directory');
@@ -262,18 +257,18 @@ describe('Test Backend Editorial Workflow', () => {
262257
publishEntryInEditor(publishTypes.publishNow);
263258
exitEditor();
264259

265-
inGrid(() => cy.contains('a', 'New Path Title'));
266-
inSidebar(() => cy.contains('a', 'Directory').click());
267-
inSidebar(() => cy.contains('a', 'Directory').click());
260+
inSidebar(() => cy.contains('a', 'New Path Title'));
261+
inSidebar(() => cy.contains('a', /^Directory$/).click());
262+
inSidebar(() => cy.contains('a', /^Directory$/).click());
268263
inGrid(() => cy.contains('a', 'New Path Title').should('not.exist'));
269264
});
270265

271266
it(`can't create an entry with an existing path`, () => {
272267
login();
273268

274269
inSidebar(() => cy.contains('a', 'Pages').click());
275-
inSidebar(() => cy.contains('a', 'Directory').click());
276-
inSidebar(() => cy.contains('a', 'Sub Directory').click());
270+
inSidebar(() => cy.contains('a', /^Directory$/).click());
271+
inSidebar(() => cy.contains('a', /^Sub Directory$/).click());
277272

278273
cy.contains('a', 'New Page').click();
279274
cy.get('[id^="title-field"]').type('New Path Title');
@@ -292,7 +287,8 @@ describe('Test Backend Editorial Workflow', () => {
292287
login();
293288

294289
inSidebar(() => cy.contains('a', 'Pages').click());
295-
inGrid(() => cy.contains('a', 'Directory').click());
290+
inSidebar(() => cy.contains('a', /^Directory$/).click());
291+
inGrid(() => cy.contains('a', /^Directory$/).click());
296292

297293
cy.get('[id^="path-field"]').should('have.value', 'directory');
298294
cy.get('[id^="path-field"]').clear();
@@ -310,7 +306,7 @@ describe('Test Backend Editorial Workflow', () => {
310306

311307
inSidebar(() => cy.contains('a', 'New Directory').click());
312308

313-
inGrid(() => cy.contains('a', 'Sub Directory'));
314-
inGrid(() => cy.contains('a', 'Another Sub Directory'));
309+
inSidebar(() => cy.contains('a', /^Sub Directory$/));
310+
inSidebar(() => cy.contains('a', 'Another Sub Directory'));
315311
});
316312
});

dev-test/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ collections: # A list of collections the CMS should be able to edit
1717
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
1818
summary: '{{title}} -- {{year}}/{{month}}/{{day}}'
1919
create: true # Allow users to create new documents in this collection
20+
editor:
21+
visualEditing: true
2022
view_filters:
2123
- label: Posts With Index
2224
field: title
@@ -61,6 +63,8 @@ collections: # A list of collections the CMS should be able to edit
6163
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
6264
summary: '{{title}} -- {{year}}/{{month}}/{{day}}'
6365
create: true # Allow users to create new documents in this collection
66+
editor:
67+
visualEditing: true
6468
fields: # The fields each document in this collection have
6569
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
6670
- { label: 'Body', name: 'body', widget: 'markdown', hint: 'Main content goes here.' }
@@ -272,7 +276,7 @@ collections: # A list of collections the CMS should be able to edit
272276
label_singular: 'Page'
273277
folder: _pages
274278
create: true
275-
nested: { depth: 100 }
279+
nested: { depth: 100, subfolders: false }
276280
fields:
277281
- label: Title
278282
name: title

package-lock.json

Lines changed: 21 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/decap-cms-app/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.6.2](https://github.com/decaporg/decap-cms/compare/decap-cms-app@3.6.1...decap-cms-app@3.6.2) (2025-02-13)
7+
8+
**Note:** Version bump only for package decap-cms-app
9+
10+
## [3.6.1](https://github.com/decaporg/decap-cms/compare/decap-cms-app@3.6.0...decap-cms-app@3.6.1) (2025-01-30)
11+
12+
**Note:** Version bump only for package decap-cms-app
13+
14+
# [3.6.0](https://github.com/decaporg/decap-cms/compare/decap-cms-app@3.5.0...decap-cms-app@3.6.0) (2025-01-29)
15+
16+
**Note:** Version bump only for package decap-cms-app
17+
618
# [3.5.0](https://github.com/decaporg/decap-cms/compare/decap-cms-app@3.4.0...decap-cms-app@3.5.0) (2025-01-15)
719

820
### Bug Fixes

packages/decap-cms-app/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "decap-cms-app",
33
"description": "An extensible, open source, Git-based, React CMS for static sites. Reusable congiuration with React as peer.",
4-
"version": "3.5.0",
4+
"version": "3.6.2",
55
"homepage": "https://www.decapcms.org",
66
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-app",
77
"bugs": "https://github.com/decaporg/decap-cms/issues",
@@ -40,10 +40,10 @@
4040
"decap-cms-backend-gitlab": "^3.2.2",
4141
"decap-cms-backend-proxy": "^3.1.4",
4242
"decap-cms-backend-test": "^3.1.3",
43-
"decap-cms-core": "^3.5.0",
43+
"decap-cms-core": "^3.6.1",
4444
"decap-cms-editor-component-image": "^3.1.3",
4545
"decap-cms-lib-auth": "^3.0.5",
46-
"decap-cms-lib-util": "^3.1.0",
46+
"decap-cms-lib-util": "^3.2.0",
4747
"decap-cms-lib-widgets": "^3.1.0",
4848
"decap-cms-locales": "^3.3.0",
4949
"decap-cms-ui-default": "^3.1.4",
@@ -53,11 +53,11 @@
5353
"decap-cms-widget-datetime": "^3.2.3",
5454
"decap-cms-widget-file": "^3.1.3",
5555
"decap-cms-widget-image": "^3.1.3",
56-
"decap-cms-widget-list": "^3.2.2",
56+
"decap-cms-widget-list": "^3.3.0",
5757
"decap-cms-widget-map": "^3.1.4",
58-
"decap-cms-widget-markdown": "^3.2.0",
58+
"decap-cms-widget-markdown": "^3.3.0",
5959
"decap-cms-widget-number": "^3.1.3",
60-
"decap-cms-widget-object": "^3.2.0",
60+
"decap-cms-widget-object": "^3.3.1",
6161
"decap-cms-widget-relation": "^3.3.2",
6262
"decap-cms-widget-select": "^3.2.2",
6363
"decap-cms-widget-string": "^3.1.3",

packages/decap-cms-core/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.6.1](https://github.com/decaporg/decap-cms/compare/decap-cms-core@3.6.0...decap-cms-core@3.6.1) (2025-02-13)
7+
8+
**Note:** Version bump only for package decap-cms-core
9+
10+
# [3.6.0](https://github.com/decaporg/decap-cms/compare/decap-cms-core@3.5.0...decap-cms-core@3.6.0) (2025-01-29)
11+
12+
### Bug Fixes
13+
14+
- **widgetsFor:** return widgets for variable type lists ([#7296](https://github.com/decaporg/decap-cms/issues/7296)) ([9be2693](https://github.com/decaporg/decap-cms/commit/9be2693d1b35bf56c7ef05bdece6c24a21ba7567)), closes [/github.com/decaporg/decap-cms/issues/2307#issuecomment-638326225](https://github.com//github.com/decaporg/decap-cms/issues/2307/issues/issuecomment-638326225)
15+
16+
### Features
17+
18+
- **nested collections:** allow non-index files ([#7359](https://github.com/decaporg/decap-cms/issues/7359)) ([47a2f70](https://github.com/decaporg/decap-cms/commit/47a2f70ef788ae8e61bbbc0ac21e00d68d0029d0)), closes [#4972](https://github.com/decaporg/decap-cms/issues/4972)
19+
- visual editing (click-to-edit) ([#7374](https://github.com/decaporg/decap-cms/issues/7374)) ([989c2dd](https://github.com/decaporg/decap-cms/commit/989c2dd6ed80f69b572b8b73c4e37b5106ae04fb))
20+
621
# [3.5.0](https://github.com/decaporg/decap-cms/compare/decap-cms-core@3.4.2...decap-cms-core@3.5.0) (2024-11-12)
722

823
### Bug Fixes

packages/decap-cms-core/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ declare module 'decap-cms-core' {
310310
publish?: boolean;
311311
nested?: {
312312
depth: number;
313+
subfolders?: boolean;
313314
};
314315
meta?: { path?: { label: string; widget: string; index_file: string } };
315316

packages/decap-cms-core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "decap-cms-core",
33
"description": "Decap CMS core application, see decap-cms package for the main distribution.",
4-
"version": "3.5.0",
4+
"version": "3.6.1",
55
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-core",
66
"bugs": "https://github.com/decaporg/decap-cms/issues",
77
"module": "dist/esm/index.js",
@@ -26,6 +26,7 @@
2626
"dependencies": {
2727
"@iarna/toml": "2.2.5",
2828
"@reduxjs/toolkit": "^1.9.1",
29+
"@vercel/stega": "^0.1.2",
2930
"ajv": "8.12.0",
3031
"ajv-errors": "^3.0.0",
3132
"ajv-keywords": "^5.0.0",

0 commit comments

Comments
 (0)