Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from blueflag/release/absolute-anaconda
Release/absolute anaconda
- Loading branch information
Showing
289 changed files
with
8,087 additions
and
3,010 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
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,14 @@ | ||
[ | ||
{ | ||
limit: "25 KB", | ||
path: "packages/dataparcels/lib/index.js" | ||
}, | ||
{ | ||
limit: "25 KB", | ||
path: "packages/dataparcels/ParcelShape.js" | ||
}, | ||
{ | ||
limit: "25 KB", | ||
path: "packages/react-dataparcels/lib/index.js" | ||
} | ||
] |
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,3 @@ | ||
declare module "immutable" { | ||
declare module.exports: any | ||
} |
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
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"lerna": "2.9.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"version": "0.17.2" | ||
"version": "0.18.0-2" | ||
} |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/dataparcels-docs/src/content/ExamplesParcelBoundary.md
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Link from 'gatsby-link'; | ||
|
||
* <Link to="/examples/parcelboundary-example">ParcelBoundary example</Link> | ||
* <Link to="/examples/parcelboundary-pure">ParcelBoundary pure rendering example</Link> | ||
* <Link to="/examples/parcelboundary-debounce">Using debounce</Link> | ||
* <Link to="/examples/parcelboundary-forceupdate">Using forceUpdate</Link> | ||
* <Link to="/examples/parcelboundary-hold">Using hold</Link> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
5 changes: 0 additions & 5 deletions
5
packages/dataparcels-docs/src/docs/api/action/shouldBeSynchronous.md
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Examples from 'content/Examples.md'; | ||
import Link from 'gatsby-link'; | ||
|
||
### Examples | ||
|
||
<Examples /> | ||
Many examples can be found on the <Link to="/data-editing">data editing</Link> page. |
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/dataparcels-docs/src/docs/api/parcel/batchAndReturn.md
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
```flow | ||
children(mapper?: ParcelMapper): ParentType<Parcel> // only on ParentParcels | ||
|
||
type ParcelMapper = ( | ||
item: Parcel, | ||
property: string|number, | ||
parent: Parcel | ||
) => any; | ||
``` | ||
|
||
Returns all of the Parcel's children as new ChildParcels, contained within the original Parcel's data structure. | ||
|
||
An optional `mapper` function can be passed, which will be called on each child. | ||
|
||
```js | ||
let value = { | ||
abc: 123, | ||
def: 456 | ||
}; | ||
|
||
let parcel = new Parcel({value}); | ||
parcel.children(); | ||
|
||
// returns { | ||
// abc: Parcel, // contains a value of 123 | ||
// def: Parcel // contains a value of 456 | ||
// } | ||
|
||
``` |
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 |
---|---|---|
@@ -1,4 +1,25 @@ | ||
import IndexedKeys from 'docs/notes/IndexedKeys.md'; | ||
|
||
```flow | ||
delete(): void | ||
delete(): void // only on ChildParcels | ||
delete(key: string|number): void // only on ParentParcels, will delete a child | ||
``` | ||
|
||
Calling `delete()` with no arguments will trigger a change that will delete the current Parcel off of its parent. This variation of the `delete()` method only exists on ChildParcels. | ||
|
||
On ParentParcels this method can be called with a `key`, which deletes the child value at that key. | ||
|
||
```js | ||
let value = { | ||
abc: 123, | ||
def: 456 | ||
}; | ||
let parcel = new Parcel({value}); | ||
parcel.get('abc').delete(); | ||
// this triggers a change that sets the parcel's value to {def: 456} | ||
|
||
parcel.delete('abc'); | ||
// this also triggers a change that sets the parcel's value to {def: 456} | ||
``` | ||
|
||
<IndexedKeys /> |
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 |
---|---|---|
@@ -1,3 +1,20 @@ | ||
import IndexedKeys from 'docs/notes/IndexedKeys.md'; | ||
|
||
```flow | ||
deleteIn(keyPath: Array<string|number>): void // only on ParentParcels | ||
``` | ||
|
||
Calling `setIn()` will trigger a change that will delete the value at the provided `keyPath`. | ||
|
||
```js | ||
let value = { | ||
a: { | ||
b: 123 | ||
} | ||
}; | ||
let parcel = new Parcel({value}); | ||
parcel.deleteIn(['a','b']); | ||
// this triggers a change that sets the parcel's value to {a: {}} | ||
``` | ||
|
||
<IndexedKeys /> |
Oops, something went wrong.