@equinor/echo-framework 0.10.18 → 0.10.21

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 (72) hide show
  1. package/dist/components/containers/layouts.d.ts +1 -1
  2. package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
  3. package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
  4. package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
  5. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +2 -2
  6. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
  7. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +1 -1
  8. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
  9. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
  10. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
  11. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
  12. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
  13. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
  14. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
  15. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +1 -1
  16. package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
  17. package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
  18. package/dist/components/contextualAppLinks/index.d.ts +1 -1
  19. package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
  20. package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
  21. package/dist/components/externalLinkButton/externalLinkButton.d.ts +4 -4
  22. package/dist/components/homePage/HomePage.d.ts +1 -2
  23. package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
  24. package/dist/components/prepview/Prepview.d.ts +2 -1
  25. package/dist/components/prepview/api/attachment.d.ts +1 -1
  26. package/dist/components/prepview/api/resources.d.ts +1 -0
  27. package/dist/components/prepview/common/access/request/RequestAccess.d.ts +1 -1
  28. package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
  29. package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
  30. package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
  31. package/dist/components/prepview/context/PrepviewContext.d.ts +1 -0
  32. package/dist/components/prepview/hooks/useFetch.d.ts +1 -1
  33. package/dist/components/prepview/hooks/useOnClickDownload.d.ts +1 -1
  34. package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +2 -2
  35. package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts} +2 -2
  36. package/dist/components/prepview/notification/details/index.d.ts +1 -1
  37. package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
  38. package/dist/components/prepview/types/attachment.d.ts +1 -1
  39. package/dist/components/prepview/types/common.d.ts +40 -3
  40. package/dist/components/prepview/types/document.d.ts +2 -2
  41. package/dist/components/prepview/types/notification.d.ts +4 -4
  42. package/dist/components/prepview/types/operation.d.ts +1 -1
  43. package/dist/components/prepview/types/punch.d.ts +2 -2
  44. package/dist/components/prepview/types/safety.d.ts +1 -1
  45. package/dist/components/prepview/types/tag.d.ts +2 -2
  46. package/dist/components/prepview/types/workorder.d.ts +5 -5
  47. package/dist/components/prepview/utils/index.d.ts +1 -1
  48. package/dist/components/prepview/utils/logger.d.ts +10 -10
  49. package/dist/components/prepview/utils/notification.d.ts +2 -0
  50. package/dist/components/prepview/utils/punch.d.ts +1 -1
  51. package/dist/components/prepview/utils/url.d.ts +1 -1
  52. package/dist/components/prepview/workorder/details/{Details.d.ts → DetailsWorkOrder.d.ts} +2 -2
  53. package/dist/components/prepview/workorder/details/index.d.ts +1 -1
  54. package/dist/components/prepview/workorder/header/Header.d.ts +2 -1
  55. package/dist/components/prepview/workorder/index.d.ts +2 -1
  56. package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
  57. package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
  58. package/dist/coreApplication/EchoSetup.d.ts +1 -1
  59. package/dist/hooks/useEchoHistory.d.ts +2 -2
  60. package/dist/hooks/useScreenValues.d.ts +1 -1
  61. package/dist/hooks/useSemi.d.ts +1 -1
  62. package/dist/index.js +2 -2
  63. package/dist/services/api/api-manager.d.ts +1 -1
  64. package/dist/services/componentRegistry/componentRegistry.d.ts +1 -1
  65. package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
  66. package/dist/types/hookLibrary.d.ts +5 -5
  67. package/package.json +23 -23
  68. package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +0 -10
  69. package/dist/components/prepview/notification/additionalDetails/index.d.ts +0 -1
  70. package/dist/components/prepview/utils/status.d.ts +0 -3
  71. package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +0 -10
  72. package/dist/components/prepview/workorder/additionalDetails/index.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  export declare const baseApiUrl: string;
2
- declare type ResponseParser<T> = (response: Response) => Promise<T>;
2
+ type ResponseParser<T> = (response: Response) => Promise<T>;
3
3
  interface RequestOptions<T> {
4
4
  /**
5
5
  * Optional response parsing function
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type AnyComponentType = React.FC<any>;
2
+ type AnyComponentType = React.FC<any>;
3
3
  interface ComponentRegistry {
4
4
  registerComponent: ({ name, component }: {
5
5
  name: RegisteredComponentName;
@@ -1,4 +1,4 @@
1
- export declare type ProCoSysApiTag = {
1
+ export type ProCoSysApiTag = {
2
2
  id: number;
3
3
  tagNo: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
- export declare type SetActiveTagNo = (tagNo: string, activeTagTab?: string, activeTagSubTab?: string, instCode?: string) => void;
2
- export declare type TagData = [(tagNo: string, instCode: string) => void];
3
- export declare type SetActiveCommPackNo = (commPackNo: string, activeCommPackProject: string, activeCommPackTab?: string, activeCommPackSubTab?: string) => void;
4
- export declare type SetActiveMcPackNo = (mcPackNo: string, activeMcPackProject: string, activeMcPackTab?: string, activeMcPackSubTab?: string) => void;
5
- export declare type ScreenOrientation = 'landscape' | 'portrait' | undefined;
1
+ export type SetActiveTagNo = (tagNo: string, activeTagTab?: string, activeTagSubTab?: string, instCode?: string) => void;
2
+ export type TagData = [(tagNo: string, instCode: string) => void];
3
+ export type SetActiveCommPackNo = (commPackNo: string, activeCommPackProject: string, activeCommPackTab?: string, activeCommPackSubTab?: string) => void;
4
+ export type SetActiveMcPackNo = (mcPackNo: string, activeMcPackProject: string, activeMcPackTab?: string, activeMcPackSubTab?: string) => void;
5
+ export type ScreenOrientation = 'landscape' | 'portrait' | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.10.18",
3
+ "version": "0.10.21",
4
4
  "description": "Modules and components for EchoWeb, utilizing EchoCore",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -48,18 +48,18 @@
48
48
  "styled-components": "^5.3.6"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.20.2",
51
+ "@babel/core": "^7.20.12",
52
52
  "@babel/preset-env": "^7.20.2",
53
53
  "@babel/preset-react": "^7.18.6",
54
- "@equinor/echo-base": "^0.6.21",
55
- "@equinor/echo-components": "^0.5.14",
56
- "@equinor/echo-core": "^0.7.2",
54
+ "@equinor/echo-base": "^0.6.22",
55
+ "@equinor/echo-core": "^0.7.3",
56
+ "@equinor/echo-components": "^0.5.17",
57
57
  "@equinor/echo-scripts": "^0.1.5",
58
58
  "@equinor/echo-search": "^0.13.11",
59
59
  "@equinor/echo-update": "^1.3.1",
60
60
  "@equinor/echo-utils": "^0.2.12",
61
61
  "@equinor/eds-core-react": "^0.25.0",
62
- "@modular-css/rollup": "^28.3.1",
62
+ "@modular-css/rollup": "^28.3.2",
63
63
  "@rollup/plugin-babel": "^5.3.1",
64
64
  "@rollup/plugin-commonjs": "^22.0.2",
65
65
  "@rollup/plugin-image": "^2.1.1",
@@ -69,29 +69,29 @@
69
69
  "@rollup/plugin-url": "^7.0.0",
70
70
  "@svgr/rollup": "^6.5.1",
71
71
  "@testing-library/react-hooks": "^8.0.1",
72
- "@types/jest": "^28.1.8",
73
- "@types/node": "^18.11.9",
74
- "@types/react": "^17.0.52",
72
+ "@types/jest": "^29.4.0",
73
+ "@types/node": "^18.11.18",
74
+ "@types/react": "^17.0.53",
75
75
  "@types/react-dom": "^17.0.18",
76
76
  "@types/react-router-dom": "^5.3.3",
77
77
  "@types/styled-components": "5.1.26",
78
- "@typescript-eslint/eslint-plugin": "^5.44.0",
79
- "@typescript-eslint/parser": "^5.44.0",
78
+ "@typescript-eslint/eslint-plugin": "^5.49.0",
79
+ "@typescript-eslint/parser": "^5.49.0",
80
80
  "@wessberg/rollup-plugin-ts": "^2.0.4",
81
81
  "autoprefixer": "^10.4.13",
82
- "babel-jest": "^28.1.3",
83
- "eslint": "^8.28.0",
84
- "eslint-config-prettier": "^8.5.0",
82
+ "babel-jest": "^29.4.0",
83
+ "eslint": "^8.32.0",
84
+ "eslint-config-prettier": "^8.6.0",
85
85
  "eslint-plugin-prettier": "^4.2.1",
86
- "eslint-plugin-react": "^7.31.11",
86
+ "eslint-plugin-react": "^7.32.1",
87
87
  "eslint-plugin-react-hooks": "^4.6.0",
88
- "jest": "^28.1.3",
89
- "jest-environment-jsdom": "^29.3.1",
90
- "jest-expo": "^46.0.2",
91
- "postcss": "^8.4.19",
88
+ "jest": "^29.4.0",
89
+ "jest-environment-jsdom": "^29.4.0",
90
+ "jest-expo": "^47.0.1",
91
+ "postcss": "^8.4.21",
92
92
  "postcss-assets": "^6.0.0",
93
93
  "postcss-modules": "^4.3.1",
94
- "prettier": "^2.8.0",
94
+ "prettier": "^2.8.3",
95
95
  "react": "^17.0.2",
96
96
  "react-dom": "^17.0.2",
97
97
  "react-router-dom": "^5.3.4",
@@ -103,9 +103,9 @@
103
103
  "rollup-plugin-typescript-paths": "^1.4.0",
104
104
  "rollup-plugin-typescript2": "^0.34.1",
105
105
  "styled-components": "^5.3.6",
106
- "ts-jest": "^28.0.8",
106
+ "ts-jest": "^29.0.5",
107
107
  "tslib": "^2.4.1",
108
- "typescript": "=4.7.4"
108
+ "typescript": "=4.9.4"
109
109
  },
110
110
  "compilerOptions": {
111
111
  "declaration": true
@@ -118,6 +118,6 @@
118
118
  "npm": ">=7.0.0"
119
119
  },
120
120
  "dependencies": {
121
- "@microsoft/signalr": "^6.0.11"
121
+ "@microsoft/signalr": "^6.0.13"
122
122
  }
123
123
  }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { NotificationAdditionalDetails, NotificationDetails } from '../../types';
3
- interface Props {
4
- instCode: string;
5
- details: NotificationDetails;
6
- additionalDetails: NotificationAdditionalDetails;
7
- closePanel: () => void;
8
- }
9
- declare function AdditionalDetails({ instCode, details, additionalDetails, closePanel }: Props): JSX.Element;
10
- export { AdditionalDetails };
@@ -1 +0,0 @@
1
- export * from './AdditionalDetails';
@@ -1,3 +0,0 @@
1
- declare function getStatusColor(statusIds: string): "#4bb748" | "#fbca36";
2
- declare function getStatusText(statusIds: string): "Completed" | "Active";
3
- export { getStatusColor, getStatusText };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import type { WorkOrderAdditionalDetails, WorkOrderDetails } from '../../types';
3
- interface Props {
4
- instCode: string;
5
- details: WorkOrderDetails;
6
- additionalDetails: WorkOrderAdditionalDetails;
7
- closePanel: () => void;
8
- }
9
- declare function AdditionalDetails({ instCode, details, additionalDetails, closePanel }: Props): JSX.Element;
10
- export { AdditionalDetails };
@@ -1 +0,0 @@
1
- export * from './AdditionalDetails';