react-layer-stack
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,15 +0,14 @@ | ||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.ACTIONS = undefined;var _extends = Object.assign || function (target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i];for (var key in source) {if (Object.prototype.hasOwnProperty.call(source, key)) {target[key] = source[key];}}}return target;};var _reduxActions = require('redux-actions');function _toConsumableArray(arr) {if (Array.isArray(arr)) {for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {arr2[i] = arr[i];}return arr2;} else {return Array.from(arr);}}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _objectWithoutProperties(obj, keys) {var target = {};for (var i in obj) {if (keys.indexOf(i) >= 0) continue;if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;target[i] = obj[i];}return target;} | ||
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.ACTIONS = undefined;var _extends = Object.assign || function (target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i];for (var key in source) {if (Object.prototype.hasOwnProperty.call(source, key)) {target[key] = source[key];}}}return target;};var _helpers = require('./helpers');function _toConsumableArray(arr) {if (Array.isArray(arr)) {for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {arr2[i] = arr[i];}return arr2;} else {return Array.from(arr);}}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _objectWithoutProperties(obj, keys) {var target = {};for (var i in obj) {if (keys.indexOf(i) >= 0) continue;if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;target[i] = obj[i];}return target;} | ||
var ACTIONS = exports.ACTIONS = { | ||
register: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_REGISTER', function (id, renderFn, mountPointId) {return { id: id, renderFn: renderFn, mountPointId: mountPointId };}), | ||
unregister: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_UNREGISTER', function (id) {return { id: id };}), | ||
toggle: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_TOGGLE'), | ||
show: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_SHOW', function (id) {for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {args[_key - 1] = arguments[_key];}return { id: id, args: args };}), | ||
setArgs: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_SET_ARGS', function (id) {for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {args[_key2 - 1] = arguments[_key2];}return { id: id, args: args };}), | ||
hide: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_HIDE'), | ||
hideAll: (0, _reduxActions.createAction)('LAYER_STACK_VIEW_HIDE_ALL') };exports.default = | ||
register: (0, _helpers.createAction)('LAYER_STACK_VIEW_REGISTER', function (id, renderFn, mountPointId) {return { id: id, renderFn: renderFn, mountPointId: mountPointId };}), | ||
unregister: (0, _helpers.createAction)('LAYER_STACK_VIEW_UNREGISTER', function (id) {return { id: id };}), | ||
toggle: (0, _helpers.createAction)('LAYER_STACK_VIEW_TOGGLE'), | ||
show: (0, _helpers.createAction)('LAYER_STACK_VIEW_SHOW', function (id) {for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {args[_key - 1] = arguments[_key];}return { id: id, args: args };}), | ||
setArgs: (0, _helpers.createAction)('LAYER_STACK_VIEW_SET_ARGS', function (id) {for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {args[_key2 - 1] = arguments[_key2];}return { id: id, args: args };}), | ||
hide: (0, _helpers.createAction)('LAYER_STACK_VIEW_HIDE'), | ||
hideAll: (0, _helpers.createAction)('LAYER_STACK_VIEW_HIDE_ALL') };exports.default = | ||
(0, _reduxActions.handleActions)({ | ||
(0, _helpers.handleActions)({ | ||
'LAYER_STACK_VIEW_REGISTER': function LAYER_STACK_VIEW_REGISTER(_ref, _ref2) {var views = _ref.views;var state = _objectWithoutProperties(_ref, ['views']);var _ref2$payload = _ref2.payload;var id = _ref2$payload.id;var renderFn = _ref2$payload.renderFn;var mountPointId = _ref2$payload.mountPointId; | ||
@@ -16,0 +15,0 @@ if (views[id]) { |
{ | ||
"name": "react-layer-stack", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Simple but ubiquitously powerful and agnostic layering system for React. Useful for any kind of windowing/popover/modals/tooltip application", | ||
@@ -18,4 +18,3 @@ "repository": { | ||
"react-redux": "^4.4.5", | ||
"redux": "^3.6.0", | ||
"redux-actions": "^0.12.0" | ||
"redux": "^3.6.0" | ||
}, | ||
@@ -22,0 +21,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ [Live demo](https://fckt.github.io/react-layer-stack/) | ||
### Rationale | ||
`react`/`react-dom` comes comes with 2 basic assumptions/ideas: | ||
`react`/`react-dom` comes with 2 basic assumptions/ideas: | ||
- every UI is hierarchical naturally. This why we have the idea of "`components` wrap each other" | ||
@@ -76,3 +76,3 @@ - `react-dom` mounts (physically) child component to its parent DOM node by default | ||
`id: string` - a Layer identificator | ||
`id: string` - a Layer identificator. There could be only one layer with the same `id` | ||
@@ -79,0 +79,0 @@ `initialArgs` - initial arguments for a Layer |
@@ -1,3 +0,2 @@ | ||
import { handleActions } from 'redux-actions' | ||
import { createAction } from 'redux-actions' | ||
import { createAction, handleActions } from './helpers' | ||
@@ -4,0 +3,0 @@ export const ACTIONS = { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5751966
3
40
3821
3
- Removedredux-actions@^0.12.0
- Removedreduce-reducers@0.1.5(transitive)
- Removedredux-actions@0.12.0(transitive)