UNPKG

rizzo-next

Version:

The next generation of Lonely Planet's style guide and pattern library.

1,104 lines 36.2 kB
{ "type": "Program", "start": 0, "end": 456, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 22, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 26, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } }, "local": { "type": "Identifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } }, "name": "React" } } ], "importKind": "value", "source": { "type": "Literal", "start": 18, "end": 25, "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 1, "column": 25 } }, "value": "react", "rawValue": "react", "raw": "\"react\"" } }, { "type": "ImportDeclaration", "start": 27, "end": 63, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 34, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "local": { "type": "Identifier", "start": 34, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "name": "MapActions" } } ], "importKind": "value", "source": { "type": "Literal", "start": 50, "end": 62, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 35 } }, "value": "../actions", "rawValue": "../actions", "raw": "\"../actions\"" } }, { "type": "ImportDeclaration", "start": 64, "end": 112, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 48 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 71, "end": 85, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 21 } }, "local": { "type": "Identifier", "start": 71, "end": 85, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 21 } }, "name": "InteractiveMap" } } ], "importKind": "value", "source": { "type": "Literal", "start": 91, "end": 111, "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 47 } }, "value": "../interactive-map", "rawValue": "../interactive-map", "raw": "\"../interactive-map\"" }, "trailingComments": [ { "type": "Block", "value": "*\n * The main component for the map view\n ", "start": 114, "end": 160, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 3 } }, "range": [ 114, 160 ] } ] }, { "type": "ExportDefaultDeclaration", "start": 161, "end": 455, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 21, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 176, "end": 455, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 21, "column": 1 } }, "id": { "type": "Identifier", "start": 182, "end": 189, "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 28 } }, "name": "MapView", "leadingComments": null }, "superClass": { "type": "MemberExpression", "start": 198, "end": 213, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 52 } }, "object": { "type": "Identifier", "start": 198, "end": 203, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 42 } }, "name": "React" }, "property": { "type": "Identifier", "start": 204, "end": 213, "loc": { "start": { "line": 8, "column": 43 }, "end": { "line": 8, "column": 52 } }, "name": "Component" }, "computed": false }, "body": { "type": "ClassBody", "start": 214, "end": 455, "loc": { "start": { "line": 8, "column": 53 }, "end": { "line": 21, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 218, "end": 361, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 14, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 218, "end": 235, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 19 } }, "name": "componentDidMount" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 235, "end": 361, "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 14, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 238, "end": 361, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 14, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 244, "end": 331, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 12, "column": 7 } }, "expression": { "type": "AssignmentExpression", "start": 244, "end": 330, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 12, "column": 6 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 244, "end": 263, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 23 } }, "object": { "type": "ThisExpression", "start": 244, "end": 248, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 8 } } }, "property": { "type": "Identifier", "start": 249, "end": 263, "loc": { "start": { "line": 10, "column": 9 }, "end": { "line": 10, "column": 23 } }, "name": "interactiveMap" }, "computed": false }, "right": { "type": "NewExpression", "start": 266, "end": 330, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 12, "column": 6 } }, "callee": { "type": "Identifier", "start": 270, "end": 284, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 44 } }, "name": "InteractiveMap" }, "arguments": [ { "type": "ObjectExpression", "start": 285, "end": 329, "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 12, "column": 5 } }, "properties": [ { "type": "Property", "start": 293, "end": 323, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 36 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 293, "end": 295, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 8 } }, "name": "el" }, "value": { "type": "CallExpression", "start": 297, "end": 323, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 36 } }, "callee": { "type": "MemberExpression", "start": 297, "end": 321, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 34 } }, "object": { "type": "MemberExpression", "start": 297, "end": 310, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 23 } }, "object": { "type": "MemberExpression", "start": 297, "end": 306, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 19 } }, "object": { "type": "ThisExpression", "start": 297, "end": 301, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 11, "column": 14 } } }, "property": { "type": "Identifier", "start": 302, "end": 306, "loc": { "start": { "line": 11, "column": 15 }, "end": { "line": 11, "column": 19 } }, "name": "refs" }, "computed": false }, "property": { "type": "Identifier", "start": 307, "end": 310, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 23 } }, "name": "map" }, "computed": false }, "property": { "type": "Identifier", "start": 311, "end": 321, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 34 } }, "name": "getDOMNode" }, "computed": false }, "arguments": [] }, "kind": "init" } ] } ] } } }, { "type": "ExpressionStatement", "start": 336, "end": 357, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 25 } }, "expression": { "type": "CallExpression", "start": 336, "end": 356, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 24 } }, "callee": { "type": "MemberExpression", "start": 336, "end": 354, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 22 } }, "object": { "type": "Identifier", "start": 336, "end": 346, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 14 } }, "name": "MapActions" }, "property": { "type": "Identifier", "start": 347, "end": 354, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 22 } }, "name": "initMap" }, "computed": false }, "arguments": [] } } ] } } }, { "type": "MethodDefinition", "start": 364, "end": 452, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 19, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 364, "end": 370, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 8 } }, "name": "render" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 370, "end": 452, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 19, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 373, "end": 452, "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 19, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 379, "end": 448, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 6 } }, "argument": { "type": "JSXElement", "start": 394, "end": 441, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 53 } }, "openingElement": { "type": "JSXOpeningElement", "start": 394, "end": 435, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 47 } }, "attributes": [ { "type": "JSXAttribute", "start": 399, "end": 408, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 20 } }, "name": { "type": "JSXIdentifier", "start": 399, "end": 402, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 14 } }, "name": "ref" }, "value": { "type": "Literal", "start": 403, "end": 408, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 20 } }, "value": "map", "rawValue": null, "raw": "\"map\"" } }, { "type": "JSXAttribute", "start": 409, "end": 434, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 46 } }, "name": { "type": "JSXIdentifier", "start": 409, "end": 418, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 30 } }, "name": "className" }, "value": { "type": "Literal", "start": 419, "end": 434, "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 17, "column": 46 } }, "value": "map-container", "rawValue": null, "raw": "\"map-container\"" } } ], "name": { "type": "JSXIdentifier", "start": 395, "end": 398, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 10 } }, "name": "div" }, "selfClosing": false }, "closingElement": { "type": "JSXClosingElement", "start": 435, "end": 441, "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 53 } }, "name": { "type": "JSXIdentifier", "start": 437, "end": 440, "loc": { "start": { "line": 17, "column": 49 }, "end": { "line": 17, "column": 52 } }, "name": "div" } }, "children": [], "parenthesizedExpression": true } } ] } } } ] }, "leadingComments": [ { "type": "Block", "value": "*\n * The main component for the map view\n ", "start": 114, "end": 160, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 3 } }, "range": [ 114, 160 ] } ], "trailingComments": [] }, "leadingComments": [ { "type": "Block", "value": "*\n * The main component for the map view\n ", "start": 114, "end": 160, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 3 } }, "range": [ 114, 160 ] } ] } ] }