piral-dashboard
Advanced tools
Comparing version 0.9.3 to 0.10.0-pre.823
@@ -6,9 +6,9 @@ "use strict"; | ||
function registerTile(ctx, name, value) { | ||
react_atom_1.swap(ctx, state => (Object.assign({}, state, { registry: Object.assign({}, state.registry, { tiles: piral_core_1.withKey(state.registry.tiles, name, value) }) }))); | ||
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { registry: Object.assign(Object.assign({}, state.registry), { tiles: piral_core_1.withKey(state.registry.tiles, name, value) }) }))); | ||
} | ||
exports.registerTile = registerTile; | ||
function unregisterTile(ctx, name) { | ||
react_atom_1.swap(ctx, state => (Object.assign({}, state, { registry: Object.assign({}, state.registry, { tiles: piral_core_1.withoutKey(state.registry.tiles, name) }) }))); | ||
react_atom_1.swap(ctx, state => (Object.assign(Object.assign({}, state), { registry: Object.assign(Object.assign({}, state.registry), { tiles: piral_core_1.withoutKey(state.registry.tiles, name) }) }))); | ||
} | ||
exports.unregisterTile = unregisterTile; | ||
//# sourceMappingURL=actions.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
function getPreferences(defaultPreferences, customPreferences = {}) { | ||
return Object.assign({}, defaultPreferences, customPreferences); | ||
return Object.assign(Object.assign({}, defaultPreferences), customPreferences); | ||
} | ||
@@ -30,3 +30,3 @@ function getTiles(items, defaultPreferences) { | ||
context.defineActions(actions); | ||
react_atom_1.swap(context.state, state => (Object.assign({}, state, { components: Object.assign({}, state.components, { DashboardTile: default_1.DefaultTile, DashboardContainer: default_1.DefaultContainer }), registry: Object.assign({}, state.registry, { tiles: getTiles(tiles, defaultPreferences) }) }))); | ||
react_atom_1.swap(context.state, state => (Object.assign(Object.assign({}, state), { components: Object.assign(Object.assign({}, state.components), { DashboardTile: default_1.DefaultTile, DashboardContainer: default_1.DefaultContainer }), registry: Object.assign(Object.assign({}, state.registry), { tiles: getTiles(tiles, defaultPreferences) }) }))); | ||
return (api, target) => { | ||
@@ -33,0 +33,0 @@ const pilet = target.name; |
{ | ||
"name": "piral-dashboard", | ||
"version": "0.9.3", | ||
"version": "0.10.0-pre.823", | ||
"description": "Plugin for creating a centralized dashboard in Piral.", | ||
@@ -40,8 +40,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
33090