@equinor/fusion-framework-dev-portal 11.0.3 → 11.0.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.
Files changed (40) hide show
  1. package/dist/main.js +14779 -14675
  2. package/package.json +48 -43
  3. package/CHANGELOG.md +0 -1070
  4. package/dev-server.ts +0 -109
  5. package/src/AppLoader.tsx +0 -135
  6. package/src/BookmarkSideSheet.tsx +0 -47
  7. package/src/ContextSelector/ContextSelector.tsx +0 -85
  8. package/src/ContextSelector/index.ts +0 -1
  9. package/src/ContextSelector/useContextResolver.ts +0 -337
  10. package/src/EquinorLoader.tsx +0 -33
  11. package/src/ErrorViewer.tsx +0 -26
  12. package/src/FusionLogo.tsx +0 -76
  13. package/src/Header.tsx +0 -94
  14. package/src/HeaderActions.tsx +0 -47
  15. package/src/PersonSideSheet/index.tsx +0 -65
  16. package/src/PersonSideSheet/sheets/FeatureSheetContent.tsx +0 -52
  17. package/src/PersonSideSheet/sheets/FeatureTogglerApp.tsx +0 -39
  18. package/src/PersonSideSheet/sheets/FeatureTogglerPortal.tsx +0 -33
  19. package/src/PersonSideSheet/sheets/LandingSheetContent.tsx +0 -64
  20. package/src/PersonSideSheet/sheets/index.ts +0 -3
  21. package/src/PersonSideSheet/sheets/roles/ClaimableRole.test.tsx +0 -83
  22. package/src/PersonSideSheet/sheets/roles/ClaimableRole.tsx +0 -229
  23. package/src/PersonSideSheet/sheets/roles/RolesApi.test.ts +0 -62
  24. package/src/PersonSideSheet/sheets/roles/RolesApi.ts +0 -112
  25. package/src/PersonSideSheet/sheets/roles/RolesSheetContent.test.tsx +0 -86
  26. package/src/PersonSideSheet/sheets/roles/RolesSheetContent.tsx +0 -207
  27. package/src/PersonSideSheet/sheets/roles/index.ts +0 -1
  28. package/src/PersonSideSheet/sheets/styled.tsx +0 -33
  29. package/src/PersonSideSheet/sheets/types.ts +0 -14
  30. package/src/Router.tsx +0 -83
  31. package/src/configure.ts +0 -186
  32. package/src/get-app-tag-from-url.ts +0 -17
  33. package/src/globals.d.ts +0 -32
  34. package/src/main.tsx +0 -43
  35. package/src/resources/svg.ts +0 -7
  36. package/src/version.ts +0 -2
  37. package/tsconfig.json +0 -79
  38. package/tsconfig.tsbuildinfo +0 -1
  39. package/vite.config.ts +0 -15
  40. package/vitest.config.ts +0 -12
package/src/main.tsx DELETED
@@ -1,43 +0,0 @@
1
- import ReactDOM from 'react-dom/client';
2
- import type { FusionRenderFn } from '@equinor/fusion-framework';
3
- import { Framework } from '@equinor/fusion-framework-react';
4
- import { ThemeProvider, theme } from '@equinor/fusion-react-styles';
5
-
6
- import { PeopleResolverProvider } from '@equinor/fusion-framework-react-components-people-provider';
7
-
8
- import { EquinorLoader } from './EquinorLoader';
9
- import { configure } from './configure';
10
- import { Router } from './Router';
11
-
12
- import fallbackSvg from './resources/svg';
13
-
14
- /** Fallback avatar image used when a person photo cannot be loaded. */
15
- const fallbackImage = new Blob([fallbackSvg], { type: 'image/svg+xml' });
16
-
17
- /**
18
- * Mounts the Fusion Dev Portal into the given DOM element.
19
- *
20
- * Creates a React root and renders the portal shell with the Equinor theme,
21
- * Fusion Framework provider, people-resolver provider, and the portal router.
22
- * This is the main entry point consumed by `@equinor/fusion-framework-dev-server`.
23
- *
24
- * @param target - The DOM element to mount the portal into.
25
- * @param args - Render arguments containing a `ref` to the parent Fusion Framework instance.
26
- */
27
- export const render: FusionRenderFn = (target, args) => {
28
- ReactDOM.createRoot(target).render(
29
- <ThemeProvider theme={theme}>
30
- <Framework
31
- configure={configure}
32
- parent={args.ref}
33
- fallback={<EquinorLoader text="Loading framework" />}
34
- >
35
- <PeopleResolverProvider options={{ fallbackImage }}>
36
- <Router />
37
- </PeopleResolverProvider>
38
- </Framework>
39
- </ThemeProvider>,
40
- );
41
- };
42
-
43
- export default render;
@@ -1,7 +0,0 @@
1
- /**
2
- * Inline SVG string used as a generic person-avatar placeholder.
3
- *
4
- * Rendered when the person photo cannot be loaded from the people service.
5
- */
6
- export const svg = `<svg height="24px" width="24px" fill="#999" viewBox="0 0 24 24" title="person" role="img" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="#eee" /><path d="M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm2 4c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2Zm4 10c-.2-.71-3.3-2-6-2-2.69 0-5.77 1.28-6 2h12ZM4 18c0-2.66 5.33-4 8-4s8 1.34 8 4v2H4v-2Z" fill-rule="evenodd" clip-rule="evenodd" class="sc-dmqHEX eydzYY"></path></svg>`;
7
- export default svg;
package/src/version.ts DELETED
@@ -1,2 +0,0 @@
1
- // Generated by genversion.
2
- export const version = '11.0.3';
package/tsconfig.json DELETED
@@ -1,79 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src",
6
- "declarationDir": "./dist/types",
7
- "paths": {
8
- "*": ["./*"]
9
- },
10
- "jsx": "react-jsx"
11
- },
12
- "references": [
13
- {
14
- "path": "../utils/observable"
15
- },
16
- {
17
- "path": "../utils/query"
18
- },
19
- {
20
- "path": "../modules/telemetry"
21
- },
22
- {
23
- "path": "../modules/http"
24
- },
25
- {
26
- "path": "../modules/app"
27
- },
28
- {
29
- "path": "../modules/analytics"
30
- },
31
- {
32
- "path": "../modules/context"
33
- },
34
- {
35
- "path": "../modules/feature-flag"
36
- },
37
- {
38
- "path": "../modules/navigation"
39
- },
40
- {
41
- "path": "../modules/bookmark"
42
- },
43
- {
44
- "path": "../modules/ag-grid"
45
- },
46
- {
47
- "path": "../modules/app"
48
- },
49
- {
50
- "path": "../app"
51
- },
52
- {
53
- "path": "../framework"
54
- },
55
- {
56
- "path": "../react/framework"
57
- },
58
- {
59
- "path": "../react/modules/bookmark"
60
- },
61
- {
62
- "path": "../react/components/bookmark"
63
- },
64
- {
65
- "path": "../react/components/people-resolver"
66
- },
67
- {
68
- "path": "../react/router"
69
- },
70
- {
71
- "path": "../dev-server"
72
- },
73
- {
74
- "path": "../plugins/context-navigation"
75
- }
76
- ],
77
- "include": ["src/**/*", "start.ts"],
78
- "exclude": ["node_modules"]
79
- }