skypager-project
Version:
skypager project framework
1,557 lines (1,534 loc) • 33.1 kB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // identity function for calling harmory imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmory exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 125);
/******/ })
/************************************************************************/
/******/ ({
/***/ 125:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(34);
/***/ },
/***/ 34:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/contexts/project-editor.js",
"ast": {
"type": "File",
"start": 0,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "Object"
},
"property": {
"type": "Identifier",
"name": "defineProperty"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"name": "exports"
},
{
"type": "StringLiteral",
"extra": {
"rawValue": "__esModule",
"raw": "\"__esModule\""
},
"value": "__esModule"
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "ObjectProperty",
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"name": "value"
},
"value": {
"type": "BooleanLiteral",
"value": true
}
}
]
}
]
}
},
{
"type": "VariableDeclaration",
"start": 7,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 7,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 13,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 7,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 13,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "create"
},
"name": "create",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"start": 13,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "create"
},
"name": "create",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 22,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 7,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 13,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "create"
},
"name": "create",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 54,
"end": 127,
"loc": {
"start": {
"line": 1,
"column": 54
},
"end": {
"line": 7,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 23,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 30
},
"identifierName": "options"
},
"name": "options",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "Identifier",
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"operator": "!==",
"right": {
"type": "Identifier",
"name": "undefined"
}
}
},
"consequent": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 0,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 33,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 35
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 44
},
"identifierName": "context"
},
"name": "context",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"left": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "Identifier",
"name": "length"
},
"computed": false
},
"operator": ">",
"right": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"operator": "!==",
"right": {
"type": "Identifier",
"name": "undefined"
}
}
},
"consequent": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "arguments",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"property": {
"type": "NumericLiteral",
"value": 1,
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": true
},
"alternate": {
"type": "ObjectExpression",
"start": 47,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 49
}
},
"properties": [],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"start": 70,
"end": 77,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 11
},
"identifierName": "project"
},
"name": "project"
},
"init": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"start": 84,
"end": 91,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 13
},
"identifierName": "context"
},
"name": "context"
},
"property": {
"type": "Identifier",
"start": 70,
"end": 77,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 11
},
"identifierName": "project"
},
"name": "project"
},
"computed": false
}
}
],
"leadingComments": [],
"trailingComments": []
},
{
"type": "ReturnStatement",
"start": 95,
"end": 125,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 32
}
},
"argument": {
"type": "CallExpression",
"start": 102,
"end": 125,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 102,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 16
},
"identifierName": "project"
},
"name": "project"
},
"property": {
"type": "Identifier",
"start": 110,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 30
},
"identifierName": "createSandbox"
},
"name": "createSandbox"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"shadow": true
},
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
}
],
"kind": "var",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
],
"directives": [
{
"type": "Directive",
"value": {
"type": "DirectiveLiteral",
"value": "use strict"
}
}
]
},
"comments": [],
"tokens": [
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "create",
"start": 13,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 20,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 23,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 31,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 33,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 34,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 35,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 44
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 45,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 45
},
"end": {
"line": 1,
"column": 46
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 47,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 48,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 49,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 50
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 51,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 51
},
"end": {
"line": 1,
"column": 53
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 54,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 54
},
"end": {
"line": 1,
"column": 55
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 58,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 7
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 64,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "project",
"start": 70,
"end": 77,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 80,
"end": 81,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 3
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 82,
"end": 83,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 84,
"end": 91,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 13
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 95,
"end": 101,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "project",
"start": 102,
"end": 109,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 109,
"end": 110,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createSandbox",
"start": 110,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 123,
"end": 124,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 124,
"end": 125,
"loc": {
"start": {
"line": 6,
"column": 31
},
"end": {
"line": 6,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 126,
"end": 127,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 127,
"end": 127,
"loc": {
"start": {
"line": 7,
"column": 1
},
"end": {
"line": 7,
"column": 1
}
}
}
]
},
"meta": {
"usedHelpers": [],
"marked": [],
"modules": {
"imports": [],
"exports": {
"exported": [
"create"
],
"specifiers": [
{
"kind": "local",
"local": "create",
"exported": "create"
}
]
}
}
},
"query": {
"": true
}
};
/***/ }
/******/ });