Skip to content

Commit

Permalink
Downgrade Slate to fix regressions (#121)
Browse files Browse the repository at this point in the history
* Prettier (#114)

* Prettier config

* Added eslint, and prettier, started fixing files

* Linted everything

* More linting

* Removed useless readme, added precommit example

* Fix file ref in example

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Remove useless code from example

* Updated settings in linter'

* Upgrade dependencies (#115)

* Prettier config

* Added eslint, and prettier, started fixing files

* Linted everything

* More linting

* Removed useless readme, added precommit example

* Fix file ref in example

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Another fix to dir

* Remove useless code from example

* Updated settings in linter'

* Upgraded styled-components, slate, webpack packagers

* Upgrade upto Slate@0.36 and fix for focused image style

* Prettier command ran

* Codestyles

* Change linter prefs

* Fix linter prefs and prepare scripts

* Updated snapshots

* Update prettier integration

* Update webpack dev server

* Fix tests

* Spacing

* Fix tests

* Upgraded babel to .env, fixed jest (#117)

* Fix yarn.lock

* Moar tests (#118)

* Upgraded babel to .env, fixed jest

* Added a few tests

* Added test to example file

* Add a prop possibility for default value

* Utilized example value in snapshot test

* Added comments

* Fix compiler script

* Fix scripts for cleaner dist output

* Correctly ommit test files, smaller output package

* Added badges, attempting to fix Travis branches

* Modify Travis script

* Remove unconsumed  prop, add comments and acknowledgements

* More tests

* Update readme

* Fix yarn.lock and snapshots

* Update dev dependencies (#119)

* Upgraded babel to .env, fixed jest

* Added a few tests

* Added test to example file

* Add a prop possibility for default value

* Utilized example value in snapshot test

* Added comments

* Fix compiler script

* Fix scripts for cleaner dist output

* Correctly ommit test files, smaller output package

* Added badges, attempting to fix Travis branches

* Modify Travis script

* Remove unconsumed  prop, add comments and acknowledgements

* More tests

* Update readme

* Fix typo

* Simplify snapshot test boilerplate

* Copy edits

* Bump dependencies, update snapshot tests

* Fix snapshots and yarn.lock

* Upgrade slate (#120)

* Upgraded babel to .env, fixed jest

* Added a few tests

* Added test to example file

* Add a prop possibility for default value

* Utilized example value in snapshot test

* Added comments

* Fix compiler script

* Fix scripts for cleaner dist output

* Correctly ommit test files, smaller output package

* Added badges, attempting to fix Travis branches

* Modify Travis script

* Remove unconsumed  prop, add comments and acknowledgements

* More tests

* Update readme

* Fix typo

* Simplify snapshot test boilerplate

* Copy edits

* Bump dependencies, update snapshot tests

* 37 + compat

* Started working on slate-auto-replace compatibility

* Added When plugin wrapper to fulfill onlyIn function

* Upgrade to next version of Slate, work on depreciations

* Version bump and compatibility fixes

* Upgrade slate, fix pasting HTML

* Upgrade slate and break out images on paste

* Fix image insert and HR

* Remove focus from images when editor is not in focus

* Fix focus issues

* Unwrap images

* Remove unused function

* Fixed autoreplace for quotes

* Fix HR behaviour

* Fix spontanious edits when double-clicking in certain areas of text

* Fixed linter tool

* Added eslint ignore settings

* Update snapshots, remove unused method

* Restored paste plain html function on plugin

* Kill failing tests

* Fix tests

* Even branches

* Clean up

* Sync index with v8

* Upgrade to slate 35

* Fix slate-when to rely on earlier version of slate

* Fix reference links

* Squish text

* Fix snapshots, fix regressions introduced through merge

* Locked versions and fixed snapshot

* Reinstall yarn dep
  • Loading branch information
dmitrizzle committed May 22, 2019
1 parent 6e354d3 commit 8e8a7a5
Show file tree
Hide file tree
Showing 26 changed files with 3,971 additions and 3,298 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -15,7 +15,6 @@
### Examples in production:

- **[Analog.Cafe](https://github.com/dmitrizzle/Analog.Cafe):** a film photography magazine.
- **[Archie.AI Blog](https://www.archie.ai/blog/new):** articles from the team behind Archie.AI, an artificially intelligent data scientist.

---

Expand Down
21 changes: 14 additions & 7 deletions examples/__snapshots__/editor.test.js.snap
Expand Up @@ -6,6 +6,7 @@ ShallowWrapper {
Symbol(enzyme.__unrendered__): <Editor />,
Symbol(enzyme.__renderer__): Object {
"batchedUpdates": [Function],
"checkPropTypes": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
Expand Down Expand Up @@ -240,7 +241,7 @@ ShallowWrapper {
},
Object {
"data": Object {
"src": "https://instagram.fyvr3-1.fna.fbcdn.net/vp/08c7b82dfdb7bdbac00bfac0afd49dd7/5C233865/t51.2885-15/e35/29740602_208947276504723_8552082654378328064_n.jpg",
"src": "https://raw.githubusercontent.com/roast-cms/french-press-editor/develop/graphics/logo.gif",
},
"isVoid": true,
"nodes": Array [
Expand Down Expand Up @@ -509,7 +510,7 @@ ShallowWrapper {
},
Object {
"data": Object {
"src": "https://instagram.fyvr3-1.fna.fbcdn.net/vp/08c7b82dfdb7bdbac00bfac0afd49dd7/5C233865/t51.2885-15/e35/29740602_208947276504723_8552082654378328064_n.jpg",
"src": "https://raw.githubusercontent.com/roast-cms/french-press-editor/develop/graphics/logo.gif",
},
"isVoid": true,
"nodes": Array [
Expand Down Expand Up @@ -787,7 +788,7 @@ ShallowWrapper {
},
Object {
"data": Object {
"src": "https://instagram.fyvr3-1.fna.fbcdn.net/vp/08c7b82dfdb7bdbac00bfac0afd49dd7/5C233865/t51.2885-15/e35/29740602_208947276504723_8552082654378328064_n.jpg",
"src": "https://raw.githubusercontent.com/roast-cms/french-press-editor/develop/graphics/logo.gif",
},
"isVoid": true,
"nodes": Array [
Expand Down Expand Up @@ -1056,7 +1057,7 @@ ShallowWrapper {
},
Object {
"data": Object {
"src": "https://instagram.fyvr3-1.fna.fbcdn.net/vp/08c7b82dfdb7bdbac00bfac0afd49dd7/5C233865/t51.2885-15/e35/29740602_208947276504723_8552082654378328064_n.jpg",
"src": "https://raw.githubusercontent.com/roast-cms/french-press-editor/develop/graphics/logo.gif",
},
"isVoid": true,
"nodes": Array [
Expand Down Expand Up @@ -1110,20 +1111,26 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"legacyContextMode": "parent",
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getChildContext": Object {
"calledByRenderer": false,
},
"getDerivedStateFromError": true,
"getDerivedStateFromProps": Object {
"hasShouldComponentUpdateBug": false,
},
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
"attachTo": undefined,
"hydrateIn": undefined,
},
Symbol(enzyme.__childContext__): null,
}
`;
2 changes: 1 addition & 1 deletion examples/constants.js
Expand Up @@ -132,7 +132,7 @@ export const EXAMPLE_VALUE = {
isVoid: true,
data: {
src:
"https://instagram.fyvr3-1.fna.fbcdn.net/vp/08c7b82dfdb7bdbac00bfac0afd49dd7/5C233865/t51.2885-15/e35/29740602_208947276504723_8552082654378328064_n.jpg",
"https://raw.githubusercontent.com/roast-cms/french-press-editor/develop/graphics/logo.gif",
},
nodes: [
{object: "text", leaves: [{object: "leaf", text: "", marks: []}]},
Expand Down
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -40,7 +40,7 @@
"react-router-dom": "^4.2.2",
"react-test-renderer": "^16.5.2",
"size-limit": "^0.20.0",
"slate-simulator": "^0.4.66",
"slate-simulator": "^0.4.61",
"style-loader": "^0.23.0",
"typeface-rajdhani": "^0.0.54",
"typeface-yanone-kaffeesatz": "^0.0.54",
Expand Down Expand Up @@ -75,12 +75,12 @@
"localforage-getitems": "^1.4.1",
"lodash": "^4.17.4",
"positions": "^1.6.1",
"slate": "^0.41.2",
"slate-auto-replace": "^0.11.2",
"slate-drop-or-paste-images": "^0.8.1",
"slate-html-serializer": "^0.7.7",
"slate-react": "^0.18.0",
"slate-when": "^0.1.1",
"slate-when": "0.1.0",
"slate": "0.35.0",
"slate-auto-replace": "0.9.0",
"slate-drop-or-paste-images": "0.8.1",
"slate-html-serializer": "0.6.0",
"slate-react": "0.13.0",
"styled-components": "^3.4.5",
"uuid": "^3.1.0",
"valid-data-url": "1"
Expand Down

0 comments on commit 8e8a7a5

Please sign in to comment.