-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement cell-based sync + undo/redo
- Loading branch information
1 parent
96f51ec
commit 7d1473f
Showing
47 changed files
with
2,015 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Rogue merging defaults 1`] = ` | ||
{ | ||
"a": { | ||
"aStep": 1, | ||
"bStep": 1, | ||
"foo": "setBy1", | ||
"obj": { | ||
"objA": "true", | ||
"objB": "true", | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`Rogue overriding an existing prop 1`] = ` | ||
[ | ||
{ | ||
"branchName": "base", | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
], | ||
"type": "SetBoxedValue", | ||
"value": 2, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Rogue setting a non-existing prop 1`] = ` | ||
[ | ||
{ | ||
"$branches": { | ||
"base": { | ||
"$mapProps": { | ||
"a": { | ||
"$branches": { | ||
"base": { | ||
"$boxedValue": 1, | ||
}, | ||
}, | ||
"$type": [ | ||
"boxed", | ||
"base", | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
"$type": [ | ||
"map", | ||
"base", | ||
], | ||
}, | ||
[ | ||
{ | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
], | ||
"type": "ChangeType", | ||
"value": [ | ||
"boxed", | ||
"base", | ||
], | ||
}, | ||
{ | ||
"branchName": "base", | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
], | ||
"type": "SetBoxedValue", | ||
"value": 1, | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Rogue setting a non-existing prop to an object 1`] = ` | ||
[ | ||
{ | ||
"$branches": { | ||
"base": { | ||
"$mapProps": { | ||
"a": { | ||
"$branches": { | ||
"base": { | ||
"$mapProps": { | ||
"b": { | ||
"$branches": { | ||
"base": { | ||
"$boxedValue": 1, | ||
}, | ||
}, | ||
"$type": [ | ||
"boxed", | ||
"base", | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
"$type": [ | ||
"map", | ||
"base", | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
"$type": [ | ||
"map", | ||
"base", | ||
], | ||
}, | ||
[ | ||
{ | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
], | ||
"type": "ChangeType", | ||
"value": [ | ||
"map", | ||
"base", | ||
], | ||
}, | ||
{ | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
[ | ||
"base", | ||
"b", | ||
], | ||
], | ||
"type": "ChangeType", | ||
"value": [ | ||
"boxed", | ||
"base", | ||
], | ||
}, | ||
{ | ||
"branchName": "base", | ||
"path": [ | ||
[ | ||
"base", | ||
"a", | ||
], | ||
[ | ||
"base", | ||
"b", | ||
], | ||
], | ||
"type": "SetBoxedValue", | ||
"value": 1, | ||
}, | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7d1473f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
theatre-playground – ./
theatre-playground-git-main-theatrejs.vercel.app
theatre-playground-theatrejs.vercel.app
theatre-playground.vercel.app