rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,458 lines (1,457 loc) • 212 kB
JSON
{
"type": "Program",
"start": 0,
"end": 2061,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 90,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 26,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 43
}
},
"value": "../../core/bane",
"rawValue": "../../core/bane",
"raw": "\"../../core/bane\""
}
},
{
"type": "ImportDeclaration",
"start": 45,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 37
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 52,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 52,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
}
},
"name": "Slideshow"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 67,
"end": 81,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 36
}
},
"value": "../slideshow",
"rawValue": "../slideshow",
"raw": "\"../slideshow\""
}
},
{
"type": "ImportDeclaration",
"start": 83,
"end": 125,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 90,
"end": 96,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 90,
"end": 96,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"name": "assign"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 102,
"end": 124,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 41
}
},
"value": "lodash/object/assign",
"rawValue": "lodash/object/assign",
"raw": "\"lodash/object/assign\""
}
},
{
"type": "ImportDeclaration",
"start": 126,
"end": 159,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 133,
"end": 140,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 133,
"end": 140,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 14
}
},
"name": "Overlay"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 146,
"end": 158,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 32
}
},
"value": "../overlay",
"rawValue": "../overlay",
"raw": "\"../overlay\""
}
},
{
"type": "ImportDeclaration",
"start": 160,
"end": 187,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 27
}
},
"specifiers": [],
"source": {
"type": "Literal",
"start": 167,
"end": 186,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 26
}
},
"value": "./masthead_nav.js",
"rawValue": "./masthead_nav.js",
"raw": "\"./masthead_nav.js\""
},
"trailingComments": [
{
"type": "Block",
"value": "*\n * Masthead Component\n",
"start": 189,
"end": 217,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 9,
"column": 2
}
},
"range": [
189,
217
]
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 218,
"end": 2060,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 89,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 233,
"end": 2060,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 89,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 239,
"end": 256,
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 38
}
},
"name": "MastheadComponent",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 265,
"end": 274,
"loc": {
"start": {
"line": 10,
"column": 47
},
"end": {
"line": 10,
"column": 56
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 275,
"end": 2060,
"loc": {
"start": {
"line": 10,
"column": 57
},
"end": {
"line": 89,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 279,
"end": 352,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 13,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 283,
"end": 294,
"loc": {
"start": {
"line": 11,
"column": 6
},
"end": {
"line": 11,
"column": 17
}
},
"name": "$straplines"
},
"static": false,
"kind": "get",
"value": {
"type": "FunctionExpression",
"start": 294,
"end": 352,
"loc": {
"start": {
"line": 11,
"column": 17
},
"end": {
"line": 13,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 297,
"end": 352,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 13,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 303,
"end": 348,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 49
}
},
"argument": {
"type": "CallExpression",
"start": 310,
"end": 347,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 310,
"end": 323,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 310,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 310,
"end": 314,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 315,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 19
}
},
"name": "$el"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 319,
"end": 323,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 24
}
},
"name": "find"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 324,
"end": 346,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 47
}
},
"value": ".masthead__strapline",
"rawValue": ".masthead__strapline",
"raw": "\".masthead__strapline\""
}
]
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 356,
"end": 1043,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 42,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 356,
"end": 366,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 15,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 366,
"end": 1043,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 42,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 367,
"end": 374,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 20
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 376,
"end": 1043,
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 42,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 382,
"end": 446,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 18,
"column": 6
}
},
"expression": {
"type": "AssignmentExpression",
"start": 382,
"end": 445,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 382,
"end": 393,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 382,
"end": 386,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 387,
"end": 393,
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 15
}
},
"name": "events"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 396,
"end": 445,
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 18,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 404,
"end": 439,
"loc": {
"start": {
"line": 17,
"column": 6
},
"end": {
"line": 17,
"column": 41
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 404,
"end": 426,
"loc": {
"start": {
"line": 17,
"column": 6
},
"end": {
"line": 17,
"column": 28
}
},
"value": "click .js-play-video",
"rawValue": "click .js-play-video",
"raw": "\"click .js-play-video\""
},
"value": {
"type": "Literal",
"start": 428,
"end": 439,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 41
}
},
"value": "playVideo",
"rawValue": "playVideo",
"raw": "\"playVideo\""
},
"kind": "init"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 452,
"end": 481,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 452,
"end": 480,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 452,
"end": 464,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 452,
"end": 456,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 457,
"end": 464,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 16
}
},
"name": "overlay"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 467,
"end": 480,
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 471,
"end": 478,
"loc": {
"start": {
"line": 20,
"column": 23
},
"end": {
"line": 20,
"column": 30
}
},
"name": "Overlay"
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 486,
"end": 591,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 23,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 486,
"end": 590,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 23,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 486,
"end": 500,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 486,
"end": 490,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 491,
"end": 500,
"loc": {
"start": {
"line": 21,
"column": 9
},
"end": {
"line": 21,
"column": 18
}
},
"name": "slideshow"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 503,
"end": 590,
"loc": {
"start": {
"line": 21,
"column": 21
},
"end": {
"line": 23,
"column": 26
}
},
"callee": {
"type": "Identifier",
"start": 507,
"end": 516,
"loc": {
"start": {
"line": 21,
"column": 25
},
"end": {
"line": 21,
"column": 34
}
},
"name": "Slideshow"
},
"arguments": [
{
"type": "CallExpression",
"start": 517,
"end": 589,
"loc": {
"start": {
"line": 21,
"column": 35
},
"end": {
"line": 23,
"column": 25
}
},
"callee": {
"type": "Identifier",
"start": 517,
"end": 523,
"loc": {
"start": {
"line": 21,
"column": 35
},
"end": {
"line": 21,
"column": 41
}
},
"name": "assign"
},
"arguments": [
{
"type": "ObjectExpression",
"start": 524,
"end": 569,
"loc": {
"start": {
"line": 21,
"column": 42
},
"end": {
"line": 23,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 532,
"end": 563,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 532,
"end": 534,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 8
}
},
"name": "el"
},
"value": {
"type": "CallExpression",
"start": 536,
"end": 563,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 536,
"end": 549,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 23
}
},
"object": {
"type": "MemberExpression",
"start": 536,
"end": 544,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 536,
"end": 540,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"start": 541,
"end": 544,
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 18
}
},
"name": "$el"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 545,
"end": 549,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 23
}
},
"name": "find"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 550,
"end": 562,
"loc": {
"start": {
"line": 22,
"column": 24
},
"end": {
"line": 22,
"column": 36
}
},
"value": ".slideshow",
"rawValue": ".slideshow",
"raw": "\".slideshow\""
}
]
},
"kind": "init"
}
]
},
{
"type": "MemberExpression",
"start": 571,
"end": 588,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 571,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 14
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 579,
"end": 588,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 24
}
},
"name": "slideshow"
},
"computed": false
}
]
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 597,
"end": 666,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 73
}
},
"expression": {
"type": "CallExpression",
"start": 597,
"end": 665,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 72
}
},
"callee": {
"type": "MemberExpression",
"start": 597,
"end": 610,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 597,
"end": 601,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 602,
"end": 610,
"loc": {
"start": {
"line": 25,
"column": 9
},
"end": {
"line": 25,
"column": 17
}
},
"name": "listenTo"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 611,
"end": 625,
"loc": {
"start": {
"line": 25,
"column": 18
},
"end": {
"line": 25,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 611,
"end": 615,
"loc": {
"start": {
"line": 25,
"column": 18
},
"end": {
"line": 25,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"start": 616,
"end": 625,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 32
}
},
"name": "slideshow"
},
"computed": false
},