@equinor/fusion-framework-dev-portal 11.0.9 → 11.0.11

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.
Files changed (2) hide show
  1. package/dist/main.js +36 -23
  2. package/package.json +21 -21
package/dist/main.js CHANGED
@@ -28575,7 +28575,7 @@ var yp = (e) => (t) => {
28575
28575
  ...r
28576
28576
  }, this;
28577
28577
  }
28578
- }, xp = "8.1.1", Sp = [
28578
+ }, xp = "8.1.2", Sp = [
28579
28579
  "http:",
28580
28580
  "https:",
28581
28581
  "ws:",
@@ -37389,7 +37389,7 @@ var ote = class {
37389
37389
  metadata: t,
37390
37390
  properties: { ...o }
37391
37391
  });
37392
- }, bO = "11.0.3", dte = B({
37392
+ }, bO = "12.0.0", dte = B({
37393
37393
  provider: np().optional(),
37394
37394
  metadata: Of(z(), pf()).optional().default({
37395
37395
  module: "msal",
@@ -40534,7 +40534,7 @@ var kie = { [Sk.v1]: B({}) }, Aie = { [Sk.v1]: pf() }, jie = (e, t, n) => {
40534
40534
  }
40535
40535
  }, Tk = (e) => {
40536
40536
  e.addConfig({ module: wk });
40537
- }, Ek = "8.1.4", Dk = class extends wi {
40537
+ }, Ek = "9.0.1", Dk = class extends wi {
40538
40538
  static className = "FrameworkConfigurator";
40539
40539
  constructor() {
40540
40540
  super([
@@ -60744,7 +60744,7 @@ var gX = (e) => _h(e.type), N_e = {
60744
60744
  setAdapter(e, t) {
60745
60745
  return this.#t[e] = t, this;
60746
60746
  }
60747
- }, nve = "3.1.4", rve = class extends rt {
60747
+ }, nve = "3.1.5", rve = class extends rt {
60748
60748
  constructor(e) {
60749
60749
  super(e.unsubscribe);
60750
60750
  }
@@ -67531,7 +67531,7 @@ var w$ = (e, t) => {
67531
67531
  constructor(e, t) {
67532
67532
  super(e, t), this.name = "DeactivateClaimableRoleAssignmentError";
67533
67533
  }
67534
- }, ASe = "0.2.1", jSe = class extends pi {
67534
+ }, ASe = "0.3.0", jSe = class extends pi {
67535
67535
  client;
67536
67536
  dependencies;
67537
67537
  constructor(e, t = {}) {
@@ -67582,7 +67582,7 @@ var w$ = (e, t) => {
67582
67582
  if (!e && t.assert) throw new J$("Roles module bootstrap denied. No access roles were provided.", [], this);
67583
67583
  return e;
67584
67584
  }
67585
- let r = await this.getActiveAccessRoleAssignments(), i = /* @__PURE__ */ new Set();
67585
+ let r = await this.getActiveAccessRoleAssignments({ refresh: t.refresh }), i = /* @__PURE__ */ new Set();
67586
67586
  for (let e of r) e.accessRoleName && e.assignmentType === "Global" && i.add(e.accessRoleName);
67587
67587
  let a = [];
67588
67588
  for (let e of n) i.has(e) || a.push(e);
@@ -68210,7 +68210,7 @@ var nCe = (e) => {
68210
68210
  }
68211
68211
  let r = o1(t);
68212
68212
  return r ? s1(r.appKey, e ?? void 0) : t;
68213
- }, iCe = "11.0.9", aCe = async (e) => {
68213
+ }, iCe = "11.0.11", aCe = async (e) => {
68214
68214
  tg(e, {
68215
68215
  attachConfiguratorEvents: !0,
68216
68216
  configure: (e, t) => {
@@ -77053,6 +77053,7 @@ var HMe = ({ id: e, label: t, meta: n, helperText: r, helperIcon: i, variant: a,
77053
77053
  return {
77054
77054
  isRequiredAccessRolesError: !!n,
77055
77055
  isLoading: !!(n && !d && !f),
77056
+ missingAccessRoles: n?.missingAccessRoles ?? [],
77056
77057
  statuses: d?.statuses ?? [],
77057
77058
  statusError: f,
77058
77059
  canRetryStatuses: p,
@@ -77083,21 +77084,33 @@ var HMe = ({ id: e, label: t, meta: n, helperText: r, helperIcon: i, variant: a,
77083
77084
  justify-items: start;
77084
77085
  ` }, QMe = ({ error: e, onRetry: t }) => {
77085
77086
  let n = XMe(e, t);
77086
- return n.isRequiredAccessRolesError ? n.isLoading ? (0, K.jsx)(J5, {}) : n.statusError ? (0, K.jsxs)(ZMe.Recovery, { children: [
77087
- (0, K.jsx)(x6, {
77088
- group: "heading",
77089
- variant: "h2",
77090
- children: "Unable to check required access roles"
77091
- }),
77092
- (0, K.jsx)(x6, {
77093
- role: "alert",
77094
- children: n.statusError
77095
- }),
77096
- n.canRetryStatuses && (0, K.jsx)(t6, {
77097
- onClick: n.retryStatuses,
77098
- children: "Retry access check"
77099
- })
77100
- ] }) : (0, K.jsxs)("div", { children: [
77087
+ if (!n.isRequiredAccessRolesError) return null;
77088
+ if (n.isLoading) return (0, K.jsx)(J5, {});
77089
+ if (n.statusError) {
77090
+ let e = n.missingAccessRoles.map((e) => (0, K.jsx)(a6.Item, { children: e }, e)), t = e.length > 0;
77091
+ return (0, K.jsxs)(ZMe.Recovery, { children: [
77092
+ (0, K.jsx)(x6, {
77093
+ group: "heading",
77094
+ variant: "h2",
77095
+ children: "Access denied"
77096
+ }),
77097
+ t && (0, K.jsxs)(K.Fragment, { children: [(0, K.jsx)(x6, { children: "Your account is missing these required active access roles:" }), (0, K.jsx)(a6, { children: e })] }),
77098
+ (0, K.jsx)(x6, {
77099
+ group: "heading",
77100
+ variant: "h3",
77101
+ children: "Recovery details unavailable"
77102
+ }),
77103
+ (0, K.jsx)(x6, {
77104
+ role: "alert",
77105
+ children: n.statusError
77106
+ }),
77107
+ n.canRetryStatuses && (0, K.jsx)(t6, {
77108
+ onClick: n.retryStatuses,
77109
+ children: "Retry recovery details"
77110
+ })
77111
+ ] });
77112
+ }
77113
+ return (0, K.jsxs)("div", { children: [
77101
77114
  (0, K.jsx)(x6, {
77102
77115
  group: "heading",
77103
77116
  variant: "h2",
@@ -77111,7 +77124,7 @@ var HMe = ({ id: e, label: t, meta: n, helperText: r, helperIcon: i, variant: a,
77111
77124
  activatingAssignmentId: n.activatingAssignmentId,
77112
77125
  onActivate: n.activateClaimableRoleAssignment
77113
77126
  })
77114
- ] }) : null;
77127
+ ] });
77115
77128
  }, $5 = ({ requiredAccessRoles: e, children: t }) => {
77116
77129
  let n = Ik("roles"), r = $2(e ?? []), i = e !== void 0 && r !== "[]";
77117
77130
  return (0, K.jsx)(Z2, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-dev-portal",
3
- "version": "11.0.9",
3
+ "version": "11.0.11",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/main.js",
@@ -48,51 +48,51 @@
48
48
  "vite": "^8.0.0",
49
49
  "vitest": "^4.1.0",
50
50
  "vitest-browser-react": "^2.2.0",
51
- "@equinor/fusion-framework": "8.1.4",
52
- "@equinor/fusion-framework-app": "13.1.5",
53
- "@equinor/fusion-framework-dev-server": "2.1.5",
51
+ "@equinor/fusion-framework-app": "13.1.7",
52
+ "@equinor/fusion-framework": "9.0.1",
53
+ "@equinor/fusion-framework-dev-server": "2.1.6",
54
54
  "@equinor/fusion-framework-module-ag-grid": "37.1.1",
55
+ "@equinor/fusion-framework-module-analytics": "3.1.5",
55
56
  "@equinor/fusion-framework-module-app": "8.2.0",
56
57
  "@equinor/fusion-framework-module-bookmark": "4.1.2",
57
58
  "@equinor/fusion-framework-module-context": "9.0.1",
58
- "@equinor/fusion-framework-module-feature-flag": "2.1.1",
59
- "@equinor/fusion-framework-module-analytics": "3.1.4",
59
+ "@equinor/fusion-framework-module-roles": "^0.3.0",
60
60
  "@equinor/fusion-framework-module-navigation": "7.0.10",
61
- "@equinor/fusion-framework-module-roles": "^0.2.1",
62
61
  "@equinor/fusion-framework-module-services": "8.1.2",
62
+ "@equinor/fusion-framework-module-feature-flag": "2.1.1",
63
63
  "@equinor/fusion-framework-module-telemetry": "7.1.2",
64
64
  "@equinor/fusion-framework-plugin-context-navigation": "1.0.3",
65
- "@equinor/fusion-framework-react": "9.0.1",
66
- "@equinor/fusion-framework-react-components-people-provider": "2.0.6",
67
- "@equinor/fusion-framework-react-components-roles": "^0.1.1",
68
- "@equinor/fusion-framework-react-module-bookmark": "7.0.1",
65
+ "@equinor/fusion-framework-react": "9.0.2",
69
66
  "@equinor/fusion-framework-react-components-bookmark": "2.0.5",
67
+ "@equinor/fusion-framework-react-components-roles": "^0.1.2",
68
+ "@equinor/fusion-framework-react-module-bookmark": "7.0.1",
69
+ "@equinor/fusion-framework-react-components-people-provider": "2.0.6",
70
70
  "@equinor/fusion-framework-react-router": "2.4.4",
71
71
  "@equinor/fusion-observable": "9.2.3",
72
72
  "@equinor/fusion-query": "7.0.5"
73
73
  },
74
74
  "peerDependencies": {
75
- "@equinor/fusion-framework": "8.1.4",
76
- "@equinor/fusion-framework-app": "13.1.5",
77
- "@equinor/fusion-framework-dev-server": "2.1.5",
75
+ "@equinor/fusion-framework-dev-server": "2.1.6",
76
+ "@equinor/fusion-framework": "9.0.1",
77
+ "@equinor/fusion-framework-app": "13.1.7",
78
78
  "@equinor/fusion-framework-module-ag-grid": "37.1.1",
79
- "@equinor/fusion-framework-module-analytics": "3.1.4",
79
+ "@equinor/fusion-framework-module-analytics": "3.1.5",
80
80
  "@equinor/fusion-framework-module-app": "8.2.0",
81
81
  "@equinor/fusion-framework-module-bookmark": "4.1.2",
82
82
  "@equinor/fusion-framework-module-feature-flag": "2.1.1",
83
83
  "@equinor/fusion-framework-module-navigation": "7.0.10",
84
84
  "@equinor/fusion-framework-module-context": "9.0.1",
85
+ "@equinor/fusion-framework-module-roles": "^0.3.0",
85
86
  "@equinor/fusion-framework-module-services": "8.1.2",
86
- "@equinor/fusion-framework-react": "9.0.1",
87
- "@equinor/fusion-framework-module-roles": "^0.2.1",
87
+ "@equinor/fusion-framework-module-telemetry": "7.1.2",
88
88
  "@equinor/fusion-framework-react-components-bookmark": "2.0.5",
89
+ "@equinor/fusion-framework-react": "9.0.2",
89
90
  "@equinor/fusion-framework-plugin-context-navigation": "1.0.3",
90
- "@equinor/fusion-framework-react-components-roles": "^0.1.1",
91
- "@equinor/fusion-framework-module-telemetry": "7.1.2",
92
91
  "@equinor/fusion-framework-react-components-people-provider": "2.0.6",
93
- "@equinor/fusion-framework-react-module-bookmark": "7.0.1",
92
+ "@equinor/fusion-framework-react-components-roles": "^0.1.2",
93
+ "@equinor/fusion-observable": "9.2.3",
94
94
  "@equinor/fusion-query": "7.0.5",
95
- "@equinor/fusion-observable": "9.2.3"
95
+ "@equinor/fusion-framework-react-module-bookmark": "7.0.1"
96
96
  },
97
97
  "peerDependenciesMeta": {
98
98
  "@equinor/fusion-framework": {