@equinor/fusion-framework-vite-plugin-spa 4.1.0-next.2 → 4.1.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.
- package/CHANGELOG.md +22 -41
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/html/bootstrap.js +19 -9
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/{index-CoSRBcgd.js → index-B_3FYBBq.js} +2 -2
- package/dist/{index-CoSRBcgd.js.map → index-B_3FYBBq.js.map} +1 -1
- package/dist/{module-BXUKfs6S.js → module-w44_1T9j.js} +2 -2
- package/dist/{module-BXUKfs6S.js.map → module-w44_1T9j.js.map} +1 -1
- 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 +6 -6
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @equinor/fusion-framework-vite-plugin-spa
|
|
2
2
|
|
|
3
|
-
## 4.1.0
|
|
3
|
+
## 4.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- f663b46: Add `FUSION_SPA_MSAL_MOCK` environment variable. When set to `true`, the generated bootstrap
|
|
8
8
|
script signs in through `@equinor/fusion-framework-module-msal/mock` instead of the real MSAL
|
|
9
9
|
client, so the dev server can run without Entra ID credentials, redirects, or network calls.
|
|
10
10
|
Intended for CI and Playwright runs against the dev server. The mock client is lazily
|
|
@@ -18,49 +18,30 @@
|
|
|
18
18
|
|
|
19
19
|
### Patch Changes
|
|
20
20
|
|
|
21
|
-
- Updated dependencies [
|
|
22
|
-
|
|
21
|
+
- Updated dependencies [f663b46]
|
|
22
|
+
- Updated dependencies [f663b46]
|
|
23
|
+
- Updated dependencies [f663b46]
|
|
24
|
+
- Updated dependencies [f663b46]
|
|
25
|
+
- Updated dependencies [f663b46]
|
|
26
|
+
- Updated dependencies [f663b46]
|
|
27
|
+
- Updated dependencies [f663b46]
|
|
28
|
+
- Updated dependencies [f663b46]
|
|
29
|
+
- Updated dependencies [f663b46]
|
|
30
|
+
- Updated dependencies [f663b46]
|
|
31
|
+
- Updated dependencies [f663b46]
|
|
32
|
+
- Updated dependencies [f663b46]
|
|
33
|
+
- Updated dependencies [f663b46]
|
|
34
|
+
- @equinor/fusion-framework-module-service-discovery@10.1.0
|
|
35
|
+
- @equinor/fusion-framework-module-msal@11.0.0
|
|
36
|
+
- @equinor/fusion-framework-module-http@8.1.0
|
|
37
|
+
- @equinor/fusion-framework-module-telemetry@7.1.0
|
|
38
|
+
- @equinor/fusion-framework-module@6.1.3
|
|
23
39
|
|
|
24
|
-
## 4.0.17
|
|
40
|
+
## 4.0.17
|
|
25
41
|
|
|
26
42
|
### Patch Changes
|
|
27
43
|
|
|
28
|
-
- @equinor/fusion-framework-module-telemetry@
|
|
29
|
-
|
|
30
|
-
## 4.0.17-next.0
|
|
31
|
-
|
|
32
|
-
### Patch Changes
|
|
33
|
-
|
|
34
|
-
- e8aae1f: Internal: publish every package on the `next` pre-release tag so the whole framework can be installed as a coherent set.
|
|
35
|
-
|
|
36
|
-
Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
pnpm add @equinor/fusion-framework-react-app@next
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
- Updated dependencies [e8aae1f]
|
|
43
|
-
- Updated dependencies [2836e0b]
|
|
44
|
-
- Updated dependencies [2836e0b]
|
|
45
|
-
- Updated dependencies [2836e0b]
|
|
46
|
-
- Updated dependencies [2836e0b]
|
|
47
|
-
- Updated dependencies [2836e0b]
|
|
48
|
-
- Updated dependencies [2836e0b]
|
|
49
|
-
- Updated dependencies [2836e0b]
|
|
50
|
-
- Updated dependencies [2836e0b]
|
|
51
|
-
- Updated dependencies [2836e0b]
|
|
52
|
-
- Updated dependencies [2836e0b]
|
|
53
|
-
- Updated dependencies [2836e0b]
|
|
54
|
-
- Updated dependencies [2836e0b]
|
|
55
|
-
- Updated dependencies [2836e0b]
|
|
56
|
-
- Updated dependencies [2836e0b]
|
|
57
|
-
- Updated dependencies [2836e0b]
|
|
58
|
-
- Updated dependencies [2836e0b]
|
|
59
|
-
- @equinor/fusion-framework-module@6.1.3-next.0
|
|
60
|
-
- @equinor/fusion-framework-module-http@8.1.0-next.0
|
|
61
|
-
- @equinor/fusion-framework-module-msal@11.0.0-next.0
|
|
62
|
-
- @equinor/fusion-framework-module-service-discovery@10.1.0-next.0
|
|
63
|
-
- @equinor/fusion-framework-module-telemetry@8.0.0-next.0
|
|
44
|
+
- @equinor/fusion-framework-module-telemetry@7.0.3
|
|
64
45
|
|
|
65
46
|
## 4.0.16
|
|
66
47
|
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
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 z, a3 as TelemetryLevel, a4 as enableMSAL } from '../module-
|
|
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 z, a3 as TelemetryLevel, a4 as enableMSAL } from '../module-w44_1T9j.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.3
|
|
1833
|
+
const version$4 = '6.1.3';
|
|
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.0
|
|
2996
|
+
const version$3 = '8.1.0';
|
|
2997
2997
|
|
|
2998
2998
|
/** URL protocols accepted as valid ad-hoc base URIs. */
|
|
2999
2999
|
const SUPPORTED_PROTOCOLS = ['http:', 'https:', 'ws:', 'wss:'];
|
|
@@ -4248,7 +4248,7 @@ var objectTraps = {
|
|
|
4248
4248
|
) && isArrayIndex(prop)) {
|
|
4249
4249
|
return value;
|
|
4250
4250
|
}
|
|
4251
|
-
if (value === peek(state.base_, prop)) {
|
|
4251
|
+
if (value === peek(state.base_, prop) || isRelocatedBaseRef(state, prop, value)) {
|
|
4252
4252
|
prepareCopy(state);
|
|
4253
4253
|
const childKey = state.type_ === 1 /* Array */ ? +prop : prop;
|
|
4254
4254
|
const childDraft = createProxy(state.scope_, value, state, childKey);
|
|
@@ -4282,7 +4282,7 @@ var objectTraps = {
|
|
|
4282
4282
|
markChanged(state);
|
|
4283
4283
|
}
|
|
4284
4284
|
if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
|
|
4285
|
-
(value !== void 0 || prop
|
|
4285
|
+
(value !== void 0 || has(state.copy_, prop, state.type_)) || // special case: NaN
|
|
4286
4286
|
Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
|
|
4287
4287
|
return true;
|
|
4288
4288
|
state.copy_[prop] = value;
|
|
@@ -4351,6 +4351,12 @@ function peek(draft, prop) {
|
|
|
4351
4351
|
const source = state ? latest(state) : draft;
|
|
4352
4352
|
return source[prop];
|
|
4353
4353
|
}
|
|
4354
|
+
function isRelocatedBaseRef(state, prop, value) {
|
|
4355
|
+
if (state.type_ !== 1 /* Array */ || !state.allIndicesReassigned_ || state.assigned_?.get(prop) || !isDraftable(value) || value[DRAFT_STATE]) {
|
|
4356
|
+
return false;
|
|
4357
|
+
}
|
|
4358
|
+
return state.baseRefs_.has(value);
|
|
4359
|
+
}
|
|
4354
4360
|
function readPropFromProto(state, source, prop) {
|
|
4355
4361
|
const desc = getDescriptorFromProto(source, prop);
|
|
4356
4362
|
return desc ? VALUE in desc ? desc[VALUE] : (
|
|
@@ -4605,6 +4611,10 @@ function currentImpl(value) {
|
|
|
4605
4611
|
return copy;
|
|
4606
4612
|
}
|
|
4607
4613
|
|
|
4614
|
+
// src/plugins/mapset.ts
|
|
4615
|
+
var _globalIterator = globalThis.Iterator;
|
|
4616
|
+
typeof _globalIterator?.from === "function";
|
|
4617
|
+
|
|
4608
4618
|
// src/immer.ts
|
|
4609
4619
|
var immer = new Immer2();
|
|
4610
4620
|
var produce = immer.produce;
|
|
@@ -5344,7 +5354,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
|
|
|
5344
5354
|
}
|
|
5345
5355
|
|
|
5346
5356
|
// Generated by genversion.
|
|
5347
|
-
const version$2 = '
|
|
5357
|
+
const version$2 = '7.1.0';
|
|
5348
5358
|
|
|
5349
5359
|
/**
|
|
5350
5360
|
* Represents a framework event with customizable details and behavior.
|
|
@@ -8705,7 +8715,7 @@ class ServiceDiscoveryConfigurator extends BaseConfigBuilder {
|
|
|
8705
8715
|
}
|
|
8706
8716
|
|
|
8707
8717
|
// Generated by genversion.
|
|
8708
|
-
const version$1 = '10.1.0
|
|
8718
|
+
const version$1 = '10.1.0';
|
|
8709
8719
|
|
|
8710
8720
|
/**
|
|
8711
8721
|
* Default implementation of {@link IServiceDiscoveryProvider}.
|
|
@@ -9354,7 +9364,7 @@ async function registerServiceWorker(framework) {
|
|
|
9354
9364
|
}
|
|
9355
9365
|
|
|
9356
9366
|
// Generated by genversion.
|
|
9357
|
-
const version = '4.1.0
|
|
9367
|
+
const version = '4.1.0';
|
|
9358
9368
|
|
|
9359
9369
|
// Allow dynamic import without vite
|
|
9360
9370
|
const importWithoutVite = (path) => import(/* @vite-ignore */ path);
|
|
@@ -9374,7 +9384,7 @@ enableServiceDiscovery(configurator, async (builder) => {
|
|
|
9374
9384
|
});
|
|
9375
9385
|
// Avoid interactive Entra ID authentication when the SPA runs in CI or Playwright.
|
|
9376
9386
|
if (isEnabledEnvValue(import.meta.env.FUSION_SPA_MSAL_MOCK)) {
|
|
9377
|
-
const { enableMsalMock } = await import('../index-
|
|
9387
|
+
const { enableMsalMock } = await import('../index-B_3FYBBq.js');
|
|
9378
9388
|
const mockToken = import.meta.env.FUSION_SPA_MSAL_MOCK_TOKEN;
|
|
9379
9389
|
enableMsalMock(configurator, (builder) => {
|
|
9380
9390
|
// Preserve the mock client's default identity when no backend-specific token is configured.
|