Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flint-tools

Package Overview
Dependencies
Maintainers
2
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flint-tools - npm Package Compare versions

Comparing version 1.4.30 to 1.5.0

build/_/static/main.css

2

.internal/state.json

@@ -1,1 +0,1 @@

{"opts":{"name":"tools","saneName":"flinttools","version":"1.4.94","watch":true,"pretty":true,"nomin":true,"build":true,"hasRunInitialBuild":false,"defaultPort":4000,"appDir":"/Users/nw/flint/apps/tools","dir":"/Users/nw/flint/apps/tools","flintDir":"/Users/nw/flint/apps/tools/.flint","modulesDir":"/Users/nw/flint/apps/tools/.flint/node_modules","internalDir":"/Users/nw/flint/apps/tools/.flint/.internal","depsDir":"/Users/nw/flint/apps/tools/.flint/.internal/deps","template":".flint/index.html","buildDir":"/Users/nw/flint/apps/tools/.flint/build","deps":{"dir":"/Users/nw/flint/apps/tools/.flint/.internal/deps","assetsDir":"/Users/nw/flint/apps/tools/.flint/.internal/deps/assets","internalsIn":"/Users/nw/flint/apps/tools/.flint/.internal/deps/internals.in.js","internalsOut":"/Users/nw/flint/apps/tools/.flint/.internal/deps/internals.js","externalsIn":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.in.js","externalsOut":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.js","externalsPaths":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.paths.js"},"configFile":"/Users/nw/flint/apps/tools/.flint/flint.json","stateFile":"/Users/nw/flint/apps/tools/.flint/.internal/state.json","outDir":"/Users/nw/flint/apps/tools/.flint/.internal/out","styleDir":"/Users/nw/flint/apps/tools/.flint/.internal/styles","styleOutDir":"/Users/nw/flint/apps/tools/.flint/build/_/styles.css","config":{"selectorPrefix":"#_flintdevtools ","tools":"false","build":{"minify":"false"}},"url":"tools.dev"},"port":4005,"wport":6288,"cache":{"files":{"main.js":{"added":1454052691004,"views":["Main"],"meta":{"Main":{"location":[[0,0],[20,1]],"file":"/Users/nw/flint/apps/tools/main.js","styles":{"":{"location":[[13,2],[19,3]]}},"els":{"link":{"location":[[5,2],[5,92]],"key":2},"Errors":{"location":[[7,2],[7,12]],"key":1},"Installer":{"location":[[8,2],[8,15]],"key":1},"Menu":{"location":[[9,2],[9,29]],"key":1},"Inspector":{"location":[[10,2],[10,34]],"key":1},"StateTests":{"location":[[11,2],[11,30]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" });view.render(function () { return view.el([\"Installer\", 1], null); });view.render(function () { return Flint.iff(showInspector) && view.el([\"Menu\", 1], { if: showInspector }); });view.render(function () { return Flint.iff(showInspector) && view.el([\"Inspector\", 1], { if: showInspector }); });view.render(function () { return Flint.iff(internal) && view.el([\"StateTests\", 1], { if: internal }); }); $[\"$\"] = function (_, _index) { return { pointerEvents: internal ? 'auto' : 'none' }; }; }); })})();","isInternal":false,"writtenAt":1454052691087,"error":null},"close.js":{"added":1454052691139,"views":["Close"],"meta":{"Close":{"location":[[0,0],[24,1]],"file":"/Users/nw/flint/apps/tools/close.js","styles":{"":{"location":[[5,2],[23,3]]}},"els":{"close":{"location":[[1,2],[1,38]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" { onClick: view.props.onClick }, 'x' ); }); $[\"$\"] = function (_, _index) { return { fontSize: view.props.fontSize || 13, width: view.props.size || 50, height: view.props.size || 50, ':hover': { opacity: 0.4 } }; }; }); })})();","isInternal":false,"writtenAt":1454052691161,"error":null},"debounce.js":{"added":1454052691171,"views":["Debounce"],"meta":{"Debounce":{"location":[[10,0],[68,1]],"file":"/Users/nw/flint/apps/tools/debounce.js","styles":{},"els":{}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file(\"debounce.js\", function (require) { // fancy debounce // detects if we are in autosave mode var sum = function sum(a, b) { return a + b; }; var Delay = 300; var AutoDelay = 800; } // debounce clearTimeout(timeout); view.set(\"timeout\", timeout = setTimeout(show, curDelay)); view.update(); }); }); })})();","isInternal":false,"writtenAt":1454052691205,"error":null},"errors.js":{"added":1454052691210,"views":["Errors","ErrorMessage","ErrorIcon"],"meta":{"Errors":{"location":[[120,0],[191,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{},"els":{"ErrorMessage":{"location":[[186,2],[190,4]],"key":1}}},"ErrorMessage":{"location":[[198,0],[377,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{"bar":{"location":[[280,2],[297,3]]},"inner":{"location":[[299,2],[303,3]]},"top":{"location":[[305,2],[308,3]]},"where":{"location":[[310,2],[315,3]]},"line":{"location":[[317,2],[321,3]]},"flint":{"location":[[323,2],[327,3]]},"shortError":{"location":[[329,2],[332,3]]},"niceStack":{"location":[[341,2],[341,20]]},"cur":{"location":[[343,2],[345,3]]},"errCol":{"location":[[347,2],[353,3]]},"fullStack":{"location":[[355,2],[366,4]]},"ln":{"location":[[368,2],[370,3]]},"flintline":{"location":[[372,2],[376,3]]}},"els":{"Debounce":{"location":[[232,2],[238,3]],"key":1},"bar":{"location":[[239,4],[239,9]],"key":1},"Close":{"location":[[240,6],[240,52]],"key":1},"inner":{"location":[[246,6],[246,13]],"key":2},"where":{"location":[[248,10],[248,17]],"key":2},"flint":{"location":[[250,40],[250,57]],"key":3},"top":{"location":[[247,8],[247,13]],"key":1},"span":{"location":[[249,12],[249,18]],"key":1},"line":{"location":[[250,12],[250,18]],"key":1},"shortError":{"location":[[255,10],[255,22]],"key":1},"niceStack":{"location":[[257,12],[257,44]],"key":1},"errCol":{"location":[[259,14],[259,22]],"key":1},"help":{"location":[[264,10],[264,32]],"key":1},"fullStack":{"location":[[269,8],[269,34]],"key":1},"ln":{"location":[[272,10],[272,14]],"key":3}}},"ErrorIcon":{"location":[[379,0],[397,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{"svg":{"location":[[389,2],[396,3]]}},"els":{"svg":{"location":[[380,2],[380,35]],"key":1},"path":{"location":[[385,4],[386,53]],"key":2},"polygon":{"location":[[384,4],[384,78]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file('errors.js', function (require) { var browser = window._DT; var split = function split(s, i) { return [s.substring(0, i), s.substring(i, i + 1), s.substring(i + 1)]; }; var isLive = function isLive() { return browser.editor && browser.editor.live; }; // TODO make beautiful var CUR_ERROR = undefined; function showFlintErrorDiv() { setTimeout(function () { // avoid showing if error fixed in meantime if (!CUR_ERROR) return; var errors = document.querySelectorAll('.__flintError'); if (!errors.length) return; // add active class to show them [].forEach.call(errors, function (error) { if (error.className.indexOf('active') == -1) error.className += ' active'; }); }, isLive() ? 1000 : 100); } function niceRuntimeError(err) { if (err.file) err.file = err.file.replace(new RegExp('.*' + window.location.origin + '(\\/[_]+\\/)?'), ''); if (err.file && err.file.indexOf('internals.js') >= 0) { if (err.message && err.message.indexOf('Cannot find module') == 0) { var badModule = err.message.match(/(fs|path)/); if (badModule && badModule.length) { err.file = 'imported module:'; err.message = 'Cannot import node-only module: ' + badModule[0]; } } else { err.message = 'Error in a locally required file. ' + err.message; } } if (err.message) err.niceMessage = err.message.replace(/Uncaught .*Error:\\s*/, ''); return err; } function niceNpmError(_ref) { var msg = _ref.msg; var name = _ref.name; if (msg) msg = msg.replace(/(npm WARN.*\\n|ERR\\!)/g, '').replace(/npm argv.*\\n/g, '').replace(/npm node v.*\\n/g, '').replace(/npm npm.*\\n/g, '').replace(/npm code.*\\n/g, '').replace(/npm peerinvalid /g, '').replace(/npm 404 /g, ''); return { msg: msg, name: name }; } var niceCompilerError = function niceCompilerError(err) { return niceCompilerMessage(fullStack(niceStack(err))); }; var replaceCompilerMsg = function replaceCompilerMsg(msg) { if (!msg) return ''; return msg.replace(/.*\\.js\\:/, '').replace(/\\([0-9]+\\:[0-9]+\\)/, '').replace(/Line [0-9]+\\:\\s*/, ''); }; var niceCompilerMessage = function niceCompilerMessage(err) { err.niceMessage = replaceCompilerMsg(err.message, err.fileName); return err; }; var matchErrorLine = /\\>?\\s*([0-9]*)\\s*\\|(.*)/g; var indicator = /\\s*\\|\\s*\\^\\s*$/g; var fullStack = function fullStack(err) { if (!err) return; if (err.stack) { (function () { err.fullStack = ['', '', '']; var index = 0; err.stack.split(\"\\n\").forEach(function (line) { if (indicator.test(line)) return; if (!matchErrorLine.test(line)) return; var isLine = line[0] === '>'; if (isLine) index = 1; if (!isLine && index === 1) index = 2; var result = line.replace(matchErrorLine, '$1$2').replace(/^(\\s*[0-9]+\\s*)[;]/, '$1 '); err.fullStack[index] += result + \"\\n\"; }); })(); } return err; }; var niceStack = function niceStack(err) { if (!err) return; if (err.stack) { err.stack.split(\"\\n\").map(function (line) { if (line[0] === '>') { var result = line; if (!result) return; // remove the babel \" > |\" before the line result = result.replace(/\\>\\s*[0-9]+\\s*\\|\\s*/, ''); result = replaceCompilerMsg(result); var colIndex = err.loc.column - 4; // 4 because we remove babel prefix err.niceStack = split(result, colIndex); } }); } return err; }; var log = function log() { if (false) console.log.apply(console, arguments); }; Flint.view('Errors', function (view, on, $) { view.pause(); var flintAddedLines = 0; var last = function last(arr) { return arr[arr.length - 1]; }; var fileName = function fileName(url) { return url && url.replace(/[\\?\\)].*/, ''); }; var getLine = function getLine(err) { return err && (err.line || err.loc && err.loc.line); }; Flint.staticStyles('ErrorMessage', { '$bar': '#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar', '$inner': '#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner', '$top': '#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top', '$where': '#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where', '$line': '#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line', '$flint': '#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint', '$shortError': '#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError', '$cur': '#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur', '$errCol': '#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol', '$ln': '#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln', '$flintline': '#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline' }, { '$bar': { display: 'block', position: 'fixed', left: 0, transition: 'all 200ms ease-in', right: 0, fontFamily: '-apple-system, \"San Francisco\", Roboto, \"Segou UI\", \"Helvetica Neue\", Helvetica, Arial, sans-serif', fontWeight: 300, color: '#fff', fontSize: '14px', padding: 2, pointerEvents: 'all', overflow: 'scroll', zIndex: 2147483647, boxShadow: '0 -6px 12px rgba(0,0,0,0.06)' }, '$inner': { display: 'block', maxHeight: 200, overflowY: 'scroll' }, '$top': { padding: 8, display: 'block' }, '$where': { display: 'inline-block', pointerEvents: 'all', fontWeight: 300, color: 'rgba(255,255,255,0.8)' }, '$line': { display: 'inline-block', whiteSpace: 'pre', pointerEvents: 'all' }, '$flint': { display: 'inline', fontWeight: 700, color: '#fff' }, '$shortError': { display: 'inline', color: 'rgba(255,255,255,0.7)' }, '$cur': { background: '#fff' }, '$errCol': { display: 'inline', borderBottom: '2px solid #f5d64c', display: 'block', whiteSpace: 'pre', fontSize: 14, borderRadius: 3, margin: 2 }]; }; }); Flint.staticStyles('ErrorIcon', { '$svg': '#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg' }, { '$svg': { width: 19, fill: 'red', margin: -4, marginLeft: 3, marginRight: 6, opacity: 0.9 } }); Flint.view('ErrorIcon', function (view, on, $) { ;view.render(function () { return view.el( ['svg', 1], { viewBox: '0 0 27.963 27.963' }, view.el(['path', 1], { d: 'M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z' }), view.el(['polygon', 1], { points: '15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158' }), view.el(['path', 2], { d: 'M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z' }) ); }); }); })})();","isInternal":false,"writtenAt":1454052691343,"error":null},"inspector.js":{"added":1454052691358,"views":["Inspector"],"meta":{"Inspector":{"location":[[122,0],[235,1]],"file":"/Users/nw/flint/apps/tools/inspector.js","styles":{"":{"location":[[230,2],[234,3]]}},"els":{"Inspector.View":{"location":[[222,2],[228,4]],"key":1}}}},"externals":["babel-runtime/helpers/extends","babel-runtime/helpers/to-array","babel-runtime/helpers/sliced-to-array","babel-runtime/helpers/interop-require-default","lodash"],"internals":["./keys","./lib/inspecting"],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default;var _toArray = require('babel-runtime/helpers/to-array').default;var _slicedToArray = require('babel-runtime/helpers/sliced-to-array').default;var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('inspector.js', function (require) { var _keys = require('./keys'); var _libInspecting = require('./lib/inspecting'); var _libInspecting2 = _interopRequireDefault(_libInspecting); var _lodash = require('lodash'); var removeHead = function removeHead(_ref) { var _ref2 = _toArray(_ref); var l = _ref2[0]; var ls = _ref2.slice(1); return ls; }; var isAlt = function isAlt(cb) { return function (e) { return e.keyIdentifier === 'Alt' && cb(); }; }; var isEsc = function isEsc(cb) { return function (e) { return e.keyCode === 27 && cb(); }; }; var setLocal = function setLocal(k, v) { return localStorage.setItem('__flint.state.' + k, JSON.stringify(v)); }; var getLocal = function getLocal(k, d) { return JSON.parse(localStorage.getItem('__flint.state.' + k)) || d; }; var round = Math.round; var highlighter = undefined; function positionHighlight(node) { var bounds = node.getBoundingClientRect(); var winW = window.innerWidth; var winH = window.innerHeight; var width = round(bounds.right - bounds.left); var height = round(bounds.bottom - bounds.top); var opacity = 1; if (width >= winW && height >= winH) opacity = 0.2; highlighter.setAttribute('style', '\\n top: ' + round(bounds.top) + 'px;\\n left: ' + round(bounds.left) + 'px;\\n width: ' + width + 'px;\\n height: ' + height + 'px;\\n opacity: ' + opacity + ';\\n '); } function hideHighlight() { highlighter.setAttribute('style', ''); } function findPath(node) { if (!node || !node.getAttribute) return null; var flintid = node.__flintID; if (!flintid) return findPath(node.parentNode); positionHighlight(node); return flintid; } function tempActive(views) { return views.filter(function (v) { return !v.temp; }).length > 0; } function pathActive(views, path) { return views.filter(function (v) { return v.path == path; }).length > 0; } function removeTemp(views) { return views.filter(function (v) { return !v.temp; }).map(function (v) { return _extends({}, v, { highlight: false }); }); } function addTemp(views, path) { return [{ path: path, highlight: false, temp: true }].concat(views); } function setClosing(views, path) { return views.map(function (v) { if (v.path == path) v.closing = true; return v; }); } function highlightPath(views, path) { return views.map(function (v) { if (v.path == path) v.highlight = true; return v; }); } function toggleView(views, path) { if (pathActive(views, path)) { return views.map(function (v) { if (v.path == path) v.temp = true; return v; }); } else { var added = { temp: false, highlight: false, closing: false, path: path }; return [].concat([added], views); } if (!views.length) return; view.set('views', views = removeHead(views)); view.update(); } function close(path, e) { if (e) e.stopPropagation(); view.set('views', views = setClosing(views, path)); on.delay(200, function () { view.set('views', views = views.filter(function (v) { return path != v.path; })); view.update(); }); view.update(); } function glue(_ref5) { var target = _ref5.target; var inspector = ReactDOM.findDOMNode(view); if (inspector.contains(target)) return; view.set('views', views = toggleView(removeTemp(views), findPath(target))); return false; view.update(); } function showInspect() { inspect(lastTarget); view.set('hudActive', hudActive = true); view.set('clickOff', clickOff = on.click(window, glue)); view.update(); } function hideInspect() { internal().isInspecting = false; view.set('hudActive', hudActive = false); hideHighlight(); clickOff && clickOff(); view.set('views', views = removeTemp(views)); view.update(); } function onWriteBack(path, data) { writeBack(path, data); view.update(); } ;view.render(function () { return Flint.range(views).map(function (_, _index) { return view.el(['Inspector.View', 1, _, _index], _extends({ repeat: views, key: _.path }, _, { writeBack: onWriteBack, onClose: function (e) { return close(_.path, e); } })); }); }); }); })})();","isInternal":false,"writtenAt":1454052691445,"error":null},"keys.js":{"added":1454052691449,"views":[],"meta":{},"externals":["babel-runtime/helpers/interop-require-default","keycode"],"internals":[],"isInternal":true,"writtenAt":1454052691478,"error":null},"menu.js":{"added":1454052691480,"views":["Menu"],"meta":{"Menu":{"location":[[6,0],[125,1]],"file":"/Users/nw/flint/apps/tools/menu.js","styles":{"menu":{"location":[[74,2],[88,3]]},"active":{"location":[[90,2],[94,3]]},"item":{"location":[[96,2],[100,3]]},"first":{"location":[[102,2],[106,3]]},"last":{"location":[[108,2],[112,3]]},"hl":{"location":[[114,2],[120,3]]},"main":{"location":[[122,2],[124,3]]}},"els":{"menu":{"location":[[59,2],[59,43]],"key":1},"item":{"location":[[60,4],[66,5]],"key":1},"main":{"location":[[67,6],[67,49]],"key":1},"sub":{"location":[[68,6],[68,46]],"key":1}}}},"externals":["babel-runtime/helpers/interop-require-default"],"internals":["./keys","./lib/inspecting"],"outsideSrc":"var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('menu.js', function (require) { var _keys = require('./keys'); repeat: elements.filter(function (i) { return !!i.view; }), className: { first: _index == 0, last: _index == elements.length - 1 } }, view.el( ['main', 1, _, _index], { className: 'hl', onClick: focusElement(_) }, _.view ), view.el( ['sub', 1, _, _index], { className: 'hl', onClick: focusStyle(_) }, '$' ) ); }) ); }); var rad = 5; $[\"menu\"] = function (_, _index) { return { borderRadius: rad, top: top, left: left, transform: { y: -10 } }; }; $[\"active\"] = function (_, _index) { return { transform: { y: 0 } }; }; $[\"first\"] = function (_, _index) { return { borderTopLeftRadius: rad, borderTopRightRadius: rad }; }; $[\"last\"] = function (_, _index) { return { borderBottomLeftRadius: rad, borderBottomRightRadius: rad }; }; $[\"hl\"] = function (_, _index) { return { hover: { background: [0, 0, 0, 0.1] } }; }; }); })})();","isInternal":false,"writtenAt":1454052691527,"error":null},"modal.js":{"added":1454052699609,"views":["FlintModal"],"meta":{"FlintModal":{"location":[[0,0],[49,1]],"file":"/Users/nw/flint/apps/tools/modal.js","styles":{"":{"location":[[22,2],[37,3]]},"title":{"location":[[39,2],[44,3]]},"message":{"location":[[46,2],[48,3]]}},"els":{"Close":{"location":[[18,2],[18,21]],"key":1},"title":{"location":[[19,2],[19,20]],"key":1},"message":{"location":[[20,2],[20,25]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" } ;view.render(function () { return view.el(['Close', 1], { size: 25 }); });view.render(function () { return Flint.iff(title) && view.el( ['title', 1], { if: title }, title ); });view.render(function () { return Flint.iff(children) && view.el( ['message', 1], { if: children }, children ); }); $[\"$\"] = function (_, _index) { return { top: open ? 0 : -140 }; }; $[\"title\"] = function (_, _index) { return { color: view.props.titleColor || '#222' }; }; }); })})();","isInternal":false,"writtenAt":1454052699626,"error":null},"inspector/highlighter.js":{"added":1454052691552,"views":["Highlighter"],"meta":{"Highlighter":{"location":[[2,0],[12,1]],"file":"/Users/nw/flint/apps/tools/inspector/highlighter.js","styles":{},"els":{"name":{"location":[[3,2],[3,93]],"key":1},"span":{"location":[[7,4],[7,45]],"key":2},"highlight":{"location":[[8,6],[8,33]],"key":1}}}},"externals":["babel-runtime/core-js/object/keys"],"internals":[],"outsideSrc":"var _Object$keys = require(\"babel-runtime/core-js/object/keys\").default; view.props.string ); });view.render(function () { return Flint.iff(view.props.highlight) && view.el( [\"span\", 1], { if: view.props.highlight }, Flint.range(view.props.string.split()).map(function (_, _index) { return view.el( [\"span\", 2, _, _index], { repeat: view.props.string.split() }, Flint.iff(_index > 0) && view.el( [\"highlight\", 1, _, _index], { if: _index > 0 }, view.props.highlight ), _ ); }) ); }); }); })})();","isInternal":false,"writtenAt":1454052691566,"error":null},"inspector/label.js":{"added":1454052691569,"views":["Label"],"meta":{"Label":{"location":[[2,0],[72,1]],"file":"/Users/nw/flint/apps/tools/inspector/label.js","styles":{"input":{"location":[[53,2],[67,3]]},"focus":{"location":[[69,2],[71,3]]}},"els":{"input":{"location":[[40,2],[51,4]],"key":1}}}},"externals":["babel-runtime/helpers/extends","lodash"],"internals":[],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default; view.update(); }; var tabIndex = function tabIndex(editable) { return editable ? {} : { tabIndex: 5000, disabled: true }; };view.render(function () { return view.el(['input', 1], _extends({ defaultValue: val.toString(), value: newVal, className: { focus: focus }, size: Math.max(4, val && val.length || 0), spellCheck: false, onMouseDown: onFocus, onFocus: onFocus, onEnter: onBlur }, tabIndex(editable), { onFocus: onFocus, onBlur: onBlur, onChange: onChange })); }); $[\"input\"] = function (_, _index) { return { // nice cursor on boolean toggle cursor: (0, _lodash.isBoolean)(val) ? 'pointer' : 'auto' }; }; }); })})();","isInternal":false,"writtenAt":1454052691598,"error":null},"inspector/leaf.js":{"added":1454052691602,"views":["Leaf"],"meta":{"Leaf":{"location":[[16,0],[186,1]],"file":"/Users/nw/flint/apps/tools/inspector/leaf.js","styles":{"leaf":{"location":[[126,2],[129,3]]},"label":{"location":[[135,2],[140,4]]},"helper":{"location":[[142,2],[142,32]]},"boolean":{"location":[[143,2],[143,50]]},"number":{"location":[[144,2],[144,63]]},"string":{"location":[[145,2],[145,32]]},"key":{"location":[[147,2],[151,4]]},"function":{"location":[[153,2],[157,3]]},"colon":{"location":[[159,2],[162,3]]},"name":{"location":[[164,2],[168,3]]},"expand":{"location":[[170,2],[170,17]]},"value":{"location":[[172,2],[175,4]]},"children":{"location":[[177,2],[179,3]]},"type":{"location":[[181,2],[185,3]]}},"els":{"Highlighter":{"location":[[69,24],[69,71]],"key":1},"Label":{"location":[[71,4],[75,6]],"key":1},"leaf":{"location":[[78,2],[78,25]],"key":1},"label":{"location":[[79,4],[79,63]],"key":1},"key":{"location":[[80,6],[80,11]],"key":1},"name":{"location":[[81,8],[81,14]],"key":1},"colon":{"location":[[84,6],[84,13]],"key":1},"expand":{"location":[[91,6],[91,36]],"key":3},"i":{"location":[[86,8],[86,11]],"key":1},"type":{"location":[[92,8],[92,14]],"key":2},"value":{"location":[[94,6],[94,97]],"key":1},"str":{"location":[[95,8],[95,49]],"key":1},"else":{"location":[[98,8],[98,50]],"key":1},"children":{"location":[[104,4],[104,14]],"key":1},"child":{"location":[[105,6],[107,26]],"key":1},"Leaf":{"location":[[108,8],[121,10]],"key":1}}}},"externals":["babel-runtime/core-js/object/keys","babel-runtime/helpers/interop-require-default","md5-o-matic","ellipsize"],"internals":["../lib/getType"],"outsideSrc":"var _Object$keys = require('babel-runtime/core-js/object/keys').default;var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('inspector/leaf.js', function (require) { var _md5OMatic = require('md5-o-matic'); var _md5OMatic2 = _interopRequireDefault(_md5OMatic); var _libGetType = require('../lib/getType'); var _libGetType2 = _interopRequireDefault(_libGetType); var _ellipsize = require('ellipsize'); getLabel('key', key, key, false) ), view.el( ['colon', 1], null, ':' ), Flint.iff(type == 'Function') && view.el( ['expand', 1], { className: 'function', if: type == 'Function' }, view.el( ['i', 1], null, 'fn (', fnParams(_data).join(', '), ')' ) ), Flint.iff(type == 'Array') && view.el( ['expand', 2], { if: type == 'Array' }, view.el( ['type', 1], null, 'Array[', _data.length, ']' ) ), Flint.iff(type == 'Object') && view.el( ['expand', 3], { if: type == 'Object' }, view.el( ['type', 2], null, '{} ' + dataKeys.length + ' keys' ) ), Flint.iff(['Array', 'Object', 'Function'].indexOf(type) == -1) && view.el( ['value', 1], { if: ['Array', 'Object', 'Function'].indexOf(type) == -1, className: type.toLowerCase() }, Flint.iff(type.toLowerCase() == 'string') && view.el( ['str', 1], { if: type.toLowerCase() == 'string' }, format((0, _ellipsize2.default)(String(_data), 25)) ), Flint.iff(type.toLowerCase() != 'string') && view.el( ['else', 1], { if: type.toLowerCase() != 'string' }, format(String(_data)) ), getLabel('val', _data, key, editable) ) ), view.el( ['children', 1], null, Flint.iff(expanded && !isPrimitive(_data)) && Flint.range(dataKeys).map(function (_, _index) { return view.el( ['child', 1, _, _index], { if: expanded && !isPrimitive(_data), repeat: dataKeys }, Flint.iff(_.indexOf('__') == -1) && view.el(['Leaf', 1, _, _index], { if: _.indexOf('__') == -1, key: getLeafKey(_, _data[_]), onSet: function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return onSet.apply(undefined, [key].concat(args)); }, data: _data[_], editable: editable, label: _, prefix: rootPath, onClick: onClick, id: id, query: _query, getOriginal: original ? null : getOriginal, isExpanded: isExpanded }) ); }) ) ); }); var row = { flexFlow: 'row' }; $[\"label\"] = function (_, _index) { return [row, { position: 'relative', color: 'rgba(0,0,0,0.8)', opacity: 1, alignItems: 'baseline' }]; }; $[\"key\"] = function (_, _index) { return [row, { color: 'rgba(0,0,0,0.9)', margin: [0], fontWeight: 'bold' }]; }; $[\"expand\"] = function (_, _index) { return [row]; }; $[\"value\"] = function (_, _index) { return [row, { position: 'relative', margin: [0, 4, 0] }]; }; }); })})();","isInternal":false,"writtenAt":1454052691692,"error":null},"inspector/section.js":{"added":1454052691694,"views":["Inspector.Section"],"meta":{"Inspector.Section":{"location":[[0,0],[21,1]],"file":"/Users/nw/flint/apps/tools/inspector/section.js","styles":{"":{"location":[[10,2],[12,3]]},"body":{"location":[[14,2],[16,3]]},"inactive":{"location":[[18,2],[20,3]]}},"els":{"Inspector.Title":{"location":[[3,2],[3,48]],"key":1},"body":{"location":[[6,2],[6,8]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" view.set('open', open = val); view.update(); } }, view.props.title ); });view.render(function () { return view.el( ['body', 1], null, view.props.children ); }); }); })})();","isInternal":false,"writtenAt":1454052691705,"error":null},"inspector/statetests.js":{"added":1454052691708,"views":["StateTests","Tests.Boolean","Tests.Props","Test.PropsChild","Tests.Counter","Tests.Deep","Tests.Name","Tests.Circles","Tests.Circle"],"meta":{"StateTests":{"location":[[2,0],[8,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"Tests.Name":{"location":[[3,2],[3,16]],"key":1},"Tests.Boolean":{"location":[[4,2],[4,19]],"key":1},"Tests.Counter":{"location":[[5,2],[5,19]],"key":1},"Tests.Props":{"location":[[6,2],[6,17]],"key":1},"Tests.Circles":{"location":[[7,2],[7,19]],"key":1}}},"Tests.Boolean":{"location":[[10,0],[14,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[12,2],[12,6]],"key":1},"button":{"location":[[13,2],[13,39]],"key":1}}},"Tests.Props":{"location":[[16,0],[23,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{"":{"location":[[22,2],[22,23]]}},"els":{"input":{"location":[[19,2],[19,23]],"key":1},"Test.PropsChild":{"location":[[20,2],[20,33]],"key":1}}},"Test.PropsChild":{"location":[[25,0],[32,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[29,2],[29,6]],"key":1},"h4":{"location":[[30,2],[30,6]],"key":1},"button":{"location":[[31,2],[31,34]],"key":1}}},"Tests.Counter":{"location":[[34,0],[39,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[36,2],[36,6]],"key":1},"button":{"location":[[38,2],[38,34]],"key":2}}},"Tests.Deep":{"location":[[41,0],[45,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[43,2],[43,6]],"key":1},"h2":{"location":[[44,2],[44,6]],"key":1}}},"Tests.Name":{"location":[[47,0],[57,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h2":{"location":[[50,2],[50,6]],"key":1},"input":{"location":[[52,2],[52,23]],"key":2},"button":{"location":[[53,2],[56,5]],"key":1}}},"Tests.Circles":{"location":[[59,0],[76,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{"circles":{"location":[[75,2],[75,82]]}},"els":{"circles":{"location":[[66,2],[66,31]],"key":1},"Tests.Circle":{"location":[[67,4],[72,6]],"key":1}}},"Tests.Circle":{"location":[[78,0],[92,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"circle":{"location":[[91,2],[91,29]],"key":1}}}},"externals":["babel-runtime/helpers/extends","babel-runtime/helpers/interop-require-default","mouse-event-offset"],"internals":[],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default; Flint.view('StateTests', function (view, on, $) { ;view.render(function () { return view.el(['Tests.Name', 1], null); });view.render(function () { return view.el(['Tests.Boolean', 1], null); });view.render(function () { return view.el(['Tests.Counter', 1], null); }); Flint.view('Tests.Boolean', function (view, on, $) { var dead = false;view.render(function () { return view.el( ['h1', 1], null, view.update(); } }, 'toggle' ); }); }); Flint.staticStyles('Tests.Props', { '$': '#_flintdevtools .ViewTests-Props' }, { view.update(); } }); });view.render(function () { return view.el(['Test.PropsChild', 1], { name: name }); }); }); Flint.view('Test.PropsChild', function (view, on, $) { var name = view.prop('name', undefined); null, 'my name is ', name ); });view.render(function () { return view.el( ['h4', 1], return view.el( ['button', 1], { onClick: function () { view.set('count', count++, count, true); view.update(); } }, ); });view.render(function () { return view.el( ['button', 1], { onClick: function () { view.set('count', count++, count, true); view.update(); } }, 'up' ); });view.render(function () { return view.el( ['h2', 1], null, JSON.stringify(person) ); }); }); Flint.view('Tests.Name', function (view, on, $) { var first = 'nick'; var last = 'cammarata';view.render(function () { return view.el( ['h2', 1], null, 'name is ', first, ' ', last ); });view.render(function () { return view.el(['input', 1], { return view.el( ['button', 1], { onClick: function () { view.set('first', first = 'nate'); view.set('last', last = 'wienert'); view.update(); } }, 'nateify' ); }); }); Flint.staticStyles('Tests.Circles', { '$circles': '#_flintdevtools circles.Tests-Circles, #_flintdevtools .Tests-Circles.circles, #_flintdevtools .ViewTests-Circles.circles, #_flintdevtools .Tests-Circles > .circles' }, { '$circles': { position: 'relative', background: '#eee', height: 400, width: 400 } }); Flint.view('Tests.Circles', function (view, on, $) { var coords = [[200, 200]]; function addCircle(click) { view.set('coords', coords.push((0, _mouseEventOffset2.default)(click)), coords, true); view.update(); } ;view.render(function () { return view.el( ['circles', 1], { onClick: addCircle }, Flint.range(coords).map(function (_, _index) { return view.el(['Tests.Circle', 1, _, _index], { repeat: coords, key: '' + _[0] + _[1], left: _[0], top: _[1] }); }) ); }); }); Flint.view('Tests.Circle', function (view, on, $) { var c = function c() { return Math.round(Math.random() * 255); }; var base = { background: [c(), c(), c()], position: 'absolute', top: view.props.top, left: view.props.left, width: 118, height: 29, borderRadius: 27 }; var style = function style(scale) { return _extends({}, base, { transform: { scale: scale } }); };view.render(function () { return view.el(['circle', 1], { style: style(1) }); }); }); })})();","isInternal":false,"writtenAt":1454052691777,"error":null},"inspector/title.js":{"added":1454052691781,"views":["Inspector.Title"],"meta":{"Inspector.Title":{"location":[[0,0],[32,1]],"file":"/Users/nw/flint/apps/tools/inspector/title.js","styles":{"title":{"location":[[13,2],[20,3]]},"closed":{"location":[[22,2],[25,3]]},"inner":{"location":[[27,2],[31,3]]}},"els":{"title":{"location":[[9,2],[9,26]],"key":1},"inner":{"location":[[10,4],[10,11]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" ;view.render(function () { return view.el( ['title', 1], { onClick: toggle }, view.el( ['inner', 1], null, view.props.children ) ); }); $[\"closed\"] = function (_, _index) { return { transform: { scale: 0.8 } }; }; $[\"inner\"] = function (_, _index) { return { margin: [-2, 'auto'] }; }; }); })})();","isInternal":false,"writtenAt":1454052691798,"error":null},"inspector/tree.js":{"added":1454052691801,"views":["Tree"],"meta":{"Tree":{"location":[[2,0],[27,1]],"file":"/Users/nw/flint/apps/tools/inspector/tree.js","styles":{"":{"location":[[23,2],[26,3]]}},"els":{"Leaf":{"location":[[8,2],[21,4]],"key":1}}}},"externals":["babel-runtime/helpers/interop-require-default"],"internals":["../lib/lens"],"outsideSrc":"var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default; onClick: view.props.onClick, id: view.props.id, getOriginal: getOriginal, query: query, label: 'root', editable: view.props.editable, root: true, validateQuery: function (query) { return query.length >= 2; }, isExpanded: view.props.isExpanded || function () { return false; }, interactiveLabel: view.props.interactiveLabel, onSet: function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return view.props.onSet(args); } }); }); }); })})();","isInternal":false,"writtenAt":1454052691819,"error":null},"inspector/view.js":{"added":1454052691823,"views":["Inspector.View"],"meta":{"Inspector.View":{"location":[[12,0],[159,1]],"file":"/Users/nw/flint/apps/tools/inspector/view.js","styles":{"view":{"location":[[74,2],[95,3]]},"top":{"location":[[97,2],[99,3]]},"active":{"location":[[101,2],[106,3]]},"highlight":{"location":[[108,2],[110,3]]},"Close":{"location":[[112,2],[116,3]]},"name":{"location":[[118,2],[124,3]]},"edit":{"location":[[126,2],[133,3]]},"expanded":{"location":[[135,2],[137,3]]},"input":{"location":[[139,2],[146,3]]},"title":{"location":[[148,2],[154,3]]},"section":{"location":[[156,2],[158,3]]}},"els":{"view":{"location":[[54,2],[54,38]],"key":1},"Close":{"location":[[55,4],[55,55]],"key":1},"top":{"location":[[56,4],[56,9]],"key":1},"name":{"location":[[57,6],[57,12]],"key":1},"edit":{"location":[[58,6],[58,38]],"key":1},"Inspector.Section":{"location":[[65,4],[65,57]],"key":2},"Tree":{"location":[[66,6],[70,8]],"key":2}}}},"externals":["babel-runtime/core-js/object/keys","lodash"],"internals":[],"outsideSrc":"var _Object$keys = require('babel-runtime/core-js/object/keys').default;(function () { Flint.file('inspector/view.js', function (require) { var _lodash = require('lodash'); function pathToName(path) { var p = path.split(','); return p[p.length - 1].split('-')[0]; } function filterProps(props) { null, view.el( ['name', 1], null, name ), Flint.iff(false) && view.el( ['edit', 1], { if: false, onClick: edit }, 'edit' ) ), Flint.iff(hasKeys(props)) && view.el( ['Inspector.Section', 1], { title: 'Props', if: hasKeys(props), className: 'props' }, view.el(['Tree', 1], { editable: false, data: props }) ), Flint.iff(hasKeys(state)) && view.el( ['Inspector.Section', 2], { title: 'State', if: hasKeys(state) }, view.el(['Tree', 2], { editable: true, onSet: onSet, data: state }) ) ); }); '68270699'; $[\"view\"] = function (_, _index) { return { transform: { x: 20 } }; }; 'c59a100e'; '14ed20fc'; $[\"active\"] = function (_, _index) { return { transform: { x: 0 } }; }; '73fd2ce7'; '4c3860b8'; '6f330b54'; $[\"name\"] = function (_, _index) { return { margin: [0, 0, -6] }; }; '748b11a6'; $[\"edit\"] = function (_, _index) { return { margin: [0, 0, -6] }; }; $[\"expanded\"] = function (_, _index) { return { transform: { y: 0 } }; }; 'a91c0042'; '22691102'; '1d45081d'; }); })})();","isInternal":false,"writtenAt":1454052691903,"error":null},"lib/createFilterer.js":{"added":1454052691907,"views":[],"meta":{},"externals":["babel-runtime/core-js/object/assign","babel-runtime/core-js/object/keys"],"internals":[],"isInternal":true,"writtenAt":1454052691935,"error":null},"lib/getType.js":{"added":1454052691938,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true,"writtenAt":1454052691944,"error":null},"lib/inspecting.js":{"added":1454052691946,"views":[],"meta":{},"externals":["babel-runtime/core-js/object/keys"],"internals":[],"isInternal":true,"writtenAt":1454052691976,"error":null},"lib/lens.js":{"added":1454052691977,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true,"writtenAt":1454052691991,"error":null},"lib/uid.js":{"added":1454052691993,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true,"writtenAt":1454052692000,"error":null},"npm/installer.js":{"added":1454052692001,"views":["Installer","Versions"],"meta":{"Installer":{"location":[[2,0],[67,1]],"file":"/Users/nw/flint/apps/tools/npm/installer.js","styles":{},"els":{"Versions":{"location":[[54,21],[54,78]],"key":1},"FlintModal":{"location":[[59,2],[63,52]],"key":1},"InstallerLoading":{"location":[[64,4],[64,48]],"key":1}}},"Versions":{"location":[[69,0],[100,1]],"file":"/Users/nw/flint/apps/tools/npm/installer.js","styles":{"version":{"location":[[78,2],[82,3]]},"inner":{"location":[[84,2],[86,3]]},"v":{"location":[[88,2],[96,3]]},"info":{"location":[[98,2],[99,3]]}},"els":{"version":{"location":[[70,2],[70,79]],"key":1},"inner":{"location":[[71,4],[71,11]],"key":1},"v":{"location":[[72,6],[72,28]],"key":1},"info":{"location":[[73,6],[73,12]],"key":1},"a":{"location":[[74,6],[74,43]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file('npm/installer.js', function (require) { var body = function body(state) { switch (state) { case 1: return null; case 2: return null; case 3: return error; case 4: return view.el(['Versions', 1], { versions: versions, onSelect: selectVersion }); } } // was <modal but collided with bootstrap ;view.render(function () { return view.el( ['FlintModal', 1], { open: state > 0, onClose: closeModal, title: title(state), titleColor: state == 3 ? \"#8c1919\" : \"#0f8c3c\" }, Flint.iff(false && state < 2) && view.el(['InstallerLoading', 1], { if: false && state < 2 }), body(state) ); }); }); Flint.staticStyles('Versions', { '$version': '#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version', '$inner': '#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner', '$v': '#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v', '$info': '#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info' }, { '$version': { textAlign: 'left', padding: [2, 4], borderRadius: 2 }, '$inner': { flexFlow: 'row' }, '$v': { flexGrow: 1, fontWeight: 'bold' }, '$info': {} }); Flint.view('Versions', function (view, on, $) { ;view.render(function () { return Flint.range(view.props.versions).map(function (_, _index) { return view.el( ['version', 1, _, _index], { repeat: view.props.versions, onClick: function () { return view.props.onSelect(_); } }, view.el( ['inner', 1, _, _index], null, view.el( ['v', 1, _, _index], { key: 'v' + _index }, _.version ), view.el( ['info', 1, _, _index],","isInternal":false,"writtenAt":1454052692055,"error":null}},"imports":[],"fileMeta":{}},"installed":["lodash","keycode","md5-o-matic","ellipsize","mouse-event-offset"]}
{"opts":{"name":"tools","saneName":"flinttools","version":"1.5.0","watch":true,"pretty":true,"nomin":true,"build":true,"hasRunInitialBuild":false,"defaultPort":4000,"appDir":"/Users/nw/flint/apps/tools","dir":"/Users/nw/flint/apps/tools","flintDir":"/Users/nw/flint/apps/tools/.flint","modulesDir":"/Users/nw/flint/apps/tools/.flint/node_modules","internalDir":"/Users/nw/flint/apps/tools/.flint/.internal","depsDir":"/Users/nw/flint/apps/tools/.flint/.internal/deps","template":".flint/index.html","buildDir":"/Users/nw/flint/apps/tools/.flint/build","deps":{"dir":"/Users/nw/flint/apps/tools/.flint/.internal/deps","assetsDir":"/Users/nw/flint/apps/tools/.flint/.internal/deps/assets","internalsIn":"/Users/nw/flint/apps/tools/.flint/.internal/deps/internals.in.js","internalsOut":"/Users/nw/flint/apps/tools/.flint/.internal/deps/internals.js","externalsIn":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.in.js","externalsOut":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.js","externalsPaths":"/Users/nw/flint/apps/tools/.flint/.internal/deps/externals.paths.js"},"configFile":"/Users/nw/flint/apps/tools/.flint/flint.json","stateFile":"/Users/nw/flint/apps/tools/.flint/.internal/state.json","outDir":"/Users/nw/flint/apps/tools/.flint/.internal/out","styleDir":"/Users/nw/flint/apps/tools/.flint/.internal/styles","styleOutDir":"/Users/nw/flint/apps/tools/.flint/build/_/styles.css","config":{"selectorPrefix":"#_flintdevtools ","tools":"false","build":{"minify":"false"}},"url":"tools.dev"},"port":4001,"wport":6284,"cache":{"files":{"main.js":{"added":1454107726170,"views":["Main"],"meta":{"Main":{"location":[[0,0],[20,1]],"file":"/Users/nw/flint/apps/tools/main.js","styles":{"":{"location":[[13,2],[19,3]]}},"els":{"link":{"location":[[5,2],[5,92]],"key":2},"Errors":{"location":[[7,2],[7,12]],"key":1},"Installer":{"location":[[8,2],[8,15]],"key":1},"Menu":{"location":[[9,2],[9,29]],"key":1},"Inspector":{"location":[[10,2],[10,34]],"key":1},"StateTests":{"location":[[11,2],[11,30]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" });view.render(function () { return view.el([\"Installer\", 1], null); });view.render(function () { return Flint.iff(showInspector) && view.el([\"Menu\", 1], { if: showInspector }); });view.render(function () { return Flint.iff(showInspector) && view.el([\"Inspector\", 1], { if: showInspector }); });view.render(function () { return Flint.iff(internal) && view.el([\"StateTests\", 1], { if: internal }); }); $[\"$\"] = function (_, _index) { return { pointerEvents: internal ? 'auto' : 'none' }; }; }); })})();","isInternal":false,"writtenAt":1454107726254,"error":null},"close.js":{"added":1454107726288,"views":["Close"],"meta":{"Close":{"location":[[0,0],[24,1]],"file":"/Users/nw/flint/apps/tools/close.js","styles":{"":{"location":[[5,2],[23,3]]}},"els":{"close":{"location":[[1,2],[1,38]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" { onClick: view.props.onClick }, 'x' ); }); $[\"$\"] = function (_, _index) { return { fontSize: view.props.fontSize || 13, width: view.props.size || 50, height: view.props.size || 50, ':hover': { opacity: 0.4 } }; }; }); })})();","isInternal":false,"writtenAt":1454107726307,"error":null},"debounce.js":{"added":1454107726318,"views":["Debounce"],"meta":{"Debounce":{"location":[[10,0],[67,1]],"file":"/Users/nw/flint/apps/tools/debounce.js","styles":{},"els":{}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file(\"debounce.js\", function (require) { // fancy debounce // detects if we are in autosave mode var sum = function sum(a, b) { return a + b; }; var Delay = 300; var AutoDelay = 800; view.update(); } // debounce clearTimeout(timeout); view.set(\"timeout\", timeout = setTimeout(show, curDelay)); view.updateSoft(); }); }); })})();","isInternal":false,"writtenAt":1454107726358,"error":null},"errors.js":{"added":1454107726363,"views":["Errors","ErrorMessage","ErrorIcon"],"meta":{"Errors":{"location":[[120,0],[185,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{},"els":{"ErrorMessage":{"location":[[180,2],[184,4]],"key":1}}},"ErrorMessage":{"location":[[192,0],[365,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{"bar":{"location":[[268,2],[285,3]]},"inner":{"location":[[287,2],[291,3]]},"top":{"location":[[293,2],[296,3]]},"where":{"location":[[298,2],[303,3]]},"line":{"location":[[305,2],[309,3]]},"flint":{"location":[[311,2],[315,3]]},"shortError":{"location":[[317,2],[320,3]]},"niceStack":{"location":[[329,2],[329,20]]},"cur":{"location":[[331,2],[333,3]]},"errCol":{"location":[[335,2],[341,3]]},"fullStack":{"location":[[343,2],[354,4]]},"ln":{"location":[[356,2],[358,3]]},"flintline":{"location":[[360,2],[364,3]]}},"els":{"Debounce":{"location":[[221,2],[227,3]],"key":1},"bar":{"location":[[228,4],[228,9]],"key":1},"Close":{"location":[[229,6],[229,52]],"key":1},"inner":{"location":[[234,6],[234,13]],"key":2},"where":{"location":[[236,10],[236,17]],"key":2},"flint":{"location":[[238,40],[238,57]],"key":3},"top":{"location":[[235,8],[235,13]],"key":1},"span":{"location":[[237,12],[237,18]],"key":1},"line":{"location":[[238,12],[238,18]],"key":1},"shortError":{"location":[[243,10],[243,22]],"key":1},"niceStack":{"location":[[245,12],[245,44]],"key":1},"errCol":{"location":[[247,14],[247,22]],"key":1},"help":{"location":[[252,10],[252,32]],"key":1},"fullStack":{"location":[[257,8],[257,34]],"key":1},"ln":{"location":[[260,10],[260,14]],"key":3}}},"ErrorIcon":{"location":[[367,0],[385,1]],"file":"/Users/nw/flint/apps/tools/errors.js","styles":{"svg":{"location":[[377,2],[384,3]]}},"els":{"svg":{"location":[[368,2],[368,35]],"key":1},"path":{"location":[[373,4],[374,53]],"key":2},"polygon":{"location":[[372,4],[372,78]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file('errors.js', function (require) { var browser = window._DT; var split = function split(s, i) { return [s.substring(0, i), s.substring(i, i + 1), s.substring(i + 1)]; }; var isLive = function isLive() { return browser.editor && browser.editor.live; }; // TODO make beautiful var CUR_ERROR = undefined; function showFlintErrorDiv() { setTimeout(function () { // avoid showing if error fixed in meantime if (!CUR_ERROR) return; var errors = document.querySelectorAll('.__flintError'); if (!errors.length) return; // add active class to show them [].forEach.call(errors, function (error) { if (error.className.indexOf('active') == -1) error.className += ' active'; }); }, isLive() ? 1000 : 100); } function niceRuntimeError(err) { if (err.file) err.file = err.file.replace(new RegExp('.*' + window.location.origin + '(\\/[_]+\\/)?'), ''); if (err.file && err.file.indexOf('internals.js') >= 0) { if (err.message && err.message.indexOf('Cannot find module') == 0) { var badModule = err.message.match(/(fs|path)/); if (badModule && badModule.length) { err.file = 'imported module:'; err.message = 'Cannot import node-only module: ' + badModule[0]; } } else { err.message = 'Error in a locally required file. ' + err.message; } } if (err.message) err.niceMessage = err.message.replace(/Uncaught .*Error:\\s*/, ''); return err; } function niceNpmError(_ref) { var msg = _ref.msg; var name = _ref.name; if (msg) msg = msg.replace(/(npm WARN.*\\n|ERR\\!)/g, '').replace(/npm argv.*\\n/g, '').replace(/npm node v.*\\n/g, '').replace(/npm npm.*\\n/g, '').replace(/npm code.*\\n/g, '').replace(/npm peerinvalid /g, '').replace(/npm 404 /g, ''); return { msg: msg, name: name }; } var niceCompilerError = function niceCompilerError(err) { return niceCompilerMessage(fullStack(niceStack(err))); }; var replaceCompilerMsg = function replaceCompilerMsg(msg) { if (!msg) return ''; return msg.replace(/.*\\.js\\:/, '').replace(/\\([0-9]+\\:[0-9]+\\)/, '').replace(/Line [0-9]+\\:\\s*/, ''); }; var niceCompilerMessage = function niceCompilerMessage(err) { err.niceMessage = replaceCompilerMsg(err.message, err.fileName); return err; }; var matchErrorLine = /\\>?\\s*([0-9]*)\\s*\\|(.*)/g; var indicator = /\\s*\\|\\s*\\^\\s*$/g; var fullStack = function fullStack(err) { if (!err) return; if (err.stack) { (function () { err.fullStack = ['', '', '']; var index = 0; err.stack.split(\"\\n\").forEach(function (line) { if (indicator.test(line)) return; if (!matchErrorLine.test(line)) return; var isLine = line[0] === '>'; if (isLine) index = 1; if (!isLine && index === 1) index = 2; var result = line.replace(matchErrorLine, '$1$2').replace(/^(\\s*[0-9]+\\s*)[;]/, '$1 '); err.fullStack[index] += result + \"\\n\"; }); })(); } return err; }; var niceStack = function niceStack(err) { if (!err) return; if (err.stack) { err.stack.split(\"\\n\").map(function (line) { if (line[0] === '>') { var result = line; if (!result) return; // remove the babel \" > |\" before the line result = result.replace(/\\>\\s*[0-9]+\\s*\\|\\s*/, ''); result = replaceCompilerMsg(result); var colIndex = err.loc.column - 4; // 4 because we remove babel prefix err.niceStack = split(result, colIndex); } }); } return err; }; var log = function log() { if (false) console.log.apply(console, arguments); }; Flint.view('Errors', function (view, on, $) { var error = null; var compileError = null; var flintAddedLines = 0; var last = function last(arr) { return arr[arr.length - 1]; }; var fileName = function fileName(url) { return url && url.replace(/[\\?\\)].*/, ''); }; var getLine = function getLine(err) { return err && (err.line || err.loc && err.loc.line); }; Flint.staticStyles('ErrorMessage', { '$bar': '#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar', '$inner': '#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner', '$top': '#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top', '$where': '#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where', '$line': '#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line', '$flint': '#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint', '$shortError': '#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError', '$cur': '#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur', '$errCol': '#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol', '$ln': '#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln', '$flintline': '#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline' }, { '$bar': { display: 'block', position: 'fixed', left: 0, transition: 'all 200ms ease-in', right: 0, fontFamily: '-apple-system, \"San Francisco\", Roboto, \"Segou UI\", \"Helvetica Neue\", Helvetica, Arial, sans-serif', fontWeight: 300, color: '#fff', fontSize: '14px', padding: 2, pointerEvents: 'all', overflow: 'scroll', zIndex: 2147483647, boxShadow: '0 -6px 12px rgba(0,0,0,0.06)' }, '$inner': { display: 'block', maxHeight: 200, overflowY: 'scroll' }, '$top': { padding: 8, display: 'block' }, '$where': { display: 'inline-block', pointerEvents: 'all', fontWeight: 300, color: 'rgba(255,255,255,0.8)' }, '$line': { display: 'inline-block', whiteSpace: 'pre', pointerEvents: 'all' }, '$flint': { display: 'inline', fontWeight: 700, color: '#fff' }, '$shortError': { display: 'inline', color: 'rgba(255,255,255,0.7)' }, $[\"fullStack\"] = function (_, _index) { return [stack, { maxHeight: fullStack ? 600 : 0, padding: fullStack ? [10, 0] : 0, transition: 'maxHeight ease-in 300ms', color: 'rgba(0,0,0,0.85)', background: 'rgba(255,255,255,0.9)', display: 'block', whiteSpace: 'pre', fontSize: 14, borderRadius: 3, margin: 2 }]; }; }); Flint.staticStyles('ErrorIcon', { '$svg': '#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg' }, { '$svg': { width: 19, fill: 'red', margin: -4, marginLeft: 3, marginRight: 6, opacity: 0.9 } }); Flint.view('ErrorIcon', function (view, on, $) { ;view.render(function () { return view.el( ['svg', 1], { viewBox: '0 0 27.963 27.963' }, view.el(['path', 1], { d: 'M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z' }), view.el(['polygon', 1], { points: '15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158' }), view.el(['path', 2], { d: 'M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z' }) ); }); }); })})();","isInternal":false,"writtenAt":1454107726503,"error":null},"inspector.js":{"added":1454107726528,"views":["Inspector"],"meta":{"Inspector":{"location":[[122,0],[235,1]],"file":"/Users/nw/flint/apps/tools/inspector.js","styles":{"":{"location":[[230,2],[234,3]]}},"els":{"Inspector.View":{"location":[[222,2],[228,4]],"key":1}}}},"externals":["babel-runtime/helpers/extends","babel-runtime/helpers/to-array","babel-runtime/helpers/sliced-to-array","babel-runtime/helpers/interop-require-default","lodash"],"internals":["./keys","./lib/inspecting"],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default;var _toArray = require('babel-runtime/helpers/to-array').default;var _slicedToArray = require('babel-runtime/helpers/sliced-to-array').default;var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('inspector.js', function (require) { var _keys = require('./keys'); var _libInspecting = require('./lib/inspecting'); var _libInspecting2 = _interopRequireDefault(_libInspecting); var _lodash = require('lodash'); var removeHead = function removeHead(_ref) { var _ref2 = _toArray(_ref); var l = _ref2[0]; var ls = _ref2.slice(1); return ls; }; var isAlt = function isAlt(cb) { return function (e) { return e.keyIdentifier === 'Alt' && cb(); }; }; var isEsc = function isEsc(cb) { return function (e) { return e.keyCode === 27 && cb(); }; }; var setLocal = function setLocal(k, v) { return localStorage.setItem('__flint.state.' + k, JSON.stringify(v)); }; var getLocal = function getLocal(k, d) { return JSON.parse(localStorage.getItem('__flint.state.' + k)) || d; }; var round = Math.round; var highlighter = undefined; function positionHighlight(node) { var bounds = node.getBoundingClientRect(); var winW = window.innerWidth; var winH = window.innerHeight; var width = round(bounds.right - bounds.left); var height = round(bounds.bottom - bounds.top); var opacity = 1; if (width >= winW && height >= winH) opacity = 0.2; highlighter.setAttribute('style', '\\n top: ' + round(bounds.top) + 'px;\\n left: ' + round(bounds.left) + 'px;\\n width: ' + width + 'px;\\n height: ' + height + 'px;\\n opacity: ' + opacity + ';\\n '); } function hideHighlight() { highlighter.setAttribute('style', ''); } function findPath(node) { if (!node || !node.getAttribute) return null; var flintid = node.__flintID; if (!flintid) return findPath(node.parentNode); positionHighlight(node); return flintid; } function tempActive(views) { return views.filter(function (v) { return !v.temp; }).length > 0; } function pathActive(views, path) { return views.filter(function (v) { return v.path == path; }).length > 0; } function removeTemp(views) { return views.filter(function (v) { return !v.temp; }).map(function (v) { return _extends({}, v, { highlight: false }); }); } function addTemp(views, path) { return [{ path: path, highlight: false, temp: true }].concat(views); } function setClosing(views, path) { return views.map(function (v) { if (v.path == path) v.closing = true; return v; }); } function highlightPath(views, path) { return views.map(function (v) { if (v.path == path) v.highlight = true; return v; }); } function toggleView(views, path) { if (pathActive(views, path)) { return views.map(function (v) { if (v.path == path) v.temp = true; return v; }); } else { var added = { temp: false, highlight: false, closing: false, path: path }; return [].concat([added], views); } function closeLast() { if (!views.length) return; view.set('views', views = removeHead(views)); view.updateSoft(); } function close(path, e) { if (e) e.stopPropagation(); view.set('views', views = setClosing(views, path)); on.delay(200, function () { view.set('views', views = views.filter(function (v) { return path != v.path; })); view.updateSoft(); }); view.updateSoft(); } function glue(_ref5) { var target = _ref5.target; var inspector = ReactDOM.findDOMNode(view); if (inspector.contains(target)) return; view.set('views', views = toggleView(removeTemp(views), findPath(target))); return false; view.updateSoft(); } function showInspect() { inspect(lastTarget); view.set('hudActive', hudActive = true); view.set('clickOff', clickOff = on.click(window, glue)); view.updateSoft(); } function hideInspect() { internal().isInspecting = false; view.set('hudActive', hudActive = false); hideHighlight(); clickOff && clickOff(); view.set('views', views = removeTemp(views)); view.updateSoft(); } function onWriteBack(path, data) { writeBack(path, data); view.update(); } ;view.render(function () { return Flint.range(views).map(function (_, _index) { return view.el(['Inspector.View', 1, _, _index], _extends({ repeat: views, key: _.path }, _, { writeBack: onWriteBack, onClose: function (e) { return close(_.path, e); } })); }); }); }); })})();","isInternal":false,"writtenAt":1454107726619,"error":null},"keys.js":{"added":1454107726621,"views":[],"meta":{},"externals":["babel-runtime/helpers/interop-require-default","keycode"],"internals":[],"isInternal":true},"menu.js":{"added":1454107726650,"views":["Menu"],"meta":{"Menu":{"location":[[6,0],[125,1]],"file":"/Users/nw/flint/apps/tools/menu.js","styles":{"menu":{"location":[[74,2],[88,3]]},"active":{"location":[[90,2],[94,3]]},"item":{"location":[[96,2],[100,3]]},"first":{"location":[[102,2],[106,3]]},"last":{"location":[[108,2],[112,3]]},"hl":{"location":[[114,2],[120,3]]},"main":{"location":[[122,2],[124,3]]}},"els":{"menu":{"location":[[59,2],[59,43]],"key":1},"item":{"location":[[60,4],[66,5]],"key":1},"main":{"location":[[67,6],[67,49]],"key":1},"sub":{"location":[[68,6],[68,46]],"key":1}}}},"externals":["babel-runtime/helpers/interop-require-default"],"internals":["./keys","./lib/inspecting"],"outsideSrc":"var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('menu.js', function (require) { var _keys = require('./keys'); ['item', 1, _, _index], { repeat: elements.filter(function (i) { return !!i.view; }), className: { first: _index == 0, last: _index == elements.length - 1 } }, view.el( ['main', 1, _, _index], { className: 'hl', onClick: focusElement(_) }, _.view ), view.el( ['sub', 1, _, _index], { className: 'hl', onClick: focusStyle(_) }, '$' ) ); }) ); }); var rad = 5; $[\"menu\"] = function (_, _index) { return { borderRadius: rad, top: top, left: left, transform: { y: -10 } }; }; $[\"active\"] = function (_, _index) { return { transform: { y: 0 } }; }; $[\"first\"] = function (_, _index) { return { borderTopLeftRadius: rad, borderTopRightRadius: rad }; }; $[\"last\"] = function (_, _index) { return { borderBottomLeftRadius: rad, borderBottomRightRadius: rad }; }; $[\"hl\"] = function (_, _index) { return { hover: { background: [0, 0, 0, 0.1] } }; }; }); })})();","isInternal":false,"writtenAt":1454107726702,"error":null},"modal.js":{"added":1454107726714,"views":["FlintModal"],"meta":{"FlintModal":{"location":[[0,0],[40,1]],"file":"/Users/nw/flint/apps/tools/modal.js","styles":{"":{"location":[[13,2],[28,3]]},"title":{"location":[[30,2],[35,3]]},"message":{"location":[[37,2],[39,3]]}},"els":{"Close":{"location":[[9,2],[9,21]],"key":1},"title":{"location":[[10,2],[10,24]],"key":1},"message":{"location":[[11,2],[11,25]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" }); var lastTitle = undefined; on.props(function () { view.set('lastTitle', lastTitle = title || lastTitle); view.updateSoft(); });view.render(function () { return view.el(['Close', 1], { size: 25 }); });view.render(function () { return Flint.iff(lastTitle) && view.el( ['title', 1], { if: lastTitle }, lastTitle ); });view.render(function () { return Flint.iff(children) && view.el( ['message', 1], { if: children }, children ); }); $[\"$\"] = function (_, _index) { return { top: open ? 0 : -140 }; }; $[\"title\"] = function (_, _index) { return { color: view.props.titleColor || '#222' }; }; }); })})();","isInternal":false,"writtenAt":1454107726743,"error":null},"inspector/highlighter.js":{"added":1454107726745,"views":["Highlighter"],"meta":{"Highlighter":{"location":[[2,0],[12,1]],"file":"/Users/nw/flint/apps/tools/inspector/highlighter.js","styles":{},"els":{"name":{"location":[[3,2],[3,93]],"key":1},"span":{"location":[[7,4],[7,45]],"key":2},"highlight":{"location":[[8,6],[8,33]],"key":1}}}},"externals":["babel-runtime/core-js/object/keys"],"internals":[],"outsideSrc":"var _Object$keys = require(\"babel-runtime/core-js/object/keys\").default; view.props.string ); });view.render(function () { return Flint.iff(view.props.highlight) && view.el( [\"span\", 1], { if: view.props.highlight }, Flint.range(view.props.string.split()).map(function (_, _index) { return view.el( [\"span\", 2, _, _index], { repeat: view.props.string.split() }, Flint.iff(_index > 0) && view.el( [\"highlight\", 1, _, _index], { if: _index > 0 }, view.props.highlight ), _ ); }) ); }); }); })})();","isInternal":false,"writtenAt":1454107726763,"error":null},"inspector/label.js":{"added":1454107726765,"views":["Label"],"meta":{"Label":{"location":[[2,0],[72,1]],"file":"/Users/nw/flint/apps/tools/inspector/label.js","styles":{"input":{"location":[[53,2],[67,3]]},"focus":{"location":[[69,2],[71,3]]}},"els":{"input":{"location":[[40,2],[51,4]],"key":1}}}},"externals":["babel-runtime/helpers/extends","lodash"],"internals":[],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default; view.updateSoft(); }; var tabIndex = function tabIndex(editable) { return editable ? {} : { tabIndex: 5000, disabled: true }; };view.render(function () { return view.el(['input', 1], _extends({ defaultValue: val.toString(), value: newVal, className: { focus: focus }, size: Math.max(4, val && val.length || 0), spellCheck: false, onMouseDown: onFocus, onFocus: onFocus, onEnter: onBlur }, tabIndex(editable), { onFocus: onFocus, onBlur: onBlur, onChange: onChange })); }); $[\"input\"] = function (_, _index) { return { // nice cursor on boolean toggle cursor: (0, _lodash.isBoolean)(val) ? 'pointer' : 'auto' }; }; }); })})();","isInternal":false,"writtenAt":1454107726799,"error":null},"inspector/leaf.js":{"added":1454107726801,"views":["Leaf"],"meta":{"Leaf":{"location":[[16,0],[186,1]],"file":"/Users/nw/flint/apps/tools/inspector/leaf.js","styles":{"leaf":{"location":[[126,2],[129,3]]},"label":{"location":[[135,2],[140,4]]},"helper":{"location":[[142,2],[142,32]]},"boolean":{"location":[[143,2],[143,50]]},"number":{"location":[[144,2],[144,63]]},"string":{"location":[[145,2],[145,32]]},"key":{"location":[[147,2],[151,4]]},"function":{"location":[[153,2],[157,3]]},"colon":{"location":[[159,2],[162,3]]},"name":{"location":[[164,2],[168,3]]},"expand":{"location":[[170,2],[170,17]]},"value":{"location":[[172,2],[175,4]]},"children":{"location":[[177,2],[179,3]]},"type":{"location":[[181,2],[185,3]]}},"els":{"Highlighter":{"location":[[69,24],[69,71]],"key":1},"Label":{"location":[[71,4],[75,6]],"key":1},"leaf":{"location":[[78,2],[78,25]],"key":1},"label":{"location":[[79,4],[79,63]],"key":1},"key":{"location":[[80,6],[80,11]],"key":1},"name":{"location":[[81,8],[81,14]],"key":1},"colon":{"location":[[84,6],[84,13]],"key":1},"expand":{"location":[[91,6],[91,36]],"key":3},"i":{"location":[[86,8],[86,11]],"key":1},"type":{"location":[[92,8],[92,14]],"key":2},"value":{"location":[[94,6],[94,97]],"key":1},"str":{"location":[[95,8],[95,49]],"key":1},"else":{"location":[[98,8],[98,50]],"key":1},"children":{"location":[[104,4],[104,14]],"key":1},"child":{"location":[[105,6],[107,26]],"key":1},"Leaf":{"location":[[108,8],[121,10]],"key":1}}}},"externals":["babel-runtime/core-js/object/keys","babel-runtime/helpers/interop-require-default","md5-o-matic","ellipsize"],"internals":["../lib/getType"],"outsideSrc":"var _Object$keys = require('babel-runtime/core-js/object/keys').default;var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default;(function () { Flint.file('inspector/leaf.js', function (require) { var _md5OMatic = require('md5-o-matic'); var _md5OMatic2 = _interopRequireDefault(_md5OMatic); var _libGetType = require('../lib/getType'); var _libGetType2 = _interopRequireDefault(_libGetType); var _ellipsize = require('ellipsize'); getLabel('key', key, key, false) ), view.el( ['colon', 1], null, ':' ), Flint.iff(type == 'Function') && view.el( ['expand', 1], { className: 'function', if: type == 'Function' }, view.el( ['i', 1], null, 'fn (', fnParams(_data).join(', '), ')' ) ), Flint.iff(type == 'Array') && view.el( ['expand', 2], { if: type == 'Array' }, view.el( ['type', 1], null, 'Array[', _data.length, ']' ) ), Flint.iff(type == 'Object') && view.el( ['expand', 3], { if: type == 'Object' }, view.el( ['type', 2], null, '{} ' + dataKeys.length + ' keys' ) ), Flint.iff(['Array', 'Object', 'Function'].indexOf(type) == -1) && view.el( ['value', 1], { if: ['Array', 'Object', 'Function'].indexOf(type) == -1, className: type.toLowerCase() }, Flint.iff(type.toLowerCase() == 'string') && view.el( ['str', 1], { if: type.toLowerCase() == 'string' }, format((0, _ellipsize2.default)(String(_data), 25)) ), Flint.iff(type.toLowerCase() != 'string') && view.el( ['else', 1], { if: type.toLowerCase() != 'string' }, format(String(_data)) ), getLabel('val', _data, key, editable) ) ), view.el( ['children', 1], null, Flint.iff(expanded && !isPrimitive(_data)) && Flint.range(dataKeys).map(function (_, _index) { return view.el( ['child', 1, _, _index], { if: expanded && !isPrimitive(_data), repeat: dataKeys }, Flint.iff(_.indexOf('__') == -1) && view.el(['Leaf', 1, _, _index], { if: _.indexOf('__') == -1, key: getLeafKey(_, _data[_]), onSet: function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return onSet.apply(undefined, [key].concat(args)); }, data: _data[_], editable: editable, label: _, prefix: rootPath, onClick: onClick, id: id, query: _query, getOriginal: original ? null : getOriginal, isExpanded: isExpanded }) ); }) ) ); }); var row = { flexFlow: 'row' }; $[\"label\"] = function (_, _index) { return [row, { position: 'relative', color: 'rgba(0,0,0,0.8)', opacity: 1, alignItems: 'baseline' }]; }; $[\"key\"] = function (_, _index) { return [row, { color: 'rgba(0,0,0,0.9)', margin: [0], fontWeight: 'bold' }]; }; $[\"expand\"] = function (_, _index) { return [row]; }; $[\"value\"] = function (_, _index) { return [row, { position: 'relative', margin: [0, 4, 0] }]; }; }); })})();","isInternal":false,"writtenAt":1454107726892,"error":null},"inspector/section.js":{"added":1454107726895,"views":["Inspector.Section"],"meta":{"Inspector.Section":{"location":[[0,0],[21,1]],"file":"/Users/nw/flint/apps/tools/inspector/section.js","styles":{"":{"location":[[10,2],[12,3]]},"body":{"location":[[14,2],[16,3]]},"inactive":{"location":[[18,2],[20,3]]}},"els":{"Inspector.Title":{"location":[[3,2],[3,48]],"key":1},"body":{"location":[[6,2],[6,8]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" view.set('open', open = val); view.updateSoft(); } }, view.props.title ); });view.render(function () { return view.el( ['body', 1], null, view.props.children ); }); }); })})();","isInternal":false,"writtenAt":1454107726907,"error":null},"inspector/statetests.js":{"added":1454107726909,"views":["StateTests","Tests.Boolean","Tests.Props","Test.PropsChild","Tests.Counter","Tests.Deep","Tests.Name","Tests.Circles","Tests.Circle"],"meta":{"StateTests":{"location":[[2,0],[8,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"Tests.Name":{"location":[[3,2],[3,16]],"key":1},"Tests.Boolean":{"location":[[4,2],[4,19]],"key":1},"Tests.Counter":{"location":[[5,2],[5,19]],"key":1},"Tests.Props":{"location":[[6,2],[6,17]],"key":1},"Tests.Circles":{"location":[[7,2],[7,19]],"key":1}}},"Tests.Boolean":{"location":[[10,0],[14,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[12,2],[12,6]],"key":1},"button":{"location":[[13,2],[13,39]],"key":1}}},"Tests.Props":{"location":[[16,0],[23,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{"":{"location":[[22,2],[22,23]]}},"els":{"input":{"location":[[19,2],[19,23]],"key":1},"Test.PropsChild":{"location":[[20,2],[20,33]],"key":1}}},"Test.PropsChild":{"location":[[25,0],[32,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[29,2],[29,6]],"key":1},"h4":{"location":[[30,2],[30,6]],"key":1},"button":{"location":[[31,2],[31,34]],"key":1}}},"Tests.Counter":{"location":[[34,0],[39,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[36,2],[36,6]],"key":1},"button":{"location":[[38,2],[38,34]],"key":2}}},"Tests.Deep":{"location":[[41,0],[45,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h1":{"location":[[43,2],[43,6]],"key":1},"h2":{"location":[[44,2],[44,6]],"key":1}}},"Tests.Name":{"location":[[47,0],[57,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"h2":{"location":[[50,2],[50,6]],"key":1},"input":{"location":[[52,2],[52,23]],"key":2},"button":{"location":[[53,2],[56,5]],"key":1}}},"Tests.Circles":{"location":[[59,0],[76,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{"circles":{"location":[[75,2],[75,82]]}},"els":{"circles":{"location":[[66,2],[66,31]],"key":1},"Tests.Circle":{"location":[[67,4],[72,6]],"key":1}}},"Tests.Circle":{"location":[[78,0],[92,1]],"file":"/Users/nw/flint/apps/tools/inspector/statetests.js","styles":{},"els":{"circle":{"location":[[91,2],[91,29]],"key":1}}}},"externals":["babel-runtime/helpers/extends","babel-runtime/helpers/interop-require-default","mouse-event-offset"],"internals":[],"outsideSrc":"var _extends = require('babel-runtime/helpers/extends').default; Flint.view('StateTests', function (view, on, $) { ;view.render(function () { return view.el(['Tests.Name', 1], null); });view.render(function () { return view.el(['Tests.Boolean', 1], null); });view.render(function () { return view.el(['Tests.Counter', 1], null); }); Flint.view('Tests.Boolean', function (view, on, $) { var dead = false;view.render(function () { return view.el( ['h1', 1], null, view.updateSoft(); } }, 'toggle' ); }); }); Flint.staticStyles('Tests.Props', { '$': '#_flintdevtools .ViewTests-Props' }, { view.updateSoft(); } }); });view.render(function () { return view.el(['Test.PropsChild', 1], { name: name }); }); }); Flint.view('Test.PropsChild', function (view, on, $) { var name = view.prop('name', undefined); null, 'my name is ', name ); });view.render(function () { return view.el( ['h4', 1], return view.el( ['button', 1], { onClick: function () { view.set('count', count++, count, true); view.updateSoft(); } }, ); });view.render(function () { return view.el( ['button', 1], { onClick: function () { view.set('count', count++, count, true); view.updateSoft(); } }, 'up' ); });view.render(function () { return view.el( ['h2', 1], null, JSON.stringify(person) ); }); }); Flint.view('Tests.Name', function (view, on, $) { var first = 'nick'; var last = 'cammarata';view.render(function () { return view.el( ['h2', 1], null, 'name is ', first, ' ', last ); });view.render(function () { return view.el(['input', 1], { return view.el( ['button', 1], { onClick: function () { view.set('first', first = 'nate'); view.set('last', last = 'wienert'); view.updateSoft(); } }, 'nateify' ); }); }); Flint.staticStyles('Tests.Circles', { '$circles': '#_flintdevtools circles.Tests-Circles, #_flintdevtools .Tests-Circles.circles, #_flintdevtools .ViewTests-Circles.circles, #_flintdevtools .Tests-Circles > .circles' }, { '$circles': { position: 'relative', background: '#eee', height: 400, width: 400 } }); Flint.view('Tests.Circles', function (view, on, $) { var coords = [[200, 200]]; function addCircle(click) { view.set('coords', coords.push((0, _mouseEventOffset2.default)(click)), coords, true); view.updateSoft(); } ;view.render(function () { return view.el( ['circles', 1], { onClick: addCircle }, Flint.range(coords).map(function (_, _index) { return view.el(['Tests.Circle', 1, _, _index], { repeat: coords, key: '' + _[0] + _[1], left: _[0], top: _[1] }); }) ); }); }); Flint.view('Tests.Circle', function (view, on, $) { var c = function c() { return Math.round(Math.random() * 255); }; var base = { background: [c(), c(), c()], position: 'absolute', top: view.props.top, left: view.props.left, width: 118, height: 29, borderRadius: 27 }; var style = function style(scale) { return _extends({}, base, { transform: { scale: scale } }); };view.render(function () { return view.el(['circle', 1], { style: style(1) }); }); }); })})();","isInternal":false,"writtenAt":1454107726963,"error":null},"inspector/title.js":{"added":1454107726964,"views":["Inspector.Title"],"meta":{"Inspector.Title":{"location":[[0,0],[32,1]],"file":"/Users/nw/flint/apps/tools/inspector/title.js","styles":{"title":{"location":[[13,2],[20,3]]},"closed":{"location":[[22,2],[25,3]]},"inner":{"location":[[27,2],[31,3]]}},"els":{"title":{"location":[[9,2],[9,26]],"key":1},"inner":{"location":[[10,4],[10,11]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":" ;view.render(function () { return view.el( ['title', 1], { onClick: toggle }, view.el( ['inner', 1], null, view.props.children ) ); }); $[\"closed\"] = function (_, _index) { return { transform: { scale: 0.8 } }; }; $[\"inner\"] = function (_, _index) { return { margin: [-2, 'auto'] }; }; }); })})();","isInternal":false,"writtenAt":1454107726986,"error":null},"inspector/tree.js":{"added":1454107726988,"views":["Tree"],"meta":{"Tree":{"location":[[2,0],[27,1]],"file":"/Users/nw/flint/apps/tools/inspector/tree.js","styles":{"":{"location":[[23,2],[26,3]]}},"els":{"Leaf":{"location":[[8,2],[21,4]],"key":1}}}},"externals":["babel-runtime/helpers/interop-require-default"],"internals":["../lib/lens"],"outsideSrc":"var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default').default; onClick: view.props.onClick, id: view.props.id, getOriginal: getOriginal, query: query, label: 'root', editable: view.props.editable, root: true, validateQuery: function (query) { return query.length >= 2; }, isExpanded: view.props.isExpanded || function () { return false; }, interactiveLabel: view.props.interactiveLabel, onSet: function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return view.props.onSet(args); } }); }); }); })})();","isInternal":false,"writtenAt":1454107727005,"error":null},"inspector/view.js":{"added":1454107727007,"views":["Inspector.View"],"meta":{"Inspector.View":{"location":[[12,0],[159,1]],"file":"/Users/nw/flint/apps/tools/inspector/view.js","styles":{"view":{"location":[[74,2],[95,3]]},"top":{"location":[[97,2],[99,3]]},"active":{"location":[[101,2],[106,3]]},"highlight":{"location":[[108,2],[110,3]]},"Close":{"location":[[112,2],[116,3]]},"name":{"location":[[118,2],[124,3]]},"edit":{"location":[[126,2],[133,3]]},"expanded":{"location":[[135,2],[137,3]]},"input":{"location":[[139,2],[146,3]]},"title":{"location":[[148,2],[154,3]]},"section":{"location":[[156,2],[158,3]]}},"els":{"view":{"location":[[54,2],[54,38]],"key":1},"Close":{"location":[[55,4],[55,55]],"key":1},"top":{"location":[[56,4],[56,9]],"key":1},"name":{"location":[[57,6],[57,12]],"key":1},"edit":{"location":[[58,6],[58,38]],"key":1},"Inspector.Section":{"location":[[65,4],[65,57]],"key":2},"Tree":{"location":[[66,6],[70,8]],"key":2}}}},"externals":["babel-runtime/core-js/object/keys","lodash"],"internals":[],"outsideSrc":"var _Object$keys = require('babel-runtime/core-js/object/keys').default;(function () { Flint.file('inspector/view.js', function (require) { var _lodash = require('lodash'); function pathToName(path) { var p = path.split(','); return p[p.length - 1].split('-')[0]; } function filterProps(props) { null, view.el( ['name', 1], null, name ), Flint.iff(false) && view.el( ['edit', 1], { if: false, onClick: edit }, 'edit' ) ), Flint.iff(hasKeys(props)) && view.el( ['Inspector.Section', 1], { title: 'Props', if: hasKeys(props), className: 'props' }, view.el(['Tree', 1], { editable: false, data: props }) ), Flint.iff(hasKeys(state)) && view.el( ['Inspector.Section', 2], { title: 'State', if: hasKeys(state) }, view.el(['Tree', 2], { editable: true, onSet: onSet, data: state }) ) ); }); '68270699'; $[\"view\"] = function (_, _index) { return { transform: { x: 20 } }; }; 'c59a100e'; '14ed20fc'; $[\"active\"] = function (_, _index) { return { transform: { x: 0 } }; }; '73fd2ce7'; '4c3860b8'; '6f330b54'; $[\"name\"] = function (_, _index) { return { margin: [0, 0, -6] }; }; '748b11a6'; $[\"edit\"] = function (_, _index) { return { margin: [0, 0, -6] }; }; $[\"expanded\"] = function (_, _index) { return { transform: { y: 0 } }; }; 'a91c0042'; '22691102'; '1d45081d'; }); })})();","isInternal":false,"writtenAt":1454107727064,"error":null},"lib/createFilterer.js":{"added":1454107727069,"views":[],"meta":{},"externals":["babel-runtime/core-js/object/assign","babel-runtime/core-js/object/keys"],"internals":[],"isInternal":true},"lib/getType.js":{"added":1454107727099,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true},"lib/inspecting.js":{"added":1454107727106,"views":[],"meta":{},"externals":["babel-runtime/core-js/object/keys"],"internals":[],"isInternal":true},"lib/lens.js":{"added":1454107727131,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true},"lib/uid.js":{"added":1454107727143,"views":[],"meta":{},"externals":[],"internals":[],"isInternal":true},"npm/installer.js":{"added":1454107727150,"views":["Installer","Versions"],"meta":{"Installer":{"location":[[2,0],[67,1]],"file":"/Users/nw/flint/apps/tools/npm/installer.js","styles":{},"els":{"Versions":{"location":[[54,21],[54,78]],"key":1},"FlintModal":{"location":[[59,2],[63,52]],"key":1},"InstallerLoading":{"location":[[64,4],[64,48]],"key":1}}},"Versions":{"location":[[69,0],[100,1]],"file":"/Users/nw/flint/apps/tools/npm/installer.js","styles":{"version":{"location":[[78,2],[82,3]]},"inner":{"location":[[84,2],[86,3]]},"v":{"location":[[88,2],[96,3]]},"info":{"location":[[98,2],[99,3]]}},"els":{"version":{"location":[[70,2],[70,79]],"key":1},"inner":{"location":[[71,4],[71,11]],"key":1},"v":{"location":[[72,6],[72,28]],"key":1},"info":{"location":[[73,6],[73,12]],"key":1},"a":{"location":[[74,6],[74,43]],"key":1}}}},"externals":[],"internals":[],"outsideSrc":"(function () { Flint.file('npm/installer.js', function (require) { var body = function body(state) { switch (state) { case 1: return null; case 2: return null; case 3: return error; case 4: return view.el(['Versions', 1], { versions: versions, onSelect: selectVersion }); } } // was <modal but collided with bootstrap ;view.render(function () { return view.el( ['FlintModal', 1], { open: state > 0, onClose: closeModal, title: title(state), titleColor: state == 3 ? \"#8c1919\" : \"#0f8c3c\" }, Flint.iff(false && state < 2) && view.el(['InstallerLoading', 1], { if: false && state < 2 }), body(state) ); }); }); Flint.staticStyles('Versions', { '$version': '#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version', '$inner': '#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner', '$v': '#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v', '$info': '#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info' }, { '$version': { textAlign: 'left', padding: [2, 4], borderRadius: 2 }, '$inner': { flexFlow: 'row' }, '$v': { flexGrow: 1, fontWeight: 'bold' }, '$info': {} }); Flint.view('Versions', function (view, on, $) { ;view.render(function () { return Flint.range(view.props.versions).map(function (_, _index) { return view.el( ['version', 1, _, _index], { repeat: view.props.versions, onClick: function () { return view.props.onSelect(_); } }, view.el( ['inner', 1, _, _index], null, view.el( ['v', 1, _, _index], { key: 'v' + _index }, _.version ), view.el( ['info', 1, _, _index],","isInternal":false,"writtenAt":1454107727190,"error":null}},"imports":[],"fileMeta":{}},"installed":["lodash","keycode","md5-o-matic","ellipsize","mouse-event-offset"]}

@@ -75,3 +75,3 @@ exports["flinttools"] = function(Flint,opts){(function(Flint){(function(){

view.set("showKey",showKey = Math.random());
view.update();
view.updateSoft();
return show();}

@@ -119,3 +119,3 @@

view.set("timeout",timeout = setTimeout(show,curDelay));
view.update();});});});})();
view.updateSoft();});});});})();

@@ -245,4 +245,2 @@

Flint.view('Errors',function(view,on,$){
view.pause();
var error=null;

@@ -253,4 +251,3 @@ var compileError=null;

/* only set error if there is an error,
giving compile priority */
// only set error if there is an error, giving compile priority
function setError(){

@@ -264,4 +261,3 @@ if(compileError)view.set('error',error = niceCompilerError(compileError));else if(runtimeError)view.set('error',error = niceRuntimeError(runtimeError));else {

log('tools: view.update()');
view.update();
view.update();}
view.updateSoft();}

@@ -274,4 +270,3 @@

view.set('npmError',npmError = null);
view.update();
view.update();}
view.updateSoft();}

@@ -283,3 +278,3 @@

setError();
view.update();});
view.updateSoft();});

@@ -292,3 +287,3 @@

setError();
view.update();});
view.updateSoft();});

@@ -299,4 +294,3 @@

log('npm:error',npmError);
view.update();
view.update();});
view.updateSoft();});

@@ -309,3 +303,3 @@

setError();
view.update();});
view.updateSoft();});

@@ -318,3 +312,3 @@

setError();
view.update();});
view.updateSoft();});
view.render(function(){

@@ -420,4 +414,2 @@ return view.el(['ErrorMessage',1],{

Flint.view('ErrorMessage',function(view,on,$){
view.pause();
var hasError=false;

@@ -439,4 +431,2 @@ var error={};

view.update();
// show full stack after a delay

@@ -446,8 +436,8 @@ if(error){

if(hasError && error.fullStack){
view.set('fullStack',fullStack = error.fullStack);
view.update();}}));}
view.set('fullStack',fullStack = error.fullStack);}
view.updateSoft();}));}
view.update();});
view.updateSoft();});

@@ -805,3 +795,3 @@

document.body.appendChild(highlighter);
view.update();});
view.updateSoft();});

@@ -830,4 +820,5 @@

offAlt && offAlt();
hideInspect();}}
hideInspect();}
view.updateSoft();}

@@ -844,3 +835,3 @@

view.set('views',views = pathActive(views,path)?highlightPath(views,path):addTemp(views,path));
view.update();}
view.updateSoft();}

@@ -858,4 +849,5 @@

_libInspecting2.default.set(target);
if(hudActive)inspect(lastTarget);}}
if(hudActive)inspect(lastTarget);}
view.updateSoft();}

@@ -866,3 +858,3 @@

view.set('views',views = removeHead(views));
view.update();}
view.updateSoft();}

@@ -878,5 +870,5 @@

view.update();});
view.updateSoft();});
view.update();}
view.updateSoft();}

@@ -892,3 +884,3 @@

return false;
view.update();}
view.updateSoft();}

@@ -900,3 +892,3 @@

view.set('clickOff',clickOff = on.click(window,glue));
view.update();}
view.updateSoft();}

@@ -910,3 +902,3 @@

view.set('views',views = removeTemp(views));
view.update();}
view.updateSoft();}

@@ -1019,3 +1011,3 @@

if(!focus)view.set('newVal',newVal = val);
view.update();});
view.updateSoft();});

@@ -1028,3 +1020,3 @@

e.stopPropagation();
view.update();};
view.updateSoft();};

@@ -1034,3 +1026,3 @@

view.set('focus',focus = false);
view.update();};
view.updateSoft();};

@@ -1051,3 +1043,3 @@

onSet(newVal);
view.update();};
view.updateSoft();};

@@ -1230,3 +1222,3 @@

view.update();
view.update();});
view.updateSoft();});

@@ -1239,3 +1231,3 @@

e.stopPropagation();
view.update();};
view.updateSoft();};

@@ -1416,3 +1408,3 @@ var format=function format(key){

view.set('open',open = val);
view.update();}},
view.updateSoft();}},

@@ -1469,3 +1461,3 @@ view.props.title);});

view.set('dead',dead = !dead);
view.update();}},
view.updateSoft();}},

@@ -1487,3 +1479,3 @@ 'toggle');});});

view.set('name',name = __flintval__);
view.update();}});});
view.updateSoft();}});});

@@ -1519,3 +1511,3 @@

view.set('count',count++,count,true);
view.update();}},
view.updateSoft();}},

@@ -1539,3 +1531,3 @@ 'up');});});

view.set('count',count++,count,true);
view.update();}},
view.updateSoft();}},

@@ -1549,3 +1541,3 @@ 'up');});

view.set('count',count--,count,true);
view.update();}},
view.updateSoft();}},

@@ -1587,3 +1579,3 @@ 'down');});});

view.set('first',first = __flintval__);
view.update();}});});
view.updateSoft();}});});

@@ -1596,3 +1588,3 @@

view.set('last',last = __flintval__);
view.update();}});});
view.updateSoft();}});});

@@ -1606,3 +1598,3 @@

view.set('last',last = 'wienert');
view.update();}},
view.updateSoft();}},

@@ -1623,3 +1615,3 @@ 'nateify');});});

view.set('coords',coords.push((0,_mouseEventOffset2.default)(click)),coords,true);
view.update();}
view.updateSoft();}

@@ -1694,3 +1686,3 @@

view.props.onToggle(open);
view.update();}
view.updateSoft();}

@@ -1902,3 +1894,3 @@

view.set('active',active = true);
view.update();});
view.updateSoft();});

@@ -1923,6 +1915,6 @@

view.update();
view.update();});}
view.updateSoft();});}
view.update();});
view.updateSoft();});

@@ -2127,4 +2119,5 @@

document.body.classList.add('__flintfocus');
view.set('focused',focused = true);}});
view.set('focused',focused = true);}
view.updateSoft();});

@@ -2134,4 +2127,5 @@ on.keyup(function(){

document.body.classList.remove('__flintfocus');
view.set('focused',focused = false);}});
view.set('focused',focused = false);}
view.updateSoft();});

@@ -2144,3 +2138,3 @@

view.set('active',active = false);
view.update();
view.updateSoft();
return;}

@@ -2161,3 +2155,3 @@

view.set('elements',elements = _libInspecting2.default.all());
view.update();});
view.updateSoft();});

@@ -2279,28 +2273,23 @@

Flint.view('FlintModal',function(view,on,$){
view.pause();
var open=view.prop('open',undefined),
title=view.prop('title',undefined),
children=view.prop('children',undefined);
var children=undefined,
title=undefined,
open=undefined;
on.props(function(){
open = view.getProp('open');
title = view.getProp('title');
children = view.getProp('children');});
on.props(setMessage);
var lastTitle=undefined;
function setMessage(){
view.set('open',open = view.props.open);
// cache last children when empty
if(title && !view.props.title)return view.update();
view.set('title',title = view.props.title);
view.set('children',children = view.props.children);
view.update();}
;view.render(function(){
on.props(function(){
view.set('lastTitle',lastTitle = title || lastTitle);
view.updateSoft();});
view.render(function(){
return view.el(['Close',1],{size:25});});
view.render(function(){
return Flint.iff(title) && view.el(
return Flint.iff(lastTitle) && view.el(
['title',1],
{if:title},
title);});
{if:lastTitle},
lastTitle);});

@@ -2342,3 +2331,3 @@ view.render(function(){

view.set('name',name = tools.data.name);
view.update();});
view.updateSoft();});

@@ -2350,5 +2339,5 @@

view.set('state',state = 0);
view.update();},
view.updateSoft();},
2000);
view.update();});
view.updateSoft();});

@@ -2362,5 +2351,5 @@

view.set('state',state = 0);
view.update();},
view.updateSoft();},
2000);
view.update();});
view.updateSoft();});

@@ -2371,3 +2360,3 @@

view.set('versions',versions = tools.data.versions);
view.update();});
view.updateSoft();});

@@ -2380,3 +2369,3 @@

view.set('state',state = 1);
view.update();};
view.updateSoft();};

@@ -2386,3 +2375,3 @@

view.set('state',state = 0);
view.update();};
view.updateSoft();};

@@ -2389,0 +2378,0 @@

{
"name": "flint-tools",
"version": "1.4.30",
"version": "1.5.0",
"dependencies": {

@@ -21,5 +21,5 @@ "clone": {

"lodash": {
"version": "4.0.1",
"from": "lodash@>=4.0.0 <5.0.0",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.0.1.tgz"
"version": "4.1.0",
"from": "lodash@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.1.0.tgz"
},

@@ -26,0 +26,0 @@ "md5-o-matic": {

@@ -6,3 +6,3 @@ {

"description": "tools",
"version": "1.4.30",
"version": "1.5.0",
"main": "index.js",

@@ -14,3 +14,3 @@ "scripts": {},

"keycode": "^2.1.0",
"lodash": "^4.0.1",
"lodash": "^4.1.0",
"md5-o-matic": "^0.1.1",

@@ -17,0 +17,0 @@ "mouse-event-offset": "^3.0.2"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc