frint-component-utils
Advanced tools
@@ -1,3 +0,12 @@ | ||
this["FrintComponentUtils"] = | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("lodash/isPlainObject"), require("rxjs/observable/of"), require("rxjs/observable/merge"), require("rxjs/operator/concatMap"), require("rxjs/operator/scan")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["lodash/isPlainObject", "rxjs/observable/of", "rxjs/observable/merge", "rxjs/operator/concatMap", "rxjs/operator/scan"], factory); | ||
else if(typeof exports === 'object') | ||
exports["FrintComponentUtils"] = factory(require("lodash/isPlainObject"), require("rxjs/observable/of"), require("rxjs/observable/merge"), require("rxjs/operator/concatMap"), require("rxjs/operator/scan")); | ||
else | ||
root["FrintComponentUtils"] = factory(root["_"]["isPlainObject"], root["Rx"]["Observable"], root["Rx"]["Observable"], root["Rx"]["Observable"]["prototype"], root["Rx"]["Observable"]["prototype"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -388,3 +397,3 @@ /******/ var installedModules = {}; | ||
(function() { module.exports = this[undefined]; }()); | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_5__; | ||
@@ -395,3 +404,3 @@ /***/ }), | ||
(function() { module.exports = this[undefined]; }()); | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_6__; | ||
@@ -402,3 +411,3 @@ /***/ }), | ||
(function() { module.exports = this[undefined]; }()); | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_7__; | ||
@@ -409,3 +418,3 @@ /***/ }), | ||
(function() { module.exports = this[undefined]; }()); | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_8__; | ||
@@ -416,5 +425,6 @@ /***/ }), | ||
(function() { module.exports = this[undefined]; }()); | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_9__; | ||
/***/ }) | ||
/******/ ]); | ||
/******/ ]); | ||
}); |
@@ -1,1 +0,1 @@ | ||
this.FrintComponentUtils=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=2)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={app:null,component:null,initialize:function(){},beforeDestroy:function(){},getInitialData:function(){return{}},setData:function(t,e){},setDataWithCallback:function(t,e,n){this.setData(t,e),n()},getData:function(t){},getProp:function(t){},getProps:function(){},beforeMount:function(){},afterMount:function(){},beforeUpdate:function(){},shouldUpdate:function(t,e){},afterUpdate:function(){},getMountableComponent:function(t){return t.get("component")}},t.exports=e.default},function(t,e,n){"use strict";function r(t){return!(!t||"function"!=typeof t.subscribe)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),u=r(o),i=n(0),a=r(i),f=n(1),c=r(f),s=n(4),l=r(s);e.default={composeHandlers:u.default,DefaultHandler:a.default,isObservable:c.default,streamProps:l.default},t.exports=e.default},function(t,e,n){"use strict";function r(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];[i.default].concat(n).forEach(function(e){Object.keys(e).forEach(function(n){t[n]=e[n],"function"==typeof e[n]&&(t[n]=t[n].bind(t))})})}function o(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return new(Function.prototype.bind.apply(r,[null].concat(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(u);t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _(t)}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=a;var s=n(5),l=r(s),p=n(6),d=n(7),v=n(8),h=n(9),b=n(1),y=r(b),_=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this._observables=[(0,p.of)(e)]}return c(t,[{key:"_push",value:function(t){this._observables.push(t)}},{key:"set",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"string"==typeof t?this.setKey(t,n[0]):(0,l.default)(t)?this.setPlainObject(t):(0,y.default)(t)?this.setObservable.apply(this,[t].concat(n)):this}},{key:"setKey",value:function(t,e){return this._push((0,p.of)(u({},t,e))),this}},{key:"setPlainObject",value:function(t){return this._push((0,p.of)(t)),this}},{key:"setObservable",value:function(t){for(var e=t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(function(t){var n;e=(n=e,v.concatMap).call(n,function(e){var n=t(e);return(0,y.default)(n)?n:(0,p.of)(n)})}),this._push(e),this}},{key:"setDispatch",value:function(t,e){var n={};return Object.keys(t).forEach(function(r){var o=t[r];n[r]=function(){return e.dispatch(o.apply(void 0,arguments))}}),this._push((0,p.of)(n)),this}},{key:"get$",value:function(){var t;return(t=d.merge.apply(void 0,o(this._observables)),h.scan).call(t,function(t,e){return f({},t,e)})}}]),t}();t.exports=e.default},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()},function(t,e){!function(){t.exports=this[void 0]}()}]); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/isPlainObject"),require("rxjs/observable/of"),require("rxjs/observable/merge"),require("rxjs/operator/concatMap"),require("rxjs/operator/scan")):"function"==typeof define&&define.amd?define(["lodash/isPlainObject","rxjs/observable/of","rxjs/observable/merge","rxjs/operator/concatMap","rxjs/operator/scan"],t):"object"==typeof exports?exports.FrintComponentUtils=t(require("lodash/isPlainObject"),require("rxjs/observable/of"),require("rxjs/observable/merge"),require("rxjs/operator/concatMap"),require("rxjs/operator/scan")):e.FrintComponentUtils=t(e._.isPlainObject,e.Rx.Observable,e.Rx.Observable,e.Rx.Observable.prototype,e.Rx.Observable.prototype)}(this,function(e,t,r,n,o){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={app:null,component:null,initialize:function(){},beforeDestroy:function(){},getInitialData:function(){return{}},setData:function(e,t){},setDataWithCallback:function(e,t,r){this.setData(e,t),r()},getData:function(e){},getProp:function(e){},getProps:function(){},beforeMount:function(){},afterMount:function(){},beforeUpdate:function(){},shouldUpdate:function(e,t){},afterUpdate:function(){},getMountableComponent:function(e){return e.get("component")}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return!(!e||"function"!=typeof e.subscribe)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(3),u=n(o),a=r(0),i=n(a),s=r(1),f=n(s),c=r(4),l=n(c);t.default={composeHandlers:u.default,DefaultHandler:i.default,isObservable:f.default,streamProps:l.default},e.exports=t.default},function(e,t,r){"use strict";function n(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];[a.default].concat(r).forEach(function(t){Object.keys(t).forEach(function(r){e[r]=t[r],"function"==typeof t[r]&&(e[r]=e[r].bind(e))})})}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(n,[null].concat(t)))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(u);e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new x(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=i;var c=r(5),l=n(c),p=r(6),b=r(7),d=r(8),v=r(9),h=r(1),y=n(h),x=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this._observables=[(0,p.of)(t)]}return f(e,[{key:"_push",value:function(e){this._observables.push(e)}},{key:"set",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"string"==typeof e?this.setKey(e,r[0]):(0,l.default)(e)?this.setPlainObject(e):(0,y.default)(e)?this.setObservable.apply(this,[e].concat(r)):this}},{key:"setKey",value:function(e,t){return this._push((0,p.of)(u({},e,t))),this}},{key:"setPlainObject",value:function(e){return this._push((0,p.of)(e)),this}},{key:"setObservable",value:function(e){for(var t=e,r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach(function(e){var r;t=(r=t,d.concatMap).call(r,function(t){var r=e(t);return(0,y.default)(r)?r:(0,p.of)(r)})}),this._push(t),this}},{key:"setDispatch",value:function(e,t){var r={};return Object.keys(e).forEach(function(n){var o=e[n];r[n]=function(){return t.dispatch(o.apply(void 0,arguments))}}),this._push((0,p.of)(r)),this}},{key:"get$",value:function(){var e;return(e=b.merge.apply(void 0,o(this._observables)),v.scan).call(e,function(e,t){return s({},e,t)})}}]),e}();e.exports=t.default},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=o}])}); |
{ | ||
"name": "frint-component-utils", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Component utils package for Frint", | ||
@@ -36,3 +36,3 @@ "main": "lib/index.js", | ||
"cross-env": "^5.0.5", | ||
"frint-config": "^3.1.0" | ||
"frint-config": "^3.1.1" | ||
}, | ||
@@ -39,0 +39,0 @@ "bugs": { |
@@ -24,9 +24,6 @@ var webpack = require('webpack'); | ||
filename: filename, | ||
libraryTarget: 'this', | ||
libraryTarget: 'umd', | ||
library: 'FrintComponentUtils' | ||
}, | ||
externals: Object.assign({}, { | ||
'lodash': '_', | ||
'rxjs': 'Rx', | ||
}, externals), | ||
externals: externals, | ||
target: 'web', | ||
@@ -33,0 +30,0 @@ plugins: plugins, |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
42192
4.08%816
0.87%1
Infinity%