2258 Commits

Author SHA1 Message Date
ee161c6848 chore(deps): update dependency babel-plugin-prismjs to v1.1.1 (#2666) 2019-09-10 10:50:02 -04:00
1a0e640f8a chore(deps): update dependency @octokit/rest to v16.28.9 (#2663) 2019-09-10 10:48:49 -04:00
4c32ee4aed fix(media-library-cloudinary): when 'multiple' is true, always return an array (#2656) 2019-09-09 16:18:34 -04:00
49e142ef59 enhancement(widget-relation): support custom options length (#2520) 2019-09-09 16:16:15 -04:00
97f1f84b69 fix(github-backend): handle race condition in editorial workflow (#2658) 2019-09-09 15:56:47 -04:00
0baf651f33 refactor(github-backend): move getMediaDisplayURL from implementation to api (#2654) 2019-09-09 15:42:10 -04:00
56ee8441ef docs: document github graphql beta (#2636) 2019-09-08 15:03:18 -04:00
5b143089e2 docs: add _layouts/post.html to Jekyll guide (#2628) 2019-09-05 18:09:12 -04:00
8bdfea4728 fix: prevent deletion of file collection entries by default (#2627) 2019-09-05 18:08:07 -04:00
f87eda6992 docs: add condition to access section (#2625) 2019-09-05 17:39:38 -04:00
68170336d5 fix(backend-github): update Open Authoring branches with no PR (#2618) 2019-09-05 17:06:57 -04:00
65d49dae9a chore: update datetime widget and deprecate date widget (#2615) 2019-09-05 16:16:55 -04:00
8d404a0d54 docs: add Nuxt guide (#2614) 2019-09-05 16:01:02 -04:00
752927060e improvement(editor): remove editor width constraint (#2626)
* Remove Editor max width

* Increase divider width
2019-09-05 15:26:31 -04:00
6765bbd2fd fix(core): list widget pattern validation (#2599)
* fix list widget pattern validation

* remove array value check
2019-09-05 15:06:56 -04:00
15a2da0d6d docs: add preact-cli's static location (#2389)
* Adding preact-cli's build location

* Update add-to-your-site.md
2019-09-05 13:58:15 -04:00
9f003106e5 fix(media-library): automatically select uploaded image (#2569) 2019-09-05 13:38:27 -04:00
003c97f97c docs: add 11ty public folder to docs (#2559) 2019-09-05 13:29:31 -04:00
50b297c67a chore(release): publish
- netlify-cms-app@2.9.8-beta.3
 - netlify-cms-backend-github@2.5.0-beta.2
 - netlify-cms-core@2.13.0-beta.3
 - netlify-cms-lib-util@2.4.0-beta.3
 - netlify-cms-widget-list@2.3.5-beta.0
 - netlify-cms@2.9.8-beta.3
2019-09-04 18:59:16 -04:00
e674e43f9f fix(github-graphql): use getMediaDisplayURL to load media with auth header (#2652) 2019-09-04 18:56:06 -04:00
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
bab180890e chore: renovate 2019-09-03 21:29:40 -04:00
c9e87ebbcf chore: renovate 2019-09-03 21:26:18 -04:00
b781239f1e chore: r e n o v a t e 2019-09-03 21:15:56 -04:00
942dbe1d99 chore: fix renovate config 2019-09-03 21:13:37 -04:00
b220f01ab5 chore: extend netlify default renovate config 2019-09-03 21:08:11 -04:00
2f84898153 chore: fix website dependabot config 2019-09-03 21:05:56 -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
211577e263 chore: fix dependabot config 2019-09-03 19:52:24 -04:00
f4f7f384e1 chore: add renovate bot for lockfile maintenance 2019-09-03 19:51:16 -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
be7f443d6d chore: update release ticker 2019-08-24 16:23:41 -04:00
1ef7603d40 docs: add relative images beta 2019-08-24 16:21:24 -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
861c36f658 add dependabot config (#2592) 2019-08-24 14:45:01 -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
66da66affd Fix broken link (#2522) 2019-08-07 20:45:07 +02:00
c5acc1952a docs: incorrect repo url in Contributor Guide (#2503) 2019-07-27 06:47:54 -07: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
c04fe8fbb7 chore(deps): bump gatsby-source-filesystem in /website (#2486)
Bumps [gatsby-source-filesystem](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-source-filesystem) from 2.0.1-rc.1 to 2.0.19.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-filesystem/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/gatsby-source-filesystem@2.0.19/packages/gatsby-source-filesystem)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-24 18:03:03 -04:00