@equinor/amplify-component-lib 8.4.6 → 8.4.8
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/dist/molecules/InfoElement/InfoElement.d.ts +4 -4
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/hooks/useServiceNowIncident.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/hooks/useSlackFileUpload.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/hooks/useSlackPostMessage.js +1 -1
- package/package.json +3 -3
|
@@ -9,13 +9,13 @@ export interface InfoElementProps {
|
|
|
9
9
|
*/
|
|
10
10
|
interface TextInfoElementProps extends InfoElementProps {
|
|
11
11
|
content: string;
|
|
12
|
-
copyableContent?:
|
|
13
|
-
capitalizeContent?:
|
|
12
|
+
copyableContent?: boolean;
|
|
13
|
+
capitalizeContent?: boolean;
|
|
14
14
|
}
|
|
15
15
|
interface CustomInfoElementProps extends InfoElementProps {
|
|
16
16
|
content: ReactElement;
|
|
17
|
-
copyableContent?:
|
|
18
|
-
capitalizeContent?:
|
|
17
|
+
copyableContent?: false;
|
|
18
|
+
capitalizeContent?: false;
|
|
19
19
|
}
|
|
20
20
|
export declare const InfoElement: React.ForwardRefExoticComponent<(TextInfoElementProps | CustomInfoElementProps) & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as r,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e,useRef as t}from"react";import{Icon as a,DotProgress as n,Typography as s}from"@equinor/eds-core-react";import{apps as l,exit_to_app as c}from"@equinor/eds-icons";import{tokens as p}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{jsxs as r,Fragment as i,jsx as o}from"react/jsx-runtime";import{useState as e,useRef as t}from"react";import{Icon as a,DotProgress as n,Typography as s}from"@equinor/eds-core-react";import{apps as l,exit_to_app as c}from"@equinor/eds-icons";import{tokens as p}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{AmplifyApplicationService as m}from"@equinor/subsurface-app-management";import{useQuery as d}from"@tanstack/react-query";import{TopBarButton as h}from"../TopBar.styles.js";import{TopBarMenu as u}from"../TopBarMenu.js";import{MenuSection as v,ApplicationContent as g,LoadingApplications as j,NoApplications as f,ApplicationBox as A,ApplicationButton as P,ApplicationName as T,MenuFixedItem as y,TextContainer as E}from"./ApplicationDrawer.styles.js";import"../../../molecules/RichTextEditor/custom-extensions/AmplifyKit.js";import"../../../molecules/RichTextEditor/RichTextEditor.types.js";import"../../../node_modules/lodash/lodash.js";import{environment as _}from"../../../atoms/utils/auth_environment.js";import"@microsoft/signalr";import"../../../atoms/enums/Environment.js";import"../Notifications/NotificationProvider.js";import"../../../providers/AuthProvider/AuthProvider.js";import"../../../providers/SideBarProvider.js";import"../../../providers/SnackbarProvider.js";import"../../../providers/TableOfContentsProvider.js";import"../../../providers/TutorialStepsProvider.js";import"../../../atoms/style/colors.js";import"../../../atoms/enums/Errors.js";import"../../ErrorPage/illustrations/GlitchAnimation.js";import"../../ErrorPage/illustrations/QuestioningAnimation.js";import"proj4";import"html2canvas";import{ApplicationIcon as C}from"../../../molecules/ApplicationIcon/ApplicationIcon.js";import{TransferToAppDialog as b}from"../TransferToAppDialog.js";const{colors:x}=p,{getAppName:S,PORTAL_URL_WITHOUT_LOCALHOST:k}=_,q=()=>{const[p,_]=e(!1),[q,N]=e(void 0),[L,I]=e(!1),{data:O=[],isLoading:R}=d({queryKey:["userApplications"],queryFn:()=>m.userApplications()}),z=t(null),B=()=>_(!p),$=()=>{_(!1),N(void 0)};return r(i,R?{children:[o(h,{variant:"ghost",onClick:B,ref:z,$isSelected:p,children:o(a,{data:l,size:24})}),o(u,{open:p,title:"Your available applications",onClose:$,anchorEl:z.current,contentPadding:!1,children:o(i,{children:o(v,{children:o(g,{children:o(j,{children:o(n,{color:"primary"})})})})})})]}:{children:[o(h,{variant:"ghost",onClick:B,ref:z,$isSelected:p,children:o(a,{data:l,size:24})}),o(u,{open:p,title:"Your available applications",onClose:$,anchorEl:z.current,contentPadding:!1,children:r(i,{children:[r(v,{children:[0===O.length?o(f,{children:o(s,{group:"paragraph",variant:"body_short",style:{color:x.text.static_icons__tertiary.rgba},children:"You don't have access to other applications"})}):o(s,{group:"paragraph",variant:"overline",children:"SWITCH BETWEEN APPS"}),o(g,{children:o(i,{children:O.map(((i,e)=>{const t=S(import.meta.env.VITE_NAME)===i.name;return o(A,{$isSelected:t,"data-testid":`application-box-${i.name}`,children:r(P,{variant:"ghost_icon",onClick:()=>{N(i)},"data-testid":i.name,children:[o(C,{name:i.name.toLowerCase(),size:36}),o(T,{children:o(s,{group:"paragraph",variant:"caption",children:i.name})})]})},e)}))})})]}),o(y,{"data-testid":"access-it-link",onClick:()=>{I(!0)},children:r("div",{children:[r(E,{children:[o(s,{variant:"overline",children:"Access to more applications?"}),o(s,{variant:"h6",children:"Go to Application Portal"})]}),o(a,{data:c,color:x.interactive.primary__resting.rgba,size:24})]})})]})}),L&&o(b,{onClose:$,applicationName:"Portal",url:k}),q&&o(b,{onClose:$,applicationName:q.name,url:q.url})]})};export{q as ApplicationDrawer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ServiceNowService as t}from"@equinor/subsurface-app-management";import{useMutation as e}from"@tanstack/react-query";import{SERVICE_NOW_QUERY_KEY as n}from"../Feedback.const.js";function r(r){return e({mutationKey:[n,r],mutationFn:async e=>t.createIncident(e)})}export{r as useServiceNowIncident};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{SlackService as t}from"@equinor/subsurface-app-management";import{useMutation as o}from"@tanstack/react-query";import{SLACK_FILE_QUERY_KEY as r}from"../Feedback.const.js";function e(e){return o({mutationKey:[r,e],mutationFn:o=>t.fileUpload(o)})}export{e as useSlackFileUpload};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{SlackService as t}from"@equinor/subsurface-app-management";import{useMutation as e}from"@tanstack/react-query";import{SLACK_POST_QUERY_KEY as o}from"../Feedback.const.js";function r(r){return e({mutationKey:[o,r],mutationFn:e=>t.postmessage(e)})}export{r as useSlackPostMessage};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/amplify-component-lib",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.8",
|
|
4
4
|
"description": "Frontend Typescript components for the Amplify team",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@equinor/eds-icons": "^0.21.0",
|
|
101
|
-
"@equinor/subsurface-app-management": "^1.
|
|
101
|
+
"@equinor/subsurface-app-management": "^1.1.3",
|
|
102
102
|
"@faker-js/faker": "^8.4.1",
|
|
103
103
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
104
104
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
},
|
|
175
175
|
"peerDependencies": {
|
|
176
176
|
"@equinor/eds-icons": "*",
|
|
177
|
-
"@equinor/subsurface-app-management": "
|
|
177
|
+
"@equinor/subsurface-app-management": "^1.1.3",
|
|
178
178
|
"@tanstack/react-query": "*",
|
|
179
179
|
"react": "^18.2.0",
|
|
180
180
|
"react-dom": "^18.2.0",
|