@equinor/fusion-framework-vite-plugin-spa 3.1.2 → 3.1.3

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 3.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @equinor/fusion-framework-module-telemetry@4.6.2
9
+
3
10
  ## 3.1.2
4
11
 
5
12
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '3.1.2';
2
+ export const version = '3.1.3';
3
3
  //# sourceMappingURL=version.js.map
@@ -23160,7 +23160,7 @@ class TelemetryConfigurator extends BaseConfigBuilder {
23160
23160
  }
23161
23161
 
23162
23162
  // Generated by genversion.
23163
- const version$5 = '4.6.1';
23163
+ const version$5 = '4.6.2';
23164
23164
 
23165
23165
  /**
23166
23166
  * Enum representing the severity levels of telemetry items.
@@ -23293,10 +23293,9 @@ const TelemetryCustomEventSchema = TelemetryEventSchema.extend({
23293
23293
  * with custom details and behavior. It allows you to:
23294
23294
  *
23295
23295
  * - Specify the event type and initial event details
23296
- * - Access the event details, including the original details and any updates
23296
+ * - Access the event details
23297
23297
  * - Check if the event is cancelable and whether it has been canceled
23298
23298
  * - Control whether the event can bubble up the event hierarchy
23299
- * - Update the event details during the event lifecycle
23300
23299
  *
23301
23300
  * The `FrameworkEvent` class is designed to be used as a base class for creating custom event types that fit the needs
23302
23301
  * of your application or framework.
@@ -23308,18 +23307,14 @@ const TelemetryCustomEventSchema = TelemetryEventSchema.extend({
23308
23307
  class FrameworkEvent {
23309
23308
  __type;
23310
23309
  #detail;
23311
- #originalDetail;
23312
23310
  #source;
23313
23311
  #canceled = false;
23314
23312
  #cancelable;
23315
- #mutableDetails;
23316
23313
  #canBubble;
23317
23314
  #created = Date.now();
23318
23315
  constructor(__type, args) {
23319
23316
  this.__type = __type;
23320
23317
  this.#detail = args.detail;
23321
- this.#originalDetail = structuredClone(args.detail);
23322
- this.#mutableDetails = !!args.mutableDetails;
23323
23318
  this.#source = args.source;
23324
23319
  this.#cancelable = !!args.cancelable;
23325
23320
  this.#canBubble = args.canBubble === undefined ? true : args.canBubble;
@@ -23362,14 +23357,6 @@ class FrameworkEvent {
23362
23357
  get detail() {
23363
23358
  return this.#detail;
23364
23359
  }
23365
- /**
23366
- * Gets the original event details that were passed to the `FrameworkEvent` constructor.
23367
- * This property provides access to the original event details, which may have been modified by the `updateDetails` method.
23368
- * @returns {FrameworkEventInitDetail<TInit>} The original event details.
23369
- */
23370
- get originalDetail() {
23371
- return this.#originalDetail;
23372
- }
23373
23360
  /**
23374
23361
  * Gets the source object that triggered the event.
23375
23362
  * @returns {FrameworkEventInitSource<TInit> | undefined} The source object that triggered the event, or `undefined` if the source is not available.
@@ -23384,14 +23371,6 @@ class FrameworkEvent {
23384
23371
  get type() {
23385
23372
  return this.__type;
23386
23373
  }
23387
- /**
23388
- * Indicates whether the event details can be mutated.
23389
- * If this property is `true`, the event details can be updated using the `updateDetails` method.
23390
- * @returns {boolean} `true` if the event details can be mutated, `false` otherwise.
23391
- */
23392
- get allowEventDetailsMutation() {
23393
- return this.#mutableDetails;
23394
- }
23395
23374
  /**
23396
23375
  * Prevents the default action of the event from occurring, if the event is cancelable.
23397
23376
  * If the event is cancelable, this method sets the `canceled` property to `true`.
@@ -23408,23 +23387,6 @@ class FrameworkEvent {
23408
23387
  stopPropagation() {
23409
23388
  this.#canBubble = false;
23410
23389
  }
23411
- /**
23412
- * Updates the event details using the provided function.
23413
- *
23414
- * @remarks If the event details are not mutable, an error will be thrown.
23415
- *
23416
- * @see {FrameworkEvent.originalDetail}
23417
- *
23418
- * @param fn - A function that takes the current event details and returns an updated version of the details.
23419
- * The function can return `void` or `undefined` to indicate that no changes should be made.
23420
- */
23421
- updateDetails(fn) {
23422
- if (!this.#mutableDetails) {
23423
- throw new Error('Event details are not mutable');
23424
- }
23425
- const detail = fn(this.#detail);
23426
- this.#detail = detail === undefined ? this.#detail : detail;
23427
- }
23428
23390
  }
23429
23391
 
23430
23392
  /**
@@ -44829,7 +44791,7 @@ async function registerServiceWorker(framework) {
44829
44791
  }
44830
44792
 
44831
44793
  // Generated by genversion.
44832
- const version = '3.1.2';
44794
+ const version = '3.1.3';
44833
44795
 
44834
44796
  // Allow dynamic import without vite
44835
44797
  const importWithoutVite = (path) => import(/* @vite-ignore */ path);