830 Commits

Author SHA1 Message Date
Petro Pavlenko
1a60e6d7fd
fix(type-defs): add string type to EditorComponentData id property (#3602) 2020-04-14 13:15:38 +03:00
Kunal Kundu
36ae69c96e
fix: add missing generic type to registerPreviewTemplate (#3597) 2020-04-13 18:48:55 +03:00
renovate[bot]
25898ed678
chore(deps): update node.js to >=v10.20.1 (#3588)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-13 09:43:21 +03:00
Erez Rokah
39e00261a2
Test: add yaml (and other formats) parsing tests (#3586) 2020-04-12 19:40:44 +03:00
Hannes Küttner
625a9980f1
fix: unify the title used in entry cards and workflow cards (#3573) (#3575) 2020-04-12 19:31:25 +03:00
Tom Claes
79b8469337
feat(widget-datetime): add now to datepicker (#3484) 2020-04-12 18:17:01 +03:00
Przemysław Ścigała
7fcdaef1c9
fix: increase DropdownList z-index (#3579) 2020-04-12 12:41:43 +03:00
Shawn Erquhart
2e0de95aed chore(release): publish
- netlify-cms-app@2.12.7
 - netlify-cms-core@2.24.2
 - netlify-cms@2.10.43
2020-04-10 17:54:53 -04:00
Bartholomew
b8eeab2e35
fix: enable merge option for yaml parser (#3577) 2020-04-10 17:50:05 -04:00
Shawn Erquhart
b9d6632203 chore(release): publish
- netlify-cms-app@2.12.6
 - netlify-cms-core@2.24.1
 - netlify-cms@2.10.42
2020-04-09 10:17:00 -04:00
Erez Rokah
0d59642e64
fix: pass prettyErrors to yaml when parsing config (#3571) 2020-04-09 16:41:52 +03:00
Bartholomew
1d88b15de5
fix: duplicate entry (#3563) 2020-04-09 14:44:06 +03:00
Erez Rokah
0761ffa3f2
fix: use v1.1 schema only when parsing (#3569) 2020-04-09 14:17:12 +03:00
Erez Rokah
bfb2e2bc57
fix: allow unlimited alias count (#3570) 2020-04-09 13:33:21 +03:00
Shawn Erquhart
0b2755c8da chore(release): publish
- netlify-cms-app@2.12.5
 - netlify-cms-backend-github@2.10.4
 - netlify-cms-core@2.24.0
 - netlify-cms-widget-date@2.5.0
 - netlify-cms-widget-datetime@2.3.0
 - netlify-cms-widget-markdown@2.11.0
 - netlify-cms@2.10.41
2020-04-07 09:42:02 -04:00
Erez Rokah
1705c79a92
fix(backend-github): add fallback for diff errors/warnings (#3558) 2020-04-07 15:42:24 +03:00
Erez Rokah
4afbbdd8a9
feat(yaml): support comments (#3529) 2020-04-07 15:00:06 +03:00
Shawn Erquhart
4489b6ff49 chore(release): publish
- netlify-cms-app@2.12.4
 - netlify-cms-backend-proxy@1.0.6
 - netlify-cms-core@2.23.4
 - netlify-cms-locales@1.10.3
 - netlify-cms-widget-file@2.6.4
 - netlify-cms@2.10.40
2020-04-06 13:24:46 -04:00
Erez Rokah
6933bf6ee1
fix: missing widgets (#3541) 2020-04-05 16:46:26 +03:00
Erez Rokah
76732f7208
fix(widget-image): multiple image support (#3538) 2020-04-05 12:33:54 +03:00
Erez Rokah
d4b28e22a6
Fix(locale): Add missing translation strings for polish (#3530) 2020-04-02 20:25:06 +03:00
Erez Rokah
f94dea386c
fix(backend-proxy): fix error reporting (#3527) 2020-04-02 12:46:34 +03:00
Shawn Erquhart
9af7069a35 chore(release): publish
- netlify-cms-app@2.12.3
 - netlify-cms-core@2.23.3
 - netlify-cms@2.10.39
2020-04-01 17:14:22 -04:00
Shawn Erquhart
c2425b44e8
fix: stop collection view controls from overflowing (#3521) 2020-04-01 18:23:59 +03:00
Erez Rokah
1a577b8e27
fix: set default public_folder on files and fields (#3519) 2020-04-01 17:18:56 +03:00
Erez Rokah
601175c6a1
fix: sanitize dots in path collection config (#3518) 2020-04-01 16:40:14 +03:00
Shawn Erquhart
a8678559b2 chore(release): publish
- netlify-cms-app@2.12.2
 - netlify-cms-backend-github@2.10.3
 - netlify-cms-core@2.23.2
 - netlify-cms-lib-util@2.9.2
 - netlify-cms-proxy-server@1.2.4
 - netlify-cms@2.10.38
2020-04-01 09:23:37 -04:00
Erez Rokah
ea41b98324
fix: use resolveBackend instead of currentBackend (#3514) 2020-04-01 14:05:02 +03:00
Erez Rokah
a1bf86e856
fix: don't override empty public folder (#3513) 2020-04-01 13:16:30 +03:00
Erez Rokah
cc89aa5c43
fix(open-authoring): properly delete open authoring branches (#3512) 2020-04-01 12:42:32 +03:00
Erez Rokah
49098de27f
fix: move common api functions to a separate file (#3511) 2020-04-01 11:44:39 +03:00
Shawn Erquhart
816bef5ffa chore(release): publish
- netlify-cms-app@2.12.1
 - netlify-cms-backend-bitbucket@2.11.3
 - netlify-cms-backend-git-gateway@2.10.2
 - netlify-cms-backend-github@2.10.2
 - netlify-cms-backend-gitlab@2.8.3
 - netlify-cms-backend-proxy@1.0.5
 - netlify-cms-backend-test@2.8.1
 - netlify-cms-core@2.23.1
 - netlify-cms-lib-auth@2.2.8
 - netlify-cms-lib-util@2.9.1
 - netlify-cms-locales@1.10.2
 - netlify-cms-proxy-server@1.2.3
 - netlify-cms-ui-default@2.9.5
 - netlify-cms@2.10.37
2020-03-31 23:22:50 -04:00
Erez Rokah
174d86f0a0
Feat: entry sorting (#3494)
* refactor: typescript search actions, add tests avoid duplicate search

* refactor: switch from promise chain to async/await in loadEntries

* feat: add sorting, initial commit

* fix: set isFetching to true on entries request

* fix: ui improvments and bug fixes

* test: fix tests

* feat(backend-gitlab): cache local tree)

* fix: fix prop type warning

* refactor: code cleanup

* feat(backend-bitbucket): add local tree caching support

* feat: swtich to orderBy and support multiple sort keys

* fix: backoff function

* fix: improve backoff

* feat: infer sortable fields

* feat: fetch file commit metadata - initial commit

* feat: extract file author and date, finalize GitLab & Bitbucket

* refactor: code cleanup

* feat: handle github rate limit errors

* refactor: code cleanup

* fix(github): add missing author and date when traversing cursor

* fix: add missing author and date when traversing cursor

* refactor: code cleanup

* refactor: code cleanup

* refactor: code cleanup

* test: fix tests

* fix: rebuild local tree when head doesn't exist in remote branch

* fix: allow sortable fields to be an empty array

* fix: allow translation of built in sort fields

* build: fix proxy server build

* fix: hide commit author and date fields by default on non git backends

* fix(algolia): add listAllEntries method for alogolia integration

* fix: handle sort fields overflow

* test(bitbucket): re-record some bitbucket e2e tests

* test(bitbucket): fix media library test

* refactor(gitgateway-gitlab): share request code and handle 404 errors

* fix: always show commit date by default

* docs: add sortableFields

* refactor: code cleanup

* improvement: drop multi-sort, rework sort UI

* chore: force main package bumps

Co-authored-by: Shawn Erquhart <shawn@erquh.art>
2020-03-31 23:13:27 -04:00
Erez Rokah
cbb3927101
fix(open-authoring): prevent workflow view from breaking on entry error (#3508) 2020-03-31 17:27:59 +03:00
Bartholomew
970529570b
fix: media files when duplicating entry (#3507) 2020-03-31 14:58:30 +03:00
Shawn Erquhart
b680389392 chore(release): publish
- netlify-cms-app@2.12.0
 - netlify-cms-backend-git-gateway@2.10.1
 - netlify-cms-backend-test@2.8.0
 - netlify-cms-core@2.23.0
 - netlify-cms-locales@1.10.1
 - netlify-cms-ui-default@2.9.4
 - netlify-cms-widget-code@1.1.4
 - netlify-cms-widget-file@2.6.3
 - netlify-cms-widget-markdown@2.10.2
 - netlify-cms@2.10.36
2020-03-30 11:46:04 -04:00
Tomáš Mazač
bae6a2b68a
fix(locale): Fix czech locale (#3493) 2020-03-29 20:12:52 +03:00
Erez Rokah
3afe2b16de
Feat: add logo to inference for thumbnails (#3481)
Co-authored-by: Max Metral <max@pyralis.com>
2020-03-26 19:23:31 +02:00
Manish Giri
a91e8316f7
refactor(ui): use variables for z-index values (#3453) 2020-03-24 15:46:47 +02:00
Erez Rokah
42d60a644c
fix: update error boundary about GitHub issue data (#3471) 2020-03-23 19:02:01 +02:00
Erez Rokah
ae1917c818
fix: allow widgets to control value to be validated (#3448) 2020-03-23 16:33:29 +02:00
Erez Rokah
ce69fdd66b
chore: cleanup warnings (#3469) 2020-03-23 13:09:06 +02:00
Erez Rokah
df33bc64a9
feat: add publish configuration option to collections (#3467) 2020-03-23 12:01:37 +02:00
Erez Rokah
45a1654404
fix: don't use getAsset for draft entries (#3403) 2020-03-22 16:53:06 +02:00
Erez Rokah
e92ba412d8
chore: populate error boundry issue with relevant values (#3460) 2020-03-22 16:04:11 +02:00
Erez Rokah
cd324b08f1
feat: expose CMS moment (#3458) 2020-03-22 15:18:19 +02:00
Shawn Erquhart
d4350e50e2 chore(release): publish
- netlify-cms-app@2.11.32
 - netlify-cms-backend-bitbucket@2.11.2
 - netlify-cms-backend-github@2.10.1
 - netlify-cms-backend-gitlab@2.8.2
 - netlify-cms-core@2.22.2
 - netlify-cms@2.10.35
2020-03-20 09:26:34 -04:00
Derek Nguyen
6d8765521c
fix(core): pass loadEntry to widgets as utility function and not redux action (#3439) 2020-03-20 12:54:53 +02:00
Bartholomew
9616cdb8bb
fix: missing workflow timestamp (#3445) 2020-03-20 12:20:12 +02:00
Shawn Erquhart
872e945c47 chore(release): publish
- netlify-cms-app@2.11.31
 - netlify-cms@2.10.34
2020-03-19 15:45:25 -04:00
Shawn Erquhart
bc5f13e3ea chore: update website ticker, force version bumps 2020-03-19 15:43:00 -04:00
Shawn Erquhart
4ac0e1f3c1 chore(release): publish
- netlify-cms-app@2.11.30
 - netlify-cms-core@2.22.1
 - netlify-cms-proxy-server@1.2.2
 - netlify-cms-widget-markdown@2.10.1
 - netlify-cms@2.10.33
2020-03-19 11:47:59 -04:00
marcricharme
e81a35ccb8
fix(core): custom widget validate bug in EditorControlPane (#3435) 2020-03-19 11:38:26 +02:00
Erez Rokah
2409323dba
fix: call createDraftFromEntry after entry is loaded instead in Editor (#3418)
* fix: call createDraftFromEntry after entry is loaded instead in Editor
2020-03-16 20:48:49 +01:00
renovate[bot]
ea96452641
chore(deps): update node.js to >=v10.19.0 (#3426)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-16 12:44:01 +01:00
renovate[bot]
d812eecc51
chore(deps): lock file maintenance (#3428)
* chore(deps): lock file maintenance

* fix: don't add undefined children property

* chore: add missing axios dependency

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
2020-03-16 12:38:10 +01:00
Shawn Erquhart
4537c03068 chore(release): publish
- netlify-cms-app@2.11.29
 - netlify-cms-locales@1.10.0
 - netlify-cms@2.10.32
2020-03-13 14:21:06 -04:00
Ferran Buireu
66baec4b8f
feat(catalan-translation): add catalan translation (#3412) 2020-03-13 18:13:20 +01:00
Shawn Erquhart
66ccbead5a chore(release): publish
- netlify-cms-app@2.11.28
 - netlify-cms-backend-git-gateway@2.10.0
 - netlify-cms-backend-github@2.10.0
 - netlify-cms-core@2.22.0
 - netlify-cms-lib-util@2.9.0
 - netlify-cms-locales@1.9.4
 - netlify-cms-proxy-server@1.2.1
 - netlify-cms-ui-default@2.9.3
 - netlify-cms-widget-markdown@2.10.0
 - netlify-cms@2.10.31
2020-03-12 10:46:06 -04:00
Erez Rokah
70de9f6b4b
fix(backend-github): don't create new commits on empty diff when rebasing (#3411) 2020-03-12 14:28:50 +01:00
Erez Rokah
c2e7a24dc2
fix: update repo owner from GitHub API to match casing (#3410) 2020-03-12 11:29:23 +01:00
Shawn Erquhart
05a1c91a3c
chore: add hack to manually bump main packages (#3385) 2020-03-09 16:37:13 +01:00
Erez Rokah
92e76011e7
feat: add media lib virtualization (#3381) 2020-03-09 08:45:42 +01:00
Marcin Hagmajer
9c0f618148
fix(type-defs): signature for CMS.registerWidget (#3386)
registerWidget can be called with a single argument `CmsWidgetParam`
2020-03-09 08:45:12 +01:00
Erez Rokah
eb21723799
fix(locale): Translate headings into german (#3382) 2020-03-05 19:48:18 +01:00
Erez Rokah
50837b0068
fix: ja locale labels (#3367) 2020-03-05 16:35:24 +01:00
Erez Rokah
39f1307e3a
feat(backend-github): add pagination (#3379) 2020-03-05 11:58:49 +01:00
Erez Rokah
f3fd43b819
fix: cache assets using resolved path on error (#3378) 2020-03-04 15:25:03 +01:00
Erez Rokah
ff3b62d12f
fix: show better error for missing widgets (#3377) 2020-03-04 13:53:21 +01:00
Erez Rokah
12444ca761
feat: support filename and extension vars in summary (#3375) 2020-03-04 11:08:15 +01:00
Shawn Erquhart
b7b4bcb609
feat: Configure included editor components per field, add optional minimal height (#3299) 2020-03-04 08:47:37 +01:00
Shawn Erquhart
93bd0529f1
docs: Update backend docs links (#3370) 2020-03-04 08:46:59 +01:00
GitHub Action
1fc95fee1a chore(release): publish
- netlify-cms-app@2.11.27
 - netlify-cms-backend-bitbucket@2.11.1
 - netlify-cms-backend-git-gateway@2.9.1
 - netlify-cms-backend-github@2.9.3
 - netlify-cms-backend-gitlab@2.8.1
 - netlify-cms-backend-proxy@1.0.4
 - netlify-cms-backend-test@2.7.3
 - netlify-cms-core@2.21.0
 - netlify-cms-locales@1.9.3
 - netlify-cms-proxy-server@1.2.0
 - netlify-cms-ui-default@2.9.2
 - netlify-cms@2.10.30
2020-03-03 18:22:31 +00:00
Erez Rokah
e40b81a564
fix(open-authoring): use origin repo when calling compare API (#3363)
since we create open authoring branches from the origin default branch, we need to use the origin repo when calling the compare API
2020-03-03 13:12:40 -05:00
Erez Rokah
4e1e5a9bd5
feat(proxy-server): export proxy middlewares (#3361) 2020-03-02 14:42:29 +01:00
Erez Rokah
e0b1246810
feat: populate new entry from URL params (#3343) 2020-03-02 11:32:22 +01:00
renovate[bot]
773d83900d
chore(deps): update dependency @types/hapi__joi to v16.0.12 (#3355)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-03-02 11:31:27 +01:00
Erez Rokah
961cde4ea5
fix: consider variable types when traversing collection fields (#3347) 2020-02-28 20:06:34 +01:00
Bartholomew
cf81f587cf
fix: ensure draft changes (#3306) 2020-02-28 11:40:51 +01:00
tiuweehan
7c45a3cda9
fix(locale): Remove hard coded string literals (#3333) 2020-02-28 11:12:10 +01:00
GitHub Action
1dcb79a874 chore(release): publish
- netlify-cms-app@2.11.26
 - netlify-cms-backend-github@2.9.2
 - netlify-cms-core@2.20.1
 - netlify-cms@2.10.29
2020-02-27 23:30:42 +00:00
Erez Rokah
3e873f3e02
Fix: don't try to migrate cms prs from forks (#3331) 2020-02-27 18:24:39 +01:00
Bartholomew
908c42fb58
fix: preserve unknown fields value (#3314) 2020-02-26 16:58:46 +01:00
Shawn Erquhart
53365b7370
fix(core): improve editor buttons for smaller screens (#3327) 2020-02-26 08:30:02 +01:00
GitHub Action
e7e497a8ff chore(release): publish
- netlify-cms-app@2.11.25
 - netlify-cms-backend-github@2.9.1
 - netlify-cms-core@2.20.0
 - netlify-cms@2.10.28
2020-02-25 21:32:24 +00:00
Shawn Erquhart
83e0383b69
fix(backend-github): fail workflow migrations gracefully (#3325)
* fix(backend-github): fail workflow migrations gracefully

* fix: formatting
2020-02-25 16:25:37 -05:00
Stéphane Klein
8874769b31
feat: sanitize media filenames according to global slug setting (#3315) 2020-02-25 19:12:11 +01:00
GitHub Action
2675e1dff5 chore(release): publish
- netlify-cms-app@2.11.24
 - netlify-cms-backend-bitbucket@2.11.0
 - netlify-cms-backend-git-gateway@2.9.0
 - netlify-cms-backend-github@2.9.0
 - netlify-cms-backend-gitlab@2.8.0
 - netlify-cms-core@2.19.1
 - netlify-cms-lib-util@2.8.0
 - netlify-cms-proxy-server@1.1.5
 - netlify-cms@2.10.27
2020-02-25 15:24:43 +00:00
Erez Rokah
9211075cf0
test(widget-markdown): change test name to be more descriptive (#3321) 2020-02-25 16:17:03 +01:00
Shawn Erquhart
684b79e43b
fix(backend-github): improve workflow migration edge cases/messaging (#3319) 2020-02-25 11:49:38 +01:00
Erez Rokah
7e0a8ad532
feat(core): align GitHub metadata handling with other backends (#3316)
* Revert "Revert "feat(core): Align GitHub metadata handling with other backends (#3292)""

This reverts commit 5bdd3df9ccbb5149c22d79987ebdcd6cab4b261f.

* fix(backend-github): fix migration code

* test(backend-github): fix test

* test(e2e): shorten wait time

* test(e2e): try and fix test on CI
2020-02-24 17:44:10 -05:00
renovate[bot]
dcb0c9cfbe
chore(deps): update dependency @types/hapi__joi to v16.0.11 (#3308)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-24 10:41:04 +01:00
GitHub Action
8325a16572 chore(release): publish
- netlify-cms-app@2.11.23
 - netlify-cms-backend-bitbucket@2.10.1
 - netlify-cms-backend-git-gateway@2.8.1
 - netlify-cms-backend-github@2.8.1
 - netlify-cms-backend-gitlab@2.7.1
 - netlify-cms@2.10.26
2020-02-22 19:25:37 +00:00
Shawn Erquhart
5bdd3df9cc Revert "feat(core): Align GitHub metadata handling with other backends (#3292)"
This reverts commit 8193b5ace89d6f14a6c756235a50b186a763b6b1.
2020-02-22 14:20:28 -05:00
GitHub Action
60edf10530 chore(release): publish
- netlify-cms-app@2.11.22
 - netlify-cms-backend-bitbucket@2.10.0
 - netlify-cms-backend-git-gateway@2.8.0
 - netlify-cms-backend-github@2.8.0
 - netlify-cms-backend-gitlab@2.7.0
 - netlify-cms-core@2.19.0
 - netlify-cms-locales@1.9.2
 - netlify-cms@2.10.25
2020-02-22 14:57:38 +00:00
Erez Rokah
8193b5ace8
feat(core): Align GitHub metadata handling with other backends (#3292)
* refactor: code cleanup for GitLab and BitBucket

* feat(backend-github): use prs labels for metadata - initial commit

* refactor(backend-github): code cleanup, fix tests

* fix(backend-github): bug fixes

* fix(backend-github): open authoring fixes

* fix(backend-github): open authoring fixes

* fix(backend-github): fix graphql

* test(e2e): update Octokit usage

* test(e2e): re-record test data, fix bugs

* test(e2e): re-record test data, fix bugs

* test(e2e): fix tests

* refactor: code cleanup

* fix(backend-github): fix migration code

* fix(backend-github): don't fail on non existing files collections files

* fix(backend-github): use patch attribute instead of slug to get path

* fix(backend-github): use compare api to force push a pr

* fix(backend-github): fix git-gateway and re-record tests

* fix(backend-github): use first commit message as open authoring pr title

* refactor(backend-github): code cleanup

* test(e2e): fix tests
2020-02-22 09:51:30 -05:00
Çağatay
036ea06d5e
fix(locale-tr): fix tr locale (#3301) 2020-02-22 08:42:17 +01:00
Ben Harris
971926c369
feat: Add 'hero' as inferable image field (#3294) 2020-02-20 17:44:00 +01:00
GitHub Action
bcdd68045d chore(release): publish
- netlify-cms-app@2.11.21
 - netlify-cms-locales@1.9.1
 - netlify-cms-widget-markdown@2.9.3
 - netlify-cms@2.10.24
2020-02-19 21:23:52 +00:00
Erez Rokah
2a0aef27d1
fix(widget-markdown): don't add duplicate marks (#3290) 2020-02-19 19:21:50 +01:00
Stan
73f679480b
fix editorToolbar translations (#3281)
* fix editorToolbar translations

Publicatie terugtrekken // Publicatie teruggetrokken, alternatief zou kunnen zijn: Publicatie ongedaan maken // Publicatie ongedaan gemaakt. Voel je vrij.

* consistentie wijziging
2020-02-18 15:44:04 +01:00
GitHub Action
ac2491f660 chore(release): publish
- netlify-cms-app@2.11.20
 - netlify-cms-backend-github@2.7.1
 - netlify-cms-proxy-server@1.1.4
 - netlify-cms-widget-datetime@2.2.6
 - netlify-cms-widget-markdown@2.9.2
 - netlify-cms@2.10.23
2020-02-17 17:26:17 +00:00
Erez Rokah
cdd3747850
fix(widget-markdown): allow shortcodes as list items (#3278) 2020-02-17 17:35:29 +02:00
Eddie Webb
8cc5fcbb19
fix(widget-datetime): use default value when value is undefined (#3269) 2020-02-17 17:05:18 +02:00
renovate[bot]
70789a322d
chore(deps): update dependency @types/hapi__joi to v16.0.10 (#3272)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-17 12:25:24 +02:00
renovate[bot]
a81ca240f8
chore(deps): lock file maintenance (#3277)
* chore(deps): lock file maintenance

* chore: update octokit types imports

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
2020-02-17 12:10:56 +02:00
GitHub Action
d39aca7853 chore(release): publish
- netlify-cms-app@2.11.19
 - netlify-cms-core@2.18.4
 - netlify-cms-editor-component-image@2.6.2
 - netlify-cms-lib-util@2.7.1
 - netlify-cms-proxy-server@1.1.3
 - netlify-cms-widget-file@2.6.2
 - netlify-cms-widget-image@2.6.2
 - netlify-cms-widget-list@2.4.3
 - netlify-cms-widget-relation@2.5.2
 - netlify-cms@2.10.22
2020-02-14 20:37:17 +00:00
Erez Rokah
1d63038e78
fix(core): report config error when external media lib is missing (#3255) 2020-02-14 15:32:36 -05:00
Erez Rokah
02ef2010e7
Fix: show specific field media files in library, cascade folder templates (#3252)
* feat: cascade & compose media folders - initial commit

* refactor: code cleanup

* fix: pass field instead of folder to getAsset

* fix: only show field media files in library

* test: fix medial library selector test

* fix: fallback to original path when asset not found

* fix: only show field media files in media library

* fix: properly handle empty strings in field folders
2020-02-14 15:31:33 -05:00
Erez Rokah
8d67de0e68
fix(proxy-server): add missing labels to file collections (#3250) 2020-02-13 15:45:36 +02:00
Bartholomew
f915bf375f
fix: remove empty list item (#3245) 2020-02-13 11:59:38 +02:00
stefanprobst
2447f9c311
fix: dispatch QUERY_FAILURE on query failure (#3243) 2020-02-13 11:48:02 +02:00
GitHub Action
7784e780b8 chore(release): publish
- netlify-cms-app@2.11.18
 - netlify-cms-core@2.18.3
 - netlify-cms-editor-component-image@2.6.1
 - netlify-cms-ui-default@2.9.1
 - netlify-cms-widget-file@2.6.1
 - netlify-cms-widget-image@2.6.1
 - netlify-cms-widget-list@2.4.2
 - netlify-cms-widget-markdown@2.9.1
 - netlify-cms-widget-relation@2.5.1
 - netlify-cms@2.10.21
2020-02-13 00:18:31 +00:00
Erez Rokah
ab685e8594
fix: change getAsset to not return a promise (#3232)
* fix: change getAsset to not return a promise

* fix: update markdown widget per getAsset changes

* test: fix editor component image test

* docs: update getAsset docs
2020-02-12 19:12:36 -05:00
GitHub Action
2457c29baf chore(release): publish
- netlify-cms-app@2.11.17
 - netlify-cms-core@2.18.2
 - netlify-cms-proxy-server@1.1.2
 - netlify-cms@2.10.20
2020-02-12 16:42:31 +00:00
Erez Rokah
ca8cf71ab0
fix: handle missing inferred title field (#3239) 2020-02-12 10:54:09 +02:00
Erez Rokah
3678053f0c
fix(proxy-server): better handle files based collections (#3237) 2020-02-12 09:56:42 +02:00
Erez Rokah
c4125625f9
Feat: Allow using subfields as identifier field (#3219) 2020-02-12 08:30:44 +02:00
Shawn Erquhart
e7589a96ef chore(release): publish
- netlify-cms-app@2.11.16
 - netlify-cms-backend-git-gateway@2.7.2
 - netlify-cms-core@2.18.1
 - netlify-cms@2.10.19
2020-02-11 18:30:25 -05:00
Shawn Erquhart
cfd2fed494
fix(core): use correct name for edit route param (#3236) 2020-02-11 18:28:26 -05:00
stefanprobst
249bd7ec1e
fix: stringify error message (#3233) 2020-02-11 20:39:17 +02:00
Shawn Erquhart
6d5e37dab9 chore(release): publish
- netlify-cms-proxy-server@1.1.1
2020-02-11 09:54:27 -05:00
Erez Rokah
4b8c941da1
Fix: proxy fs on windows (#3229) 2020-02-11 12:48:02 +02:00
Shawn Erquhart
a399310513 chore(release): publish
- netlify-cms-app@2.11.15
 - netlify-cms-backend-bitbucket@2.9.0
 - netlify-cms-backend-github@2.7.0
 - netlify-cms-backend-gitlab@2.6.0
 - netlify-cms-core@2.18.0
 - netlify-cms-editor-component-image@2.6.0
 - netlify-cms-lib-util@2.7.0
 - netlify-cms-proxy-server@1.1.0
 - netlify-cms-ui-default@2.9.0
 - netlify-cms-widget-file@2.6.0
 - netlify-cms-widget-image@2.6.0
 - netlify-cms-widget-markdown@2.9.0
 - netlify-cms@2.10.18
2020-02-10 13:35:11 -05:00
Erez Rokah
4522739231
fix: fs proxy info action (#3225) 2020-02-10 20:06:43 +02:00
erezrokah
a015d1d92a
Revert "chore(release): publish"
This reverts commit f39edbf853f8c2a0588ecf524fdc39c68d41c64e.
2020-02-10 19:16:04 +02:00
GitHub Action
f39edbf853 chore(release): publish
- netlify-cms-app@2.11.15
 - netlify-cms-backend-bitbucket@2.9.0
 - netlify-cms-backend-github@2.7.0
 - netlify-cms-backend-gitlab@2.6.0
 - netlify-cms-core@2.18.0
 - netlify-cms-editor-component-image@2.6.0
 - netlify-cms-lib-util@2.7.0
 - netlify-cms-proxy-server@1.1.0
 - netlify-cms-ui-default@2.9.0
 - netlify-cms-widget-file@2.6.0
 - netlify-cms-widget-image@2.6.0
 - netlify-cms-widget-markdown@2.9.0
 - netlify-cms@2.10.18
2020-02-10 16:55:11 +00:00
Erez Rokah
31dbd72273
feat(proxy-server): add local fs middleware and make it the default (#3217) 2020-02-10 11:07:52 -05:00
Erez Rokah
97bc0c8dc4
feat: field based media/public folders (#3208) 2020-02-10 11:05:47 -05:00
Erez Rokah
ee7445d49d
build: expose local dev server port (#3221) 2020-02-10 17:49:53 +02:00
Erez Rokah
0a482b1004 fix: filter paginated results (#3216) 2020-02-10 11:44:00 +02:00
Bartholomew
d22f7e680e fix: workflow file collection (#3207) 2020-02-09 11:53:38 +02:00
Shawn Erquhart
746e5956bc chore(release): publish
- netlify-cms-app@2.11.14
 - netlify-cms-backend-bitbucket@2.8.1
 - netlify-cms-backend-github@2.6.6
 - netlify-cms-backend-gitlab@2.5.3
 - netlify-cms-backend-proxy@1.0.3
 - netlify-cms-backend-test@2.7.2
 - netlify-cms-core@2.17.0
 - netlify-cms-locales@1.9.0
 - netlify-cms-proxy-server@1.0.7
 - netlify-cms-widget-file@2.5.3
 - netlify-cms-widget-markdown@2.8.4
 - netlify-cms-widget-select@2.5.1
 - netlify-cms@2.10.17
2020-02-05 19:11:58 -05:00
Erez Rokah
614f1aea63
feat(core): auto detect proxy server on load (#3195)
* feat: auto detect proxy server on load

* fix: opt-in for auto proxy server detection
2020-02-05 10:56:11 -05:00
Tom Rutgers
2043c0b782
feat(dutch): add missing dutch translations (#3200) 2020-02-05 10:15:29 +02:00
Shawn Erquhart
60ecc72dfa
fix(core): strip closing separators in yaml files (#3198) 2020-02-05 10:14:39 +02:00
Patryk Niedźwiedziński
4525936136
feat(polish): add missing polish translations (#3197) 2020-02-04 14:50:34 +02:00
tiuweehan
fc91bf8781
fix(locale): remove hard coded strings (#3193) 2020-02-04 14:49:47 +02:00
Erez Rokah
18e284ece8
feat: add preUnpublish, postUnpublish events (#3196) 2020-02-04 13:49:30 +02:00
Erez Rokah
7d792f3005
fix: load missing assets when retrieving backup (#3192) 2020-02-04 11:12:59 +02:00
Bartholomew
4f5544287f
fix: media library on reload (#3174) 2020-02-03 14:33:09 +02:00
renovate[bot]
b71c496d97
chore(deps): update dependency @types/hapi__joi to v16.0.9 (#3185) 2020-02-03 01:32:34 -08:00
Shawn Erquhart
46f7763ccd
fix(widget-select): fix exactCount error message (#3177) 2020-02-01 19:35:21 -08:00
Lukas Zanner
e6deab03b9
fix(locale): add missing german translations (#3179) 2020-02-02 01:46:53 +01:00
Shawn Erquhart
98efd88539 chore(release): publish
- netlify-cms-app@2.11.13
 - netlify-cms-core@2.16.0
 - netlify-cms-locales@1.8.0
 - netlify-cms-widget-markdown@2.8.3
 - netlify-cms-widget-select@2.5.0
 - netlify-cms@2.10.16
2020-01-31 16:54:59 -08:00
Shawn Erquhart
fc524e6c0f
fix(widget-select): allow optional field to use min/max (#3175) 2020-01-31 16:51:40 -08:00
Erez Rokah
b4c5fc7783
fix(editor): merge adjacent text nodes with same marks (#3173) 2020-01-31 16:49:10 -08:00
Erez Rokah
0d7e36ba79
feat: add prePublish,postPublish events (#3172) 2020-01-31 16:44:01 -08:00
Shawn Erquhart
fd9e2c89f2
feat(select-widget): add min/max validation (#3171) 2020-01-30 17:53:46 -08:00
Leonardo Matos
67e5fd2aaf
fix(locale-pt): typo fix for backCollection pt (#3170) 2020-01-31 00:15:47 +01:00
Shawn Erquhart
2acfabb32e chore(release): publish
- netlify-cms-app@2.11.12
 - netlify-cms-core@2.15.5
 - netlify-cms-proxy-server@1.0.6
 - netlify-cms@2.10.15
2020-01-30 11:53:05 -08:00
Erez Rokah
deaaf9f00c
docs: create proxy-server docs (#3168) 2020-01-30 11:31:26 -08:00
Bartholomew
d1179e3999
fix: media file path (#3166) 2020-01-29 09:54:01 -08:00
Shawn Erquhart
4cad2700a2 chore(release): publish
- netlify-cms-app@2.11.11
 - netlify-cms-core@2.15.4
 - netlify-cms-locales@1.7.0
 - netlify-cms-proxy-server@1.0.5
 - netlify-cms-widget-code@1.1.3
 - netlify-cms@2.10.14
2020-01-28 18:17:39 -08:00
Erez Rokah
06c045e4e6
fix: don't show duplicate entry when create is disabled (#3162) 2020-01-28 14:28:33 -08:00
Erez Rokah
22df7f7ae1
fix(proxy-server): fix entriesByFiles implementation (#3161) 2020-01-28 14:07:27 -08:00
Erez Rokah
a215cfbe3a
fix: allow absolute paths for collection media folder (#3160) 2020-01-28 10:33:21 -08:00
Erez Rokah
32854de41c
fix(widget-code): use snake case for default language option (#3155) 2020-01-27 22:30:36 -08:00
renovate[bot]
dfa30d826f chore(deps): lock file maintenance (#3145)
* chore(deps): lock file maintenance

* chore: revert joi types update

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
2020-01-27 17:15:29 -08:00
Fabio Biola
dc403e4a82 feat(locale): add italian localization (#3141) 2020-01-27 16:56:59 -08:00
Shawn Erquhart
31b0cb6aaa chore(release): publish
- netlify-cms-app@2.11.10
 - netlify-cms-proxy-server@1.0.4
 - netlify-cms-widget-file@2.5.2
 - netlify-cms@2.10.13
2020-01-26 13:40:41 -05:00
Erez Rokah
b1026c980c
fix(media-library): pass correct value to Asset component (#3140) 2020-01-26 10:04:45 -08:00
Erez Rokah
7cbb94b919
build(proxy_server): cleanup dependencies, add bin entry (#3137) 2020-01-25 18:13:32 +02:00
Shawn Erquhart
7b0838dfef chore(release): publish
- netlify-cms-app@2.11.9
 - netlify-cms-backend-git-gateway@2.7.1
 - netlify-cms-backend-github@2.6.5
 - netlify-cms-lib-util@2.6.2
 - netlify-cms-proxy-server@1.0.3
 - netlify-cms@2.10.12
2020-01-23 21:28:33 -05:00
Erez Rokah
834f6b9e45 fix(backend-git-gateway): re-write GitHub pagination links (#3135) 2020-01-23 21:14:33 -05:00
Erez Rokah
48afa8dfe4
test(backend-proxy-e2e): stabilize backend proxy tests (#3133) 2020-01-23 18:15:15 +02:00
Shawn Erquhart
3123d95863 chore(release): publish
- netlify-cms-app@2.11.8
 - netlify-cms-widget-file@2.5.1
 - netlify-cms@2.10.11
2020-01-22 22:19:42 -05:00
Shawn Erquhart
db2cbb6f5d
fix(widget-image): hide image overflow in widget control (#3131) 2020-01-22 21:40:53 -05:00
Shawn Erquhart
06b50ba829 chore(release): publish
- netlify-cms-app@2.11.7
 - netlify-cms-backend-proxy@1.0.2
 - netlify-cms-core@2.15.3
 - netlify-cms-lib-util@2.6.1
 - netlify-cms-proxy-server@1.0.2
 - netlify-cms@2.10.10
2020-01-22 16:55:18 -05:00
Erez Rokah
7e8084be87 chore: add proxy backend (#3126)
* feat(backends): add proxy backend

* feat: add proxy server initial commit

* fix: move from joi to @hapi/joi

* test: add joi validation tests

* feat: proxy server initial implementations

* test: add tests, fix build

* chore: update yarn.lock

* build: fix develop command

* fix(back-proxy): fix bugs

* test(backend-proxy): add cypress tests

* chore: cleanup

* chore: support node 10

* chore: code cleanup

* chore: run cypress on ubuntu 16.04

* test(e2e): fix proxy backend cypress tests

* chore: don't start proxy server on yarn develop
2020-01-22 16:47:34 -05:00
Erez Rokah
cf57da223d Feat: media folders templates (#3116)
* refactor: typescript backendHelper

* test: add string templating tests

* test: add createPreviewUrl invalid date test

* refactor: move all formatters to one file

* feat: support media folders templating

* feat: add filename and extension template variables

* feat: support paths in string templates

* docs: add media folder templating docs

* style(docs): remove line break
2020-01-22 13:42:24 -05:00
Shawn Erquhart
4bc4490c6f chore(release): publish
- netlify-cms-app@2.11.6
 - netlify-cms-backend-bitbucket@2.8.0
 - netlify-cms-backend-git-gateway@2.7.0
 - netlify-cms-backend-gitlab@2.5.2
 - netlify-cms-lib-util@2.6.0
 - netlify-cms-locales@1.6.0
 - netlify-cms@2.10.9
2020-01-21 14:12:05 -05:00
Erez Rokah
f1739e978f
fix(backend-gitlab): check for shared group permissions (#3122) 2020-01-21 19:21:43 +02:00
Erez Rokah
a48c02d852
feat(backend-bitbucket): Add Git-LFS support (#3118) 2020-01-21 18:57:36 +02:00
vojtapol
0755f90142 feat(locale): add czech localization (#3108) 2020-01-20 13:23:10 +02:00
dGrammatiko
ee02cf61ad feat(locale): add Greek translation (#3107) 2020-01-20 12:47:54 +02:00
Erez Rokah
038803c9f2
fix(git-gateway-gitlab): fix large media support for editorial workflow (#3105) 2020-01-19 14:25:29 +02:00
Shawn Erquhart
6a977ae867 chore(release): publish
- netlify-cms-app@2.11.5
 - netlify-cms-backend-git-gateway@2.6.2
 - netlify-cms-backend-github@2.6.4
 - netlify-cms-lib-util@2.5.2
 - netlify-cms@2.10.8
2020-01-16 10:18:51 -05:00
Erez Rokah
bc80804066
fix(backend-github-graphql): handle trailing paths in collection folder (#3099) 2020-01-16 16:43:15 +02:00
Erez Rokah
6a13a85e26
fix: use string endsWith to filter by extension (#3097) 2020-01-16 12:03:30 +02:00
Erez Rokah
92108431f0
fix: don't fail on malformed pointer files (#3095) 2020-01-15 18:23:42 +02:00
Shawn Erquhart
7f580db56f chore(release): publish
- netlify-cms-app@2.11.4
 - netlify-cms-core@2.15.2
 - netlify-cms-widget-markdown@2.8.2
 - netlify-cms@2.10.7
2020-01-15 10:30:30 -05:00
Erez Rokah
c4cbae7725 revert: don't force multiline flag for editor component patterns (#3089)
* revert: don't force multiline flag for editor component patterns

refs: 338c1b68d2865a20fed851295451175b840983d4, 4839160ee6126adfbab7bfa58452560090c00737

github issues: 3088, 3086

* fix: only trim ending white spaces/line breaks when parsing shortcodes

remark validates the value of the 'eat' function using a prefix match between the original value and the value provided. Trimming the start can break that validation

* fix: change console log to warn
2020-01-15 10:28:09 -05:00
Shawn Erquhart
1091bfcd4f chore(release): publish
- netlify-cms-app@2.11.3
 - netlify-cms-backend-bitbucket@2.7.2
 - netlify-cms-backend-git-gateway@2.6.1
 - netlify-cms-backend-github@2.6.3
 - netlify-cms-backend-gitlab@2.5.1
 - netlify-cms-backend-test@2.7.1
 - netlify-cms-core@2.15.1
 - netlify-cms-lib-auth@2.2.7
 - netlify-cms-lib-util@2.5.1
 - netlify-cms@2.10.6
2020-01-14 18:29:44 -05:00
Erez Rokah
6f221ab3c1 Feat: editorial workflow bitbucket gitlab (#3014)
* refactor: typescript the backends

* feat: support multiple files upload for GitLab and BitBucket

* fix: load entry media files from media folder or UI state

* chore: cleanup log message

* chore: code cleanup

* refactor: typescript the test backend

* refactor: cleanup getEntry unsued variables

* refactor: moved shared backend code to lib util

* chore: rename files to preserve history

* fix: bind readFile method to API classes

* test(e2e): switch to chrome in cypress tests

* refactor: extract common api methods

* refactor: remove most of immutable js usage from backends

* feat(backend-gitlab): initial editorial workflow support

* feat(backend-gitlab): implement missing workflow methods

* chore: fix lint error

* feat(backend-gitlab): support files deletion

* test(e2e): add gitlab cypress tests

* feat(backend-bitbucket): implement missing editorial workflow methods

* test(e2e): add BitBucket backend e2e tests

* build: update node version to 12 on netlify builds

* fix(backend-bitbucket): extract BitBucket avatar url

* test: fix git-gateway AuthenticationPage test

* test(e2e): fix some backend tests

* test(e2e): fix tests

* test(e2e): add git-gateway editorial workflow test

* chore: code cleanup

* test(e2e): revert back to electron

* test(e2e): add non editorial workflow tests

* fix(git-gateway-gitlab): don't call unpublishedEntry in simple workflow

gitlab git-gateway doesn't support editorial workflow APIs yet. This change makes sure not to call them in simple workflow

* refactor(backend-bitbucket): switch to diffstat API instead of raw diff

* chore: fix test

* test(e2e): add more git-gateway tests

* fix: post rebase typescript fixes

* test(e2e): fix tests

* fix: fix parsing of content key and add tests

* refactor: rename test file

* test(unit): add getStatues unit tests

* chore: update cypress

* docs: update beta docs
2020-01-14 17:15:14 -05:00
Shawn Erquhart
4ff5bc2ee0 chore(release): publish
- netlify-cms-app@2.11.2
 - netlify-cms-backend-github@2.6.2
 - netlify-cms-core@2.15.0
 - netlify-cms-locales@1.5.0
 - netlify-cms-widget-markdown@2.8.1
 - netlify-cms@2.10.5
2020-01-14 13:25:26 -05:00
Erez Rokah
fde0c5a9a7 fix(widget-markdown): ensure remarkToSlate result matches slate schema (#3085) 2020-01-14 13:20:52 -05:00
Erez Rokah
0a50efda8e feat: support per collection public_folder (#3069)
* feat: support per collection public_folder

* test: improve tests readability
2020-01-14 13:02:53 -05:00
Shawn Erquhart
476f45096e fix(core): force multiline flag for editor component patterns (#3082) 2020-01-14 08:44:37 +02:00
Shawn Erquhart
09564bf8b6
fix(widget-markdown): stop double pasting in raw editor (#3083) 2020-01-13 19:48:01 -05:00
Erez Rokah
69b130a3f2
fix(backend-github-graphql): return empty array on non existent folder (#3079)
When starting a new project, usually collection folders don't exist in the repo. This is a legitimate use case and not an error.
2020-01-13 17:06:35 +02:00
Erez Rokah
857a414e3d
feat(lang): add 'zh_Hant' locale (#3068)
Co-authored-by: Chen-Yi Hsu <11488168+cyihsu@users.noreply.github.com>
2020-01-12 12:26:02 +02:00
Shawn Erquhart
29299097cf fix(widget-markdown): allow multiline shortcodes (#3066) 2020-01-12 09:30:28 +02:00
Mauro Bieg
24a81ef9b7 Add media_library.config.max_file_size option (#3028)
* feat: add media_library.config.max_file_size option
2020-01-09 19:56:11 +02:00
Shawn Erquhart
d2db746b9d chore(release): publish
- netlify-cms-app@2.11.1
 - netlify-cms-backend-bitbucket@2.7.1
 - netlify-cms-backend-github@2.6.1
 - netlify-cms-core@2.14.1
 - netlify-cms-locales@1.4.1
 - netlify-cms@2.10.4
2020-01-09 10:10:43 -05:00
Erez Rokah
8849c0ea57
fix(backend-bitbucket): fix media library not loaded on BitBucket (#3059) 2020-01-09 12:03:53 +02:00
Erez Rokah
4b6c8de6b2
fix: trim '/' from folder (#3052) 2020-01-08 19:02:44 +02:00
Yushi Senda
90521ba82e fix ja locale again (#3049) 2020-01-08 17:26:19 +02:00
Erez Rokah
5bd724026c
fix: don't wait for external media library to load (#3050) 2020-01-08 17:21:14 +02:00
Çağatay
62e1b823fc fix(locale-tr): fix tr locale (#3047)
* fix(locale-tr): fix tr locale
2020-01-08 16:32:16 +02:00
Shawn Erquhart
0a06d8eb47 chore(release): publish
- netlify-cms-app@2.11.0
 - netlify-cms-backend-bitbucket@2.7.0
 - netlify-cms-backend-git-gateway@2.6.0
 - netlify-cms-backend-github@2.6.0
 - netlify-cms-backend-gitlab@2.5.0
 - netlify-cms-backend-test@2.7.0
 - netlify-cms-core@2.14.0
 - netlify-cms-editor-component-image@2.5.0
 - netlify-cms-lib-util@2.5.0
 - netlify-cms-locales@1.4.0
 - netlify-cms-ui-default@2.8.0
 - netlify-cms-widget-code@1.1.2
 - netlify-cms-widget-file@2.5.0
 - netlify-cms-widget-image@2.5.0
 - netlify-cms-widget-list@2.4.1
 - netlify-cms-widget-markdown@2.8.0
 - netlify-cms-widget-object@2.3.1
 - netlify-cms@2.10.3
2020-01-07 15:04:08 -05:00
Yushi Senda
2edc7136e7 fix(locales): fix ja locale (#3041) 2020-01-07 17:07:02 +02:00
Erez Rokah
b5ffccdac5 feat(backend-git-gateway): handle identity disabled error message (#3002) 2020-01-06 14:10:37 -05:00
Erez Rokah
8bf01e8022
fix(locale-pt): add missing pt locale import (#3029) 2020-01-05 15:16:54 +02:00
Shawn Erquhart
74ecc21879 fix: move code widget and locales to netlify-cms-app (#3025) 2020-01-05 11:09:27 +02:00
Shawn Erquhart
8e980bc1ab fix(widget-object): allow nested widgets to overflow (#3026) 2020-01-05 11:04:23 +02:00
André Van Dal
99169ed8f7 feat(lang): add 'pt' locale (#3015)
* feat(lang): add 'pt' locale

* feat(lags): format pt translation
2020-01-04 16:06:37 +01:00
Shawn Erquhart
1b755b3be8
fix(widget-markdown): cut/copy selection only in raw mode (#3024) 2020-01-03 20:01:23 -05:00
Bartholomew
9e7aa0c500 fix: duplicate and new entry action (#3003)
* fix: duplicate and new entry action

* test(e2e): flush clock when duplicating entry to handle debounced fields

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
2019-12-25 11:47:02 +02:00
Bartholomew
e4ba4d9d74 fix: cleanup nested widget validation (#2991)
* fix: cleanup nested widget validation

* fix: list input widget validation
2019-12-25 10:48:47 +02:00
Erez Rokah
b27748b54f
Fix: get files by path depth (#2993)
* fix: get files up to depth specified by colletion path

* test(e2e): update mock data

* chore: fix comment
2019-12-22 15:20:42 +02:00
Shawn Erquhart
982fd7b0f8 fix: always ensure collection exists before routing (#2992) 2019-12-22 13:40:14 +02:00
Shawn Erquhart
fe097202f0
fix: avoid nested select widget z-index conflicts (#2990) 2019-12-20 15:40:09 -05:00
Erez Rokah
8c175f6132 fix: rebase open authoring branches (#2975)
* fix: create open authoring branches from default origin branch

* refactor: pass repoURL to getBranch

* fix(backend-github): rebase open authoring branch,support multiple files
2019-12-20 12:33:43 -05:00
Shawn Erquhart
e2d778754d chore(release): publish
- netlify-cms@2.10.3-beta.0
2019-12-20 11:07:22 -05:00
Shawn Erquhart
cc8002b69f chore: bypass releases 2019-12-20 10:55:14 -05:00
Shawn Erquhart
1695b76a09 chore(release): publish
- netlify-cms-app@2.11.0-beta.1
 - netlify-cms-core@2.14.0-beta.1
 - netlify-cms-widget-code@1.1.2-beta.0
 - netlify-cms@2.10.2-beta.0
2019-12-19 16:09:35 -05:00
Shawn Erquhart
be60d83fb1 chore: bypass releases 2019-12-19 16:02:43 -05:00
Shawn Erquhart
5ea2b6fe2f
fix: allow widget overflow (#2982) 2019-12-19 10:47:43 -05:00
Bartholomew
9173d8c97e fix: select widget dropdown options (#2981) 2019-12-19 10:47:09 -05:00
Shawn Erquhart
b5c42bdcc9 chore(release): publish
- netlify-cms-app@2.11.0-beta.0
 - netlify-cms-backend-bitbucket@2.7.0-beta.0
 - netlify-cms-backend-git-gateway@2.6.0-beta.0
 - netlify-cms-backend-github@2.6.0-beta.0
 - netlify-cms-backend-gitlab@2.5.0-beta.0
 - netlify-cms-backend-test@2.7.0-beta.0
 - netlify-cms-core@2.14.0-beta.0
 - netlify-cms-editor-component-image@2.5.0-beta.0
 - netlify-cms-lib-util@2.5.0-beta.0
 - netlify-cms-ui-default@2.8.0-beta.0
 - netlify-cms-widget-file@2.5.0-beta.0
 - netlify-cms-widget-image@2.5.0-beta.0
 - netlify-cms-widget-markdown@2.8.0-beta.0
 - netlify-cms@2.10.1-beta.0
2019-12-18 11:18:23 -05:00
Erez Rokah
2b41d8a838 feat: bundle assets with content (#2958)
* fix(media_folder_relative): use collection name in unpublished entry

* refactor: pass arguments as object to AssetProxy ctor

* feat: support media folders per collection

* feat: resolve media files path based on entry path

* fix: asset public path resolving

* refactor: introduce typescript for AssetProxy

* refactor: code cleanup

* refactor(asset-proxy): add tests,switch to typescript,extract arguments

* refactor: typescript for editorialWorkflow

* refactor: add typescript for media library actions

* refactor: fix type error on map set

* refactor: move locale selector into reducer

* refactor: add typescript for entries actions

* refactor: remove duplication between asset store and media lib

* feat: load assets from backend using API

* refactor(github): add typescript, cache media files

* fix: don't load media URL if already loaded

* feat: add media folder config to collection

* fix: load assets from API when not in UI state

* feat: load entry media files when opening media library

* fix: editorial workflow draft media files bug fixes

* test(unit): fix unit tests

* fix: editor control losing focus

* style: add eslint object-shorthand rule

* test(cypress): re-record mock data

* fix: fix non github backends, large media

* test: uncomment only in tests

* fix(backend-test): add missing displayURL property

* test(e2e): add media library tests

* test(e2e): enable visual testing

* test(e2e): add github backend media library tests

* test(e2e): add git-gateway large media tests

* chore: post rebase fixes

* test: fix tests

* test: fix tests

* test(cypress): fix tests

* docs: add media_folder docs

* test(e2e): add media library delete test

* test(e2e): try and fix image comparison on CI

* ci: reduce test machines from 9 to 8

* test: add reducers and selectors unit tests

* test(e2e): disable visual regression testing for now

* test: add getAsset unit tests

* refactor: use Asset class component instead of hooks

* build: don't inline source maps

* test: add more media path tests
2019-12-18 11:16:02 -05:00
Shawn Erquhart
7e4d4c1cc4 chore(release): publish
- netlify-cms-app@2.10.0
 - netlify-cms-backend-bitbucket@2.6.0
 - netlify-cms-backend-github@2.5.0
 - netlify-cms-backend-gitlab@2.4.0
 - netlify-cms-backend-test@2.6.0
 - netlify-cms-core@2.13.0
 - netlify-cms-lib-auth@2.2.6
 - netlify-cms-lib-util@2.4.0
 - netlify-cms-locales@1.3.0
 - netlify-cms-ui-default@2.7.0
 - netlify-cms-widget-list@2.4.0
 - netlify-cms-widget-markdown@2.7.0
 - netlify-cms@2.10.0
2019-12-18 11:02:29 -05:00
Bartholomew
20851fe7ea fix(backend-bitbucket): 404 for new entry (#2976) 2019-12-18 09:48:26 +02:00
Erez Rokah
af61245360
fix: don't show progress when loading preview status (#2974) 2019-12-17 08:30:08 +02:00
Shawn Erquhart
e4272817c2 chore(release): publish
- netlify-cms-app@2.10.0-beta.5
 - netlify-cms-backend-bitbucket@2.6.0-beta.1
 - netlify-cms-backend-github@2.5.0-beta.8
 - netlify-cms-core@2.13.0-beta.10
 - netlify-cms-default-exports@2.3.0
 - netlify-cms-locales@1.3.0-beta.2
 - netlify-cms-ui-default@2.7.0-beta.5
 - netlify-cms-widget-boolean@2.3.0
 - netlify-cms-widget-code@1.1.0
 - netlify-cms-widget-date@2.4.0
 - netlify-cms-widget-image@2.4.0
 - netlify-cms-widget-list@2.4.0-beta.0
 - netlify-cms-widget-markdown@2.7.0-beta.0
 - netlify-cms-widget-object@2.3.0
 - netlify-cms-widget-text@2.3.0
 - netlify-cms@2.10.0-beta.5
2019-12-16 12:37:43 -05:00
Shawn Erquhart
18c579d0e9 feat: Code Widget + Markdown Widget Internal Overhaul (#2828)
* wip - upgrade to slate 0.43

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* finish list handling logic

* add plugins directory

* tests wip

* setup testing

* wip

* add selection commands

* finish list testing

* stuff

* add codemirror

* abstract codemirror from slate

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* codemirror mostly working, some bugs

* upgrade to slate 46

* upgrade to slate 47

* wip

* wip

* progress

* wip

* mostly working links with surrounding marks

* wip

* tests passing

* add test

* fix formatting

* update snapshots

* close self closing tag in markdown html output

* wip - commonmark

* hold on commonmark work

* all tests passing

* fix e2e specs

* ignore tests in esm builds

* break/backspace plugins wip

* finish enter/backspace spec

* fix soft break handling

* wip - editor component deletion

* add insertion points

* make insertion points invisible

* fix empty mark nodes output to markdown

* fix pasting

* improve insertion points

* add static bottom insertion point

* improve click handling at insertion points

* restore current table functionality

* add paste support for Slate fragments

* support cut/copy markdown, paste between rich/raw editor

* fix copy paste

* wip - paste/select bug fixing

* fixed known slate issues

* split plugins

* fix editor toggles

* force text cursor in code widget

* wip - reorg plugins

* finish markdown control reorg

* configure plugin types

* quote block adjacent handling with tests

* wip

* finish quote logic and tests

* fix copy paste plugin migration regressions

* fix force insert before node

* fix trailing insertion point

* remove empty headers

* codemirror working properly in markdown widget

* return focus to codemirror on lang select enter

* fix state issues for widgets with local state

* wip - vim working, just need to work out distribution

* add settings pane

* wip - default modes

* fix deps

* add programming language data

* implement linguist langs in code widget

* everything built in

* remove old registration code, fix focus styling

* fix/update linting setup

* fix js lint errors

* remove stylelint from format script

* fix remaining linting errors

* fix reducer test failures

* chore: update commitlint for worktree support

* chore: fix remaining tests

* chore: drop unused monaco plugin

* chore: remove extraneous global styles rendering

* chore: fix failing tests

* fix: tests

* fix: quote/list nesting (tests still broken)

* fix: update quote tests

* chore: bring back code widget test config

* fix: autofocus

* fix: code blocks without the code widget

* fix: code editor component state issues

* fix: error

* fix: add code block test, few fixes

* chore: remove notes

* fix: [wip] update stateful shortcodes on undo/redo

* fix: support code styled links, handle unknown langs

* fix: few fixes

* fix: autofocus on insert, focus on all clicks

* fix: linting

* fix: autofocus

* fix: update code block fixture

* fix: remove unused cypress snapshot plugin

* fix: drop node 8 test, add node 12

* fix: use lodash.flatten instead of Array.flat

* fix: remove console logs
2019-12-16 19:17:37 +02:00
Zoli Veres
30f73c6ec8 feat(lang): add 'hu' locale (#2965)
*  feat(lang): add 'hu' locale

* format fixes

This was after running `npm run format`
2019-12-14 22:39:34 +01:00
Bartholomew
afea44895b fix(bitbucket): branchname containing slash (#2963) 2019-12-13 17:23:43 +02:00
erezrokah
1e77d4b768
fix: don't fail on deleting non existent branch 2019-12-13 17:02:57 +02:00
Erez Rokah
10a735de2f
feat(locales): add ja locale (#2960) 2019-12-12 10:51:10 +02:00
Shawn Erquhart
feccfa2821 chore(release): publish
- netlify-cms-app@2.10.0-beta.4
 - netlify-cms-core@2.13.0-beta.9
 - netlify-cms-locales@1.3.0-beta.1
 - netlify-cms-ui-default@2.7.0-beta.4
 - netlify-cms@2.10.0-beta.4
2019-12-10 20:35:59 -05:00
Bartholomew
d180bffb44 feat: duplicate entry (#2956) 2019-12-10 20:33:02 -05:00
Maxim Sablev
237a5b1aa6 feat(lang): add 'ru' locale (netlify#2951) (#2952) 2019-12-05 19:05:15 +02:00
Erez Rokah
92cad45120
Feat(docs): add pl locale (#2949)
* feat(locale): add 'pl' locale

* style: format pl locale file
2019-12-04 17:16:33 +02:00
Shawn Erquhart
c8d6eaf239 chore(release): publish
- netlify-cms-app@2.10.0-beta.3
 - netlify-cms-backend-bitbucket@2.6.0-beta.0
 - netlify-cms-backend-github@2.5.0-beta.7
 - netlify-cms-backend-gitlab@2.4.0-beta.1
 - netlify-cms-backend-test@2.6.0-beta.0
 - netlify-cms-core@2.13.0-beta.8
 - netlify-cms-lib-auth@2.2.6-beta.0
 - netlify-cms-locales@1.3.0-beta.0
 - netlify-cms-widget-markdown@2.6.1-beta.0
 - netlify-cms@2.10.0-beta.3
2019-12-02 17:04:48 -05:00
Shawn Erquhart
d0b32a7a0a
fix(core): use UTC date methods for slug formatting (#2944) 2019-12-02 17:03:18 -05:00
Erez Rokah
87b4d0f765 fix: pass auth type in authURL to be used in identity widget (#2920) 2019-12-02 11:52:12 -05:00
Yuri Drabik
7391061b3b fix: .d.ts definitions for core and app (#2929)
* fix: .d.ts definitions for core and app

* fix: updated ts types to match the schema
2019-12-02 13:04:07 +02:00
Bartholomew
3c4865f2a7 fix: keep editor slug path (#2934)
* fix: keep editor slug path

* fix: cleanup

* refactor: remove unused path preview component
2019-12-01 10:46:45 +02:00
Erez Rokah
09ca1a7f03
feat(lang): add 'tr' locale (#2936)
* feat(lang): add 'tr' locale

* style: format tr locale file
2019-12-01 10:01:52 +02:00
Bartholomew
b0fba6dc9a fix(backend-test): delete nested file path (#2930) 2019-11-29 18:10:39 +02:00
Bartholomew
45a6ee92cc fix: unpublish published entry (#2931) 2019-11-29 17:49:19 +02:00
Kyle
1ff9db0915 fix(widget-markdown): fix carriage return issue (#2899) 2019-11-28 11:27:58 -05:00
Bartholomew
caaa8b6db4 fix: load unpublished entries (#2927)
* fix: load unpublished entries

* test(cypress): re-record fixtures data
2019-11-28 17:07:07 +02:00
Erez Rokah
4c5f013d15
chore: fix some dev mode console errors (#2924) 2019-11-28 11:02:19 +02:00
Erez Rokah
afcfe5b6d5 feat: content in sub folders (#2897) 2019-11-27 22:39:33 -05:00
Shawn Erquhart
6909008a5c chore(release): publish
- netlify-cms-app@2.10.0-beta.2
 - netlify-cms-backend-github@2.5.0-beta.6
 - netlify-cms-backend-test@2.5.0
 - netlify-cms-core@2.13.0-beta.7
 - netlify-cms-lib-util@2.4.0-beta.5
 - netlify-cms-locales@1.2.0
 - netlify-cms@2.10.0-beta.2
2019-11-26 17:17:42 -05:00
Bartholomew
41bb9aac0d feat: workflow unpublished entry (#2914)
* feat: workflow unpublished entry

* fix: post rebase fix - load unpublished entry after unpublish

* feat: change unpublish button to dropdown

* test(cypress): add unpublish entry cypress test
2019-11-26 12:14:04 +02:00
Bartholomew
465f463959 fix(backend-github): prepend collection name (#2878)
* fix(backend-github): prepend collection name

* chore: prefer migrating entries

* chore: cleanup

* chore: move migration to listUnpublishedBranches

* chore: prefer flowAsync

* chore: feedback updates

* refactor: extract current metadata version to a const

* refactor: don't send pulls request on open authoring

* test: update recorded data

* fix: hardcode migration key/branch logic

* test(backend-github): add unit tests for migration code

* fix(github-graphql): add ref property to result of createBranch

* test(cypress): update recorded data

* fix: load unpublished entries once

* fix: run migration for published draft entry

* fix: failing test

* chore: use hardcoded version number

* fix: use hardcoded version number

* test(cypress): update recorded data
2019-11-26 10:40:27 +02:00