260 Commits

Author SHA1 Message Date
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
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
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
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
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
Bartholomew
45a6ee92cc fix: unpublish published entry (#2931) 2019-11-29 17:49:19 +02: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
renovate[bot]
695b0e0380 fix(deps): update dependency react-is to v16.12.0 (#2912) 2019-11-25 13:12:20 +02:00
Bartholomew
9ddfa48512 fix: emotion use ref prop (#2905) 2019-11-21 09:10:33 +02:00
Shawn Erquhart
dc0c4c51ed chore(release): publish
- netlify-cms-app@2.10.0-beta.0
 - netlify-cms-backend-git-gateway@2.5.1
 - netlify-cms-backend-github@2.5.0-beta.5
 - netlify-cms-backend-test@2.4.0
 - netlify-cms-core@2.13.0-beta.6
 - netlify-cms-lib-auth@2.2.5
 - netlify-cms-locales@1.1.0
 - netlify-cms-ui-default@2.7.0-beta.2
 - netlify-cms-widget-markdown@2.5.2
 - netlify-cms-widget-relation@2.5.0
 - netlify-cms@2.10.0-beta.0
2019-11-18 16:56:44 -05:00
Erez Rokah
ead46af194
chore(deps): update dependency prettier to v1.19.1 (#2893)
* chore(deps): update dependency prettier to v1.19.1

* style: format files after prettier upgrade
2019-11-18 17:51:51 +02:00
Erez Rokah
6515dee871
feat: commit media with post (#2851)
* feat: commit media with post - initial commit

* feat: add draft media indication

* feat: sync UI media files with GitHub on entry load

* feat: bug fixes

* feat: delete media files from github when removed from library

* test: add GitHub backend tests

* test: add unit tests

* fix: meta data object files are not updated

* feat: used nested paths when update a tree instead of recursion

* feat(test-backend): update test backend to persist media file with entry

* test(e2e): re-record fixtures data

* chore: code cleanup

* chore: code cleanup

* fix: wait for library to load before adding entry media files

* chore: code cleanup

* fix: don't add media files on entry when not a draft

* fix: sync media library after draft entry was published

* feat: update media library card draft style, add tests

* test: add Editor unit tests

* chore: test code cleanup

* fix: publishing an entry from workflow tab throws an error

* fix: duplicate media files when using test backend

* refactor: fix lodash import

* chore: update translations and yarn file after rebase

* test(cypress): update recorded data

* fix(test-backend): fix mapping of media files on publish
2019-11-17 11:51:50 +02:00
Erez Rokah
096b067d45
feat: add translation support (#2870)
* feat: add translation support

* test(cypress): fix locale import

* docs: add locale documentation

* feat: add german translation (#2877)

* fix: locales package version, register all locales in netlify-cms
2019-11-14 11:25:04 +02:00
Erez Rokah
f5c8ff31f1
fix(media-libs): accept string or string array for insertMedia action (#2857) 2019-11-11 11:30:34 +02:00
ed ho
1d78a2705f improvement: add logs when a 404 error is expected (#2807)
improvement: add logs when a 404 error is expected

improvement: address code review feedback -return rejected promise
2019-11-10 10:34:03 +02:00
Ananthakumar
542a7acfe6 fix(workflow): label file collection entries in Workflow (#2566) 2019-11-08 18:28:17 -05:00
renovate[bot]
c643266b53 chore(deps): update dependency react-is to v16.11.0 (#2750) 2019-11-07 15:43:08 -05:00
Shawn Erquhart
8a06fbdbfc chore(release): publish
- netlify-cms-app@2.9.8-beta.5
 - netlify-cms-backend-bitbucket@2.5.0
 - netlify-cms-backend-git-gateway@2.5.0
 - netlify-cms-backend-github@2.5.0-beta.4
 - netlify-cms-backend-gitlab@2.4.0-beta.0
 - netlify-cms-backend-test@2.3.0
 - netlify-cms-core@2.13.0-beta.5
 - netlify-cms-editor-component-image@2.4.3
 - netlify-cms-media-library-uploadcare@0.5.5
 - netlify-cms-ui-default@2.7.0-beta.1
 - netlify-cms-widget-date@2.3.5
 - netlify-cms-widget-datetime@2.2.5
 - netlify-cms-widget-list@2.3.5-beta.1
 - netlify-cms-widget-number@2.3.5
 - netlify-cms@2.9.8-beta.5
2019-11-07 14:41:01 -05:00
Erez Rokah
002cdd77a8 fix: change default open authoring scope, make it configurable (#2821) 2019-11-07 12:39:47 -05:00
Ananthakumar
c1c95874f4 fix(backend-test-repo): show notice when test repo is in use (#2678) 2019-11-05 18:21:38 -05:00
Erez Rokah
2841ff9ffe feat: enable specifying custom open authoring commit message (#2810) 2019-10-28 15:29:47 -04:00
renovate[bot]
ab5860f58e fix(deps): update dependency react-polyglot to ^0.6.0 (#2752) 2019-10-28 15:09:58 -04:00
polemius
7ca528b20a enhancement: improve error with no existing widget (#2722)
* enhancement: improve error with no existing widget

* Update Widget.js

* chore: fix formatting of Widget.js
2019-10-24 11:59:32 +03:00
polemius
68dd995d97 Fix lint issues with propTypes (#2713) 2019-10-24 11:45:00 +03:00
Ben Borgers
c54f896e39 fix: hide collection item overflow on hover (#2706) 2019-10-23 14:08:46 -04:00
Bartholomew
f3e58e6be2 fix history console warning (#2789) 2019-10-23 15:58:54 +03:00
Erez Rokah
d38d4665c4
test(cleanup): remove/reintorduce skipped tests (#2788) 2019-10-23 13:22:48 +03:00
Shawn Erquhart
6b83a706a3
chore: switch chat links to slack (#2782) 2019-10-22 20:59:04 -04:00
Shawn Erquhart
f16d22334f chore(release): publish
- netlify-cms-app@2.9.8-beta.4
 - netlify-cms-backend-bitbucket@2.4.2
 - netlify-cms-backend-git-gateway@2.4.6
 - netlify-cms-backend-github@2.5.0-beta.3
 - netlify-cms-backend-gitlab@2.3.3-beta.1
 - netlify-cms-core@2.13.0-beta.4
 - netlify-cms-lib-util@2.4.0-beta.4
 - netlify-cms-media-library-cloudinary@1.3.4
 - netlify-cms-media-library-uploadcare@0.5.4
 - netlify-cms-widget-date@2.3.4
 - netlify-cms-widget-datetime@2.2.4
 - netlify-cms-widget-relation@2.4.2
 - netlify-cms@2.9.8-beta.4
2019-09-26 13:09:40 -04:00
polemius
04b371825e chore: fix the typos in comments (#2679) 2019-09-24 16:16:09 -04:00
melbourne2991
8bdfea4728 fix: prevent deletion of file collection entries by default (#2627) 2019-09-05 18:08:07 -04:00
Pedro Duarte
752927060e improvement(editor): remove editor width constraint (#2626)
* Remove Editor max width

* Increase divider width
2019-09-05 15:26:31 -04:00
Bartholomew
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
Henry Desroches
9f003106e5 fix(media-library): automatically select uploaded image (#2569) 2019-09-05 13:38:27 -04:00
Shawn Erquhart
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
Erez Rokah
e674e43f9f fix(github-graphql): use getMediaDisplayURL to load media with auth header (#2652) 2019-09-04 18:56:06 -04:00
Erez Rokah
ce95a774b2 fix(core): don't pass boolean value to string prop, use null instead (#2609) 2019-09-04 18:39:21 -04:00