@valo/extensibility
Advanced tools
Comparing version 1.8.0-1fd84447d6a5e2c8d22178b3c24c50bc47b0692a to 1.8.0-32bfab0538dcbaa2b8dadd563cf617482160ad5b
@@ -6,4 +6,5 @@ { | ||
"ProviderService": "1.1.0", | ||
"TriggerService": "1.1.0" | ||
"TriggerService": "1.1.0", | ||
"DynamicDataEventEmitter": "1.0.0" | ||
} | ||
} |
@@ -1,3 +0,2 @@ | ||
import { IBaseDataSourceProvider, IDataSourceData } from '..'; | ||
import { IPagingSettings } from '../models/IPagingSettings'; | ||
import { IBaseDataSourceProvider, IDataSourceData, IPagingSettings } from '..'; | ||
import { WebPartContext, IPropertyPaneGroup } from '@microsoft/sp-webpart-base'; | ||
@@ -4,0 +3,0 @@ export declare abstract class BaseDataSourceProvider<T> implements IBaseDataSourceProvider<T> { |
import { ContextData } from '.'; | ||
import { KeyValue } from '../basic'; | ||
/** | ||
@@ -10,2 +11,6 @@ * Version 1.8 (beta) | ||
contentTypeName?: string; | ||
/** | ||
* An array containing pairs: FieldInternalName : Initial panel value | ||
*/ | ||
initialPanelValues?: KeyValue; | ||
} |
export * from './CallToAction'; | ||
export * from './DataSource'; | ||
export * from './ExtensibilityWindow'; | ||
@@ -8,5 +7,2 @@ export * from './ExtensionPoint'; | ||
export * from './ExtensionTrigger'; | ||
export * from './IBaseDataSourceProvider'; | ||
export * from './IDataSourceData'; | ||
export * from './IPagingSettings'; | ||
export * from './IUserProperties'; | ||
@@ -27,3 +23,2 @@ export * from './IWebComponentDefinition'; | ||
export * from './StorageType'; | ||
export * from './UnbindedDataSource'; | ||
export * from './UnbindedDefer'; | ||
@@ -34,3 +29,6 @@ export * from './UnbindedExtensionPoint'; | ||
export * from './UnbindedTriggerDefer'; | ||
export * from "./universalWPModel"; | ||
export * from "./hbsTemplates"; | ||
export * from "./contextTriggerStructures"; | ||
export * from "./dynamicData"; | ||
export * from "./basic"; |
@@ -7,1 +7,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./contextTriggerStructures"), exports); | ||
tslib_1.__exportStar(require("./dynamicData"), exports); |
@@ -13,2 +13,3 @@ export interface MyToolsItems { | ||
title: string; | ||
description?: string; | ||
category?: string; | ||
@@ -15,0 +16,0 @@ icon?: string; |
@@ -13,2 +13,3 @@ import { LanguageLabel } from '.'; | ||
title: string; | ||
description?: string; | ||
icon?: string; | ||
@@ -15,0 +16,0 @@ link?: string; |
@@ -20,4 +20,5 @@ import { ExtensionPoint, IntranetLocation } from '..'; | ||
* @param {Function} updateRegistrationCb - Callback function when extension is ready | ||
* @param {boolean} mutli - Specifies if the extension supports multiple registrations | ||
*/ | ||
registerListener(extensionLocation: IntranetLocation, updateRegistrationCb: () => void): ExtensionPoint | null; | ||
registerListener(extensionLocation: IntranetLocation, updateRegistrationCb: () => void, multi?: boolean): ExtensionPoint | ExtensionPoint[] | null; | ||
/** | ||
@@ -28,3 +29,3 @@ * Use this to retrieve already binded extension point listeners {external} | ||
*/ | ||
getListener(extensionLocation: IntranetLocation): ExtensionPoint | null; | ||
getListener(extensionLocation: IntranetLocation, multi?: boolean): ExtensionPoint | ExtensionPoint[] | null; | ||
} |
@@ -57,7 +57,9 @@ "use strict"; | ||
* @param {Function} updateRegistrationCb - Callback function when extension is ready | ||
* @param {boolean} mutli - Specifies if the extension supports multiple registrations | ||
*/ | ||
ExtensionService.prototype.registerListener = function (extensionLocation, updateRegistrationCb) { | ||
var foundExt = this.getListener(extensionLocation); | ||
ExtensionService.prototype.registerListener = function (extensionLocation, updateRegistrationCb, multi) { | ||
if (multi === void 0) { multi = false; } | ||
var foundExts = this.getListener(extensionLocation, multi); | ||
// Register the unbinded WP | ||
if (!foundExt) { | ||
if (!foundExts) { | ||
// Check if the binding already exist | ||
@@ -75,3 +77,3 @@ var unbindedWp = sp_lodash_subset_1.find(this.unbindedExtPoints, function (ds) { return ds.location === extensionLocation; }); | ||
} | ||
return foundExt; | ||
return foundExts; | ||
}; | ||
@@ -83,3 +85,7 @@ /** | ||
*/ | ||
ExtensionService.prototype.getListener = function (extensionLocation) { | ||
ExtensionService.prototype.getListener = function (extensionLocation, multi) { | ||
if (multi === void 0) { multi = false; } | ||
if (multi) { | ||
return this.extPoints.filter(function (ext) { return ext.location === extensionLocation; }); | ||
} | ||
return sp_lodash_subset_1.find(this.extPoints, function (ext) { return ext.location === extensionLocation; }); | ||
@@ -86,0 +92,0 @@ }; |
@@ -6,1 +6,2 @@ export * from './DataSourceService'; | ||
export * from './WebComponentService'; | ||
export * from "./DynamicDataEventEmitter"; |
@@ -9,1 +9,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./WebComponentService"), exports); | ||
tslib_1.__exportStar(require("./DynamicDataEventEmitter"), exports); |
@@ -5,1 +5,2 @@ export declare const DataSourceServiceVersion: string; | ||
export declare const TriggerServiceVersion: string; | ||
export declare const DynamicDataEventEmitterVersion: string; |
@@ -7,1 +7,2 @@ "use strict"; | ||
exports.TriggerServiceVersion = "1_1_0"; | ||
exports.DynamicDataEventEmitterVersion = "1_0_0"; |
{ | ||
"name": "@valo/extensibility", | ||
"version": "1.8.0-1fd84447d6a5e2c8d22178b3c24c50bc47b0692a", | ||
"version": "1.8.0-32bfab0538dcbaa2b8dadd563cf617482160ad5b", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
88501
160
2377