@valo/extensibility
Advanced tools
Comparing version 0.0.1-e14b21f09c3f307ebcea99b8deb08b79790333d6 to 1.0.0-efd7a5ac2e353988ea9f28c885ad90912cabc0e9
import { IPropertyPaneGroup, WebPartContext } from "@microsoft/sp-webpart-base"; | ||
export declare abstract class BaseDataSourceProvider { | ||
protected ctx: WebPartContext; | ||
protected properties: {}; | ||
protected updateTriggerFnc?: () => void; | ||
constructor(ctx: WebPartContext, properties: {}, updateTriggerFnc?: () => void); | ||
import { ApplicationCustomizerContext } from "@microsoft/sp-application-base"; | ||
import { IBaseDataSourceProvider, PagingType, DataSourceData } from '..'; | ||
export declare abstract class BaseDataSourceProvider implements IBaseDataSourceProvider { | ||
protected ctx: WebPartContext | ApplicationCustomizerContext; | ||
protected properties: any; | ||
protected updateTriggerFnc: () => void; | ||
init(ctx: WebPartContext | ApplicationCustomizerContext, properties: {}, updateTriggerFnc?: () => void): void; | ||
/** | ||
@@ -19,3 +21,3 @@ * Retrieves the web part configuration properties | ||
*/ | ||
getData(lastUpdated: string): Promise<any>; | ||
getData(lastUpdated: string): Promise<DataSourceData>; | ||
/** | ||
@@ -31,8 +33,7 @@ * Returns the data source data for the current page | ||
*/ | ||
protected initProperties(): Promise<void>; | ||
initProperties(): Promise<void>; | ||
/** | ||
* Initializes the paging option (no paging by default). | ||
* If 'true' the data source should provide the 'itemsCountPerPage' Web part property and the data source data format should provide an 'items' property to iterate through. | ||
* Initializes the paging option (no paging by default) | ||
*/ | ||
protected isPagingEnabled(): boolean; | ||
getPagingType(): PagingType; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var __1 = require(".."); | ||
var BaseDataSourceProvider = /** @class */ (function () { | ||
function BaseDataSourceProvider(ctx, properties, updateTriggerFnc) { | ||
function BaseDataSourceProvider() { | ||
this.updateTriggerFnc = null; | ||
} | ||
BaseDataSourceProvider.prototype.init = function (ctx, properties, updateTriggerFnc) { | ||
this.ctx = ctx; | ||
this.properties = properties; | ||
this.updateTriggerFnc = updateTriggerFnc; | ||
} | ||
}; | ||
/** | ||
@@ -48,10 +52,11 @@ * Retrieves the web part configuration properties | ||
BaseDataSourceProvider.prototype.initProperties = function () { | ||
return Promise.resolve(); | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { | ||
return [2 /*return*/]; | ||
}); }); | ||
}; | ||
/** | ||
* Initializes the paging option (no paging by default). | ||
* If 'true' the data source should provide the 'itemsCountPerPage' Web part property and the data source data format should provide an 'items' property to iterate through. | ||
* Initializes the paging option (no paging by default) | ||
*/ | ||
BaseDataSourceProvider.prototype.isPagingEnabled = function () { | ||
return false; | ||
BaseDataSourceProvider.prototype.getPagingType = function () { | ||
return __1.PagingType.none; | ||
}; | ||
@@ -61,2 +66,1 @@ return BaseDataSourceProvider; | ||
exports.BaseDataSourceProvider = BaseDataSourceProvider; | ||
//# sourceMappingURL=BaseDataSourceProvider.js.map |
@@ -5,2 +5,1 @@ "use strict"; | ||
tslib_1.__exportStar(require("./BaseDataSourceProvider"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './IntranetLocation'; | ||
export * from './IntranetTrigger'; | ||
export * from './IntranetProvider'; | ||
export * from './PagingType'; |
@@ -7,2 +7,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./IntranetProvider"), exports); | ||
//# sourceMappingURL=index.js.map | ||
tslib_1.__exportStar(require("./PagingType"), exports); |
@@ -12,2 +12,1 @@ "use strict"; | ||
})(IntranetLocation = exports.IntranetLocation || (exports.IntranetLocation = {})); | ||
//# sourceMappingURL=IntranetLocation.js.map |
@@ -8,2 +8,1 @@ "use strict"; | ||
})(IntranetProvider = exports.IntranetProvider || (exports.IntranetProvider = {})); | ||
//# sourceMappingURL=IntranetProvider.js.map |
@@ -8,2 +8,1 @@ "use strict"; | ||
})(IntranetTrigger = exports.IntranetTrigger || (exports.IntranetTrigger = {})); | ||
//# sourceMappingURL=IntranetTrigger.js.map |
@@ -7,2 +7,1 @@ "use strict"; | ||
tslib_1.__exportStar(require("./services"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,6 @@ | ||
import { BaseDataSourceProvider } from '../datasource'; | ||
import { IBaseDataSourceProvider } from '.'; | ||
export interface DataSource { | ||
id: string; | ||
name: string; | ||
dataSource: BaseDataSourceProvider; | ||
dataSource: IBaseDataSourceProvider; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=DataSource.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ExtensibilityWindow.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ExtensionPoint.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ExtensionProvider.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ExtensionTrigger.js.map |
export * from './DataSource'; | ||
export * from './DataSourceData'; | ||
export * from './ExtensibilityWindow'; | ||
@@ -11,1 +12,2 @@ export * from './ExtensionPoint'; | ||
export * from './IUserProperties'; | ||
export * from './IBaseDataSourceProvider'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IUserProperties.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=UnbindedDataSource.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=UnbindedExtensionPoint.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=UnbindedExtensionProvider.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=UnbindedExtensionTrigger.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=IUserProfileProvider.js.map |
@@ -84,2 +84,1 @@ "use strict"; | ||
exports.DataSourceService = DataSourceService; | ||
//# sourceMappingURL=DataSourceService.js.map |
@@ -86,2 +86,1 @@ "use strict"; | ||
exports.ExtensionService = ExtensionService; | ||
//# sourceMappingURL=ExtensionService.js.map |
@@ -8,2 +8,1 @@ "use strict"; | ||
tslib_1.__exportStar(require("./TriggerService"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -91,2 +91,1 @@ "use strict"; | ||
exports.ProviderService = ProviderService; | ||
//# sourceMappingURL=ProviderService.js.map |
@@ -91,2 +91,1 @@ "use strict"; | ||
exports.TriggerService = TriggerService; | ||
//# sourceMappingURL=TriggerService.js.map |
{ | ||
"name": "@valo/extensibility", | ||
"version": "0.0.1-e14b21f09c3f307ebcea99b8deb08b79790333d6", | ||
"version": "1.0.0-efd7a5ac2e353988ea9f28c885ad90912cabc0e9", | ||
"description": "", | ||
@@ -14,3 +14,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@microsoft/sp-webpart-base": "1.8.2", | ||
"@microsoft/sp-application-base": "1.7.1", | ||
"@microsoft/sp-webpart-base": "1.7.1", | ||
"@types/react": "16.7.20", | ||
@@ -17,0 +18,0 @@ "typescript": "3.2.4" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
34129
4
58
843