@equinor/fusion-framework-dev-portal 4.0.0 → 4.0.1

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,14 @@
1
1
  # @equinor/fusion-framework-dev-portal
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @equinor/fusion-framework-app@10.4.8
9
+ - @equinor/fusion-framework@7.4.12
10
+ - @equinor/fusion-framework-dev-server@1.1.30
11
+
3
12
  ## 4.0.0
4
13
 
5
14
  ### Patch Changes
package/dist/main.js CHANGED
@@ -46917,7 +46917,7 @@ const C3e = {
46917
46917
  ...s
46918
46918
  }
46919
46919
  });
46920
- }, Wh = "7.2.2", T3e = ai.object({
46920
+ }, Wh = "7.3.0", T3e = ai.object({
46921
46921
  provider: ai.custom().optional(),
46922
46922
  metadata: ai.record(ai.string(), ai.unknown()).optional().default({
46923
46923
  module: "msal",
@@ -46989,7 +46989,7 @@ class A3e extends Qp {
46989
46989
  * This follows Microsoft's standard SPA Auth Code Flow pattern and is compatible with
46990
46990
  * MSAL Browser's acquireTokenByCode() method.
46991
46991
  *
46992
- * @param authCode - The authorization code issued by the backend
46992
+ * @param authCode - The authorization code issued by the backend, or undefined to clear/reset it
46993
46993
  * @returns The configurator instance for method chaining
46994
46994
  *
46995
46995
  * @example
@@ -46997,16 +46997,21 @@ class A3e extends Qp {
46997
46997
  * // Backend provides auth code in HTML/config
46998
46998
  * const config = { auth: { code: getAuthCodeFromBackend() } };
46999
46999
  * configurator.setAuthCode(config.auth.code);
47000
+ *
47001
+ * // Clear previously configured auth code
47002
+ * configurator.setAuthCode(undefined);
47000
47003
  * ```
47001
47004
  *
47002
47005
  * @remarks
47003
47006
  * - Auth codes are single-use and short-lived (typically 5-10 minutes)
47004
47007
  * - The exchange happens during module initialization before requiresAuth check
47005
47008
  * - If exchange fails, the provider falls back to standard MSAL authentication flows
47009
+ * - Passing undefined, empty, or whitespace-only values clears the configured auth code
47006
47010
  * - Requires backend to be configured with SPA Auth Code support
47007
47011
  */
47008
47012
  setAuthCode(e) {
47009
- return this._set("authCode", async () => e), this;
47013
+ const n = e?.trim() || void 0;
47014
+ return this._set("authCode", async () => n), this;
47010
47015
  }
47011
47016
  /**
47012
47017
  * Sets whether authentication is required for the application.
@@ -47537,7 +47542,7 @@ class O3e extends Mu {
47537
47542
  if (super({
47538
47543
  version: Wh,
47539
47544
  config: e
47540
- }), this.#n = e.requiresAuth, this.#t = e.telemetry, this.#i = e.loginHint, this.#r = e.authCode, !e.client) {
47545
+ }), this.#n = e.requiresAuth, this.#t = e.telemetry, this.#i = e.loginHint, this.#r = e.authCode?.trim() || void 0, !e.client) {
47541
47546
  const n = new Error("Client is required, please provide a valid client in the configuration");
47542
47547
  throw this._trackException("constructor.client-required", or.Error, {
47543
47548
  exception: n
@@ -51323,7 +51328,7 @@ const F6e = "services", B6e = (t, e) => async (n) => {
51323
51328
  }
51324
51329
  }, q6e = (t) => {
51325
51330
  t.addConfig({ module: ane });
51326
- }, W6e = "7.4.11";
51331
+ }, W6e = "7.4.12";
51327
51332
  class G6e extends Efe {
51328
51333
  /**
51329
51334
  * The class name used for event naming. This static property ensures
@@ -79723,7 +79728,7 @@ const sUe = [], cUe = {
79723
79728
  return Promise.resolve(e(n));
79724
79729
  }
79725
79730
  });
79726
- }, uUe = "4.0.0", dUe = async (t) => {
79731
+ }, uUe = "4.0.1", dUe = async (t) => {
79727
79732
  PA(t, {
79728
79733
  attachConfiguratorEvents: !0,
79729
79734
  configure: (e, n) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-dev-portal",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/main.js",
@@ -42,23 +42,23 @@
42
42
  "vite": "^7.1.12"
43
43
  },
44
44
  "peerDependencies": {
45
- "@equinor/fusion-framework-app": "10.4.7",
46
- "@equinor/fusion-framework": "7.4.11",
47
- "@equinor/fusion-framework-dev-server": "1.1.29",
45
+ "@equinor/fusion-framework": "7.4.12",
46
+ "@equinor/fusion-framework-app": "10.4.8",
47
+ "@equinor/fusion-framework-dev-server": "1.1.30",
48
48
  "@equinor/fusion-framework-module-ag-grid": "35.0.1",
49
- "@equinor/fusion-framework-module-app": "7.4.0",
50
- "@equinor/fusion-framework-module-bookmark": "3.0.5",
51
49
  "@equinor/fusion-framework-module-analytics": "1.0.0",
50
+ "@equinor/fusion-framework-module-bookmark": "3.0.5",
52
51
  "@equinor/fusion-framework-module-context": "7.0.2",
52
+ "@equinor/fusion-framework-module-app": "7.4.0",
53
+ "@equinor/fusion-framework-module-services": "7.2.0",
53
54
  "@equinor/fusion-framework-module-feature-flag": "1.1.27",
54
55
  "@equinor/fusion-framework-module-navigation": "6.0.0",
55
- "@equinor/fusion-framework-module-services": "7.2.0",
56
56
  "@equinor/fusion-framework-module-telemetry": "4.6.3",
57
- "@equinor/fusion-framework-react": "7.4.19",
58
57
  "@equinor/fusion-framework-react-components-bookmark": "1.1.2",
59
58
  "@equinor/fusion-framework-react-components-people-provider": "1.6.1",
60
- "@equinor/fusion-framework-react-module-bookmark": "5.0.1",
59
+ "@equinor/fusion-framework-react": "7.4.19",
61
60
  "@equinor/fusion-observable": "8.5.7",
61
+ "@equinor/fusion-framework-react-module-bookmark": "5.0.1",
62
62
  "@equinor/fusion-query": "6.0.3"
63
63
  },
64
64
  "peerDependenciesMeta": {
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '4.0.0';
2
+ export const version = '4.0.1';