@difizen/libro-terminal 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import type { ThemeChangeEvent, Event } from '@difizen/mana-app';
1
2
  import { ColorRegistry } from '@difizen/mana-app';
2
3
  import type { ITheme } from 'xterm';
3
4
  /**
@@ -15,7 +16,7 @@ export declare const terminalAnsiColorMap: {
15
16
  };
16
17
  export declare class TerminalThemeService {
17
18
  protected readonly colorRegistry: ColorRegistry;
18
- readonly onDidChange: import("@difizen/mana-app").Event<import("@difizen/mana-app").ThemeChangeEvent>;
19
+ readonly onDidChange: Event<ThemeChangeEvent>;
19
20
  get theme(): ITheme;
20
21
  getTheme(type?: 'light' | 'dark' | 'default'): ITheme;
21
22
  lightTheme: ITheme;
@@ -1 +1 @@
1
- {"version":3,"file":"theme-service.d.ts","sourceRoot":"","sources":["../src/theme-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE;YAAE,KAAK,EAAE,GAAG,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAC;KACzD,CAAC;CAkIH,CAAC;AAEF,qBACa,oBAAoB;IAE/B,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,QAAQ,CAAC,WAAW,kFAA4C;IAEhE,IAAI,KAAK,IAAI,MAAM,CA+BlB;IAED,QAAQ,CAAC,IAAI,GAAE,OAAO,GAAG,MAAM,GAAG,SAAmB,GAAG,MAAM;IAa9D,UAAU,EAAE,MAAM,CAOhB;IAEF,SAAS,EAAE,MAAM,CAOf;CACH"}
1
+ {"version":3,"file":"theme-service.d.ts","sourceRoot":"","sources":["../src/theme-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAgB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE;YAAE,KAAK,EAAE,GAAG,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAC;KACzD,CAAC;CAkIH,CAAC;AAEF,qBACa,oBAAoB;IAE/B,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,gBAAgB,CAAC,CACF;IAE3C,IAAI,KAAK,IAAI,MAAM,CA+BlB;IAED,QAAQ,CAAC,IAAI,GAAE,OAAO,GAAG,MAAM,GAAG,SAAmB,GAAG,MAAM;IAa9D,UAAU,EAAE,MAAM,CAOhB;IAEF,SAAS,EAAE,MAAM,CAOf;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-terminal",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro"
@@ -31,9 +31,9 @@
31
31
  "src"
32
32
  ],
33
33
  "dependencies": {
34
- "@difizen/libro-core": "^0.3.0",
35
- "@difizen/libro-common": "^0.3.0",
36
- "@difizen/libro-kernel": "^0.3.0",
34
+ "@difizen/libro-core": "^0.3.2",
35
+ "@difizen/libro-common": "^0.3.2",
36
+ "@difizen/libro-kernel": "^0.3.2",
37
37
  "@ant-design/icons": "^5.1.0",
38
38
  "@difizen/mana-app": "latest",
39
39
  "@difizen/mana-l10n": "latest",
@@ -1,3 +1,4 @@
1
+ import type { ThemeChangeEvent, Event } from '@difizen/mana-app';
1
2
  import { ColorRegistry, ThemeService } from '@difizen/mana-app';
2
3
  import { inject, singleton } from '@difizen/mana-app';
3
4
  import type { ITheme } from 'xterm';
@@ -146,7 +147,8 @@ export class TerminalThemeService {
146
147
  @inject(ColorRegistry)
147
148
  protected readonly colorRegistry: ColorRegistry;
148
149
 
149
- readonly onDidChange = ThemeService.get().onDidColorThemeChange;
150
+ readonly onDidChange: Event<ThemeChangeEvent> =
151
+ ThemeService.get().onDidColorThemeChange;
150
152
 
151
153
  get theme(): ITheme {
152
154
  const foregroundColor = this.colorRegistry.getCurrentColor('terminal.foreground');