@atjson/renderer-react
Advanced tools
Comparing version 0.19.0 to 0.19.1
@@ -6,2 +6,11 @@ # Change Log | ||
## [0.19.1](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-react@0.19.0...@atjson/renderer-react@0.19.1) (2019-08-26) | ||
### 🐛 Fixes | ||
* 🐛 fix tests for react renderer so there's no type warnings | ||
## [0.19.0](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-react@0.17.2...@atjson/renderer-react@0.19.0) (2019-08-05) | ||
@@ -8,0 +17,0 @@ |
import Document, { Annotation } from '@atjson/document'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import * as React from 'react'; | ||
import { ComponentType } from 'react'; | ||
export default class ReactRenderer extends Renderer { | ||
private componentLookup; | ||
constructor(document: Document, componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
[key: string]: ComponentType<any>; | ||
}); | ||
@@ -9,0 +10,0 @@ root(): IterableIterator<any>; |
@@ -32,2 +32,2 @@ "use strict"; | ||
exports.default = ReactRenderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx1REFBMEQ7QUFDMUQsK0JBQStCO0FBRS9CLE1BQXFCLGFBQWMsU0FBUSxzQkFBUTtJQU1qRCxZQUNFLFFBQWtCLEVBQ2xCLGVBRUM7UUFFRCxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLGVBQWUsR0FBRyxlQUFlLENBQUM7SUFDekMsQ0FBQztJQUVELENBQUMsSUFBSTtRQUNILElBQUksbUJBQW1CLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxJQUFJLElBQUksSUFBSSxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQU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UFBSSxDQUFDLGVBQWUsR0FBRyxlQUFlLENBQUM7SUFDekMsQ0FBQztJQUVELENBQUMsSUFBSTtRQUNILElBQUksbUJBQW1CLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxJQUFJLElBQUksSUFBSSxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUM7UUFDakYsSUFBSSxtQkFBbUIsRUFBRTtZQUN2QixPQUFPLEtBQUssQ0FBQyxhQUFhLENBQ3hCLG1CQUFtQixFQUNuQixFQUFFLEVBQ0YsR0FBRyxLQUFLLENBQ1QsQ0FBQztTQUNIO2FBQU07WUFDTCxJQUFJLFVBQVUsR0FBRyxLQUFLLENBQUM7WUFDdkIsT0FBTyxVQUFVLENBQUM7U0FDbkI7SUFDSCxDQUFDO0lBRUQsQ0FBQyxnQkFBZ0IsQ0FBQyxVQUFzQjtRQUN0QyxJQUFJLG1CQUFtQixHQUFHLElBQUksQ0FBQyxlQUFlLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLElBQUksQ0FBQyxlQUFlLENBQUMsdUJBQVEsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztRQUNuSCxJQUFJLG1CQUFtQixFQUFFO1lBQ3ZCLE9BQU8sS0FBSyxDQUFDLGFBQWEsQ0FDeEIsbUJBQW1CLEVBQ25CLFVBQVUsQ0FBQyxVQUFVLEVBQ3JCLEdBQUcsS0FBSyxDQUNULENBQUM7U0FDSDthQUFNO1lBRUwsSUFBSSxVQUFVLEdBQUcsS0FBSyxDQUFDO1lBQ3ZCLE9BQU8sVUFBVSxDQUFDO1NBQ25CO0lBQ0gsQ0FBQztDQUNGO0FBNUNELGdDQTRDQyJ9 |
import Document, { Annotation } from '@atjson/document'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import * as React from 'react'; | ||
import { ComponentType } from 'react'; | ||
export default class ReactRenderer extends Renderer { | ||
private componentLookup; | ||
constructor(document: Document, componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
[key: string]: ComponentType<any>; | ||
}); | ||
@@ -9,0 +10,0 @@ root(): IterableIterator<any>; |
@@ -29,2 +29,2 @@ import Renderer, { classify } from '@atjson/renderer-hir'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxRQUFRLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEtBQUssS0FBSyxNQUFNLE9BQU8sQ0FBQztBQUUvQixNQUFNLENBQUMsT0FBTyxPQUFPLGFBQWMsU0FBUSxRQUFRO0lBTWpELFlBQ0UsUUFBa0IsRUFDbEIsZUFFQztRQUVELEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsZUFBZSxHQUFHLGVBQWUsQ0FBQztJQUN6QyxDQUFDO0lBRUQsQ0FBQyxJQUFJO1FBQ0gsSUFBSSxtQkFBbUIsR0FBRyxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksSUFBSSxJQUFJLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQztRQUNqRixJQUFJLG1CQUFtQixFQUFFO1lBQ3ZCLE9BQU8sS0FBSyxDQUFDLGFBQWEsQ0FDeEIsbUJBQW1CLEVBQ25CLEVBQUUsRUFDRixHQUFHLEtBQUssQ0FDVCxDQUFDO1NBQ0g7YUFBTTtZQUNMLElBQUksVUFBVSxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLFVBQVUsQ0FBQztTQUNuQjtJQUNILENBQUM7SUFFRCxDQUFDLGdCQUFnQixDQUFDLFVBQXNCO1FBQ3RDLElBQUksbUJBQW1CLEdBQUcsSUFBSSxDQUFDLG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eEIsbUJBQW1CLEVBQ25CLEVBQUUsRUFDRixHQUFHLEtBQUssQ0FDVCxDQUFDO1NBQ0g7YUFBTTtZQUNMLElBQUksVUFBVSxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLFVBQVUsQ0FBQztTQUNuQjtJQUNILENBQUM7SUFFRCxDQUFDLGdCQUFnQixDQUFDLFVBQXNCO1FBQ3RDLElBQUksbUJBQW1CLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLElBQUksSUFBSSxDQUFDLGVBQWUsQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7UUFDbkgsSUFBSSxtQkFBbUIsRUFBRTtZQUN2QixPQUFPLEtBQUssQ0FBQyxhQUFhLENBQ3hCLG1CQUFtQixFQUNuQixVQUFVLENBQUMsVUFBVSxFQUNyQixHQUFHLEtBQUssQ0FDVCxDQUFDO1NBQ0g7YUFBTTtZQUVMLElBQUksVUFBVSxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLFVBQVUsQ0FBQztTQUNuQjtJQUNILENBQUM7Q0FDRiJ9 |
{ | ||
"name": "@atjson/renderer-react", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"description": "A brand new TypeScript library.", | ||
@@ -19,9 +19,12 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@atjson/renderer-hir": "0.19.0", | ||
"react": "^16.2.0" | ||
"@atjson/renderer-hir": "0.19.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "*" | ||
}, | ||
"devDependencies": { | ||
"@atjson/offset-annotations": "0.19.0" | ||
"@atjson/document": "0.20.0", | ||
"@atjson/offset-annotations": "0.19.1" | ||
}, | ||
"gitHead": "749993291d289af2e7dee3ab026ba0e9c1864423" | ||
"gitHead": "e4ccea39f42908c2f11d39d8511fd042c05fc941" | ||
} |
25593
83
2
+ Added@atjson/hir@0.19.1(transitive)
+ Added@atjson/renderer-hir@0.19.1(transitive)
+ Addedreact@19.0.0(transitive)
- Removedreact@^16.2.0
- Removed@atjson/hir@0.19.0(transitive)
- Removed@atjson/renderer-hir@0.19.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@atjson/renderer-hir@0.19.1