308 Commits

Author SHA1 Message Date
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
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
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
5bd724026c
fix: don't wait for external media library to load (#3050) 2020-01-08 17:21:14 +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
Erez Rokah
b5ffccdac5 feat(backend-git-gateway): handle identity disabled error message (#3002) 2020-01-06 14:10:37 -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
Shawn Erquhart
982fd7b0f8 fix: always ensure collection exists before routing (#2992) 2019-12-22 13:40:14 +02: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
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
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