Add 'utils' module export (#410)

Export core utils and assets used by RWP in /utils.
Add serviceWorkerActivated() utility promise.

---------

Co-authored-by: emma <hi@emma.cafe>
This commit is contained in:
Ilya Kreymer
2025-03-12 21:55:29 -07:00
committed by GitHub
co-authored by emma
parent 2ef95985cd
commit 592ccc5253
9 changed files with 54 additions and 16 deletions
+11 -1
View File
@@ -10,12 +10,15 @@ import { Pages } from "./pages";
import { PageEntry } from "./pageentry";
import { Replay } from "./replay";
import { Sorter } from "./sorter";
import { SWManager } from "./swmanager";
import { SWManager, serviceWorkerActivated } from "./swmanager";
import { URLResources } from "./url-resources";
import { Embed } from "./embed";
import "./coll-description";
import "./shoelace";
import rwpIcon from "~assets/icons/replaywebpage.svg";
import rwpLogoAnimated from "~assets/brand/replaywebpage-icon-color-animated.svg";
export {
ReplayWebApp,
Chooser,
@@ -48,6 +51,9 @@ export {
Embed,
Embed as ReplayWebPage,
SWManager,
serviceWorkerActivated,
rwpIcon,
rwpLogoAnimated,
};
export type { ItemType, URLResource } from "./types";
@@ -55,3 +61,7 @@ export type { ItemType, URLResource } from "./types";
export type { EmbedReplayEvent } from "./item";
export * from "./misc";
export * from "./pageutils";
export * from "./utils/dateTimeFormatter";