@equinor/subsurface-app-management 1.1.15 → 1.1.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{OpenAPI_Portal_Prod as e}from"../core/OpenAPI.js";import{request as r}from"../core/request.js";class t{static getApiV1ImpersonateUser(){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser",errors:{400:"Bad Request",500:"Server Error"}})}static createImpersonateUser(t){return r(e,{method:"POST",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static putImpersonateUser(t){return r(e,{method:"PUT",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request"}})}static getApiV1ImpersonateUserGetImpersonateUserForApp(t){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/GetImpersonateUserForApp/{appName}",path:{appName:t},errors:{400:"Bad Request",500:"Server Error"}})}static getAllActiveUsers(){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/ActiveUsers",errors:{400:"Bad Request",500:"Server Error"}})}static getActiveUser(){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/ActiveUser",errors:{400:"Bad Request",500:"Server Error"}})}static getImpersonateUserById(t){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/ImpersonateUser",query:{id:t},errors:{400:"Bad Request",500:"Server Error"}})}static getImpersonateUserByUserName(t){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/ImpersonateUserByUserName",query:{username:t},errors:{400:"Bad Request",500:"Server Error"}})}static canImpersonate(){return r(e,{method:"GET",url:"/api/v1/ImpersonateUser/CanImpersonate",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static startImpersonating(t){return r(e,{method:"PUT",url:"/api/v1/ImpersonateUser/StartImpersonating",query:{username:t},errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static stopImpersonating(){return r(e,{method:"PUT",url:"/api/v1/ImpersonateUser/StopImpersonating",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static deleteImpersonationUser(t){return r(e,{method:"DELETE",url:"/api/v1/ImpersonateUser/DeleteImpersonationUser",query:{impersonationUserId:t},errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}}export{t as ImpersonateUserService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as r,Fragment as o}from"react/jsx-runtime";import{useRef as e,useMemo as i,useCallback as n,useEffect as l}from"react";import{useLocation as a}from"react-router";import{Typography as s,Button as h}from"@equinor/eds-core-react";import
|
|
1
|
+
import{jsxs as t,jsx as r,Fragment as o}from"react/jsx-runtime";import{useRef as e,useMemo as i,useCallback as n,useEffect as l}from"react";import{useLocation as a}from"react-router";import{Typography as s,Button as h}from"@equinor/eds-core-react";import p from"./TutorialDialog.js";import{HIGHLIGHT_PADDING as m,TUTORIAL_HIGHLIGHTER_DATATEST_ID as c}from"./TutorialProvider.const.js";import{useTutorial as u,useGetTutorialsForApp as d}from"./TutorialProvider.hooks.js";import{TutorialErrorDialog as f,Highlighter as g}from"./TutorialProvider.styles.js";import{EnvironmentType as w}from"../../types/Environment.js";const v=()=>{const{pathname:v}=a(),{activeTutorial:P,setActiveTutorial:T,dialogRef:j,allElementsToHighlight:x,shortNameFromParams:N,tutorialError:b,tutorialsFromProps:C,currentStep:k,viewportWidth:E,setTutorialError:I,clearSearchParam:$,appName:y,environmentName:D}=u(),R=e(!1),{data:S}=d(y),U=i((()=>{if(!(S||C&&0!==C.length))return[];const t=[];return C&&t.push(...C),S&&t.push(...S),t}),[S,C]),B=i((()=>{if(!x||!P||!E)return;const t=x[k],r=t.getBoundingClientRect();return t&&t.scrollIntoView({behavior:"smooth",block:"center"}),{top:r.top-m+window.scrollY,left:r.left-m,height:r.height+2*m,width:r.width+2*m}}),[P,x,k,E]),F=i((()=>U.filter((t=>t.path===v))),[U,v]),O=n((t=>{R.current||(T(t),R.current=!0)}),[T]);l((()=>{B&&!j.current?.open&&j.current?.showModal()}),[j,B]),l((()=>{if(F.length<1)return;const t=F.find((t=>t.shortName===N)),r=F.find((t=>!window.localStorage.getItem(t.shortName)&&t.willPopUp));t?O(t):r&&O(r)}),[O,N,F]);const q=()=>{$(),I(!1),T(void 0)};return(P?.showInProd||D!==w.PRODUCTION)&&(P?.willPopUp||N)?b&&N?t(f,{open:!0,isDismissable:!0,onClose:q,children:[r(s,{children:"There was a problem starting this tutorial. Please report this in using the feedback function in the Top Bar."}),r(h,{variant:"outlined",onClick:q,children:"Close"})]}):b?null:t(o,{children:[B&&r(g,{"data-testid":c,style:{top:`${B.top}px`,left:`${B.left}px`,width:`${B.width}px`,height:`${B.height}px`}}),r(p,{})]}):null};export{v as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mock } from 'vitest';
|
|
2
2
|
export declare class ClipboardDataMock {
|
|
3
|
-
getData: Mock
|
|
4
|
-
setData: Mock
|
|
3
|
+
getData: Mock;
|
|
4
|
+
setData: Mock;
|
|
5
5
|
constructor();
|
|
6
6
|
}
|
|
7
7
|
export declare class ClipboardEventMock extends Event {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/subsurface-app-management",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "React Typescript components/hooks to communicate with equinor/sam",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -49,71 +49,68 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@azure/msal-browser": "3.
|
|
53
|
-
"@azure/msal-react": "2.
|
|
52
|
+
"@azure/msal-browser": "3.26.1",
|
|
53
|
+
"@azure/msal-react": "2.1.1",
|
|
54
54
|
"jwt-decode": "^4.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@rollup/plugin-
|
|
60
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
57
|
+
"@faker-js/faker": "^9.0.3",
|
|
58
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
61
60
|
"@rollup/plugin-terser": "^0.4.4",
|
|
62
|
-
"@rollup/plugin-typescript": "^
|
|
63
|
-
"@storybook/addon-actions": "^8.
|
|
64
|
-
"@storybook/addon-designs": "^8.0.
|
|
65
|
-
"@storybook/addon-docs": "^8.
|
|
66
|
-
"@storybook/addon-essentials": "^8.
|
|
67
|
-
"@storybook/addon-links": "^8.
|
|
68
|
-
"@storybook/components": "^8.
|
|
69
|
-
"@storybook/manager-api": "^8.
|
|
70
|
-
"@storybook/preview-api": "^8.
|
|
71
|
-
"@storybook/react": "^8.
|
|
72
|
-
"@storybook/react-vite": "^8.
|
|
73
|
-
"@tanstack/react-query": "^5.
|
|
74
|
-
"@testing-library/dom": "^
|
|
75
|
-
"@testing-library/jest-dom": "^6.
|
|
76
|
-
"@testing-library/react": "^
|
|
61
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
62
|
+
"@storybook/addon-actions": "^8.3.6",
|
|
63
|
+
"@storybook/addon-designs": "^8.0.3",
|
|
64
|
+
"@storybook/addon-docs": "^8.3.6",
|
|
65
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
66
|
+
"@storybook/addon-links": "^8.3.6",
|
|
67
|
+
"@storybook/components": "^8.3.6",
|
|
68
|
+
"@storybook/manager-api": "^8.3.6",
|
|
69
|
+
"@storybook/preview-api": "^8.3.6",
|
|
70
|
+
"@storybook/react": "^8.3.6",
|
|
71
|
+
"@storybook/react-vite": "^8.3.6",
|
|
72
|
+
"@tanstack/react-query": "^5.59.15",
|
|
73
|
+
"@testing-library/dom": "^10.4.0",
|
|
74
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
75
|
+
"@testing-library/react": "^16.0.1",
|
|
77
76
|
"@testing-library/user-event": "^14.5.2",
|
|
78
77
|
"@types/lodash-es": "^4.17.12",
|
|
79
|
-
"@types/mocha": "^10.0.
|
|
80
|
-
"@types/node": "^
|
|
81
|
-
"@types/react": "^18.
|
|
82
|
-
"@types/react-dom": "^18.
|
|
78
|
+
"@types/mocha": "^10.0.9",
|
|
79
|
+
"@types/node": "^22.7.9",
|
|
80
|
+
"@types/react": "^18.3.12",
|
|
81
|
+
"@types/react-dom": "^18.3.1",
|
|
83
82
|
"@types/react-router-dom": "^5.3.3",
|
|
84
83
|
"@types/styled-components": "^5.1.34",
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
86
|
-
"@typescript-eslint/parser": "^
|
|
87
|
-
"@vitejs/plugin-react": "^4.
|
|
88
|
-
"@vitest/coverage-v8": "^1.
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "^8.11.0",
|
|
85
|
+
"@typescript-eslint/parser": "^8.11.0",
|
|
86
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
87
|
+
"@vitest/coverage-v8": "^2.1.3",
|
|
89
88
|
"eslint": "^8.56.0",
|
|
90
|
-
"eslint-plugin-react": "^7.
|
|
91
|
-
"eslint-plugin-react-hooks": "^
|
|
92
|
-
"eslint-plugin-simple-import-sort": "^12.
|
|
93
|
-
"eslint-plugin-storybook": "^0.
|
|
89
|
+
"eslint-plugin-react": "^7.37.2",
|
|
90
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
91
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
92
|
+
"eslint-plugin-storybook": "^0.10.1",
|
|
94
93
|
"jest-styled-components": "^7.2.0",
|
|
95
|
-
"jsdom": "^
|
|
96
|
-
"lint-staged": "^15.2.
|
|
97
|
-
"ora": "^8.0
|
|
98
|
-
"prettier": "^3.
|
|
99
|
-
"react": "^18.
|
|
100
|
-
"react-dom": "^18.
|
|
101
|
-
"react-router": "^6.
|
|
102
|
-
"react-router-dom": "^6.
|
|
103
|
-
"resolve-tspaths": "^0.8.
|
|
104
|
-
"rollup": "^4.
|
|
105
|
-
"rollup-plugin-delete": "^2.
|
|
106
|
-
"rollup-plugin-import-css": "^3.
|
|
107
|
-
"
|
|
108
|
-
"semantic-release-gitmoji": "^1.6.5",
|
|
109
|
-
"storybook": "^8.0.8",
|
|
94
|
+
"jsdom": "^25.0.1",
|
|
95
|
+
"lint-staged": "^15.2.10",
|
|
96
|
+
"ora": "^8.1.0",
|
|
97
|
+
"prettier": "^3.3.3",
|
|
98
|
+
"react": "^18.3.1",
|
|
99
|
+
"react-dom": "^18.3.1",
|
|
100
|
+
"react-router": "^6.27.0",
|
|
101
|
+
"react-router-dom": "^6.27.0",
|
|
102
|
+
"resolve-tspaths": "^0.8.22",
|
|
103
|
+
"rollup": "^4.24.0",
|
|
104
|
+
"rollup-plugin-delete": "^2.1.0",
|
|
105
|
+
"rollup-plugin-import-css": "^3.5.5",
|
|
106
|
+
"storybook": "^8.3.6",
|
|
110
107
|
"storybook-addon-react-docgen": "^1.2.44",
|
|
111
|
-
"storybook-addon-remix-react-router": "^3.0.
|
|
112
|
-
"typescript": "^5.
|
|
113
|
-
"vite": "^5.
|
|
108
|
+
"storybook-addon-remix-react-router": "^3.0.1",
|
|
109
|
+
"typescript": "^5.6.3",
|
|
110
|
+
"vite": "^5.4.10",
|
|
114
111
|
"vite-plugin-svgr": "^4.2.0",
|
|
115
|
-
"vite-tsconfig-paths": "^
|
|
116
|
-
"vitest": "^1.
|
|
112
|
+
"vite-tsconfig-paths": "^5.0.1",
|
|
113
|
+
"vitest": "^2.1.3"
|
|
117
114
|
},
|
|
118
115
|
"peerDependencies": {
|
|
119
116
|
"@equinor/eds-core-react": "*",
|