@equinor/fusion-framework-dev-portal 1.2.5-next.0 → 1.2.5

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": "1.2.5-next.0",
3
+ "version": "1.2.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/main.js",
@@ -40,22 +40,22 @@
40
40
  "tsx": "^4.19.3",
41
41
  "typescript": "^5.8.2",
42
42
  "vite": "^7.1.12",
43
- "@equinor/fusion-framework": "7.4.2-next.1",
44
- "@equinor/fusion-framework-app": "10.1.2-next.1",
45
- "@equinor/fusion-framework-dev-server": "1.1.12-next.1",
46
- "@equinor/fusion-framework-module-bookmark": "3.0.4-next.0",
47
- "@equinor/fusion-framework-module-app": "7.0.4-next.0",
48
- "@equinor/fusion-framework-module-context": "7.0.3-next.0",
49
- "@equinor/fusion-framework-module-navigation": "6.0.1-next.0",
50
- "@equinor/fusion-framework-module-feature-flag": "1.1.27-next.0",
51
- "@equinor/fusion-framework-module-services": "7.1.5-next.0",
52
- "@equinor/fusion-framework-react": "7.4.19-next.1",
53
- "@equinor/fusion-framework-module-telemetry": "4.4.0-next.1",
54
- "@equinor/fusion-framework-react-components-bookmark": "1.1.2-next.1",
55
- "@equinor/fusion-framework-react-components-people-provider": "1.5.26-next.1",
56
- "@equinor/fusion-framework-react-module-bookmark": "5.0.2-next.1",
57
- "@equinor/fusion-observable": "8.5.7-next.0",
58
- "@equinor/fusion-query": "6.0.2-next.0"
43
+ "@equinor/fusion-framework": "7.4.1",
44
+ "@equinor/fusion-framework-app": "10.1.1",
45
+ "@equinor/fusion-framework-module-app": "7.1.0",
46
+ "@equinor/fusion-framework-dev-server": "1.1.11",
47
+ "@equinor/fusion-framework-module-context": "7.0.2",
48
+ "@equinor/fusion-framework-module-feature-flag": "1.1.26",
49
+ "@equinor/fusion-framework-module-navigation": "6.0.0",
50
+ "@equinor/fusion-framework-module-services": "7.1.4",
51
+ "@equinor/fusion-framework-module-telemetry": "4.3.1",
52
+ "@equinor/fusion-framework-module-bookmark": "3.0.3",
53
+ "@equinor/fusion-framework-react-components-bookmark": "1.1.1",
54
+ "@equinor/fusion-framework-react-components-people-provider": "1.5.25",
55
+ "@equinor/fusion-framework-react": "7.4.18",
56
+ "@equinor/fusion-framework-react-module-bookmark": "5.0.1",
57
+ "@equinor/fusion-query": "6.0.1",
58
+ "@equinor/fusion-observable": "8.5.6"
59
59
  },
60
60
  "scripts": {
61
61
  "start": "tsx dev-server.ts",
package/src/AppLoader.tsx CHANGED
@@ -13,6 +13,17 @@ import { ErrorViewer } from './ErrorViewer';
13
13
  import type { AppModule } from '@equinor/fusion-framework-module-app';
14
14
  import EquinorLoader from './EquinorLoader';
15
15
 
16
+ export const TAG = '$tag';
17
+
18
+ /**
19
+ * Gets the app tag/version from the current URL search parameters
20
+ * @returns The app tag/version if present in URL, otherwise null
21
+ */
22
+ export const getAppTagFromUrl = (): string | null => {
23
+ const url = new URL(window.location.href);
24
+ return url.searchParams.get(TAG);
25
+ };
26
+
16
27
  /**
17
28
  * React Functional Component for handling current application
18
29
  *
@@ -38,6 +49,12 @@ export const AppLoader = (props: { readonly appKey: string }) => {
38
49
  );
39
50
 
40
51
  useEffect(() => {
52
+ const tag = getAppTagFromUrl();
53
+
54
+ if (tag) {
55
+ fusion.modules.app.setCurrentApp({ appKey, tag });
56
+ return;
57
+ }
41
58
  /** when appKey property change, assign it to current */
42
59
  fusion.modules.app.setCurrentApp(appKey);
43
60
  }, [appKey, fusion]);
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.2.5-next.0';
2
+ export const version = '1.2.5';