@equinor/fusion-framework-dev-portal 5.1.0 → 5.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-dev-portal",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/main.js",
@@ -38,44 +38,44 @@
38
38
  "tsx": "^4.19.3",
39
39
  "typescript": "^5.9.3",
40
40
  "vite": "^8.0.0",
41
- "@equinor/fusion-framework-app": "11.0.0",
42
- "@equinor/fusion-framework": "8.0.0",
43
- "@equinor/fusion-framework-dev-server": "2.0.0",
41
+ "@equinor/fusion-framework": "8.0.1",
42
+ "@equinor/fusion-framework-dev-server": "2.0.1",
43
+ "@equinor/fusion-framework-app": "11.0.1",
44
44
  "@equinor/fusion-framework-module-ag-grid": "36.0.0",
45
45
  "@equinor/fusion-framework-module-app": "8.0.0",
46
+ "@equinor/fusion-framework-module-analytics": "2.0.1",
46
47
  "@equinor/fusion-framework-module-bookmark": "4.0.0",
47
48
  "@equinor/fusion-framework-module-feature-flag": "2.0.0",
48
- "@equinor/fusion-framework-module-analytics": "2.0.0",
49
- "@equinor/fusion-framework-module-services": "8.0.0",
50
- "@equinor/fusion-framework-module-navigation": "7.0.0",
51
49
  "@equinor/fusion-framework-module-context": "8.0.0",
50
+ "@equinor/fusion-framework-module-navigation": "7.0.0",
51
+ "@equinor/fusion-framework-module-services": "8.0.0",
52
52
  "@equinor/fusion-framework-module-telemetry": "5.0.0",
53
53
  "@equinor/fusion-framework-react-components-bookmark": "2.0.0",
54
- "@equinor/fusion-framework-react": "8.0.0",
55
54
  "@equinor/fusion-framework-react-components-people-provider": "2.0.1",
56
- "@equinor/fusion-query": "7.0.0",
57
55
  "@equinor/fusion-framework-react-module-bookmark": "6.0.0",
56
+ "@equinor/fusion-framework-react": "8.0.0",
57
+ "@equinor/fusion-query": "7.0.0",
58
58
  "@equinor/fusion-observable": "9.0.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@equinor/fusion-framework": "8.0.0",
62
- "@equinor/fusion-framework-module-ag-grid": "36.0.0",
63
- "@equinor/fusion-framework-module-analytics": "2.0.0",
64
- "@equinor/fusion-framework-app": "11.0.0",
61
+ "@equinor/fusion-framework": "8.0.1",
62
+ "@equinor/fusion-framework-app": "11.0.1",
63
+ "@equinor/fusion-framework-module-analytics": "2.0.1",
65
64
  "@equinor/fusion-framework-module-app": "8.0.0",
66
65
  "@equinor/fusion-framework-module-bookmark": "4.0.0",
66
+ "@equinor/fusion-framework-dev-server": "2.0.1",
67
+ "@equinor/fusion-framework-module-ag-grid": "36.0.0",
67
68
  "@equinor/fusion-framework-module-context": "8.0.0",
68
69
  "@equinor/fusion-framework-module-feature-flag": "2.0.0",
69
- "@equinor/fusion-framework-dev-server": "2.0.0",
70
70
  "@equinor/fusion-framework-module-navigation": "7.0.0",
71
- "@equinor/fusion-framework-module-telemetry": "5.0.0",
72
71
  "@equinor/fusion-framework-module-services": "8.0.0",
72
+ "@equinor/fusion-framework-module-telemetry": "5.0.0",
73
73
  "@equinor/fusion-framework-react": "8.0.0",
74
74
  "@equinor/fusion-framework-react-components-bookmark": "2.0.0",
75
75
  "@equinor/fusion-framework-react-module-bookmark": "6.0.0",
76
- "@equinor/fusion-observable": "9.0.0",
76
+ "@equinor/fusion-framework-react-components-people-provider": "2.0.1",
77
77
  "@equinor/fusion-query": "7.0.0",
78
- "@equinor/fusion-framework-react-components-people-provider": "2.0.1"
78
+ "@equinor/fusion-observable": "9.0.0"
79
79
  },
80
80
  "peerDependenciesMeta": {
81
81
  "@equinor/fusion-framework": {
@@ -32,7 +32,7 @@ export const FeatureSheetContent = ({ navigate }: SheetContentProps) => {
32
32
  </div>
33
33
  <Divider />
34
34
  <div>
35
- <Tabs activeTab={tab} onChange={(index) => setTab(index)}>
35
+ <Tabs activeTab={tab} onChange={(index) => setTab(Number(index))}>
36
36
  <Tabs.List>
37
37
  <Tabs.Tab>App features</Tabs.Tab>
38
38
  <Tabs.Tab>Portal features</Tabs.Tab>
package/src/Router.tsx CHANGED
@@ -87,10 +87,5 @@ export const Router = () => {
87
87
  const [router] = useState(() => navigation.createRouter(routes));
88
88
  // observe the context changes and navigate when the context changes
89
89
  useAppContextNavigation();
90
- return (
91
- <RouterProvider
92
- router={router as unknown as RouterProviderProps['router']}
93
- fallbackElement={<p>wooot</p>}
94
- />
95
- );
90
+ return <RouterProvider router={router as unknown as RouterProviderProps['router']} />;
96
91
  };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Ambient JSX type declarations for Lit/WCEV web components used by dev-portal.
3
+ *
4
+ * `@types/react@19` removed the global `JSX` namespace — augmentations must
5
+ * target the `react` module's `JSX` namespace instead.
6
+ *
7
+ * The `@equinor/fusion-wc-person` package still uses the old `global JSX` pattern
8
+ * with computed-property keys so its declarations are not picked up by the compiler.
9
+ * This file re-declares the elements with string-literal keys in the correct location.
10
+ */
11
+ export {};
12
+
13
+ declare module 'react' {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ 'fwc-person-avatar': React.DetailedHTMLProps<
17
+ React.HTMLAttributes<HTMLElement> & {
18
+ azureId?: string;
19
+ size?: string;
20
+ clickable?: boolean;
21
+ },
22
+ HTMLElement
23
+ >;
24
+ 'fwc-person-list-item': React.DetailedHTMLProps<
25
+ React.HTMLAttributes<HTMLElement> & {
26
+ azureId?: string;
27
+ },
28
+ HTMLElement
29
+ >;
30
+ }
31
+ }
32
+ }
@@ -126,13 +126,17 @@ export const useAppContextNavigation = () => {
126
126
  extractContextIdFromPath(currentPathname),
127
127
  );
128
128
 
129
- // if app has its own navigation, use it to navigate
129
+ // always navigate via the portal navigation to trigger the synthetic pop() workaround,
130
+ // ensuring app routers that listen only for POP actions detect the URL change
130
131
  if (appNavigation) {
131
- // update the path of the app navigation, preserving search and hash
132
- appNavigation.replace({ ...appNavigation.path, pathname });
132
+ // resolve the full URL via the app navigation (includes app basename),
133
+ // then hand it to the portal navigation which will not double-prefix when basename is empty
134
+ const newUrl = appNavigation.createURL({ pathname });
135
+ navigation.navigate(newUrl, { replace: true });
133
136
  } else {
134
- // update the path of the portal navigation, preserving search and hash
135
- navigation.replace({ ...navigation.path, pathname });
137
+ // pass the pathname directly so navigation.navigate does not re-run createURL
138
+ // (which would duplicate the basename if one is configured)
139
+ navigation.navigate({ pathname }, { replace: true });
136
140
  }
137
141
  },
138
142
  [
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '5.1.0';
2
+ export const version = '5.1.1';