piral-menu
Advanced tools
Comparing version 0.9.3 to 0.10.0-pre.823
@@ -6,9 +6,9 @@ "use strict"; | ||
function registerMenuItem(ctx, name, value) { | ||
react_atom_1.swap(ctx, state => (Object.assign({}, state, { registry: Object.assign({}, state.registry, { menuItems: piral_core_1.withKey(state.registry.menuItems, name, value) }) }))); | ||
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { registry: Object.assign(Object.assign({}, state.registry), { menuItems: piral_core_1.withKey(state.registry.menuItems, name, value) }) }))); | ||
} | ||
exports.registerMenuItem = registerMenuItem; | ||
function unregisterMenuItem(ctx, name) { | ||
react_atom_1.swap(ctx, state => (Object.assign({}, state, { registry: Object.assign({}, state.registry, { menuItems: piral_core_1.withoutKey(state.registry.menuItems, name) }) }))); | ||
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { registry: Object.assign(Object.assign({}, state.registry), { menuItems: piral_core_1.withoutKey(state.registry.menuItems, name) }) }))); | ||
} | ||
exports.unregisterMenuItem = unregisterMenuItem; | ||
//# sourceMappingURL=actions.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
function getSettings(defaultSettings, customSettings = {}) { | ||
return Object.assign({ type: 'general' }, defaultSettings, customSettings); | ||
return Object.assign(Object.assign({ type: 'general' }, defaultSettings), customSettings); | ||
} | ||
@@ -30,3 +30,3 @@ function getMenuItems(items, defaultSettings) { | ||
context.defineActions(actions); | ||
react_atom_1.swap(context.state, state => (Object.assign({}, state, { components: Object.assign({}, state.components, { MenuContainer: default_1.DefaultContainer, MenuItem: default_1.DefaultItem }), registry: Object.assign({}, state.registry, { menuItems: getMenuItems(items, defaultSettings) }) }))); | ||
react_atom_1.swap(context.state, state => (Object.assign(Object.assign({}, state), { components: Object.assign(Object.assign({}, state.components), { MenuContainer: default_1.DefaultContainer, MenuItem: default_1.DefaultItem }), registry: Object.assign(Object.assign({}, state.registry), { menuItems: getMenuItems(items, defaultSettings) }) }))); | ||
return (api, target) => { | ||
@@ -33,0 +33,0 @@ const pilet = target.name; |
{ | ||
"name": "piral-menu", | ||
"version": "0.9.3", | ||
"version": "0.10.0-pre.823", | ||
"description": "Plugin for the integration of menu items in Piral.", | ||
@@ -39,8 +39,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"piral-core": "^0.9.3" | ||
"piral-core": "^0.10.0-pre.823" | ||
}, | ||
"peerDependencies": { | ||
"piral-core": "^0.9.0" | ||
"piral-core": "^0.9.0 || ^0.10.0" | ||
}, | ||
"gitHead": "a079ff637821eeacd28f1209593b778e370d0366" | ||
"gitHead": "6ffae5945e28b7d86c7701e25aa3b2698e32a985" | ||
} |
Sorry, the diff of this file is not supported yet
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
28966