rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,699 lines • 56.7 kB
JSON
{
"type": "Program",
"start": 0,
"end": 590,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 30,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "assign"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 19,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 41
}
},
"value": "lodash/object/assign",
"rawValue": "lodash/object/assign",
"raw": "\"lodash/object/assign\""
}
},
{
"type": "ImportDeclaration",
"start": 43,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 46
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 50,
"end": 56,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 50,
"end": 56,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 13
}
},
"name": "Events"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 62,
"end": 88,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 45
}
},
"value": "../../core/mixins/events",
"rawValue": "../../core/mixins/events",
"raw": "\"../../core/mixins/events\""
}
},
{
"type": "ImportDeclaration",
"start": 90,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 41
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 99,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 99,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
},
"name": "Arkham"
},
"local": {
"type": "Identifier",
"start": 99,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
},
"name": "Arkham"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 113,
"end": 130,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 40
}
},
"value": "../../core/bane",
"rawValue": "../../core/bane",
"raw": "\"../../core/bane\""
}
},
{
"type": "VariableDeclaration",
"start": 133,
"end": 205,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 10,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 137,
"end": 204,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 10,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 137,
"end": 142,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 9
}
},
"name": "state"
},
"init": {
"type": "ObjectExpression",
"start": 145,
"end": 204,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 10,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 149,
"end": 202,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 9,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 149,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 14
}
},
"name": "destinations"
},
"value": {
"type": "ObjectExpression",
"start": 163,
"end": 202,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 9,
"column": 3
}
},
"properties": [
{
"type": "Property",
"start": 169,
"end": 180,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 169,
"end": 176,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 11
}
},
"name": "caption"
},
"value": {
"type": "Literal",
"start": 178,
"end": 180,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 15
}
},
"value": "",
"rawValue": "",
"raw": "\"\""
},
"kind": "init"
},
{
"type": "Property",
"start": 186,
"end": 198,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 16
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 186,
"end": 194,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 12
}
},
"name": "articles"
},
"value": {
"type": "ArrayExpression",
"start": 196,
"end": 198,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 16
}
},
"elements": []
},
"kind": "init"
}
]
},
"kind": "init"
}
]
}
}
],
"kind": "let"
},
{
"type": "Identifier",
"start": 207,
"end": 360,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 19,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 211,
"end": 359,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 19,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 211,
"end": 221,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 14
}
},
"name": "StackState"
},
"init": {
"type": "ObjectExpression",
"start": 224,
"end": 359,
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 19,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 228,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 228,
"end": 243,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 17
}
},
"name": "setInitialState"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 245,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 15,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 246,
"end": 258,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 32
}
},
"name": "initialState"
}
],
"body": {
"type": "BlockStatement",
"start": 263,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 269,
"end": 310,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 269,
"end": 309,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 44
}
},
"callee": {
"type": "Identifier",
"start": 269,
"end": 275,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 10
}
},
"name": "assign"
},
"arguments": [
{
"type": "MemberExpression",
"start": 276,
"end": 294,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 276,
"end": 281,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 16
}
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 282,
"end": 294,
"loc": {
"start": {
"line": 14,
"column": 17
},
"end": {
"line": 14,
"column": 29
}
},
"name": "destinations"
},
"computed": false
},
{
"type": "Identifier",
"start": 296,
"end": 308,
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 43
}
},
"name": "initialState"
}
]
}
}
]
}
},
"kind": "init"
},
{
"type": "Property",
"start": 318,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 18,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 318,
"end": 326,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 10
}
},
"name": "getState"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 328,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 18,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 334,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 18,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 340,
"end": 353,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 17
}
},
"argument": {
"type": "Identifier",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 17,
"column": 11
},
"end": {
"line": 17,
"column": 16
}
},
"name": "state"
}
}
]
}
},
"kind": "init"
}
]
}
}
],
"kind": "let",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExpressionStatement",
"start": 362,
"end": 389,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 27
}
},
"expression": {
"type": "CallExpression",
"start": 362,
"end": 388,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 26
}
},
"callee": {
"type": "Identifier",
"start": 362,
"end": 368,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 6
}
},
"name": "assign"
},
"arguments": [
{
"type": "Identifier",
"start": 369,
"end": 379,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 17
}
},
"name": "StackState"
},
{
"type": "Identifier",
"start": 381,
"end": 387,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 25
}
},
"name": "Events"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 391,
"end": 561,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
},
"expression": {
"type": "CallExpression",
"start": 391,
"end": 560,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 2
}
},
"callee": {
"type": "MemberExpression",
"start": 391,
"end": 400,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 9
}
},
"object": {
"type": "Identifier",
"start": 391,
"end": 397,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 6
}
},
"name": "Arkham"
},
"property": {
"type": "Identifier",
"start": 398,
"end": 400,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 9
}
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 401,
"end": 417,
"loc": {
"start": {
"line": 23,
"column": 10
},
"end": {
"line": 23,
"column": 26
}
},
"value": "stacks.fetched",
"rawValue": "stacks.fetched",
"raw": "\"stacks.fetched\""
},
{
"type": "FunctionExpression",
"start": 419,
"end": 559,
"loc": {
"start": {
"line": 23,
"column": 28
},
"end": {
"line": 27,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 428,
"end": 432,
"loc": {
"start": {
"line": 23,
"column": 37
},
"end": {
"line": 23,
"column": 41
}
},
"name": "data"
}
],
"body": {
"type": "BlockStatement",
"start": 434,
"end": 559,
"loc": {
"start": {
"line": 23,
"column": 43
},
"end": {
"line": 27,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 438,
"end": 516,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 80
}
},
"expression": {
"type": "AssignmentExpression",
"start": 438,
"end": 515,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 79
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 438,
"end": 465,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 438,
"end": 456,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 438,
"end": 443,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 7
}
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 444,
"end": 456,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 20
}
},
"name": "destinations"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 457,
"end": 465,
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 29
}
},
"name": "articles"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 468,
"end": 515,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 79
}
},
"callee": {
"type": "MemberExpression",
"start": 468,
"end": 502,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 66
}
},
"object": {
"type": "MemberExpression",
"start": 468,
"end": 495,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 59
}
},
"object": {
"type": "MemberExpression",
"start": 468,
"end": 486,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 468,
"end": 473,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 37
}
},
"name": "state"
},
"property": {
"type": "Identifier",
"start": 474,
"end": 486,
"loc": {
"start": {
"line": 24,
"column": 38
},
"end": {
"line": 24,
"column": 50
}
},
"name": "destinations"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 487,
"end": 495,
"loc": {
"start": {
"line": 24,
"column": 51
},
"end": {
"line": 24,
"column": 59
}
},
"name": "articles"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 496,
"end": 502,
"loc": {
"start": {
"line": 24,
"column": 60
},
"end": {
"line": 24,
"column": 66
}
},
"name": "concat"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 503,
"end": 514,
"loc": {
"start": {
"line": 24,
"column": 67
},
"end": {
"line": 24,
"column": 78
}
},
"object": {
"type": "Identifier",
"start": 503,
"end": 507,
"loc": {
"start": {
"line": 24,
"column": 67
},
"end": {
"line": 24,
"column": 71
}
},
"name": "data"
},
"property": {
"type": "Identifier",
"start": 508,
"end": 514,
"loc": {
"start": {
"line": 24,
"column": 72
},
"end": {
"line": 24,
"column": 78
}
},
"name": "stacks"
},
"computed": false
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 520,
"end": 557,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 39
}
},
"expression": {
"type": "CallExpression",
"start": 520,
"end": 556,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 520,
"end": 538,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 520,
"end": 530,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 12
}
},
"name": "StackState"
},
"property": {
"type": "Identifier",
"start": 531,
"end": 538,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 20
}
},
"name": "trigger"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 539,
"end": 548,
"loc": {
"start": {
"line": 26,
"column": 21
},
"end": {
"line": 26,
"column": 30
}
},
"value": "changed",
"rawValue": "changed",
"raw": "\"changed\""
},
{
"type": "Identifier",
"start": 550,
"end": 555,
"loc": {
"start": {
"line": 26,
"column": 32
},
"end": {
"line": 26,
"column": 37
}
},
"name": "state"
}
]
}
}
]
}
}
]
}
},
{
"type": "Identifier",
"start": 563,
"end": 589,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 29,
"column": 26
}
},
"declaration": {
"type": "Identifier",
"start": 578,
"end": 588,
"loc": {
"start": {
"line": 29,
"column": 15
},
"end": {
"line": 29,
"column": 25
}
},
"name": "StackState"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 563,
"end": 589,
"loc": {
"start": {
"line": 29,
"column": 0
},
"end": {
"line": 29,
"column": 26
}
},
"declaration": {
"type": "VariableDeclaration",
"start": 207,
"end": 360,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 19,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 211,
"end": 359,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 19,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 211,
"end": 221,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 14
}
},
"name": "StackState"
},
"init": {
"type": "ObjectExpression",
"start": 224,
"end": 359,
"loc": {
"start": {
"line": 12,
"column": 17
},
"end": {
"line": 19,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 228,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 228,
"end": 243,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 17
}
},
"name": "setInitialState"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 245,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 15,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 246,
"end": 258,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 32
}
},
"name": "initialState"
}
],
"body": {
"type": "BlockStatement",
"start": 263,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 269,
"end": 310,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 269,
"end": 309,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 44
}
},
"callee": {
"type": "Identifier",
"start": 269,
"end": 275,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 10
}
},
"name": "assign"
},
"arguments"