@equinor/fusion-framework-vite-plugin-spa 4.1.0 → 4.1.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.
- package/dist/esm/version.js +1 -1
- package/dist/html/bootstrap.js +16 -18
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/{index-B_3FYBBq.js → index-DYAtJv_q.js} +2 -2
- package/dist/{index-B_3FYBBq.js.map → index-DYAtJv_q.js.map} +1 -1
- package/dist/{module-w44_1T9j.js → module-DK5kAoXA.js} +3661 -11812
- package/dist/module-DK5kAoXA.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +9 -6
- package/CHANGELOG.md +0 -874
- package/dist/module-w44_1T9j.js.map +0 -1
- package/rollup.config.js +0 -20
- package/src/html/bootstrap.ts +0 -209
- package/src/html/create-portal-entry-point.ts +0 -25
- package/src/html/html.ts +0 -55
- package/src/html/index.ts +0 -10
- package/src/html/is-enabled-env-value.ts +0 -9
- package/src/html/register-service-worker.ts +0 -228
- package/src/html/sw.ts +0 -238
- package/src/index.ts +0 -34
- package/src/plugin.ts +0 -202
- package/src/types.ts +0 -160
- package/src/util/load-environment.ts +0 -35
- package/src/util/object-to-env.ts +0 -44
- package/src/version.ts +0 -2
- package/tests/create-portal-entry-point.test.ts +0 -36
- package/tests/is-enabled-env-value.test.ts +0 -13
- package/tsconfig.json +0 -35
- package/vitest.config.ts +0 -10
package/dist/esm/version.js
CHANGED
package/dist/html/bootstrap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createErrorClass, _ as __extends, e as errorContext, E as EMPTY_SUBSCRIPTION, S as Subscription, a as arrRemove, O as Observable, b as __values, d as __spreadArray, f as __read, i as isFunction$1, g as SafeSubscriber, h as EmptyError, o as operate, j as executeSchedule, k as innerFrom, l as createOperatorSubscriber, m as map, n as mergeMap, p as identity, q as isArrayLike, r as isScheduler, s as popScheduler, t as popNumber, u as EMPTY, v as from, w as mergeInternals, x as scanInternals, y as noop, z as popResultSelector, A as reduce, B as lastValueFrom, M as ModuleEventLevel, C as filter, D as BaseModuleProvider, F as catchError, G as of, H as object, I as _instanceof, J as _enum, K as string, L as boolean, N as record, P as union, Q as __rest, R as __assign, T as switchMap, U as observeOn, V as deepmerge, W as BaseConfigBuilder, X as TelemetryExceptionSchema, Y as TelemetryItemNames, Z as TelemetryType, $ as TelemetryEventSchema, a0 as TelemetryMetricSchema, a1 as TelemetryCustomEventSchema, a2 as
|
|
1
|
+
import { c as createErrorClass, _ as __extends, e as errorContext, E as EMPTY_SUBSCRIPTION, S as Subscription, a as arrRemove, O as Observable, b as __values, d as __spreadArray, f as __read, i as isFunction$1, g as SafeSubscriber, h as EmptyError, o as operate, j as executeSchedule, k as innerFrom, l as createOperatorSubscriber, m as map, n as mergeMap, p as identity, q as isArrayLike, r as isScheduler, s as popScheduler, t as popNumber, u as EMPTY, v as from, w as mergeInternals, x as scanInternals, y as noop, z as popResultSelector, A as reduce, B as lastValueFrom, M as ModuleEventLevel, C as filter, D as BaseModuleProvider, F as catchError, G as of, H as object, I as _instanceof, J as _enum, K as string, L as boolean, N as record, P as union, Q as __rest, R as __assign, T as switchMap, U as observeOn, V as deepmerge, W as BaseConfigBuilder, X as TelemetryExceptionSchema, Y as TelemetryItemNames, Z as TelemetryType, $ as TelemetryEventSchema, a0 as TelemetryMetricSchema, a1 as TelemetryCustomEventSchema, a2 as array, a3 as TelemetryLevel, a4 as enableMSAL } from '../module-DK5kAoXA.js';
|
|
2
2
|
|
|
3
3
|
var ObjectUnsubscribedError = createErrorClass(function (_super) {
|
|
4
4
|
return function ObjectUnsubscribedErrorImpl() {
|
|
@@ -1830,7 +1830,7 @@ async function runDisposePhase(ctx, instance, ref) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
1832
|
// Generated by genversion.
|
|
1833
|
-
const version$4 = '6.1.
|
|
1833
|
+
const version$4 = '6.1.4';
|
|
1834
1834
|
|
|
1835
1835
|
// biome-ignore-all lint/suspicious/noExplicitAny: internal type-erased dispatch arrays — callbacks are registered with concrete module types but stored erased; the orchestrator never inspects these shapes itself
|
|
1836
1836
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -2993,7 +2993,7 @@ class HttpClientConfigurator {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
2995
|
// Generated by genversion.
|
|
2996
|
-
const version$3 = '8.1.
|
|
2996
|
+
const version$3 = '8.1.1';
|
|
2997
2997
|
|
|
2998
2998
|
/** URL protocols accepted as valid ad-hoc base URIs. */
|
|
2999
2999
|
const SUPPORTED_PROTOCOLS = ['http:', 'https:', 'ws:', 'wss:'];
|
|
@@ -5354,7 +5354,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
|
|
5356
5356
|
// Generated by genversion.
|
|
5357
|
-
const version$2 = '7.1.
|
|
5357
|
+
const version$2 = '7.1.1';
|
|
5358
5358
|
|
|
5359
5359
|
/**
|
|
5360
5360
|
* Represents a framework event with customizable details and behavior.
|
|
@@ -8417,15 +8417,14 @@ class Query {
|
|
|
8417
8417
|
* transforms the result to include a backward-compatible `defaultScopes`
|
|
8418
8418
|
* accessor.
|
|
8419
8419
|
*/
|
|
8420
|
-
const ApiService =
|
|
8421
|
-
.
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
tags: z.array(z.string()).optional().describe('Tags for the service'),
|
|
8420
|
+
const ApiService = object({
|
|
8421
|
+
key: string().describe('The key used to identify the service'),
|
|
8422
|
+
uri: string().describe('The URI of the service'),
|
|
8423
|
+
id: string().optional().describe('The ID of the service'),
|
|
8424
|
+
environment: string().optional().describe('The environment of the service'),
|
|
8425
|
+
name: string().optional().describe('The name of the service'),
|
|
8426
|
+
scopes: array(string()).optional().default([]).describe('Endpoint authentication scopes'),
|
|
8427
|
+
tags: array(string()).optional().describe('Tags for the service'),
|
|
8429
8428
|
})
|
|
8430
8429
|
.describe('A service from the service discovery API')
|
|
8431
8430
|
.transform((value) => ({
|
|
@@ -8442,8 +8441,7 @@ const ApiService = z
|
|
|
8442
8441
|
* `ApiService` schema above. Used internally by
|
|
8443
8442
|
* {@link ServiceDiscoveryClient} to validate API responses.
|
|
8444
8443
|
*/
|
|
8445
|
-
const ApiServices =
|
|
8446
|
-
.array(ApiService)
|
|
8444
|
+
const ApiServices = array(ApiService)
|
|
8447
8445
|
.describe('A list of services from the service discovery API');
|
|
8448
8446
|
|
|
8449
8447
|
/** Cache key used by the internal {@link Query} instance. */
|
|
@@ -8715,7 +8713,7 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
|
|
|
8715
8713
|
}
|
|
8716
8714
|
|
|
8717
8715
|
// Generated by genversion.
|
|
8718
|
-
const version$1 = '10.1.
|
|
8716
|
+
const version$1 = '10.1.1';
|
|
8719
8717
|
|
|
8720
8718
|
/**
|
|
8721
8719
|
* Default implementation of {@link IServiceDiscoveryProvider}.
|
|
@@ -9364,7 +9362,7 @@ async function registerServiceWorker(framework) {
|
|
|
9364
9362
|
}
|
|
9365
9363
|
|
|
9366
9364
|
// Generated by genversion.
|
|
9367
|
-
const version = '4.1.
|
|
9365
|
+
const version = '4.1.2';
|
|
9368
9366
|
|
|
9369
9367
|
// Allow dynamic import without vite
|
|
9370
9368
|
const importWithoutVite = (path) => import(/* @vite-ignore */ path);
|
|
@@ -9384,7 +9382,7 @@ enableServiceDiscovery(configurator, async (builder) => {
|
|
|
9384
9382
|
});
|
|
9385
9383
|
// Avoid interactive Entra ID authentication when the SPA runs in CI or Playwright.
|
|
9386
9384
|
if (isEnabledEnvValue(import.meta.env.FUSION_SPA_MSAL_MOCK)) {
|
|
9387
|
-
const { enableMsalMock } = await import('../index-
|
|
9385
|
+
const { enableMsalMock } = await import('../index-DYAtJv_q.js');
|
|
9388
9386
|
const mockToken = import.meta.env.FUSION_SPA_MSAL_MOCK_TOKEN;
|
|
9389
9387
|
enableMsalMock(configurator, (builder) => {
|
|
9390
9388
|
// Preserve the mock client's default identity when no backend-specific token is configured.
|