@ulixee/hero-interfaces
Advanced tools
Comparing version 2.0.0-alpha.28 to 2.0.0-alpha.29
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-alpha.29](https://github.com/ulixee/platform/compare/v2.0.0-alpha.28...v2.0.0-alpha.29) (2024-07-16) | ||
### Features | ||
* **core:** enable dynamic configuration of plugins ([86bacbf](https://github.com/ulixee/platform/commit/86bacbf07fda0c1ece54d11a3a59020e88e49bd0)) | ||
# [2.0.0-alpha.28](https://github.com/ulixee/platform/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-03-11) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientPluginClassDecorator = void 0; | ||
exports.ClientPluginClassDecorator = ClientPluginClassDecorator; | ||
// decorator for client plugin classes. hacky way to check the class implements statics we need | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
function ClientPluginClassDecorator(staticClass) { } | ||
exports.ClientPluginClassDecorator = ClientPluginClassDecorator; | ||
//# sourceMappingURL=IClientPlugin.js.map |
import { IFrame } from '@ulixee/unblocked-specification/agent/browser/IFrame'; | ||
import IUnblockedPlugin from '@ulixee/unblocked-specification/plugin/IUnblockedPlugin'; | ||
import IUnblockedPlugin, { PluginCustomConfig } from '@ulixee/unblocked-specification/plugin/IUnblockedPlugin'; | ||
import IEmulationProfile from '@ulixee/unblocked-specification/plugin/IEmulationProfile'; | ||
@@ -12,7 +12,7 @@ import { IPage } from '@ulixee/unblocked-specification/agent/browser/IPage'; | ||
} | ||
export interface ICorePluginClass { | ||
export interface ICorePluginClass<C extends object = any> { | ||
id: string; | ||
type: keyof typeof PluginTypes; | ||
new (createOptions: ICorePluginCreateOptions): ICorePlugin; | ||
shouldActivate?(emulationProfile: IEmulationProfile<unknown>, sessionSummary: ISessionSummary): boolean; | ||
shouldActivate?(emulationProfile: IEmulationProfile<unknown>, sessionSummary: ISessionSummary, customConfig?: PluginCustomConfig<C>): boolean; | ||
} | ||
@@ -19,0 +19,0 @@ export interface ICorePluginMethods { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CorePluginClassDecorator = void 0; | ||
exports.CorePluginClassDecorator = CorePluginClassDecorator; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
function CorePluginClassDecorator(staticClass) { } | ||
exports.CorePluginClassDecorator = CorePluginClassDecorator; | ||
//# sourceMappingURL=ICorePlugin.js.map |
import { IBoundLog } from '@ulixee/commons/interfaces/ILog'; | ||
import IEmulationProfile from '@ulixee/unblocked-specification/plugin/IEmulationProfile'; | ||
import { PluginCustomConfig } from '@ulixee/unblocked-specification/plugin/IUnblockedPlugin'; | ||
import ICorePlugins from './ICorePlugins'; | ||
import { ISessionSummary } from './ICorePlugin'; | ||
export default interface ICorePluginCreateOptions { | ||
export default interface ICorePluginCreateOptions<C extends object = any> { | ||
emulationProfile: IEmulationProfile; | ||
@@ -10,2 +11,3 @@ corePlugins: ICorePlugins; | ||
logger: IBoundLog; | ||
customConfig?: PluginCustomConfig<C>; | ||
} |
import { IEmulationOptions } from '@ulixee/unblocked-specification/plugin/IEmulationProfile'; | ||
import { IUnblockedPluginClass, PluginConfigs } from '@ulixee/unblocked-specification/plugin/IUnblockedPlugin'; | ||
import IUserProfile from './IUserProfile'; | ||
@@ -27,2 +28,4 @@ import ISessionOptions from './ISessionOptions'; | ||
showChromeInteractions?: boolean; | ||
pluginConfigs?: PluginConfigs; | ||
unblockedPlugins?: IUnblockedPluginClass[]; | ||
} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
export default interface IWebsocketMessage { | ||
@@ -3,0 +2,0 @@ resourceId: number; |
{ | ||
"name": "@ulixee/hero-interfaces", | ||
"version": "2.0.0-alpha.28", | ||
"version": "2.0.0-alpha.29", | ||
"description": "Core interfaces used by Hero", | ||
@@ -24,8 +24,8 @@ "homepage": "https://ulixee.org", | ||
"@ulixee/awaited-dom": "1.4.2", | ||
"@ulixee/commons": "2.0.0-alpha.28", | ||
"@ulixee/js-path": "2.0.0-alpha.28", | ||
"@ulixee/unblocked-specification": "2.0.0-alpha.28", | ||
"@ulixee/commons": "2.0.0-alpha.29", | ||
"@ulixee/js-path": "2.0.0-alpha.29", | ||
"@ulixee/unblocked-specification": "2.0.0-alpha.29", | ||
"devtools-protocol": "^0.0.1137505" | ||
}, | ||
"gitHead": "665c9beb50840d8fbfe3049aba01f99d04b1fbc4" | ||
"gitHead": "e715bd7cc35992af36459cb7455e4e9cdd1b9c0a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55476
662
+ Added@ulixee/commons@2.0.0-alpha.29(transitive)
+ Added@ulixee/js-path@2.0.0-alpha.29(transitive)
+ Added@ulixee/unblocked-specification@2.0.0-alpha.29(transitive)
- Removed@ulixee/commons@2.0.0-alpha.28(transitive)
- Removed@ulixee/js-path@2.0.0-alpha.28(transitive)
- Removed@ulixee/unblocked-specification@2.0.0-alpha.28(transitive)