1163 Commits

Author SHA1 Message Date
a801636967 fix: pass List instead of array to onChange (#2611) 2019-09-04 18:40:59 -04:00
ce95a774b2 fix(core): don't pass boolean value to string prop, use null instead (#2609) 2019-09-04 18:39:21 -04:00
5b64e25d07 fix(core): don't pass ref to react-polyglot 'translate' function component (#2607) 2019-09-04 18:38:41 -04:00
1aff33e158 chore: update and document edit route (#2619)
* chore: update and document edit route

* fix formatting
2019-09-03 20:37:31 -04:00
ece136c92e feat(backend-github): GitHub GraphQL API support (#2456)
* add GitHub GraphQL api initial support

* support mutiple backends for e2e tests - initial commit

* add github backend e2e test (currently skipped), fix bugs per tests

* refactor e2e tests, add fork workflow tests, support fork workflow in GraphQL api

* remove log message that might contain authentication token

* return empty error when commit is not found when using GraphQL (align with base class)

* disable github backend tests

* fix bugs introduced after rebase of GraphQL and OpenAuthoring features

* test: update tests per openAuthoring changes, split tests into multiple files

* fix: pass in headers for pagination requests, avoid async iterator as it requires a polyfill on old browsers

* test(e2e): disable github backend tests
2019-09-03 14:56:20 -04:00
083a336ba4 feat(routing): support direct linking to entries (#2556) 2019-08-28 20:37:56 -04:00
6e6e4b86ca improvement(editor): add title to toggle buttons (#2548) 2019-08-28 18:48:30 -04:00
9cb7cd7214 Update toml library from toml-j0.4 to @iarna/toml@2.2.3 (#2547) 2019-08-28 18:46:11 -04:00
4c5fe6a606 fix(media-library): no render of non-viewable files (#2546) 2019-08-28 18:27:48 -04:00
7a30c7e2bc chore(release): publish
- netlify-cms-app@2.9.8-beta.2
 - netlify-cms-core@2.13.0-beta.2
 - netlify-cms-lib-util@2.4.0-beta.2
 - netlify-cms@2.9.8-beta.2
2019-08-24 16:07:06 -04:00
a47a29fb8b Allow for relative paths of media files (#2394)
* Allow for relative paths of media files

fixes #325

* Switch to calculating the relative path based on collection

The required relative path is now calculated depending on the
location of the collection of the current entry having the
media inserted into. And the configuration option has now been
changed to a boolean flag.

This allows collections to not neccesarily all be in the same
location relative to the media folder, and simplifies config.

* Clean up code and fix linting

* Add unit tests to resolveMediaFilename()

* Rework insertMedia action to fetch own config

This moves more of the media path resolution logic into the action
which makes it easier to unit test

* Add unit tests for the mediaLibrary.insertMedia action

* yarn run format

* add dependabot config (#2580)
2019-08-24 16:03:09 -04:00
f970a1fb1a chore(release): publish
- netlify-cms-app@2.9.8-beta.1
 - netlify-cms-backend-github@2.5.0-beta.1
 - netlify-cms-backend-gitlab@2.3.3-beta.0
 - netlify-cms-core@2.13.0-beta.1
 - netlify-cms-lib-util@2.4.0-beta.1
 - netlify-cms@2.9.8-beta.1
2019-08-24 13:57:37 -04:00
34e1f09105 Open Authoring bugfixes and pagination improvements (#2523)
* Fix handling of displayURLs which are strings

* Add fromFetchArguments to unsentRequest

* Add parseLinkHeader to backendUtil

* Handle paginated endpoints in GitHub API

* Rename fork workflow to Open Authoring across the whole repo

* Fixes for bugs in GitHub API introduced by Open Authoring changes

* Fix getDeployPreview

* Fix incorrect auth header formatting GitHub implementation

cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r309633387

* Remove unused and broken method from GitHub API

cf. https://github.com/netlify/netlify-cms/pull/2456#discussion_r308687145

* Fix editorialWorkflowGit method in GitHub API

* Request published entry content from origin repo

* Better error when deleting a published post in Open Authoring

* Rename to Open Authoring in fork request message

Also adds a note to the fork request message that an existing fork of
the same repo will be used automatically.

* fix linting
2019-08-24 13:54:59 -04:00
7a63444f2f chore(release): publish
- netlify-cms-app@2.9.8-beta.0
 - netlify-cms-backend-github@2.5.0-beta.0
 - netlify-cms-core@2.13.0-beta.0
 - netlify-cms-lib-util@2.4.0-beta.0
 - netlify-cms-ui-default@2.7.0-beta.0
 - netlify-cms@2.9.8-beta.0
2019-07-24 18:22:44 -04:00
edf0a3afdc feat(backend-github): Open Authoring (#2430)
* Make filterPromises resolve entries before filtering

* Add filterPromisesWith & onlySuccessfulPromises to utility library

* Memoize user method in GitHub API

* Make storeMetadata safe to call concurrently in GitHub API

* Fork workflow: startup and authentication

* Fork workflow: backend support

* Fork workflow: disable unused UI elements

* Fork workflow: docs

* Fork workflow: fix deploy previews

* Suggested edits for fork workflow doc

* Change future tense to present

* Fork workflow: add beta status to docs

* remove debug statement

* rename fork workflow to Open Authoring
2019-07-24 18:20:41 -04:00
41559256d0 chore(release): publish
- netlify-cms-app@2.9.7
 - netlify-cms-backend-bitbucket@2.4.1
 - netlify-cms-backend-git-gateway@2.4.5
 - netlify-cms-backend-test@2.2.3
 - netlify-cms-core@2.12.2
 - netlify-cms-default-exports@2.2.3
 - netlify-cms-lib-auth@2.2.4
 - netlify-cms-lib-util@2.3.3
 - netlify-cms-media-library-cloudinary@1.3.3
 - netlify-cms-media-library-uploadcare@0.5.3
 - netlify-cms-ui-default@2.6.4
 - netlify-cms-widget-boolean@2.2.3
 - netlify-cms-widget-date@2.3.3
 - netlify-cms-widget-datetime@2.2.3
 - netlify-cms-widget-file@2.4.3
 - netlify-cms-widget-image@2.3.3
 - netlify-cms-widget-list@2.3.4
 - netlify-cms-widget-map@1.3.3
 - netlify-cms-widget-markdown@2.5.1
 - netlify-cms-widget-number@2.3.4
 - netlify-cms-widget-object@2.2.3
 - netlify-cms-widget-relation@2.4.1
 - netlify-cms-widget-select@2.4.3
 - netlify-cms-widget-string@2.2.3
 - netlify-cms-widget-text@2.2.3
 - netlify-cms@2.9.7
2019-07-24 18:11:44 -04:00
d2601615dc fix(ui): typos in color vars (#2444) 2019-07-24 17:46:46 -04:00
326ed4dc3f fix(core): fix broken search (#2488) 2019-07-24 15:29:37 -04:00
8fe72d0686 chore(scripts): espace commands arguments that use a glob matching pattern (#2435) 2019-07-18 16:59:31 -04:00
b273dcf535 chore(release): publish
- netlify-cms-app@2.9.6
 - netlify-cms-widget-list@2.3.3
 - netlify-cms@2.9.6
2019-07-11 15:47:22 -04:00
83bd5d54f8 fix(widget-list): honor default values for widgets in lists (#2395) 2019-07-11 15:40:34 -04:00
75b231a4aa chore(release): publish
- netlify-cms-app@2.9.5
 - netlify-cms-core@2.12.1
 - netlify-cms@2.9.5
2019-06-28 17:34:09 -04:00
a02496b0dd fix(core): load more entries until viewport is filled (#2415) 2019-06-28 17:30:39 -04:00
2dbdfb5d05 chore(release): publish
- netlify-cms-app@2.9.4
 - netlify-cms-backend-git-gateway@2.4.4
 - netlify-cms-core@2.12.0
 - netlify-cms-lib-auth@2.2.3
 - netlify-cms-widget-relation@2.4.0
 - netlify-cms@2.9.4
2019-06-26 15:58:44 -04:00
556c102e37 fix(core): backend file system create entry (#2401) 2019-06-26 14:37:22 -04:00
aded9d7c24 chore(deps): update dependency prettier to v1.18.2 (#2407) 2019-06-26 14:28:00 -04:00
321ca9b0ed test(backend-gitlab): cover gitlab backend integration (#1968) 2019-06-26 11:51:35 -04:00
d6964b50b3 feat(widget-relation): support nested field references in relation widget (#2391) 2019-06-24 19:32:02 -04:00
814aa5091b fix(widget-list): validate string values in list widget (#2385) 2019-06-24 18:50:26 -04:00
4181320fa8 chore(release): publish
- netlify-cms-app@2.9.3
 - netlify-cms-backend-git-gateway@2.4.3
 - netlify-cms@2.9.3
2019-06-18 18:03:40 -04:00
a5bd6b3e89 fix(core): address new entries error for non-github backends (#2390) 2019-06-18 17:55:53 -04:00
3fa4331058 chore(release): publish
- netlify-cms-app@2.9.2
 - netlify-cms-core@2.11.1
 - netlify-cms-ui-default@2.6.3
 - netlify-cms-widget-markdown@2.5.0
 - netlify-cms-widget-relation@2.3.3
 - netlify-cms@2.9.2
2019-06-14 12:20:20 -04:00
95322b113d chore(release): publish
- netlify-cms-app@2.9.2-beta.2
 - netlify-cms-core@2.11.1-beta.2
 - netlify-cms@2.9.2-beta.2
2019-06-14 12:06:52 -04:00
1806a2f041 fix(core): list widget default values (#2374) 2019-06-14 11:46:33 -04:00
dc1ba6d41b chore(widget-markdown): add failing commonmark spec (#2263) 2019-05-20 09:48:02 -04:00
8e1556f908 chore(release): publish
- netlify-cms-app@2.9.2-beta.1
 - netlify-cms-core@2.11.1-beta.1
 - netlify-cms-ui-default@2.6.3-beta.0
 - netlify-cms-widget-markdown@2.5.0-beta.1
 - netlify-cms-widget-relation@2.3.3-beta.0
 - netlify-cms@2.9.2-beta.1
2019-05-15 13:27:27 -04:00
5f807d7ac5 fix(widget-markdown): keep markdown widget dropdowns on top (#2326) 2019-05-10 10:25:52 -04:00
29f12c94d9 improvement(editor): persist editor split pane position (#2304) 2019-05-10 10:20:57 -04:00
60caca0950 fix(widget-markdown): ensure correct value on list reorder (#2298) 2019-05-09 13:20:51 -04:00
9318aa070b fix(widget-relation): clear button (#2285) 2019-04-12 09:11:20 -04:00
a0d974a486 chore(release): publish
- netlify-cms-app@2.9.2-beta.0
 - netlify-cms-core@2.11.1-beta.0
 - netlify-cms-widget-markdown@2.5.0-beta.0
 - netlify-cms@2.9.2-beta.0
2019-04-10 16:43:27 -04:00
0ce995d78c fix(core): ensure against slug overwrite (#2139) 2019-04-10 16:38:53 -04:00
14b6292eab feat(editor-components): match any characters with shortcodes (#2268) 2019-04-10 15:23:53 -04:00
8867c5acb6 chore(release): publish
- netlify-cms-app@2.9.1
 - netlify-cms-backend-bitbucket@2.4.0
 - netlify-cms-backend-git-gateway@2.4.2
 - netlify-cms-backend-github@2.4.2
 - netlify-cms-backend-gitlab@2.3.2
 - netlify-cms-backend-test@2.2.2
 - netlify-cms-core@2.11.0
 - netlify-cms-default-exports@2.2.2
 - netlify-cms-editor-component-image@2.4.2
 - netlify-cms-lib-auth@2.2.2
 - netlify-cms-lib-util@2.3.2
 - netlify-cms-media-library-cloudinary@1.3.2
 - netlify-cms-media-library-uploadcare@0.5.2
 - netlify-cms-ui-default@2.6.2
 - netlify-cms-widget-boolean@2.2.2
 - netlify-cms-widget-date@2.3.2
 - netlify-cms-widget-datetime@2.2.2
 - netlify-cms-widget-file@2.4.2
 - netlify-cms-widget-image@2.3.2
 - netlify-cms-widget-list@2.3.2
 - netlify-cms-widget-map@1.3.2
 - netlify-cms-widget-markdown@2.4.2
 - netlify-cms-widget-number@2.3.3
 - netlify-cms-widget-object@2.2.2
 - netlify-cms-widget-relation@2.3.2
 - netlify-cms-widget-select@2.4.2
 - netlify-cms-widget-string@2.2.2
 - netlify-cms-widget-text@2.2.2
 - netlify-cms@2.9.1
2019-04-10 10:15:43 -04:00
df31ca84e0 chore(release): publish
- netlify-cms-app@2.9.1-beta.2
 - netlify-cms-backend-bitbucket@2.4.0-beta.0
 - netlify-cms-backend-git-gateway@2.4.2-beta.0
 - netlify-cms-backend-github@2.4.2-beta.0
 - netlify-cms-backend-gitlab@2.3.2-beta.0
 - netlify-cms-backend-test@2.2.2-beta.0
 - netlify-cms-core@2.11.0-beta.2
 - netlify-cms-default-exports@2.2.2-beta.0
 - netlify-cms-editor-component-image@2.4.2-beta.0
 - netlify-cms-lib-auth@2.2.2-beta.0
 - netlify-cms-lib-util@2.3.2-beta.0
 - netlify-cms-media-library-cloudinary@1.3.2-beta.0
 - netlify-cms-media-library-uploadcare@0.5.2-beta.0
 - netlify-cms-ui-default@2.6.2-beta.0
 - netlify-cms-widget-boolean@2.2.2-beta.0
 - netlify-cms-widget-date@2.3.2-beta.0
 - netlify-cms-widget-datetime@2.2.2-beta.0
 - netlify-cms-widget-file@2.4.2-beta.0
 - netlify-cms-widget-image@2.3.2-beta.0
 - netlify-cms-widget-list@2.3.2-beta.0
 - netlify-cms-widget-map@1.3.2-beta.0
 - netlify-cms-widget-markdown@2.4.2-beta.0
 - netlify-cms-widget-number@2.3.3-beta.0
 - netlify-cms-widget-object@2.2.2-beta.0
 - netlify-cms-widget-relation@2.3.2-beta.0
 - netlify-cms-widget-select@2.4.2-beta.0
 - netlify-cms-widget-string@2.2.2-beta.0
 - netlify-cms-widget-text@2.2.2-beta.0
 - netlify-cms@2.9.1-beta.2
2019-04-05 18:32:42 -04:00
6c3506b4d0 fix(backend-git-gateway): fix image display w/o large media (#2271) 2019-04-05 18:25:54 -04:00
7d7c846356 chore: remove esm source maps (#2269) 2019-04-04 15:23:38 -04:00
d082b97a41 chore(widget-markdown): add skipped tests for invalid markdown (#2052) 2019-04-04 14:34:49 -04:00
a6c51fe14d fix(core): correctly delete backups for new entries (#2265) 2019-04-04 14:33:36 -04:00
f5e148f9a7 chore: improve build output (#2258) 2019-04-04 14:16:06 -04:00