fix(ui): use the correct names for singleton registrations
This commit is contained in:
parent
8de03892cb
commit
de51dae20b
4 changed files with 8 additions and 4 deletions
5
.changeset/thin-pigs-cover.md
Normal file
5
.changeset/thin-pigs-cover.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/ui': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Use the correct names for singleton registrations
|
||||||
|
|
@ -2,7 +2,7 @@ import { singletonManager } from 'singleton-manager';
|
||||||
import { IconManager } from './IconManager.js';
|
import { IconManager } from './IconManager.js';
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-mutable-exports
|
// eslint-disable-next-line import/no-mutable-exports
|
||||||
export let icons = singletonManager.get('@lion/icon::icons::0.5.x') || new IconManager();
|
export let icons = singletonManager.get('@lion/ui::icons::0.x') || new IconManager();
|
||||||
|
|
||||||
// @ts-ignore since we don't know which singleton icon manager version will be used, we cannot type it.
|
// @ts-ignore since we don't know which singleton icon manager version will be used, we cannot type it.
|
||||||
export function setIcons(newIcons) {
|
export function setIcons(newIcons) {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { LocalizeManager } from './LocalizeManager.js';
|
||||||
/** @type {LocalizeManager} */
|
/** @type {LocalizeManager} */
|
||||||
// eslint-disable-next-line import/no-mutable-exports
|
// eslint-disable-next-line import/no-mutable-exports
|
||||||
export let localize =
|
export let localize =
|
||||||
singletonManager.get('@lion/localize::localize::0.10.x') ||
|
singletonManager.get('@lion/ui::localize::0.x') ||
|
||||||
new LocalizeManager({
|
new LocalizeManager({
|
||||||
autoLoadOnLocaleChange: true,
|
autoLoadOnLocaleChange: true,
|
||||||
fallbackLocale: 'en-GB',
|
fallbackLocale: 'en-GB',
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@ import { singletonManager } from 'singleton-manager';
|
||||||
import { OverlaysManager } from './OverlaysManager.js';
|
import { OverlaysManager } from './OverlaysManager.js';
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-mutable-exports
|
// eslint-disable-next-line import/no-mutable-exports
|
||||||
export let overlays =
|
export let overlays = singletonManager.get('@lion/ui::overlays::0.x') || new OverlaysManager();
|
||||||
singletonManager.get('@lion/overlays::overlays::0.15.x') || new OverlaysManager();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {OverlaysManager} newOverlays
|
* @param {OverlaysManager} newOverlays
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue