@webprovisions/platform
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -9,3 +9,3 @@ import Implementation from '../implementation'; | ||
Implementation = "implementation", | ||
Widget = "widget", | ||
Widget = "widget" | ||
} | ||
@@ -20,3 +20,3 @@ export declare enum ConfigurationStage { | ||
*/ | ||
Post = "post", | ||
Post = "post" | ||
} | ||
@@ -23,0 +23,0 @@ export interface ConfigurationInstruction { |
@@ -0,1 +1,8 @@ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import { selectWidgets } from '../selectors'; | ||
@@ -41,3 +48,3 @@ import ns from '../namespace'; | ||
if (typeof commandDescriptor_1.defaultArgs !== 'undefined') { | ||
applyCommand.apply(void 0, [commandDescriptor_1].concat(commandDescriptor_1.defaultArgs)); | ||
applyCommand.apply(void 0, __spreadArrays([commandDescriptor_1], commandDescriptor_1.defaultArgs)); | ||
} | ||
@@ -50,3 +57,3 @@ target[key] = (function () { | ||
var trackedCommandDescriptor = Object.assign({}, commandDescriptor_1, { handlerResolver: commandDescriptor_1.handlerResolver.bind({}) }); | ||
applyCommand.apply(void 0, [trackedCommandDescriptor].concat(args)); | ||
applyCommand.apply(void 0, __spreadArrays([trackedCommandDescriptor], args)); | ||
return target; | ||
@@ -53,0 +60,0 @@ }); |
import { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions } from './configurator'; | ||
import configure, { ConfigureCallback } from './configure'; | ||
import { ConfigurationApiDefinition, createConfigurationApi } from './api-builder'; | ||
export { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions, configure, ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi }; | ||
export { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions, configure, ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi, }; |
@@ -7,8 +7,11 @@ import { ConfigurationStage, ConfigurationScope } from './configurator'; | ||
builder | ||
// config.types.register: | ||
.createCommand('types.register', { scope: ConfigurationScope.Implementation, stage: ConfigurationStage.Pre }, function (context) { return function (key, type) { | ||
context.container.get('$types')[key] = type; | ||
}; }) | ||
// config.type: | ||
.createCommand('type', { stage: ConfigurationStage.Pre }, function (context) { return function (key) { | ||
context.container.register('$type', key); | ||
}; }) | ||
// config.settings: | ||
.createCommand('settings', { stage: ConfigurationStage.Pre, defaultArgs: [null] }, function (context) { return function (settings) { | ||
@@ -18,2 +21,3 @@ context.events.dispatch('settings:change', settings, { bubbles: true }); | ||
}; }) | ||
// config.plugin: | ||
.createCommand('plugin', { stage: ConfigurationStage.Pre }, function (context) { return function (plugin, settings) { | ||
@@ -47,11 +51,15 @@ var container = context.container; | ||
}; }) | ||
// config.container.register: | ||
.createCommand('container.register', function (context) { return function (key, value) { | ||
context.container.register(key, value); | ||
}; }) | ||
// config.container.registerAsync: | ||
.createCommand('container.registerAsync', function (context) { return function (key, factory) { | ||
context.container.registerAsync(key, factory); | ||
}; }) | ||
// config.container.registerFactory: | ||
.createCommand('container.registerFactory', function (context) { return function (key, factory) { | ||
context.container.registerFactory(key, factory); | ||
}; }) | ||
// config.container.touch: | ||
.createCommand('container.touch', function (context) { return function (key, handler) { | ||
@@ -58,0 +66,0 @@ context.container.touch(key, handler); |
@@ -154,16 +154,19 @@ import ns from '../namespace'; | ||
var resolver = resolvers.get(key); | ||
if (resolver) { | ||
if (resolver.constructed) { | ||
Promise.resolve(resolver.resolve()).then(function (value) { | ||
handler(value, _this); | ||
}); | ||
var isConstructed = resolver && resolver.constructed; | ||
if (isConstructed) { | ||
// value is already constructed and can be touched directly | ||
Promise.resolve(resolver.resolve()).then(function (value) { | ||
handler(value, _this); | ||
}); | ||
} | ||
else { | ||
// queue the touch handler if value isn't already constructed | ||
var queue = internal(this).touchQueue; | ||
var handlers = queue.get(key); | ||
if (!handlers) { | ||
handlers = []; | ||
queue.set(key, handlers); | ||
} | ||
handlers.push(handler); | ||
} | ||
var queue = internal(this).touchQueue; | ||
var handlers = queue.get(key); | ||
if (!handlers) { | ||
handlers = []; | ||
queue.set(key, handlers); | ||
} | ||
handlers.push(handler); | ||
if (this.parent && !resolver) { | ||
@@ -170,0 +173,0 @@ return this.parent.touch(key, handler); |
@@ -23,4 +23,4 @@ import { Container } from './dependency-injection'; | ||
function Environment(name, configurationApiExtensions) { | ||
var _this = this; | ||
if (configurationApiExtensions === void 0) { configurationApiExtensions = []; } | ||
var _this = this; | ||
/** | ||
@@ -27,0 +27,0 @@ * A `QueryList` containing all widgets in the environment. |
@@ -108,3 +108,3 @@ import ns from '../namespace'; | ||
var sequence = Promise.resolve(); | ||
for (i = 0; i < l; i++) { | ||
for (i = 0; i < l; i++) { // tslint:disable-line no-increment-decrement | ||
(function (listener) { | ||
@@ -139,3 +139,3 @@ sequence = sequence.then(function (canceled) { | ||
var canceled = false; | ||
for (i = 0; i < l; i++) { | ||
for (i = 0; i < l; i++) { // tslint:disable-line no-increment-decrement | ||
listeners[i](event, data); | ||
@@ -142,0 +142,0 @@ if (event.defaultPrevented) { |
@@ -1,2 +0,2 @@ | ||
export { default as EventManager, EventListener, EventSubscriptionCancellation } from './event-manager'; | ||
export { default as EventManager, EventListener, EventSubscriptionCancellation, } from './event-manager'; | ||
export { default as EventObject } from './event-object'; |
export { default as Environment, createEnvironment, EnvironmentConfiguration } from './environment'; | ||
export { default as Implementation, ImplementationConfiguration } from './implementation'; | ||
export { EventManager, EventListener, EventSubscriptionCancellation, EventObject } from './events'; | ||
export { EventManager, EventListener, EventSubscriptionCancellation, EventObject, } from './events'; | ||
export { Container } from './dependency-injection'; | ||
export { WidgetType, Plugin, Widget, WidgetController, destroy, destroy as destroyWidget, WidgetSettings } from './widgets'; | ||
export { WidgetType, Plugin, Widget, WidgetController, destroy, destroy as destroyWidget, WidgetSettings, } from './widgets'; | ||
export { PluginSettings } from './widgets/plugin'; | ||
export { ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi } from './configuration'; | ||
export { Configurator, ConfigurationStage, ConfigurationScope } from './configuration/configurator'; | ||
export { ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi, } from './configuration'; | ||
export { Configurator, ConfigurationStage, ConfigurationScope, } from './configuration/configurator'; | ||
export { default as logger } from './logger'; | ||
export { WidgetSelector, ImplementationSelector, selectWidgets, selectImplementations } from './selectors'; | ||
export { WidgetSelector, ImplementationSelector, selectWidgets, selectImplementations, } from './selectors'; | ||
export { default as version } from './version'; |
@@ -5,3 +5,3 @@ import { Container } from './dependency-injection'; | ||
Warning = "warning", | ||
Error = "error", | ||
Error = "error" | ||
} | ||
@@ -8,0 +8,0 @@ export interface LogDispatcher { |
@@ -0,1 +1,8 @@ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
export var LoggerLevel; | ||
@@ -17,9 +24,9 @@ (function (LoggerLevel) { | ||
case LoggerLevel.Info: | ||
console.info.apply(console, [message].concat(args)); | ||
console.info.apply(console, __spreadArrays([message], args)); | ||
break; | ||
case LoggerLevel.Warning: | ||
console.warn.apply(console, [message].concat(args)); | ||
console.warn.apply(console, __spreadArrays([message], args)); | ||
break; | ||
case LoggerLevel.Error: | ||
console.error.apply(console, [message].concat(args)); | ||
console.error.apply(console, __spreadArrays([message], args)); | ||
break; | ||
@@ -36,3 +43,3 @@ } | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Info, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Info, text], args)); | ||
}, | ||
@@ -44,3 +51,3 @@ warn: function (text) { | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Warning, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Warning, text], args)); | ||
}, | ||
@@ -52,3 +59,3 @@ error: function (text) { | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Error, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Error, text], args)); | ||
}, | ||
@@ -55,0 +62,0 @@ }; |
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -6,0 +9,0 @@ extendStatics(d, b); |
@@ -1,2 +0,2 @@ | ||
export default 'master (1191bb5)'; | ||
export default 'master (24aba69)'; | ||
//# sourceMappingURL=version.js.map |
import Widget from './widget'; | ||
declare const _default: (widget: Widget) => Promise<void>; | ||
/** | ||
* Destroys a widget by deactivating it, detaching its `EventManager` and `Container`, and removing | ||
* it from its implementation. This is the opposite of `Implementation.createWidget()`. | ||
* @param widget Widget to destroy. | ||
*/ | ||
export default _default; |
@@ -12,3 +12,3 @@ import { Container } from '../dependency-injection'; | ||
container: Container; | ||
settings: PluginSettings; | ||
settings?: PluginSettings; | ||
widget: Widget; | ||
@@ -15,0 +15,0 @@ events: EventManager; |
@@ -0,1 +1,8 @@ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import logger from '../logger'; | ||
@@ -112,3 +119,3 @@ export var invokePlugins = function (container, method, data) { | ||
if (invoke) { | ||
return invoke.call.apply(invoke, [instance, command].concat(args)); | ||
return invoke.call.apply(invoke, __spreadArrays([instance, command], args)); | ||
} | ||
@@ -115,0 +122,0 @@ }); |
@@ -22,3 +22,3 @@ import Implementation from '../implementation'; | ||
Deactivating = "deactivating", | ||
Deactivated = "deactivated", | ||
Deactivated = "deactivated" | ||
} | ||
@@ -25,0 +25,0 @@ export default class Widget { |
@@ -0,1 +1,8 @@ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import WidgetController from './widget-controller'; | ||
@@ -147,4 +154,4 @@ import logger from '../logger'; | ||
.then(function () { | ||
return (_a = _this.container.get('$controller')).invoke.apply(_a, [command].concat(args)); | ||
var _a; | ||
return (_a = _this.container.get('$controller')).invoke.apply(_a, __spreadArrays([command], args)); | ||
}); | ||
@@ -161,3 +168,3 @@ }; | ||
unsubscribe(); | ||
resolve(doInvoke.apply(void 0, [command].concat(args))); | ||
resolve(doInvoke.apply(void 0, __spreadArrays([command], args))); | ||
} | ||
@@ -167,3 +174,3 @@ }); | ||
} | ||
return doInvoke.apply(void 0, [command].concat(args)); | ||
return doInvoke.apply(void 0, __spreadArrays([command], args)); | ||
}; | ||
@@ -170,0 +177,0 @@ /** |
@@ -9,3 +9,3 @@ import Implementation from '../implementation'; | ||
Implementation = "implementation", | ||
Widget = "widget", | ||
Widget = "widget" | ||
} | ||
@@ -20,3 +20,3 @@ export declare enum ConfigurationStage { | ||
*/ | ||
Post = "post", | ||
Post = "post" | ||
} | ||
@@ -23,0 +23,0 @@ export interface ConfigurationInstruction { |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -44,3 +51,3 @@ var selectors_1 = require("../selectors"); | ||
if (typeof commandDescriptor_1.defaultArgs !== 'undefined') { | ||
applyCommand.apply(void 0, [commandDescriptor_1].concat(commandDescriptor_1.defaultArgs)); | ||
applyCommand.apply(void 0, __spreadArrays([commandDescriptor_1], commandDescriptor_1.defaultArgs)); | ||
} | ||
@@ -53,3 +60,3 @@ target[key] = (function () { | ||
var trackedCommandDescriptor = Object.assign({}, commandDescriptor_1, { handlerResolver: commandDescriptor_1.handlerResolver.bind({}) }); | ||
applyCommand.apply(void 0, [trackedCommandDescriptor].concat(args)); | ||
applyCommand.apply(void 0, __spreadArrays([trackedCommandDescriptor], args)); | ||
return target; | ||
@@ -56,0 +63,0 @@ }); |
import { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions } from './configurator'; | ||
import configure, { ConfigureCallback } from './configure'; | ||
import { ConfigurationApiDefinition, createConfigurationApi } from './api-builder'; | ||
export { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions, configure, ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi }; | ||
export { ConfigurationInstruction, ConfigurationStage, ConfigurationScope, clearContextRoot, matchInstructions, configure, ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi, }; |
@@ -9,8 +9,11 @@ "use strict"; | ||
builder | ||
// config.types.register: | ||
.createCommand('types.register', { scope: configurator_1.ConfigurationScope.Implementation, stage: configurator_1.ConfigurationStage.Pre }, function (context) { return function (key, type) { | ||
context.container.get('$types')[key] = type; | ||
}; }) | ||
// config.type: | ||
.createCommand('type', { stage: configurator_1.ConfigurationStage.Pre }, function (context) { return function (key) { | ||
context.container.register('$type', key); | ||
}; }) | ||
// config.settings: | ||
.createCommand('settings', { stage: configurator_1.ConfigurationStage.Pre, defaultArgs: [null] }, function (context) { return function (settings) { | ||
@@ -20,2 +23,3 @@ context.events.dispatch('settings:change', settings, { bubbles: true }); | ||
}; }) | ||
// config.plugin: | ||
.createCommand('plugin', { stage: configurator_1.ConfigurationStage.Pre }, function (context) { return function (plugin, settings) { | ||
@@ -49,11 +53,15 @@ var container = context.container; | ||
}; }) | ||
// config.container.register: | ||
.createCommand('container.register', function (context) { return function (key, value) { | ||
context.container.register(key, value); | ||
}; }) | ||
// config.container.registerAsync: | ||
.createCommand('container.registerAsync', function (context) { return function (key, factory) { | ||
context.container.registerAsync(key, factory); | ||
}; }) | ||
// config.container.registerFactory: | ||
.createCommand('container.registerFactory', function (context) { return function (key, factory) { | ||
context.container.registerFactory(key, factory); | ||
}; }) | ||
// config.container.touch: | ||
.createCommand('container.touch', function (context) { return function (key, handler) { | ||
@@ -60,0 +68,0 @@ context.container.touch(key, handler); |
@@ -156,16 +156,19 @@ "use strict"; | ||
var resolver = resolvers.get(key); | ||
if (resolver) { | ||
if (resolver.constructed) { | ||
Promise.resolve(resolver.resolve()).then(function (value) { | ||
handler(value, _this); | ||
}); | ||
var isConstructed = resolver && resolver.constructed; | ||
if (isConstructed) { | ||
// value is already constructed and can be touched directly | ||
Promise.resolve(resolver.resolve()).then(function (value) { | ||
handler(value, _this); | ||
}); | ||
} | ||
else { | ||
// queue the touch handler if value isn't already constructed | ||
var queue = internal(this).touchQueue; | ||
var handlers = queue.get(key); | ||
if (!handlers) { | ||
handlers = []; | ||
queue.set(key, handlers); | ||
} | ||
handlers.push(handler); | ||
} | ||
var queue = internal(this).touchQueue; | ||
var handlers = queue.get(key); | ||
if (!handlers) { | ||
handlers = []; | ||
queue.set(key, handlers); | ||
} | ||
handlers.push(handler); | ||
if (this.parent && !resolver) { | ||
@@ -172,0 +175,0 @@ return this.parent.touch(key, handler); |
@@ -26,4 +26,4 @@ "use strict"; | ||
function Environment(name, configurationApiExtensions) { | ||
var _this = this; | ||
if (configurationApiExtensions === void 0) { configurationApiExtensions = []; } | ||
var _this = this; | ||
/** | ||
@@ -30,0 +30,0 @@ * A `QueryList` containing all widgets in the environment. |
@@ -110,3 +110,3 @@ "use strict"; | ||
var sequence = Promise.resolve(); | ||
for (i = 0; i < l; i++) { | ||
for (i = 0; i < l; i++) { // tslint:disable-line no-increment-decrement | ||
(function (listener) { | ||
@@ -141,3 +141,3 @@ sequence = sequence.then(function (canceled) { | ||
var canceled = false; | ||
for (i = 0; i < l; i++) { | ||
for (i = 0; i < l; i++) { // tslint:disable-line no-increment-decrement | ||
listeners[i](event, data); | ||
@@ -144,0 +144,0 @@ if (event.defaultPrevented) { |
@@ -1,2 +0,2 @@ | ||
export { default as EventManager, EventListener, EventSubscriptionCancellation } from './event-manager'; | ||
export { default as EventManager, EventListener, EventSubscriptionCancellation, } from './event-manager'; | ||
export { default as EventObject } from './event-object'; |
export { default as Environment, createEnvironment, EnvironmentConfiguration } from './environment'; | ||
export { default as Implementation, ImplementationConfiguration } from './implementation'; | ||
export { EventManager, EventListener, EventSubscriptionCancellation, EventObject } from './events'; | ||
export { EventManager, EventListener, EventSubscriptionCancellation, EventObject, } from './events'; | ||
export { Container } from './dependency-injection'; | ||
export { WidgetType, Plugin, Widget, WidgetController, destroy, destroy as destroyWidget, WidgetSettings } from './widgets'; | ||
export { WidgetType, Plugin, Widget, WidgetController, destroy, destroy as destroyWidget, WidgetSettings, } from './widgets'; | ||
export { PluginSettings } from './widgets/plugin'; | ||
export { ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi } from './configuration'; | ||
export { Configurator, ConfigurationStage, ConfigurationScope } from './configuration/configurator'; | ||
export { ConfigureCallback, ConfigurationApiDefinition, createConfigurationApi, } from './configuration'; | ||
export { Configurator, ConfigurationStage, ConfigurationScope, } from './configuration/configurator'; | ||
export { default as logger } from './logger'; | ||
export { WidgetSelector, ImplementationSelector, selectWidgets, selectImplementations } from './selectors'; | ||
export { WidgetSelector, ImplementationSelector, selectWidgets, selectImplementations, } from './selectors'; | ||
export { default as version } from './version'; |
@@ -5,3 +5,3 @@ import { Container } from './dependency-injection'; | ||
Warning = "warning", | ||
Error = "error", | ||
Error = "error" | ||
} | ||
@@ -8,0 +8,0 @@ export interface LogDispatcher { |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -19,9 +26,9 @@ var LoggerLevel; | ||
case LoggerLevel.Info: | ||
console.info.apply(console, [message].concat(args)); | ||
console.info.apply(console, __spreadArrays([message], args)); | ||
break; | ||
case LoggerLevel.Warning: | ||
console.warn.apply(console, [message].concat(args)); | ||
console.warn.apply(console, __spreadArrays([message], args)); | ||
break; | ||
case LoggerLevel.Error: | ||
console.error.apply(console, [message].concat(args)); | ||
console.error.apply(console, __spreadArrays([message], args)); | ||
break; | ||
@@ -38,3 +45,3 @@ } | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Info, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Info, text], args)); | ||
}, | ||
@@ -46,3 +53,3 @@ warn: function (text) { | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Warning, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Warning, text], args)); | ||
}, | ||
@@ -54,3 +61,3 @@ error: function (text) { | ||
} | ||
return write.apply(void 0, [container, LoggerLevel.Error, text].concat(args)); | ||
return write.apply(void 0, __spreadArrays([container, LoggerLevel.Error, text], args)); | ||
}, | ||
@@ -57,0 +64,0 @@ }; |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -7,0 +10,0 @@ extendStatics(d, b); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = 'master (1191bb5)'; | ||
exports.default = 'master (24aba69)'; | ||
//# sourceMappingURL=version.js.map |
import Widget from './widget'; | ||
declare const _default: (widget: Widget) => Promise<void>; | ||
/** | ||
* Destroys a widget by deactivating it, detaching its `EventManager` and `Container`, and removing | ||
* it from its implementation. This is the opposite of `Implementation.createWidget()`. | ||
* @param widget Widget to destroy. | ||
*/ | ||
export default _default; |
@@ -12,3 +12,3 @@ import { Container } from '../dependency-injection'; | ||
container: Container; | ||
settings: PluginSettings; | ||
settings?: PluginSettings; | ||
widget: Widget; | ||
@@ -15,0 +15,0 @@ events: EventManager; |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -114,3 +121,3 @@ var logger_1 = require("../logger"); | ||
if (invoke) { | ||
return invoke.call.apply(invoke, [instance, command].concat(args)); | ||
return invoke.call.apply(invoke, __spreadArrays([instance, command], args)); | ||
} | ||
@@ -117,0 +124,0 @@ }); |
@@ -22,3 +22,3 @@ import Implementation from '../implementation'; | ||
Deactivating = "deactivating", | ||
Deactivated = "deactivated", | ||
Deactivated = "deactivated" | ||
} | ||
@@ -25,0 +25,0 @@ export default class Widget { |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -149,4 +156,4 @@ var widget_controller_1 = require("./widget-controller"); | ||
.then(function () { | ||
return (_a = _this.container.get('$controller')).invoke.apply(_a, [command].concat(args)); | ||
var _a; | ||
return (_a = _this.container.get('$controller')).invoke.apply(_a, __spreadArrays([command], args)); | ||
}); | ||
@@ -163,3 +170,3 @@ }; | ||
unsubscribe(); | ||
resolve(doInvoke.apply(void 0, [command].concat(args))); | ||
resolve(doInvoke.apply(void 0, __spreadArrays([command], args))); | ||
} | ||
@@ -169,3 +176,3 @@ }); | ||
} | ||
return doInvoke.apply(void 0, [command].concat(args)); | ||
return doInvoke.apply(void 0, __spreadArrays([command], args)); | ||
}; | ||
@@ -172,0 +179,0 @@ /** |
{ | ||
"name": "@webprovisions/platform", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Webprovisions core platform modules.", | ||
@@ -17,7 +17,5 @@ "author": "Telia Company AB", | ||
"devDependencies": { | ||
"@types/node": "^8.0.47", | ||
"clean-dir": "^1.0.3", | ||
"git-rev-sync": "^1.12.0", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.7.1" | ||
"tslint": "^5.9.1" | ||
}, | ||
@@ -36,3 +34,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "8107a3f9af7dc66f26c579d9ffc69dd3a30de24c" | ||
"gitHead": "8dc47a268c5b677be975e4914967cae925472bf1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3
4739
308920