@atjson/renderer-react
Advanced tools
Comparing version 0.12.11 to 0.12.12
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.12.12](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-react@0.12.11...@atjson/renderer-react@0.12.12) (2019-04-16) | ||
**Note:** Version bump only for package @atjson/renderer-react | ||
## [0.12.11](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/renderer-react@0.12.10...@atjson/renderer-react@0.12.11) (2019-04-15) | ||
@@ -8,0 +16,0 @@ |
import Document, { Annotation } from '@atjson/document'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import * as React from 'react'; | ||
export interface ComponentLookup { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
} | ||
export default class ReactRenderer extends Renderer { | ||
static render(document: Document, components: ComponentLookup): any; | ||
private componentLookup; | ||
constructor(componentLookup: ComponentLookup); | ||
constructor(document: Document, componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
}); | ||
root(): IterableIterator<any>; | ||
renderAnnotation(annotation: Annotation): IterableIterator<React.Component | void>; | ||
} |
@@ -6,7 +6,4 @@ "use strict"; | ||
class ReactRenderer extends renderer_hir_1.default { | ||
static render(document, components) { | ||
return super.render(document, components); | ||
} | ||
constructor(componentLookup) { | ||
super(); | ||
constructor(document, componentLookup) { | ||
super(document); | ||
this.componentLookup = componentLookup; | ||
@@ -36,2 +33,2 @@ } | ||
exports.default = ReactRenderer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx1REFBMEQ7QUFDMUQsK0JBQStCO0FBTy9CLE1BQXFCLGFBQWMsU0FBUSxzQkFBUTtJQUVqRCxNQUFNLENBQUMsTUFBTSxDQUFDLFFBQWtCLEV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QVUsQ0FBQyxVQUFVLEVBQ3JCLEdBQUcsS0FBSyxDQUNULENBQUM7U0FDSDthQUFNO1lBRUwsSUFBSSxVQUFVLEdBQUcsS0FBSyxDQUFDO1lBQ3ZCLE9BQU8sVUFBVSxDQUFDO1NBQ25CO0lBQ0gsQ0FBQztDQUNGO0FBNUNELGdDQTRDQyJ9 |
import Document, { Annotation } from '@atjson/document'; | ||
import Renderer from '@atjson/renderer-hir'; | ||
import * as React from 'react'; | ||
export interface ComponentLookup { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
} | ||
export default class ReactRenderer extends Renderer { | ||
static render(document: Document, components: ComponentLookup): any; | ||
private componentLookup; | ||
constructor(componentLookup: ComponentLookup); | ||
constructor(document: Document, componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
}); | ||
root(): IterableIterator<any>; | ||
renderAnnotation(annotation: Annotation): IterableIterator<React.Component | void>; | ||
} |
import Renderer, { classify } from '@atjson/renderer-hir'; | ||
import * as React from 'react'; | ||
export default class ReactRenderer extends Renderer { | ||
static render(document, components) { | ||
return super.render(document, components); | ||
} | ||
constructor(componentLookup) { | ||
super(); | ||
constructor(document, componentLookup) { | ||
super(document); | ||
this.componentLookup = componentLookup; | ||
@@ -32,2 +29,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxRQUFRLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEtBQUssS0FBSyxNQUFNLE9BQU8sQ0FBQztBQU8vQixNQUFNLENBQUMsT0FBTyxPQUFPLGFBQWMsU0FBUSxRQUFRO0lBRWpELE1BQU0sQ0FBQyxNQ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M7UUFDbkgsSUFBSSxtQkFBbUIsRUFBRTtZQUN2QixPQUFPLEtBQUssQ0FBQyxhQUFhLENBQ3hCLG1CQUFtQixFQUNuQixVQUFVLENBQUMsVUFBVSxFQUNyQixHQUFHLEtBQUssQ0FDVCxDQUFDO1NBQ0g7YUFBTTtZQUVMLElBQUksVUFBVSxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLFVBQVUsQ0FBQztTQUNuQjtJQUNILENBQUM7Q0FDRiJ9 |
{ | ||
"name": "@atjson/renderer-react", | ||
"version": "0.12.11", | ||
"version": "0.12.12", | ||
"description": "A brand new TypeScript library.", | ||
@@ -19,3 +19,3 @@ "main": "dist/commonjs/index.js", | ||
"dependencies": { | ||
"@atjson/renderer-hir": "0.13.8", | ||
"@atjson/renderer-hir": "0.13.9", | ||
"react": "^16.2.0" | ||
@@ -26,3 +26,3 @@ }, | ||
}, | ||
"gitHead": "175b10f41fd3dde5c8e906429da5c0b685337022" | ||
"gitHead": "b4b5e304b1f9182c561ff5107eb0e346702d1b3f" | ||
} |
@@ -5,18 +5,15 @@ import Document, { Annotation } from '@atjson/document'; | ||
export interface ComponentLookup { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
} | ||
// @ts-ignore | ||
export default class ReactRenderer extends Renderer { | ||
static render(document: Document, components: ComponentLookup) { | ||
// @ts-ignore | ||
return super.render(document, components); | ||
} | ||
private componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
}; | ||
private componentLookup: ComponentLookup; | ||
constructor(componentLookup: ComponentLookup) { | ||
super(); | ||
constructor( | ||
document: Document, | ||
componentLookup: { | ||
[key: string]: React.StatelessComponent<any> | React.ComponentClass<any>; | ||
} | ||
) { | ||
super(document); | ||
this.componentLookup = componentLookup; | ||
@@ -23,0 +20,0 @@ } |
26680
155
+ Added@atjson/renderer-hir@0.13.9(transitive)
- Removed@atjson/renderer-hir@0.13.8(transitive)
Updated@atjson/renderer-hir@0.13.9