Comparing version 0.4.0 to 0.4.2
@@ -1,13 +0,3 @@ | ||
interface Surplus { | ||
insert(node : HTMLElement, value : any, state : HTMLElement) : HTMLElement; | ||
} | ||
export * from './es/Surplus'; | ||
interface SurplusMixin { | ||
(node : HTMLElement, state : any) : any; | ||
} | ||
declare var Surplus : Surplus; | ||
export = Surplus; | ||
// JSX type definitions for Surplus initially based on those for React v0.14 | ||
@@ -199,3 +189,2 @@ // React definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/> | ||
interface SurplusAtributes<T> { | ||
(node : T, state? : any) : any; | ||
ref?: T; | ||
@@ -202,0 +191,0 @@ } |
128
index.js
@@ -1,88 +0,8 @@ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["Surplus"] = factory(); | ||
else | ||
root["Surplus"] = factory(); | ||
})(this, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
/******/ var installedModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
/******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // Check if module is in cache | ||
/******/ if(installedModules[moduleId]) | ||
/******/ return installedModules[moduleId].exports; | ||
/******/ | ||
/******/ // Create a new module (and put it into the cache) | ||
/******/ var module = installedModules[moduleId] = { | ||
/******/ i: moduleId, | ||
/******/ l: false, | ||
/******/ exports: {} | ||
/******/ }; | ||
/******/ | ||
/******/ // Execute the module function | ||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | ||
/******/ | ||
/******/ // Flag the module as loaded | ||
/******/ module.l = true; | ||
/******/ | ||
/******/ // Return the exports of the module | ||
/******/ return module.exports; | ||
/******/ } | ||
/******/ | ||
/******/ | ||
/******/ // expose the modules object (__webpack_modules__) | ||
/******/ __webpack_require__.m = modules; | ||
/******/ | ||
/******/ // expose the module cache | ||
/******/ __webpack_require__.c = installedModules; | ||
/******/ | ||
/******/ // identity function for calling harmony imports with the correct context | ||
/******/ __webpack_require__.i = function(value) { return value; }; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { | ||
/******/ configurable: false, | ||
/******/ enumerable: true, | ||
/******/ get: getter | ||
/******/ }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = function(module) { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ function getDefault() { return module['default']; } : | ||
/******/ function getModuleExports() { return module; }; | ||
/******/ __webpack_require__.d(getter, 'a', getter); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ | ||
/******/ // Object.prototype.hasOwnProperty.call | ||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | ||
/******/ | ||
/******/ // __webpack_public_path__ | ||
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 9); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ({ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.Surplus = global.Surplus || {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
/***/ 3: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var DOCUMENT_FRAGMENT_NODE = 11, TEXT_NODE = 3; | ||
var TEXT_NODE = 3; | ||
function insert(range, value, exec) { | ||
@@ -128,3 +48,3 @@ var parent = range.start.parentNode, test = range.start, good = null, t = typeof value; | ||
exec(function () { | ||
insert(range, value()); | ||
insert(range, value(), exec); | ||
}); | ||
@@ -241,20 +161,24 @@ } | ||
} | ||
exports.insert = insert; | ||
function createElement(tag) { | ||
return document.createElement(tag); | ||
} | ||
function createComment(text) { | ||
return document.createComment(text); | ||
} | ||
function createTextNode(text) { | ||
return document.createTextNode(text); | ||
} | ||
function appendChild(parent, child) { | ||
parent.appendChild(child); | ||
} | ||
/***/ }), | ||
exports.insert = insert; | ||
exports.createElement = createElement; | ||
exports.createComment = createComment; | ||
exports.createTextNode = createTextNode; | ||
exports.appendChild = appendChild; | ||
/***/ 9: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var insert_1 = __webpack_require__(3); | ||
exports.insert = insert_1.insert; | ||
/***/ }) | ||
/******/ }); | ||
}); | ||
}))); |
{ | ||
"name": "surplus", | ||
"version": "0.4.0", | ||
"version": "0.4.2", | ||
"module": "es/Surplus.js", | ||
"description": "Javascript pre-processor that converts JSX syntax into inline DOM instructions", | ||
@@ -5,0 +6,0 @@ "keywords": [ |
35613
9
914