@limetech/lime-web-components-interfaces
Advanced tools
Comparing version 4.49.1-alpha.5 to 4.49.1-alpha.6
@@ -6,2 +6,16 @@ # Change Log | ||
## [4.49.1-alpha.6](https://github.com/Lundalogik/lime-web-components/compare/v4.49.1-alpha.5...v4.49.1-alpha.6) (2022-07-06) | ||
### Bug Fixes | ||
* **interfaces:** ensure `getHandler` is optional in old interface ([1107cf6](https://github.com/Lundalogik/lime-web-components/commit/1107cf62518393f5dc4ae1980df3b52ba05b20a9)) | ||
* **interfaces:** make sure lifecycle hooks are optional in old interface ([ec887c3](https://github.com/Lundalogik/lime-web-components/commit/ec887c38656b9bb749f6981dce1f08e9b529d41b)) | ||
* **interfaces:** make sure translator is backwards compatible ([48929e0](https://github.com/Lundalogik/lime-web-components/commit/48929e0e4b61b08474eaec78928639093fd5167b)) | ||
* **interfaces:** remove typings when getting a platform service ([cd1eaa3](https://github.com/Lundalogik/lime-web-components/commit/cd1eaa338d1da06b862aec1f68afe7b7105db887)) | ||
## [4.49.1-alpha.5](https://github.com/Lundalogik/lime-web-components/compare/v4.49.1-alpha.4...v4.49.1-alpha.5) (2022-07-06) | ||
@@ -8,0 +22,0 @@ |
@@ -7,3 +7,3 @@ import { LimePluginLoader as Base } from '../../lime-web-components/src'; | ||
*/ | ||
export interface LimePluginLoader extends Base { | ||
export interface LimePluginLoader extends Omit<Base, 'connectedCallback' | 'disconnectedCallback'> { | ||
/** | ||
@@ -17,2 +17,4 @@ * This method will never be called since the component will live | ||
componentDidUnload?(): void | Promise<any>; | ||
connectedCallback?(): void | Promise<any>; | ||
disconnectedCallback?(): void | Promise<any>; | ||
} |
@@ -8,2 +8,3 @@ import { LimeWebComponentPlatform as Base } from '../../lime-web-components/src'; | ||
export interface LimeWebComponentPlatform extends Base { | ||
get(name: string): any; | ||
} | ||
@@ -10,0 +11,0 @@ /** |
@@ -14,3 +14,4 @@ import { CommandClass as BaseCommandClass, CommandIdentifier as BaseCommandIdentifier, CommandBus, CommandHandler as BaseCommandHandler, CallableCommandMiddleware as BaseCallableCommandMiddleware, CommandMiddleware as BaseCommandMiddleware, CommandOptions as BaseCommandOptions, getCommandId as baseGetCommandId } from '../../../lime-web-components/src/commandbus'; | ||
*/ | ||
export interface CommandBusService extends CommandBus { | ||
export interface CommandBusService extends Omit<CommandBus, 'getHandler'> { | ||
getHandler?(commandClass: CommandClass): CommandHandler; | ||
} | ||
@@ -17,0 +18,0 @@ /** |
@@ -6,2 +6,3 @@ import { Translator } from '../../../lime-web-components/src'; | ||
export interface TranslateService extends Translator { | ||
get(id: string, params?: object): string; | ||
} |
import { StateRepository } from '../core'; | ||
declare const SERVICE_NAME = "state.application"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link StateRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Application']): StateRepository; | ||
get(name: PlatformServiceNameType['Application']): StateRepository; | ||
} | ||
} | ||
export {}; |
import { CommandBus as Service } from './commandbus'; | ||
declare const SERVICE_NAME = "commandBus"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service CommandBus} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['CommandBus']): Service; | ||
get(name: PlatformServiceNameType['CommandBus']): Service; | ||
} | ||
} | ||
export {}; |
import { ConfigRepository as Service } from './repository'; | ||
declare const SERVICE_NAME = "state.configs"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service ConfigRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['ConfigRepository']): Service; | ||
get(name: PlatformServiceNameType['ConfigRepository']): Service; | ||
} | ||
} | ||
export {}; |
@@ -32,4 +32,4 @@ /** | ||
*/ | ||
export declare const PlatformServiceName: PlatformServiceName; | ||
export interface PlatformServiceName { | ||
export declare const PlatformServiceName: PlatformServiceNameType; | ||
export interface PlatformServiceNameType { | ||
/** | ||
@@ -36,0 +36,0 @@ * @deprecated use the new {@link PlatformServiceName.Navigator} instead |
import { Device as Service } from './device'; | ||
declare const SERVICE_NAME = "state.device"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service Device} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Device']): Service; | ||
get(name: PlatformServiceNameType['Device']): Service; | ||
} | ||
} | ||
export {}; |
import { DialogRenderer } from './dialog'; | ||
declare const SERVICE_NAME = "dialog"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link DialogRenderer} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Dialog']): DialogRenderer; | ||
get(name: PlatformServiceNameType['Dialog']): DialogRenderer; | ||
} | ||
} | ||
export {}; |
import { EventDispatcher as Service } from './eventdispatcher'; | ||
declare const SERVICE_NAME = "eventDispatcher"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service EventDispatcher} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['EventDispatcher']): Service; | ||
get(name: PlatformServiceNameType['EventDispatcher']): Service; | ||
} | ||
} | ||
export {}; |
import { FilterRepository as Service } from './repository'; | ||
declare const SERVICE_NAME = "state.filters"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service FilterRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['FilterRepository']): Service; | ||
get(name: PlatformServiceNameType['FilterRepository']): Service; | ||
} | ||
} | ||
export {}; |
import { HttpClient } from './http'; | ||
declare const SERVICE_NAME = "http"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link HttpClient} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Http']): HttpClient; | ||
get(name: PlatformServiceNameType['Http']): HttpClient; | ||
} | ||
} | ||
export {}; |
import { KeybindingRegistry as Service } from './registry'; | ||
declare const SERVICE_NAME = "keybindingRegistry"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -14,5 +14,5 @@ * @see {@link Service KeybindingRegistry} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['KeybindingRegistry']): Service; | ||
get(name: PlatformServiceNameType['KeybindingRegistry']): Service; | ||
} | ||
} | ||
export {}; |
import { LimeObjectRepository as Service } from './repository'; | ||
declare const SERVICE_NAME = "state.limeobjects"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service LimeObjectRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['LimeObjectRepository']): Service; | ||
get(name: PlatformServiceNameType['LimeObjectRepository']): Service; | ||
} | ||
} | ||
export {}; |
import { StateRepository } from '../core'; | ||
declare const SERVICE_NAME = "state.limetypes"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link StateRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['LimeTypeRepository']): StateRepository; | ||
get(name: PlatformServiceNameType['LimeTypeRepository']): StateRepository; | ||
} | ||
} | ||
export {}; |
import { Navigator as Service } from './navigator'; | ||
declare const SERVICE_NAME = "navigator"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -14,5 +14,5 @@ * @see {@link Service Navigator} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Navigator']): Service; | ||
get(name: PlatformServiceNameType['Navigator']): Service; | ||
} | ||
} | ||
export {}; |
import { Notifications } from './notifications'; | ||
declare const SERVICE_NAME = "notifications"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Notifications} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Notification']): Notifications; | ||
get(name: PlatformServiceNameType['Notification']): Notifications; | ||
} | ||
} | ||
export {}; |
import { QueryService } from './service'; | ||
declare const SERVICE_NAME = "query"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link QueryService} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Query']): QueryService; | ||
get(name: PlatformServiceNameType['Query']): QueryService; | ||
} | ||
} | ||
export {}; |
import { RouteRegistry as Service } from './registry'; | ||
declare const SERVICE_NAME = "routeRegistry"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -14,5 +14,5 @@ * @see {@link Service RouteRegistry} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['RouteRegistry']): Service; | ||
get(name: PlatformServiceNameType['RouteRegistry']): Service; | ||
} | ||
} | ||
export {}; |
import { TaskRepository as Service } from './repository'; | ||
declare const SERVICE_NAME = "state.tasks"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Service TaskRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['TaskRepository']): Service; | ||
get(name: PlatformServiceNameType['TaskRepository']): Service; | ||
} | ||
} | ||
export {}; |
import { Translator } from './translator'; | ||
declare const SERVICE_NAME = "translate"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link Translate} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['Translate']): Translator; | ||
get(name: PlatformServiceNameType['Translate']): Translator; | ||
} | ||
} | ||
export {}; |
import { UserDataRepository } from './repository'; | ||
declare const SERVICE_NAME = "state.user-data"; | ||
declare module '../core/platform' { | ||
interface PlatformServiceName { | ||
interface PlatformServiceNameType { | ||
/** | ||
@@ -11,5 +11,5 @@ * @see {@link UserDataRepository} | ||
interface LimeWebComponentPlatform { | ||
get(name: PlatformServiceName['UserData']): UserDataRepository; | ||
get(name: PlatformServiceNameType['UserData']): UserDataRepository; | ||
} | ||
} | ||
export {}; |
{ | ||
"name": "@limetech/lime-web-components-interfaces", | ||
"version": "4.49.1-alpha.5", | ||
"version": "4.49.1-alpha.6", | ||
"author": "Lime Technologies", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/Lundalogik/lime-web-components", | ||
}, | ||
"gitHead": "49b7b6e4e09348884ee93fe4acf02f84cc2374fe" | ||
"gitHead": "42e148e673b601fc7874b2f32db860bc3be5841d" | ||
} |
196707
4881