@eagami/ui 5.90.1 → 5.91.0

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.
@@ -86,7 +86,7 @@ var StaleBuildReloader = class StaleBuildReloader {
86
86
  }
87
87
  static ɵfac = i0.ɵɵngDeclareFactory({
88
88
  minVersion: "12.0.0",
89
- version: "22.2.6",
89
+ version: "22.3.0",
90
90
  ngImport: i0,
91
91
  type: StaleBuildReloader,
92
92
  deps: [],
@@ -94,14 +94,14 @@ var StaleBuildReloader = class StaleBuildReloader {
94
94
  });
95
95
  static ɵprov = i0.ɵɵngDeclareInjectable({
96
96
  minVersion: "12.0.0",
97
- version: "22.2.6",
97
+ version: "22.3.0",
98
98
  ngImport: i0,
99
99
  type: StaleBuildReloader
100
100
  });
101
101
  };
102
102
  i0.ɵɵngDeclareClassMetadata({
103
103
  minVersion: "12.0.0",
104
- version: "22.2.6",
104
+ version: "22.3.0",
105
105
  ngImport: i0,
106
106
  type: StaleBuildReloader,
107
107
  decorators: [{ type: Injectable }],
@@ -1 +1 @@
1
- {"version":3,"file":"eagami-ui-router.mjs","names":[],"sources":["../../../router/src/stale-build-reload.ts"],"sourcesContent":["import { DOCUMENT, Location, isPlatformBrowser } from '@angular/common';\nimport {\n type EnvironmentProviders,\n Injectable,\n InjectionToken,\n PLATFORM_ID,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { NavigationEnd, NavigationError, Router } from '@angular/router';\n\n/**\n * How a reload into the current build turned out:\n *\n * - `'recovered'`: the reloaded page opened\n * - `'failed-after-reload'`: the reloaded page failed to open too, so the error is left to surface\n * - `'stayed'`: the visitor chose to stay when the browser asked them to confirm leaving\n */\nexport type StaleBuildReloadOutcome = 'recovered' | 'failed-after-reload' | 'stayed';\n\nexport interface StaleBuildReloadReport {\n outcome: StaleBuildReloadOutcome;\n /** The path that failed to open, without its query or fragment. */\n route: string;\n /** The `version` configured in the build that failed to open the page. */\n fromVersion?: string;\n /** The `version` configured in the build making the report. */\n toVersion?: string;\n}\n\nexport interface StaleBuildReloadConfig {\n /** The app's version, carried across the reload so a report names both builds. */\n version?: string;\n /** Called once per reload with how it turned out, for example to log it. */\n onReport?: (report: StaleBuildReloadReport) => void;\n}\n\ninterface PendingReload {\n pageId: string;\n route: string;\n version?: string;\n}\n\nconst PENDING_RELOAD_KEY = 'ea-pending-reload';\n\n// Each browser engine words a failed dynamic import differently\nconst CHUNK_LOAD_FAILURES = [\n 'Failed to fetch dynamically imported module', // Chromium\n 'error loading dynamically imported module', // Firefox\n 'Importing a module script failed', // WebKit\n 'is not a valid JavaScript MIME type', // WebKit, when the host answers a removed file with the app's page\n];\n\nconst STALE_BUILD_RELOAD_CONFIG = new InjectionToken<StaleBuildReloadConfig>(\n 'STALE_BUILD_RELOAD_CONFIG',\n);\n\n// Swappable in tests, since jsdom cannot navigate\nexport const LOAD_PAGE = new InjectionToken<(url: string, replace: boolean) => void>(\n 'LOAD_PAGE',\n {\n providedIn: 'root',\n factory: () => {\n const location = inject(DOCUMENT).location;\n return (url, replace) => (replace ? location.replace(url) : location.assign(url));\n },\n },\n);\n\nconst reloadedErrors = new WeakSet<Error>();\n\n/**\n * Whether `error` is a failed page load that `provideStaleBuildReload()` has\n * already answered by reloading. Error reporters can drop it, since the\n * reload's outcome reaches `onReport` instead:\n *\n * ```ts\n * Sentry.init({\n * beforeSend: (event, hint) =>\n * isStaleBuildReloadError(hint.originalException) ? null : event,\n * });\n * ```\n */\nexport function isStaleBuildReloadError(error: unknown): boolean {\n return error instanceof Error && reloadedErrors.has(error);\n}\n\nfunction isChunkLoadFailure(error: unknown): error is TypeError {\n return (\n error instanceof TypeError &&\n CHUNK_LOAD_FAILURES.some(failure => error.message.includes(failure))\n );\n}\n\nfunction isSessionStorageAvailable(): boolean {\n const probeKey = `${PENDING_RELOAD_KEY}-probe`;\n try {\n sessionStorage.setItem(probeKey, probeKey);\n sessionStorage.removeItem(probeKey);\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * A pending reload left by another page means this page is that reload. One\n * left by this same page means the visitor stayed when asked to confirm leaving.\n */\n@Injectable()\nclass StaleBuildReloader {\n private readonly config = inject(STALE_BUILD_RELOAD_CONFIG);\n private readonly loadPage = inject(LOAD_PAGE);\n private readonly location = inject(Location);\n private readonly router = inject(Router);\n\n private readonly canTrackReloads = isSessionStorageAvailable();\n private readonly pageId = Math.random().toString(36).slice(2);\n\n constructor() {\n this.router.events.subscribe(event => {\n if (event instanceof NavigationEnd) {\n this.settlePendingReload();\n } else if (event instanceof NavigationError && isChunkLoadFailure(event.error)) {\n this.reloadIntoCurrentBuild(event.url, event.error);\n }\n });\n }\n\n private settlePendingReload(): void {\n const pending = this.takePendingReload();\n\n if (pending) {\n this.report(pending.pageId === this.pageId ? 'stayed' : 'recovered', pending);\n }\n }\n\n private reloadIntoCurrentBuild(url: string, error: TypeError): void {\n const pending = this.takePendingReload();\n\n if (pending) {\n const isAfterReload = pending.pageId !== this.pageId;\n this.report(isAfterReload ? 'failed-after-reload' : 'stayed', pending);\n\n if (isAfterReload) {\n return;\n }\n }\n\n // Untracked, a failing reload could repeat forever, and offline it would only leave the app\n if (!this.canTrackReloads || !navigator.onLine) {\n return;\n }\n\n const navigation = this.router.currentNavigation();\n // A first load, Back or Forward, or a replacing navigation already has its history entry\n const replace =\n !this.router.navigated ||\n navigation?.trigger !== 'imperative' ||\n !!navigation.extras.replaceUrl;\n\n const reload: PendingReload = {\n pageId: this.pageId,\n route: url.replace(/[?#].*/, ''),\n version: this.config.version,\n };\n sessionStorage.setItem(PENDING_RELOAD_KEY, JSON.stringify(reload));\n reloadedErrors.add(error);\n\n this.loadPage(this.location.prepareExternalUrl(url), replace);\n }\n\n private takePendingReload(): PendingReload | null {\n const value = this.canTrackReloads\n ? sessionStorage.getItem(PENDING_RELOAD_KEY)\n : null;\n\n if (!value) {\n return null;\n }\n\n sessionStorage.removeItem(PENDING_RELOAD_KEY);\n return JSON.parse(value);\n }\n\n private report(outcome: StaleBuildReloadOutcome, pending: PendingReload): void {\n this.config.onReport?.({\n outcome,\n route: pending.route,\n fromVersion: pending.version,\n toVersion: this.config.version,\n });\n }\n}\n\n/**\n * Loads the current build in full when the code of a page being opened fails\n * to load, which is what a tab still running a build that a deploy has since\n * replaced runs into. The reload opens the page the visitor asked for, and\n * stops after one attempt if the new build fails as well.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideRouter(routes), provideStaleBuildReload()],\n * });\n * ```\n *\n * Does nothing during server rendering.\n */\nexport function provideStaleBuildReload(\n config: StaleBuildReloadConfig = {},\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: STALE_BUILD_RELOAD_CONFIG, useValue: config },\n StaleBuildReloader,\n // Created ahead of the first navigation, which a tab restored on an old build can fail\n provideEnvironmentInitializer(() => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n inject(StaleBuildReloader);\n }\n }),\n ]);\n}\n"],"mappings":";;;;AA4CA,MAAM,qBAAqB;AAG3B,MAAM,sBAAsB;CAC1B;CACA;CACA;CACA;AACD;AAED,MAAM,4BAA4B,IAAI,eACpC,2BAA2B;AAI7B,MAAa,YAAY,IAAI,eAC3B,aACA;CACE,YAAY;CACZ,eAAc;EACZ,MAAM,WAAW,OAAO,QAAQ,CAAC,CAAC;EAClC,QAAQ,KAAK,YAAa,UAAU,SAAS,QAAQ,GAAG,IAAI,SAAS,OAAO,GAAG;CACjF;AACD,CAAA;AAGH,MAAM,iCAAiB,IAAI,QAAO;AAclC,SAAgB,wBAAwB,OAAc;CACpD,OAAO,iBAAiB,SAAS,eAAe,IAAI,KAAK;AAC3D;AAEA,SAAS,mBAAmB,OAAc;CACxC,OACE,iBAAiB,aACjB,oBAAoB,MAAK,YAAW,MAAM,QAAQ,SAAS,OAAO,CAAC;AAEvE;AAEA,SAAS,4BAAyB;CAChC,MAAM,WAAW,GAAG,mBAAkB;CACtC,IAAI;EACF,eAAe,QAAQ,UAAU,QAAQ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OAAO;CAC9D;CAEQ,oBAAiB;EACvB,MAAM,QAAQ,KAAK,kBACf,eAAe,QAAQ,kBAAkB,IACzC;EAEJ,IAAI,CAAC,OACH,OAAO;EAGT,eAAe,WAAW,kBAAkB;EAC5C,OAAO,KAAK,MAAM,KAAK;CACzB;CAEQ,OAAO,SAAkC,SAAsB;EACrE,KAAK,OAAO,WAAW;GACrB;GACA,OAAO,QAAQ;GACf,aAAa,QAAQ;GACrB,WAAW,KAAK,OAAO;EACxB,CAAA;CACH;CAlFI,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAkB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAlB,OAAA,QAAA,GAAA,sBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;CAAkB,CAAA;;AAAlB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA,EADvB,MAAA,WAAA,CAAA;;;AAoGD,SAAgB,wBACd,SAAiC,CAAA,GAAE;CAEnC,OAAO,yBAAyB;EAC9B;GAAE,SAAS;GAA2B,UAAU;EAAM;EACtD;EAEA,oCAAmC;GACjC,IAAI,kBAAkB,OAAO,WAAW,CAAC,GACvC,OAAO,kBAAkB;EAE7B,CAAC;CACF,CAAA;AACH"}
1
+ {"version":3,"file":"eagami-ui-router.mjs","names":[],"sources":["../../../router/src/stale-build-reload.ts"],"sourcesContent":["import { DOCUMENT, Location, isPlatformBrowser } from '@angular/common';\nimport {\n type EnvironmentProviders,\n Injectable,\n InjectionToken,\n PLATFORM_ID,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport { NavigationEnd, NavigationError, Router } from '@angular/router';\n\n/**\n * How a reload into the current build turned out:\n *\n * - `'recovered'`: the reloaded page opened\n * - `'failed-after-reload'`: the reloaded page failed to open too, so the error is left to surface\n * - `'stayed'`: the visitor chose to stay when the browser asked them to confirm leaving\n */\nexport type StaleBuildReloadOutcome = 'recovered' | 'failed-after-reload' | 'stayed';\n\nexport interface StaleBuildReloadReport {\n outcome: StaleBuildReloadOutcome;\n /** The path that failed to open, without its query or fragment. */\n route: string;\n /** The `version` configured in the build that failed to open the page. */\n fromVersion?: string;\n /** The `version` configured in the build making the report. */\n toVersion?: string;\n}\n\nexport interface StaleBuildReloadConfig {\n /** The app's version, carried across the reload so a report names both builds. */\n version?: string;\n /** Called once per reload with how it turned out, for example to log it. */\n onReport?: (report: StaleBuildReloadReport) => void;\n}\n\ninterface PendingReload {\n pageId: string;\n route: string;\n version?: string;\n}\n\nconst PENDING_RELOAD_KEY = 'ea-pending-reload';\n\n// Each browser engine words a failed dynamic import differently\nconst CHUNK_LOAD_FAILURES = [\n 'Failed to fetch dynamically imported module', // Chromium\n 'error loading dynamically imported module', // Firefox\n 'Importing a module script failed', // WebKit\n 'is not a valid JavaScript MIME type', // WebKit, when the host answers a removed file with the app's page\n];\n\nconst STALE_BUILD_RELOAD_CONFIG = new InjectionToken<StaleBuildReloadConfig>(\n 'STALE_BUILD_RELOAD_CONFIG',\n);\n\n// Swappable in tests, since jsdom cannot navigate\nexport const LOAD_PAGE = new InjectionToken<(url: string, replace: boolean) => void>(\n 'LOAD_PAGE',\n {\n providedIn: 'root',\n factory: () => {\n const location = inject(DOCUMENT).location;\n return (url, replace) => (replace ? location.replace(url) : location.assign(url));\n },\n },\n);\n\nconst reloadedErrors = new WeakSet<Error>();\n\n/**\n * Whether `error` is a failed page load that `provideStaleBuildReload()` has\n * already answered by reloading. Error reporters can drop it, since the\n * reload's outcome reaches `onReport` instead:\n *\n * ```ts\n * Sentry.init({\n * beforeSend: (event, hint) =>\n * isStaleBuildReloadError(hint.originalException) ? null : event,\n * });\n * ```\n */\nexport function isStaleBuildReloadError(error: unknown): boolean {\n return error instanceof Error && reloadedErrors.has(error);\n}\n\nfunction isChunkLoadFailure(error: unknown): error is TypeError {\n return (\n error instanceof TypeError &&\n CHUNK_LOAD_FAILURES.some(failure => error.message.includes(failure))\n );\n}\n\nfunction isSessionStorageAvailable(): boolean {\n const probeKey = `${PENDING_RELOAD_KEY}-probe`;\n try {\n sessionStorage.setItem(probeKey, probeKey);\n sessionStorage.removeItem(probeKey);\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * A pending reload left by another page means this page is that reload. One\n * left by this same page means the visitor stayed when asked to confirm leaving.\n */\n@Injectable()\nclass StaleBuildReloader {\n private readonly config = inject(STALE_BUILD_RELOAD_CONFIG);\n private readonly loadPage = inject(LOAD_PAGE);\n private readonly location = inject(Location);\n private readonly router = inject(Router);\n\n private readonly canTrackReloads = isSessionStorageAvailable();\n private readonly pageId = Math.random().toString(36).slice(2);\n\n constructor() {\n this.router.events.subscribe(event => {\n if (event instanceof NavigationEnd) {\n this.settlePendingReload();\n } else if (event instanceof NavigationError && isChunkLoadFailure(event.error)) {\n this.reloadIntoCurrentBuild(event.url, event.error);\n }\n });\n }\n\n private settlePendingReload(): void {\n const pending = this.takePendingReload();\n\n if (pending) {\n this.report(pending.pageId === this.pageId ? 'stayed' : 'recovered', pending);\n }\n }\n\n private reloadIntoCurrentBuild(url: string, error: TypeError): void {\n const pending = this.takePendingReload();\n\n if (pending) {\n const isAfterReload = pending.pageId !== this.pageId;\n this.report(isAfterReload ? 'failed-after-reload' : 'stayed', pending);\n\n if (isAfterReload) {\n return;\n }\n }\n\n // Untracked, a failing reload could repeat forever, and offline it would only leave the app\n if (!this.canTrackReloads || !navigator.onLine) {\n return;\n }\n\n const navigation = this.router.currentNavigation();\n // A first load, Back or Forward, or a replacing navigation already has its history entry\n const replace =\n !this.router.navigated ||\n navigation?.trigger !== 'imperative' ||\n !!navigation.extras.replaceUrl;\n\n const reload: PendingReload = {\n pageId: this.pageId,\n route: url.replace(/[?#].*/, ''),\n version: this.config.version,\n };\n sessionStorage.setItem(PENDING_RELOAD_KEY, JSON.stringify(reload));\n reloadedErrors.add(error);\n\n this.loadPage(this.location.prepareExternalUrl(url), replace);\n }\n\n private takePendingReload(): PendingReload | null {\n const value = this.canTrackReloads\n ? sessionStorage.getItem(PENDING_RELOAD_KEY)\n : null;\n\n if (!value) {\n return null;\n }\n\n sessionStorage.removeItem(PENDING_RELOAD_KEY);\n return JSON.parse(value);\n }\n\n private report(outcome: StaleBuildReloadOutcome, pending: PendingReload): void {\n this.config.onReport?.({\n outcome,\n route: pending.route,\n fromVersion: pending.version,\n toVersion: this.config.version,\n });\n }\n}\n\n/**\n * Loads the current build in full when the code of a page being opened fails\n * to load, which is what a tab still running a build that a deploy has since\n * replaced runs into. The reload opens the page the visitor asked for, and\n * stops after one attempt if the new build fails as well.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [provideRouter(routes), provideStaleBuildReload()],\n * });\n * ```\n *\n * Does nothing during server rendering.\n */\nexport function provideStaleBuildReload(\n config: StaleBuildReloadConfig = {},\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: STALE_BUILD_RELOAD_CONFIG, useValue: config },\n StaleBuildReloader,\n // Created ahead of the first navigation, which a tab restored on an old build can fail\n provideEnvironmentInitializer(() => {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n inject(StaleBuildReloader);\n }\n }),\n ]);\n}\n"],"mappings":";;;;AA4CA,MAAM,qBAAqB;AAG3B,MAAM,sBAAsB;CAC1B;CACA;CACA;CACA;AACD;AAED,MAAM,4BAA4B,IAAI,eACpC,2BAA2B;AAI7B,MAAa,YAAY,IAAI,eAC3B,aACA;CACE,YAAY;CACZ,eAAc;EACZ,MAAM,WAAW,OAAO,QAAQ,CAAC,CAAC;EAClC,QAAQ,KAAK,YAAa,UAAU,SAAS,QAAQ,GAAG,IAAI,SAAS,OAAO,GAAG;CACjF;AACD,CAAA;AAGH,MAAM,iCAAiB,IAAI,QAAO;AAclC,SAAgB,wBAAwB,OAAc;CACpD,OAAO,iBAAiB,SAAS,eAAe,IAAI,KAAK;AAC3D;AA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