322 Commits

Author SHA1 Message Date
Erez Rokah
e0b1246810
feat: populate new entry from URL params (#3343) 2020-03-02 11:32:22 +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
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
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
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
Shawn Erquhart
684b79e43b
fix(backend-github): improve workflow migration edge cases/messaging (#3319) 2020-02-25 11:49:38 +01: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
Ben Harris
971926c369
feat: Add 'hero' as inferable image field (#3294) 2020-02-20 17:44:00 +01: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
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
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
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
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
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
Shawn Erquhart
60ecc72dfa
fix(core): strip closing separators in yaml files (#3198) 2020-02-05 10:14:39 +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
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
Erez Rokah
0d7e36ba79
feat: add prePublish,postPublish events (#3172) 2020-01-31 16:44:01 -08: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
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
a215cfbe3a
fix: allow absolute paths for collection media folder (#3160) 2020-01-28 10:33:21 -08: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
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