@equinor/echo-framework 0.13.2 → 0.14.0

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 (337) hide show
  1. package/README.md +48 -4
  2. package/index.css +2890 -0
  3. package/index.js +70 -0
  4. package/package.json +25 -126
  5. package/src/index.d.ts +102 -0
  6. package/{dist → src/lib}/components/appLinks/AppLinks.d.ts +6 -6
  7. package/{dist → src/lib}/components/appLinks/applinkUtils.d.ts +2 -2
  8. package/{dist → src/lib}/components/appLinks/index.d.ts +2 -2
  9. package/{dist → src/lib}/components/appLinks/linkButton/linkButton.d.ts +7 -7
  10. package/{dist → src/lib}/components/containers/index.d.ts +1 -1
  11. package/{dist → src/lib}/components/containers/layouts.d.ts +7 -7
  12. package/{dist → src/lib}/components/contextualAppLinks/contextualAppLinks.context.d.ts +7 -7
  13. package/{dist → src/lib}/components/contextualAppLinks/contextualAppLinks.d.ts +9 -9
  14. package/{dist → src/lib}/components/contextualAppLinks/externalAppsMenu.d.ts +29 -29
  15. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/allExternalLinks.d.ts +12 -12
  16. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +60 -60
  17. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +14 -14
  18. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -15
  19. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +14 -14
  20. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +14 -14
  21. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +13 -13
  22. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +18 -18
  23. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +17 -17
  24. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +14 -14
  25. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +17 -17
  26. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -15
  27. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +18 -18
  28. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/index.d.ts +10 -10
  29. package/{dist → src/lib}/components/contextualAppLinks/externalLinkButtons/trainingCenterForValvesMenu.d.ts +7 -7
  30. package/{dist → src/lib}/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +18 -18
  31. package/{dist → src/lib}/components/contextualAppLinks/hooks/useContextualAppLinksContext.d.ts +4 -4
  32. package/{dist → src/lib}/components/contextualAppLinks/index.d.ts +13 -13
  33. package/{dist → src/lib}/components/contextualAppLinks/internalAppLinks.d.ts +24 -24
  34. package/{dist → src/lib}/components/contextualAppLinks/linkButton.d.ts +19 -19
  35. package/{dist → src/lib}/components/echo3DButton/3dButtonUtils.d.ts +12 -12
  36. package/{dist → src/lib}/components/echo3DButton/OpenIn3dDropdown.d.ts +11 -11
  37. package/{dist → src/lib}/components/echo3DButton/echo3DButton.d.ts +18 -18
  38. package/{dist → src/lib}/components/echo3DButton/echo3DIconButton.d.ts +26 -26
  39. package/{dist → src/lib}/components/echo3DButton/icons/E3DWebBetaIcon.d.ts +6 -6
  40. package/{dist → src/lib}/components/echo3DButton/index.d.ts +2 -2
  41. package/{dist → src/lib}/components/echo3DButton/missingEcho3dAccessDialog.d.ts +8 -8
  42. package/{dist → src/lib}/components/echo3DButton/plantNotAvailableInfo.d.ts +6 -6
  43. package/{dist → src/lib}/components/echo3DButton/useGetOpenIn3d.d.ts +5 -5
  44. package/{dist → src/lib}/components/echo3DButton/useGoToEcho3DWebLink.d.ts +1 -1
  45. package/{dist → src/lib}/components/echoLogo/echoLogo.d.ts +6 -6
  46. package/{dist → src/lib}/components/echoLogo/index.d.ts +1 -1
  47. package/{dist → src/lib}/components/errorBoundary/components/chunkLoadErrorMessage.d.ts +3 -3
  48. package/{dist → src/lib}/components/errorBoundary/components/errorBoundaryBaseMessage.d.ts +7 -7
  49. package/{dist → src/lib}/components/errorBoundary/components/notificationCardWithLogo.d.ts +13 -13
  50. package/{dist → src/lib}/components/errorBoundary/errorBoundary.d.ts +15 -15
  51. package/{dist → src/lib}/components/errorBoundary/index.d.ts +1 -1
  52. package/{dist → src/lib}/components/externalLinkButton/externalLinkButton.d.ts +45 -45
  53. package/{dist → src/lib}/components/footer/footer.d.ts +10 -10
  54. package/{dist → src/lib}/components/footer/index.d.ts +1 -1
  55. package/{dist → src/lib}/components/fullScreenButtons/FullScreenButton.d.ts +7 -7
  56. package/{dist → src/lib}/components/fullScreenButtons/FullScreenChip.d.ts +8 -8
  57. package/{dist → src/lib}/components/fullScreenButtons/FullScreenModeButtons.d.ts +7 -7
  58. package/{dist → src/lib}/components/fullScreenButtons/index.d.ts +3 -3
  59. package/src/lib/components/homePage/HomePage.d.ts +1 -0
  60. package/{dist → src/lib}/components/homePage/index.d.ts +1 -1
  61. package/{dist → src/lib}/components/index.d.ts +23 -25
  62. package/{dist → src/lib}/components/lazyLoading/appLoadingIndicator.d.ts +6 -6
  63. package/{dist → src/lib}/components/lazyLoading/index.d.ts +1 -1
  64. package/{dist → src/lib}/components/lazyLoading/lazyLoadedAppWrapper.d.ts +14 -14
  65. package/{dist → src/lib}/components/mediator/index.d.ts +1 -1
  66. package/{dist → src/lib}/components/mediator/mediator.d.ts +6 -6
  67. package/{dist → src/lib}/components/pageMenu/Navigation/applicationList.d.ts +3 -3
  68. package/{dist → src/lib}/components/pageMenu/defaultAccordionItem.d.ts +12 -12
  69. package/{dist → src/lib}/components/pageMenu/index.d.ts +3 -3
  70. package/{dist → src/lib}/components/pageMenu/pageMenu.d.ts +15 -15
  71. package/{dist → src/lib}/components/pageMenu/pageMenuDrawerItem.d.ts +16 -16
  72. package/{dist → src/lib}/components/pageMenu/settings/asset.d.ts +6 -6
  73. package/{dist → src/lib}/components/pageMenu/settings/profile.d.ts +6 -6
  74. package/{dist → src/lib}/components/pageMenu/settings/settings.d.ts +7 -7
  75. package/{dist → src/lib}/components/pageMenu/version/version.d.ts +3 -3
  76. package/{dist → src/lib}/components/panel/corePanelIcon.d.ts +6 -6
  77. package/{dist → src/lib}/components/panel/corePanelLeft.d.ts +3 -3
  78. package/{dist → src/lib}/components/panel/corePanelRight.d.ts +3 -3
  79. package/{dist → src/lib}/components/panel/index.d.ts +2 -2
  80. package/{dist → src/lib}/components/panelButton/index.d.ts +1 -1
  81. package/{dist → src/lib}/components/panelButton/panelButton.d.ts +19 -19
  82. package/{dist → src/lib}/components/plantSelector/index.d.ts +1 -1
  83. package/{dist → src/lib}/components/plantSelector/plantSelector.d.ts +18 -18
  84. package/{dist → src/lib}/components/prepview/Prepview.d.ts +16 -16
  85. package/{dist → src/lib}/components/prepview/api/api.d.ts +7 -7
  86. package/{dist → src/lib}/components/prepview/api/attachment.d.ts +2 -2
  87. package/{dist → src/lib}/components/prepview/api/index.d.ts +1 -1
  88. package/{dist → src/lib}/components/prepview/api/resources.d.ts +6 -6
  89. package/{dist → src/lib}/components/prepview/common/access/handler/StatusHandler.d.ts +8 -8
  90. package/{dist → src/lib}/components/prepview/common/access/handler/index.d.ts +1 -1
  91. package/{dist → src/lib}/components/prepview/common/access/index.d.ts +2 -2
  92. package/{dist → src/lib}/components/prepview/common/access/request/RequestAccess.d.ts +6 -6
  93. package/{dist → src/lib}/components/prepview/common/access/request/index.d.ts +1 -1
  94. package/{dist → src/lib}/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +9 -10
  95. package/{dist → src/lib}/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +14 -14
  96. package/{dist → src/lib}/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -1
  97. package/{dist → src/lib}/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -8
  98. package/{dist → src/lib}/components/prepview/common/contentPicker/index.d.ts +1 -1
  99. package/{dist → src/lib}/components/prepview/common/details/accordion/DetailsAccordion.d.ts +8 -8
  100. package/{dist → src/lib}/components/prepview/common/details/accordion/index.d.ts +1 -1
  101. package/{dist → src/lib}/components/prepview/common/details/index.d.ts +3 -3
  102. package/src/lib/components/prepview/common/details/loader/DetailsLoader.d.ts +2 -0
  103. package/{dist → src/lib}/components/prepview/common/details/loader/index.d.ts +1 -1
  104. package/{dist → src/lib}/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +5 -6
  105. package/{dist → src/lib}/components/prepview/common/details/panel/index.d.ts +1 -1
  106. package/{dist → src/lib}/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +10 -11
  107. package/{dist → src/lib}/components/prepview/common/fileSizeDisplay/index.d.ts +1 -1
  108. package/{dist → src/lib}/components/prepview/common/index.d.ts +6 -6
  109. package/{dist → src/lib}/components/prepview/common/info/block/InfoBlock.d.ts +9 -9
  110. package/{dist → src/lib}/components/prepview/common/info/block/index.d.ts +1 -1
  111. package/{dist → src/lib}/components/prepview/common/info/index.d.ts +3 -3
  112. package/src/lib/components/prepview/common/info/list/InfoBlockList.d.ts +5 -0
  113. package/{dist → src/lib}/components/prepview/common/info/list/index.d.ts +1 -1
  114. package/{dist → src/lib}/components/prepview/common/info/section/InfoSection.d.ts +6 -6
  115. package/{dist → src/lib}/components/prepview/common/info/section/index.d.ts +2 -2
  116. package/{dist → src/lib}/components/prepview/common/info/section/longText/LongTextSection.d.ts +7 -8
  117. package/{dist → src/lib}/components/prepview/common/info/section/longText/index.d.ts +1 -1
  118. package/src/lib/components/prepview/common/link/Link.d.ts +6 -0
  119. package/{dist → src/lib}/components/prepview/context/PrepviewContext.d.ts +15 -15
  120. package/{dist → src/lib}/components/prepview/hooks/index.d.ts +4 -4
  121. package/{dist → src/lib}/components/prepview/hooks/useFetch.d.ts +4 -4
  122. package/{dist → src/lib}/components/prepview/hooks/useIsMobile.d.ts +5 -5
  123. package/{dist → src/lib}/components/prepview/hooks/useOnClickDownload.d.ts +9 -9
  124. package/{dist → src/lib}/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -10
  125. package/{dist → src/lib}/components/prepview/index.d.ts +1 -1
  126. package/{dist → src/lib}/components/prepview/notification/details/DetailsNotification.d.ts +9 -9
  127. package/{dist → src/lib}/components/prepview/notification/details/index.d.ts +1 -1
  128. package/{dist → src/lib}/components/prepview/notification/header/Header.d.ts +7 -7
  129. package/{dist → src/lib}/components/prepview/notification/header/index.d.ts +1 -1
  130. package/{dist → src/lib}/components/prepview/notification/index.d.ts +8 -8
  131. package/{dist → src/lib}/components/prepview/panels/attachments/Attachments.d.ts +8 -9
  132. package/{dist → src/lib}/components/prepview/panels/attachments/index.d.ts +1 -1
  133. package/{dist → src/lib}/components/prepview/panels/history/TagHistory.d.ts +9 -9
  134. package/{dist → src/lib}/components/prepview/panels/history/group/TagHistoryGroup.d.ts +10 -10
  135. package/{dist → src/lib}/components/prepview/panels/history/group/index.d.ts +1 -1
  136. package/{dist → src/lib}/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -9
  137. package/{dist → src/lib}/components/prepview/panels/history/horizontalView/index.d.ts +1 -1
  138. package/{dist → src/lib}/components/prepview/panels/history/index.d.ts +1 -1
  139. package/{dist → src/lib}/components/prepview/panels/history/items/Items.d.ts +11 -11
  140. package/{dist → src/lib}/components/prepview/panels/history/items/NotificationItem.d.ts +7 -7
  141. package/{dist → src/lib}/components/prepview/panels/history/items/PunchItem.d.ts +7 -7
  142. package/{dist → src/lib}/components/prepview/panels/history/items/WorkOrderItem.d.ts +7 -7
  143. package/{dist → src/lib}/components/prepview/panels/history/items/index.d.ts +1 -1
  144. package/{dist → src/lib}/components/prepview/panels/index.d.ts +7 -7
  145. package/{dist → src/lib}/components/prepview/panels/objects/Objects.d.ts +6 -7
  146. package/{dist → src/lib}/components/prepview/panels/objects/index.d.ts +1 -1
  147. package/{dist → src/lib}/components/prepview/panels/operations/Operations.d.ts +6 -7
  148. package/{dist → src/lib}/components/prepview/panels/operations/index.d.ts +1 -1
  149. package/{dist → src/lib}/components/prepview/panels/risk/Risk.d.ts +6 -7
  150. package/{dist → src/lib}/components/prepview/panels/risk/index.d.ts +1 -1
  151. package/{dist → src/lib}/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +7 -7
  152. package/{dist → src/lib}/components/prepview/panels/risk/trafficLight/index.d.ts +1 -1
  153. package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +7 -8
  154. package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +8 -9
  155. package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +7 -8
  156. package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +7 -8
  157. package/{dist → src/lib}/components/prepview/panels/tagDocumentRefs/index.d.ts +1 -1
  158. package/{dist → src/lib}/components/prepview/panels/tagInformation/TagInformation.d.ts +10 -11
  159. package/{dist → src/lib}/components/prepview/panels/tagInformation/index.d.ts +1 -1
  160. package/{dist → src/lib}/components/prepview/punch/details/Details.d.ts +9 -9
  161. package/{dist → src/lib}/components/prepview/punch/details/index.d.ts +1 -1
  162. package/{dist → src/lib}/components/prepview/punch/header/Header.d.ts +7 -7
  163. package/{dist → src/lib}/components/prepview/punch/header/index.d.ts +1 -1
  164. package/{dist → src/lib}/components/prepview/punch/index.d.ts +8 -8
  165. package/{dist → src/lib}/components/prepview/types/attachment.d.ts +7 -7
  166. package/{dist → src/lib}/components/prepview/types/common.d.ts +50 -50
  167. package/{dist → src/lib}/components/prepview/types/document.d.ts +13 -13
  168. package/{dist → src/lib}/components/prepview/types/index.d.ts +9 -9
  169. package/{dist → src/lib}/components/prepview/types/notification.d.ts +68 -68
  170. package/{dist → src/lib}/components/prepview/types/operation.d.ts +13 -13
  171. package/{dist → src/lib}/components/prepview/types/punch.d.ts +27 -27
  172. package/{dist → src/lib}/components/prepview/types/safety.d.ts +21 -21
  173. package/{dist → src/lib}/components/prepview/types/tag.d.ts +24 -24
  174. package/{dist → src/lib}/components/prepview/types/workorder.d.ts +83 -83
  175. package/{dist → src/lib}/components/prepview/utils/date.d.ts +5 -5
  176. package/{dist → src/lib}/components/prepview/utils/documents.d.ts +1 -1
  177. package/{dist → src/lib}/components/prepview/utils/dom.d.ts +1 -1
  178. package/{dist → src/lib}/components/prepview/utils/enums/documents.d.ts +14 -14
  179. package/{dist → src/lib}/components/prepview/utils/enums/index.d.ts +2 -2
  180. package/{dist → src/lib}/components/prepview/utils/enums/tagHistoryItem.d.ts +5 -5
  181. package/{dist → src/lib}/components/prepview/utils/index.d.ts +10 -10
  182. package/{dist → src/lib}/components/prepview/utils/logger.d.ts +71 -71
  183. package/{dist → src/lib}/components/prepview/utils/notification.d.ts +3 -3
  184. package/{dist → src/lib}/components/prepview/utils/object.d.ts +1 -1
  185. package/{dist → src/lib}/components/prepview/utils/punch.d.ts +1 -1
  186. package/{dist → src/lib}/components/prepview/utils/string.d.ts +1 -1
  187. package/{dist → src/lib}/components/prepview/utils/url.d.ts +9 -9
  188. package/{dist → src/lib}/components/prepview/utils/workorder.d.ts +2 -2
  189. package/{dist → src/lib}/components/prepview/workorder/details/DetailsWorkOrder.d.ts +9 -9
  190. package/{dist → src/lib}/components/prepview/workorder/details/index.d.ts +1 -1
  191. package/{dist → src/lib}/components/prepview/workorder/header/WorkOrderHeader.d.ts +8 -8
  192. package/{dist → src/lib}/components/prepview/workorder/header/index.d.ts +1 -1
  193. package/{dist → src/lib}/components/prepview/workorder/index.d.ts +9 -9
  194. package/{dist → src/lib}/components/projectSelector/ProcosysProjectSelector.d.ts +17 -17
  195. package/{dist → src/lib}/components/projectSelector/index.d.ts +1 -1
  196. package/{dist → src/lib}/components/realTimeData/RealTimePopoverButton.d.ts +18 -18
  197. package/{dist → src/lib}/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.d.ts +8 -8
  198. package/{dist → src/lib}/components/realTimeData/components/IMSDropdown/index.d.ts +1 -1
  199. package/{dist → src/lib}/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.d.ts +7 -7
  200. package/{dist → src/lib}/components/realTimeData/components/connectorForIMSTag/index.d.ts +1 -1
  201. package/{dist → src/lib}/components/realTimeData/components/contextButton/RealTimeContextButton.d.ts +7 -7
  202. package/{dist → src/lib}/components/realTimeData/components/contextButton/index.d.ts +1 -1
  203. package/{dist → src/lib}/components/realTimeData/components/contextPopover/Popover.d.ts +9 -9
  204. package/{dist → src/lib}/components/realTimeData/components/contextPopover/index.d.ts +1 -1
  205. package/{dist → src/lib}/components/realTimeData/components/index.d.ts +4 -4
  206. package/{dist → src/lib}/components/realTimeData/hooks/index.d.ts +3 -3
  207. package/{dist → src/lib}/components/realTimeData/hooks/useRealTimeHub.d.ts +13 -13
  208. package/{dist → src/lib}/components/realTimeData/hooks/useSignalR.d.ts +10 -10
  209. package/{dist → src/lib}/components/realTimeData/hooks/useSignalRListener.d.ts +4 -4
  210. package/{dist → src/lib}/components/realTimeData/index.d.ts +1 -1
  211. package/{dist → src/lib}/components/router/echoRoute.d.ts +11 -11
  212. package/{dist → src/lib}/components/router/echoRouter.d.ts +6 -6
  213. package/{dist → src/lib}/components/router/echoWrapper.d.ts +7 -7
  214. package/{dist → src/lib}/components/router/index.d.ts +3 -3
  215. package/{dist → src/lib}/components/router/routes.d.ts +5 -5
  216. package/{dist → src/lib}/components/searchMenu/index.d.ts +1 -1
  217. package/{dist → src/lib}/components/searchMenu/searchMenu.d.ts +3 -3
  218. package/{dist → src/lib}/components/tagNumber/index.d.ts +1 -1
  219. package/{dist → src/lib}/components/tagNumber/tagNumber.d.ts +8 -8
  220. package/{dist → src/lib}/components/toaster/index.d.ts +2 -2
  221. package/{dist → src/lib}/components/toaster/toaster.d.ts +10 -10
  222. package/{dist → src/lib}/components/toaster/toasters.d.ts +3 -3
  223. package/{dist → src/lib}/coreApplication/BarComponents/TopBarContent.d.ts +5 -5
  224. package/{dist → src/lib}/coreApplication/EchoBarComponent.d.ts +10 -10
  225. package/{dist → src/lib}/coreApplication/EchoContent.d.ts +8 -8
  226. package/{dist → src/lib}/coreApplication/EchoContentPanels.d.ts +9 -9
  227. package/{dist → src/lib}/coreApplication/EchoEventHandler.d.ts +11 -11
  228. package/{dist → src/lib}/coreApplication/EchoToolBar.d.ts +19 -20
  229. package/{dist → src/lib}/coreApplication/EchoTopBar.d.ts +4 -4
  230. package/{dist → src/lib}/coreApplication/EchoUserInterfaceStore.d.ts +21 -21
  231. package/{dist → src/lib}/coreApplication/index.d.ts +7 -7
  232. package/{dist → src/lib}/hooks/hookLibrary.d.ts +49 -49
  233. package/{dist → src/lib}/hooks/index.d.ts +8 -8
  234. package/{dist → src/lib}/hooks/useEchoHistory.d.ts +11 -11
  235. package/{dist → src/lib}/hooks/useHas3dAccess.d.ts +1 -1
  236. package/{dist → src/lib}/hooks/useIsCompactLayout.d.ts +5 -5
  237. package/{dist → src/lib}/hooks/useIsFullScreenModeEnabled.d.ts +1 -1
  238. package/{dist → src/lib}/hooks/useLongPress.d.ts +6 -6
  239. package/{dist → src/lib}/hooks/usePlantAvailableIn3d.d.ts +1 -1
  240. package/{dist → src/lib}/hooks/usePlantAvailableIn3dWeb.d.ts +1 -1
  241. package/{dist → src/lib}/hooks/useScreenOrientation.d.ts +5 -5
  242. package/{dist → src/lib}/hooks/useScreenValues.d.ts +13 -13
  243. package/{dist → src/lib}/hooks/useSemi.d.ts +21 -21
  244. package/{dist → src/lib}/hooks/useTagDetails.d.ts +20 -20
  245. package/{dist → src/lib}/hooks/useWindowSize.d.ts +8 -8
  246. package/{dist → src/lib}/icons/edsIons.d.ts +1 -1
  247. package/{dist → src/lib}/icons/equinor-logo.d.ts +2 -2
  248. package/{dist → src/lib}/icons/logo_ee.d.ts +3 -3
  249. package/{dist → src/lib}/icons/search.d.ts +3 -3
  250. package/{dist → src/lib}/services/api/api-manager.d.ts +19 -19
  251. package/{dist → src/lib}/services/api/api-plantinfo.d.ts +5 -5
  252. package/{dist → src/lib}/services/api/api-plants.d.ts +7 -7
  253. package/{dist → src/lib}/services/api/api-realtimedata.d.ts +2 -2
  254. package/{dist → src/lib}/services/api/api-tag-details.d.ts +17 -17
  255. package/{dist → src/lib}/services/api/api-tag-list-for-3D.d.ts +26 -26
  256. package/{dist → src/lib}/services/api/api-tags.d.ts +17 -17
  257. package/{dist → src/lib}/services/api/api-version.d.ts +2 -2
  258. package/{dist → src/lib}/services/api/index.d.ts +3 -3
  259. package/{dist → src/lib}/services/componentRegistry/componentRegistry.d.ts +34 -34
  260. package/{dist → src/lib}/services/deviceInformation/deepDeviceInfo.d.ts +41 -41
  261. package/{dist → src/lib}/services/deviceInformation/deviceInfo.d.ts +45 -45
  262. package/{dist → src/lib}/services/echopediaAnalyticsModule/echopediaAnalyticsModule.d.ts +1 -1
  263. package/{dist → src/lib}/services/eventCallbacks/plantChanged.d.ts +9 -9
  264. package/{dist → src/lib}/services/eventHubActions/index.d.ts +1 -1
  265. package/{dist → src/lib}/services/eventHubActions/toastActions.d.ts +6 -6
  266. package/{dist → src/lib}/services/searchItemDetails/searchItemDetails.store.d.ts +26 -26
  267. package/{dist → src/lib}/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -6
  268. package/{dist → src/lib}/theme/themeConst.d.ts +51 -51
  269. package/{dist → src/lib}/types/api-echohub.d.ts +36 -36
  270. package/{dist → src/lib}/types/api-proCoSysTagResponse.d.ts +8 -8
  271. package/{dist → src/lib}/types/device.d.ts +53 -53
  272. package/{dist → src/lib}/types/echoHubPlant.d.ts +11 -11
  273. package/{dist → src/lib}/types/eventTypes/fullScreenModeEvent.d.ts +3 -3
  274. package/{dist → src/lib}/types/eventTypes/index.d.ts +5 -5
  275. package/{dist → src/lib}/types/eventTypes/legendEvent.d.ts +4 -4
  276. package/{dist → src/lib}/types/eventTypes/plantEvent.d.ts +5 -5
  277. package/{dist → src/lib}/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -3
  278. package/{dist → src/lib}/types/eventTypes/toasterEvent.d.ts +5 -5
  279. package/{dist → src/lib}/types/extensions.d.ts +7 -7
  280. package/{dist → src/lib}/types/hookLibrary.d.ts +20 -20
  281. package/{dist → src/lib}/types/legend.d.ts +45 -45
  282. package/{dist → src/lib}/types/modelPermissions.d.ts +4 -4
  283. package/{dist → src/lib}/types/pingableSources.d.ts +4 -4
  284. package/{dist → src/lib}/types/realtimedata.d.ts +18 -18
  285. package/{dist → src/lib}/types/toaster.d.ts +7 -7
  286. package/{dist → src/lib}/types/toasterMessage.d.ts +5 -5
  287. package/{dist → src/lib}/utils/arrayUtils.d.ts +8 -8
  288. package/{dist → src/lib}/utils/copyText.d.ts +2 -2
  289. package/{dist → src/lib}/utils/eventHandlerUtils.d.ts +1 -1
  290. package/{dist → src/lib}/utils/index.d.ts +3 -3
  291. package/{dist → src/lib}/utils/legendUtils.d.ts +18 -18
  292. package/{dist → src/lib}/utils/navigationUtils.d.ts +7 -7
  293. package/{dist → src/lib}/utils/plantInfo.d.ts +98 -98
  294. package/{dist → src/lib}/utils/plantsDataUtils.d.ts +9 -9
  295. package/{dist → src/lib}/utils/projectSelectorUtils.d.ts +1 -1
  296. package/{dist → src/lib}/utils/searchUtil.d.ts +1 -1
  297. package/{dist → src/lib}/utils/startup.d.ts +6 -6
  298. package/{dist → src/lib}/utils/tagUtils.d.ts +23 -23
  299. package/{dist → src/lib}/utils/taskCache.d.ts +23 -23
  300. package/LICENSE +0 -21
  301. package/dist/__tests__/3dButtonUtils.test.d.ts +0 -1
  302. package/dist/__tests__/eventHandlerUtils.test.d.ts +0 -1
  303. package/dist/__tests__/plantInfoSetup.d.ts +0 -2
  304. package/dist/__tests__/plantInfoUtils.test.d.ts +0 -1
  305. package/dist/__tests__/prepviewUtils.test.d.ts +0 -1
  306. package/dist/__tests__/projectSelectorUtils.test.d.ts +0 -1
  307. package/dist/__tests__/realTimeDataHooks.test.d.ts +0 -1
  308. package/dist/__tests__/realTimeDataUtils.test.d.ts +0 -1
  309. package/dist/components/appLinks/applinkUtils.test.d.ts +0 -1
  310. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.test.d.ts +0 -1
  311. package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.test.d.ts +0 -1
  312. package/dist/components/contextualAppLinks/hooks/useContextualAppLinksContext.test.d.ts +0 -1
  313. package/dist/components/homePage/HomePage.d.ts +0 -2
  314. package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +0 -3
  315. package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +0 -6
  316. package/dist/components/prepview/common/link/Link.d.ts +0 -7
  317. package/dist/hooks/useLongPress.test.d.ts +0 -1
  318. package/dist/hooks/useSemi.test.d.ts +0 -1
  319. package/dist/hooks/useTagDetails.test.d.ts +0 -1
  320. package/dist/index.css +0 -1
  321. package/dist/index.d.ts +0 -102
  322. package/dist/index.js +0 -43
  323. package/dist/services/api/api-tag-details.test.d.ts +0 -1
  324. package/dist/services/api/api-tag-list-for-3D.test.d.ts +0 -1
  325. package/dist/services/api/api-tags.test.d.ts +0 -1
  326. package/dist/services/componentRegistry/componentRegistry.test.d.ts +0 -1
  327. package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +0 -1
  328. package/dist/setupTests.d.ts +0 -1
  329. package/dist/utils/arrayUtils.test.d.ts +0 -1
  330. package/dist/utils/copyText.test.d.ts +0 -1
  331. package/dist/utils/legendUtils.test.d.ts +0 -1
  332. package/dist/utils/navigationUtils.test.d.ts +0 -1
  333. package/dist/utils/plantInfo.test.d.ts +0 -1
  334. package/dist/utils/tagUtils.test.d.ts +0 -1
  335. package/dist/utils/taskCache.test.d.ts +0 -1
  336. /package/{dist/1bd97dd2170d0f64.svg → 1bd97dd2170d0f64.svg} +0 -0
  337. /package/{dist/47deeba42768c5d1.svg → 47deeba42768c5d1.svg} +0 -0
@@ -1,3 +1,3 @@
1
- import React, { FunctionComponent } from 'react';
2
- export declare const icon: FunctionComponent<React.SVGProps<SVGSVGElement>>;
3
- export default icon;
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare const icon: FunctionComponent<React.SVGProps<SVGSVGElement>>;
3
+ export default icon;
@@ -1,19 +1,19 @@
1
- export declare const baseApiUrl: string;
2
- type ResponseParser<T> = (response: Response) => Promise<T>;
3
- interface RequestOptions<T> {
4
- /**
5
- * Optional response parsing function
6
- */
7
- successResponseParser?: ResponseParser<T>;
8
- }
9
- interface Request<T> {
10
- url: string;
11
- abortSignal?: AbortSignal;
12
- cache: {
13
- isEnabled: boolean;
14
- timeToLiveMilliseconds?: number;
15
- };
16
- options?: RequestOptions<T>;
17
- }
18
- export declare function request<T>({ cache, url, abortSignal, options }: Request<T>): Promise<T | undefined>;
19
- export {};
1
+ export declare const baseApiUrl: string;
2
+ type ResponseParser<T> = (response: Response) => Promise<T>;
3
+ interface RequestOptions<T> {
4
+ /**
5
+ * Optional response parsing function
6
+ */
7
+ successResponseParser?: ResponseParser<T>;
8
+ }
9
+ interface Request<T> {
10
+ url: string;
11
+ abortSignal?: AbortSignal;
12
+ cache: {
13
+ isEnabled: boolean;
14
+ timeToLiveMilliseconds?: number;
15
+ };
16
+ options?: RequestOptions<T>;
17
+ }
18
+ export declare function request<T>({ cache, url, abortSignal, options }: Request<T>): Promise<T | undefined>;
19
+ export {};
@@ -1,5 +1,5 @@
1
- import { EchoHubPlant } from '../../types/echoHubPlant';
2
- import { ModelPermissions } from '../../types/modelPermissions';
3
- export declare function getPlantsInfo(instCode?: string): Promise<EchoHubPlant[]>;
4
- export declare function check3dPermissionForPlant(plantCode: string): Promise<ModelPermissions>;
5
- export declare function getPermitted3dModels(): Promise<ModelPermissions>;
1
+ import { EchoHubPlant } from '../../types/echoHubPlant';
2
+ import { ModelPermissions } from '../../types/modelPermissions';
3
+ export declare function getPlantsInfo(instCode?: string): Promise<EchoHubPlant[]>;
4
+ export declare function check3dPermissionForPlant(plantCode: string): Promise<ModelPermissions>;
5
+ export declare function getPermitted3dModels(): Promise<ModelPermissions>;
@@ -1,7 +1,7 @@
1
- import { Plant } from '@equinor/echo-core';
2
- /**
3
- * Function for getting a list of plants from our API.
4
- * @export
5
- * @return {*} {Promise<Plant[]>}
6
- */
7
- export declare function getPlantsFromApi(): Promise<Plant[]>;
1
+ import { Plant } from '@equinor/echo-core';
2
+ /**
3
+ * Function for getting a list of plants from our API.
4
+ * @export
5
+ * @return {*} {Promise<Plant[]>}
6
+ */
7
+ export declare function getPlantsFromApi(): Promise<Plant[]>;
@@ -1,2 +1,2 @@
1
- import { IMSByName } from '../../types/realtimedata';
2
- export declare function getTimeseriesByName(name: string, instCode: string): Promise<IMSByName | undefined>;
1
+ import { IMSByName } from '../../types/realtimedata';
2
+ export declare function getTimeseriesByName(name: string, instCode: string): Promise<IMSByName | undefined>;
@@ -1,17 +1,17 @@
1
- import { TagDetailsDto } from '@equinor/echo-search';
2
- /**
3
- * Wraps Search.Tags.getTagDetailsAsync(), and throws proper NotFoundError if search was unable to find the given tag.
4
- * It also converts Search's result.error responses to proper errors and throws them.
5
- *
6
- * @param {Object} param
7
- * @param {string} params.tagNo The tag number to query.
8
- * @param {string} params.instCode Plant installation code for the given tag.
9
- * @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
10
- * @throws {NotFoundError} NotFoundError when there are no matches for the tagNo instCode pair.
11
- * @throws {BaseError} In any other failed API call.
12
- * @returns {Promise<TagDetailsDto>} Promise resolving in tag details DTO.
13
- */
14
- export declare function getTagDetails({ tagNo, instCode }: {
15
- tagNo: string;
16
- instCode?: string;
17
- }): Promise<TagDetailsDto>;
1
+ import { TagDetailsDto } from '@equinor/echo-search';
2
+ /**
3
+ * Wraps Search.Tags.getTagDetailsAsync(), and throws proper NotFoundError if search was unable to find the given tag.
4
+ * It also converts Search's result.error responses to proper errors and throws them.
5
+ *
6
+ * @param {Object} param
7
+ * @param {string} params.tagNo The tag number to query.
8
+ * @param {string} params.instCode Plant installation code for the given tag.
9
+ * @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
10
+ * @throws {NotFoundError} NotFoundError when there are no matches for the tagNo instCode pair.
11
+ * @throws {BaseError} In any other failed API call.
12
+ * @returns {Promise<TagDetailsDto>} Promise resolving in tag details DTO.
13
+ */
14
+ export declare function getTagDetails({ tagNo, instCode }: {
15
+ tagNo: string;
16
+ instCode?: string;
17
+ }): Promise<TagDetailsDto>;
@@ -1,26 +1,26 @@
1
- import { TemporaryEchoHubListDto, TemporaryHubListCreatedResponse } from '../../types/api-echohub';
2
- /**
3
- * Method for creating a temporarily hub list, method will return urls to open this list in 3D App and 3D web
4
- * List is valid for 1 month when using this method
5
- * Will throw error if api call goes wrong
6
- *
7
- * @param {string} instCode the users instCode
8
- * @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
9
- * @param {(AbortSignal | undefined)} [abortSignal] the abort signal
10
- * @param {boolean} withoutBaseUrl returns the web3dUrl without the base URL
11
- * @return {*} returns urls to open created list in 3D app and 3D web.
12
- */
13
- export declare const getTemporarilyEchoHubListFor3D: (instCode: string, request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined, withoutBaseUrl?: boolean) => Promise<{
14
- app3dUrl: string;
15
- web3dUrl: string;
16
- }>;
17
- /**
18
- * Method for creating a temporarily hub list, method will return urls to open this list in 3D App and the lists ID
19
- * Use getTemporarilyEchoHubListFor3D method for getting url for both 3D App and 3D web
20
- * Will throw error if api call goes wrong
21
- *
22
- * @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
23
- * @param {(AbortSignal | undefined)} [abortSignal] the abort signal
24
- * @return {*} {(Promise<TemporaryHubListCreatedResponse>)} returns url to open created list in 3D app and lists ID.
25
- */
26
- export declare const createTemporarilyEchoHubListFor3D: (request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<TemporaryHubListCreatedResponse>;
1
+ import { TemporaryEchoHubListDto, TemporaryHubListCreatedResponse } from '../../types/api-echohub';
2
+ /**
3
+ * Method for creating a temporarily hub list, method will return urls to open this list in 3D App and 3D web
4
+ * List is valid for 1 month when using this method
5
+ * Will throw error if api call goes wrong
6
+ *
7
+ * @param {string} instCode the users instCode
8
+ * @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
9
+ * @param {(AbortSignal | undefined)} [abortSignal] the abort signal
10
+ * @param {boolean} withoutBaseUrl returns the web3dUrl without the base URL
11
+ * @return {*} returns urls to open created list in 3D app and 3D web.
12
+ */
13
+ export declare const getTemporarilyEchoHubListFor3D: (instCode: string, request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined, withoutBaseUrl?: boolean) => Promise<{
14
+ app3dUrl: string;
15
+ web3dUrl: string;
16
+ }>;
17
+ /**
18
+ * Method for creating a temporarily hub list, method will return urls to open this list in 3D App and the lists ID
19
+ * Use getTemporarilyEchoHubListFor3D method for getting url for both 3D App and 3D web
20
+ * Will throw error if api call goes wrong
21
+ *
22
+ * @param {TemporaryEchoHubListDto} request the request used to create the list. See type description
23
+ * @param {(AbortSignal | undefined)} [abortSignal] the abort signal
24
+ * @return {*} {(Promise<TemporaryHubListCreatedResponse>)} returns url to open created list in 3D app and lists ID.
25
+ */
26
+ export declare const createTemporarilyEchoHubListFor3D: (request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<TemporaryHubListCreatedResponse>;
@@ -1,17 +1,17 @@
1
- import { ProCoSysApiTag } from '../../types/api-proCoSysTagResponse';
2
- /**
3
- * Fetches tag information from ProCoSys.
4
- *
5
- * @param {Object} param
6
- * @param {string} params.tagNo The tag number to query.
7
- * @param {string} params.instCode Plant installation code for the given tag.
8
- * @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
9
- * @throws {BaseError} If the response can't be parsed to JSON.
10
- * @throws {Error} In any other API call issues.
11
- * @returns {Promise<TProCoSysApiTag[]>} Promise resolving in array of tags.
12
- */
13
- export declare function getTagFromProCoSys({ instCode, tagNo, abortSignal }: {
14
- instCode: string;
15
- tagNo: string;
16
- abortSignal?: AbortSignal;
17
- }): Promise<ProCoSysApiTag[]>;
1
+ import { ProCoSysApiTag } from '../../types/api-proCoSysTagResponse';
2
+ /**
3
+ * Fetches tag information from ProCoSys.
4
+ *
5
+ * @param {Object} param
6
+ * @param {string} params.tagNo The tag number to query.
7
+ * @param {string} params.instCode Plant installation code for the given tag.
8
+ * @param {AbortSignal} params.abortSignal A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
9
+ * @throws {BaseError} If the response can't be parsed to JSON.
10
+ * @throws {Error} In any other API call issues.
11
+ * @returns {Promise<TProCoSysApiTag[]>} Promise resolving in array of tags.
12
+ */
13
+ export declare function getTagFromProCoSys({ instCode, tagNo, abortSignal }: {
14
+ instCode: string;
15
+ tagNo: string;
16
+ abortSignal?: AbortSignal;
17
+ }): Promise<ProCoSysApiTag[]>;
@@ -1,2 +1,2 @@
1
- export declare function getApiVersion(): Promise<string>;
2
- export declare function getAppVersion(): Promise<string>;
1
+ export declare function getApiVersion(): Promise<string>;
2
+ export declare function getAppVersion(): Promise<string>;
@@ -1,3 +1,3 @@
1
- export * from './api-plantinfo';
2
- export { getTagDetails } from './api-tag-details';
3
- export * from './api-tag-list-for-3D';
1
+ export * from './api-plantinfo';
2
+ export { getTagDetails } from './api-tag-details';
3
+ export * from './api-tag-list-for-3D';
@@ -1,34 +1,34 @@
1
- /// <reference types="react" />
2
- type AnyComponentType = React.FC<any>;
3
- export declare enum RegisteredComponentName {
4
- /** @deprecated Please use 'TagListItem' instead - that supports the new search flow */
5
- TagItem = "TagItem",
6
- TagListItem = "TagListItem"
7
- }
8
- export declare const componentRegistry: Readonly<{
9
- /**
10
- * Should be only used by EchopediaWeb, when bootstrapping Echo app.
11
- * Use this method to register a legacy component from Echopedia to EchoFramework, so it's available for others to use.
12
- * Originally created to make tightly coupled components available until they are properly refactored and decoupled.
13
- * @param {RegisteredComponentName} name The component will be assigned to this key.
14
- * @param {React.FC<any>} component The component which should be registered.
15
- */
16
- registerComponent: ({ name, component }: {
17
- name: RegisteredComponentName;
18
- component: AnyComponentType;
19
- }) => void;
20
- /**
21
- * @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
22
- * Returns with the TagItem component, which is used in EchopediaWeb's search panel
23
- * and pdf side drawer when listing out tags.
24
- * @returns {React.FC<any>}
25
- */
26
- getTagItem: () => AnyComponentType;
27
- /**
28
- * Returns with the TagItem component, which is used in EchopediaWeb's search panel
29
- * and pdf side drawer when listing out tags.
30
- * @returns {React.FC<any>}
31
- */
32
- getTagListItem: () => AnyComponentType;
33
- }>;
34
- export {};
1
+ /// <reference types="react" />
2
+ type AnyComponentType = React.FC<any>;
3
+ export declare enum RegisteredComponentName {
4
+ /** @deprecated Please use 'TagListItem' instead - that supports the new search flow */
5
+ TagItem = "TagItem",
6
+ TagListItem = "TagListItem"
7
+ }
8
+ export declare const componentRegistry: Readonly<{
9
+ /**
10
+ * Should be only used by EchopediaWeb, when bootstrapping Echo app.
11
+ * Use this method to register a legacy component from Echopedia to EchoFramework, so it's available for others to use.
12
+ * Originally created to make tightly coupled components available until they are properly refactored and decoupled.
13
+ * @param {RegisteredComponentName} name The component will be assigned to this key.
14
+ * @param {React.FC<any>} component The component which should be registered.
15
+ */
16
+ registerComponent: ({ name, component }: {
17
+ name: RegisteredComponentName;
18
+ component: AnyComponentType;
19
+ }) => void;
20
+ /**
21
+ * @deprecated Please use 'getTagListItem()' instead - that supports the new search flow
22
+ * Returns with the TagItem component, which is used in EchopediaWeb's search panel
23
+ * and pdf side drawer when listing out tags.
24
+ * @returns {React.FC<any>}
25
+ */
26
+ getTagItem: () => AnyComponentType;
27
+ /**
28
+ * Returns with the TagItem component, which is used in EchopediaWeb's search panel
29
+ * and pdf side drawer when listing out tags.
30
+ * @returns {React.FC<any>}
31
+ */
32
+ getTagListItem: () => AnyComponentType;
33
+ }>;
34
+ export {};
@@ -1,41 +1,41 @@
1
- /// <reference types="user-agent-data-types" />
2
- import UAParser from 'ua-parser-js';
3
- import { DetailedDeviceInformation } from '../../types/device';
4
- /**
5
- * This object is concerned with gathering and holding information about the users device.
6
- * This object will be read-only after initialization and should as a rule throw errors if the
7
- * deviceInformation property is altered after intialization.
8
- */
9
- declare class DetailedDeviceInformationProvider {
10
- /** Represents the user agent string parser.
11
- * This method is treated as a fallback if the User-Agent Client Hints API does not provide a coherent value
12
- * or if the browser does not yet support it.
13
- */
14
- private readonly _uaParser;
15
- /**
16
- * Stores the system report from a call to the underlying system.
17
- * - If this is undefined, it is not yet initialized (it happens asynchronously).
18
- */
19
- private readonly _uaDataValues;
20
- /** Holds the current device information and should be the single source of truth.
21
- *
22
- * It can be undefined because we have to asynchronously fetch underlying system information.
23
- */
24
- private readonly _deviceInformation;
25
- private constructor();
26
- get deviceInformation(): DetailedDeviceInformation;
27
- get uaDataValues(): UADataValues | null | undefined;
28
- get uaParser(): UAParser.UAParserInstance;
29
- /** Constructs the parser and returns it. */
30
- static initialize(): DetailedDeviceInformationProvider;
31
- private static getPlatform;
32
- private static getWebBrowser;
33
- private static getOperatingSystem;
34
- /**
35
- * TODO: Get the device model from Client Hints API.
36
- * This requires top-level await support, which in turn has to be implemented to modules downstream.
37
- */
38
- private static getDeviceModel;
39
- }
40
- declare const detailedDeviceInformationProvider: DetailedDeviceInformationProvider;
41
- export { DetailedDeviceInformationProvider, detailedDeviceInformationProvider };
1
+ /// <reference types="user-agent-data-types" />
2
+ import UAParser from 'ua-parser-js';
3
+ import { DetailedDeviceInformation } from '../../types/device';
4
+ /**
5
+ * This object is concerned with gathering and holding information about the users device.
6
+ * This object will be read-only after initialization and should as a rule throw errors if the
7
+ * deviceInformation property is altered after intialization.
8
+ */
9
+ declare class DetailedDeviceInformationProvider {
10
+ /** Represents the user agent string parser.
11
+ * This method is treated as a fallback if the User-Agent Client Hints API does not provide a coherent value
12
+ * or if the browser does not yet support it.
13
+ */
14
+ private readonly _uaParser;
15
+ /**
16
+ * Stores the system report from a call to the underlying system.
17
+ * - If this is undefined, it is not yet initialized (it happens asynchronously).
18
+ */
19
+ private readonly _uaDataValues;
20
+ /** Holds the current device information and should be the single source of truth.
21
+ *
22
+ * It can be undefined because we have to asynchronously fetch underlying system information.
23
+ */
24
+ private readonly _deviceInformation;
25
+ private constructor();
26
+ get deviceInformation(): DetailedDeviceInformation;
27
+ get uaDataValues(): UADataValues | null | undefined;
28
+ get uaParser(): UAParser.UAParserInstance;
29
+ /** Constructs the parser and returns it. */
30
+ static initialize(): DetailedDeviceInformationProvider;
31
+ private static getPlatform;
32
+ private static getWebBrowser;
33
+ private static getOperatingSystem;
34
+ /**
35
+ * TODO: Get the device model from Client Hints API.
36
+ * This requires top-level await support, which in turn has to be implemented to modules downstream.
37
+ */
38
+ private static getDeviceModel;
39
+ }
40
+ declare const detailedDeviceInformationProvider: DetailedDeviceInformationProvider;
41
+ export { DetailedDeviceInformationProvider, detailedDeviceInformationProvider };
@@ -1,45 +1,45 @@
1
- import { Browser, DetailedDeviceInformation, DeviceType, IDeviceSummary, ScreenDimensions, ScreenOrientation, UserInput } from '../../types/device';
2
- import { detailedDeviceInformationProvider } from './deepDeviceInfo';
3
- type Props = {
4
- detailedDeviceInfo: typeof detailedDeviceInformationProvider;
5
- };
6
- declare class DeviceInformation {
7
- /**
8
- * Represents the current viewport orientation.
9
- * If the viewport is square, it will default to portrait.
10
- */
11
- private _orientation;
12
- /**
13
- * Represents an abstracted device type: desktop, tablet or mobile.
14
- */
15
- private readonly _deviceType;
16
- /**
17
- * Represents the current input source.
18
- * Note: On a touchscreen device which has a mouse plugged in, it will return the mouse.
19
- */
20
- private readonly _userInput;
21
- private readonly _browser?;
22
- /**
23
- * Represents the viewport (layout and visual) and (full)screen dimensions.
24
- * WebKit browsers prior to 15 will only support layout dimensions.
25
- */
26
- private _dimensions;
27
- protected orientationIsLandscapeQuery: MediaQueryList;
28
- private _detailedDeviceInfo;
29
- constructor(props: Props);
30
- private getUpdatedScreenDimensions;
31
- private getBrowser;
32
- private getUserInput;
33
- /** Returns the current viewing medium.*/
34
- private getDeviceType;
35
- private getOrientation;
36
- getDeviceDetails(): DetailedDeviceInformation;
37
- get orientation(): ScreenOrientation;
38
- get deviceType(): DeviceType;
39
- get userInput(): UserInput;
40
- get screenDimensions(): ScreenDimensions;
41
- get browser(): Browser | undefined;
42
- getDeviceSummary(): IDeviceSummary;
43
- }
44
- declare const deviceInfo: DeviceInformation;
45
- export { deviceInfo, DeviceInformation };
1
+ import { Browser, DetailedDeviceInformation, DeviceType, IDeviceSummary, ScreenDimensions, ScreenOrientation, UserInput } from '../../types/device';
2
+ import { detailedDeviceInformationProvider } from './deepDeviceInfo';
3
+ type Props = {
4
+ detailedDeviceInfo: typeof detailedDeviceInformationProvider;
5
+ };
6
+ declare class DeviceInformation {
7
+ /**
8
+ * Represents the current viewport orientation.
9
+ * If the viewport is square, it will default to portrait.
10
+ */
11
+ private _orientation;
12
+ /**
13
+ * Represents an abstracted device type: desktop, tablet or mobile.
14
+ */
15
+ private readonly _deviceType;
16
+ /**
17
+ * Represents the current input source.
18
+ * Note: On a touchscreen device which has a mouse plugged in, it will return the mouse.
19
+ */
20
+ private readonly _userInput;
21
+ private readonly _browser?;
22
+ /**
23
+ * Represents the viewport (layout and visual) and (full)screen dimensions.
24
+ * WebKit browsers prior to 15 will only support layout dimensions.
25
+ */
26
+ private _dimensions;
27
+ protected orientationIsLandscapeQuery: MediaQueryList;
28
+ private _detailedDeviceInfo;
29
+ constructor(props: Props);
30
+ private getUpdatedScreenDimensions;
31
+ private getBrowser;
32
+ private getUserInput;
33
+ /** Returns the current viewing medium.*/
34
+ private getDeviceType;
35
+ private getOrientation;
36
+ getDeviceDetails(): DetailedDeviceInformation;
37
+ get orientation(): ScreenOrientation;
38
+ get deviceType(): DeviceType;
39
+ get userInput(): UserInput;
40
+ get screenDimensions(): ScreenDimensions;
41
+ get browser(): Browser | undefined;
42
+ getDeviceSummary(): IDeviceSummary;
43
+ }
44
+ declare const deviceInfo: DeviceInformation;
45
+ export { deviceInfo, DeviceInformation };
@@ -1 +1 @@
1
- export declare const echopediaAnalyticsModule: import("@equinor/echo-core").AnalyticsModule;
1
+ export declare const echopediaAnalyticsModule: import("@equinor/echo-core").AnalyticsModule;
@@ -1,9 +1,9 @@
1
- import { Plant } from '@equinor/echo-core';
2
- import { History } from 'history';
3
- /**
4
- * Callback function to be used with the event listener for changing plants.
5
- * Sets the selected plant in our local storage.
6
- * @param {Plant} newSelectedPlant
7
- * @return {*} {Promise<void>}
8
- */
9
- export declare const handlePlantChanged: (newSelectedPlant: Plant, history: History<unknown>, stayOnPath?: boolean) => Promise<void>;
1
+ import { Plant } from '@equinor/echo-core';
2
+ import { History } from 'history';
3
+ /**
4
+ * Callback function to be used with the event listener for changing plants.
5
+ * Sets the selected plant in our local storage.
6
+ * @param {Plant} newSelectedPlant
7
+ * @return {*} {Promise<void>}
8
+ */
9
+ export declare const handlePlantChanged: (newSelectedPlant: Plant, history: History, stayOnPath?: boolean) => Promise<void>;
@@ -1 +1 @@
1
- export * from './toastActions';
1
+ export * from './toastActions';
@@ -1,6 +1,6 @@
1
- import { ToasterEvent } from './../../types/eventTypes/toasterEvent';
2
- /**
3
- * Emit a Toaster event on echo core eventHub with a specific payload.
4
- * @param {ToasterEvent} payload
5
- */
6
- export declare const displayToast: (payload: ToasterEvent) => void;
1
+ import { ToasterEvent } from './../../types/eventTypes/toasterEvent';
2
+ /**
3
+ * Emit a Toaster event on echo core eventHub with a specific payload.
4
+ * @param {ToasterEvent} payload
5
+ */
6
+ export declare const displayToast: (payload: ToasterEvent) => void;
@@ -1,26 +1,26 @@
1
- import { ReactNode } from 'react';
2
- export declare const useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<SearchItemDetailsState>, "setState"> & {
3
- setState(nextStateOrUpdater: SearchItemDetailsState | Partial<SearchItemDetailsState> | ((state: import("immer/dist/internal").WritableDraft<SearchItemDetailsState>) => void), shouldReplace?: boolean | undefined): void;
4
- }>;
5
- export type SearchItemDetailsObject = {
6
- content: ReactNode;
7
- header?: ReactNode;
8
- subHeader?: ReactNode;
9
- isOpen: boolean;
10
- };
11
- export type SearchItemDetailsState = {
12
- actions: {
13
- showDetails: (args: ShowDetailsArgs) => void;
14
- hideDetails: (panelKey: string) => void;
15
- clearItemsByPanelKey: (panelKey: string) => void;
16
- };
17
- items: Record<string, SearchItemDetailsObject[]>;
18
- };
19
- type ShowDetailsArgs = {
20
- panelKey: string;
21
- content: ReactNode;
22
- header?: ReactNode;
23
- subHeader?: ReactNode;
24
- replaceLastNavigationItem?: boolean;
25
- };
26
- export {};
1
+ import { ReactNode } from 'react';
2
+ export declare const useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<unknown>, "setState"> & {
3
+ setState(nextStateOrUpdater: unknown, shouldReplace?: boolean | undefined): void;
4
+ }>;
5
+ export type SearchItemDetailsObject = {
6
+ content: ReactNode;
7
+ header?: ReactNode;
8
+ subHeader?: ReactNode;
9
+ isOpen: boolean;
10
+ };
11
+ export type SearchItemDetailsState = {
12
+ actions: {
13
+ showDetails: (args: ShowDetailsArgs) => void;
14
+ hideDetails: (panelKey: string) => void;
15
+ clearItemsByPanelKey: (panelKey: string) => void;
16
+ };
17
+ items: Record<string, SearchItemDetailsObject[]>;
18
+ };
19
+ type ShowDetailsArgs = {
20
+ panelKey: string;
21
+ content: ReactNode;
22
+ header?: ReactNode;
23
+ subHeader?: ReactNode;
24
+ replaceLastNavigationItem?: boolean;
25
+ };
26
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- interface SearchItemDetailsContainerProps {
3
- onSearchDetailsClose?: (panelKey: string) => void;
4
- }
5
- export declare const SearchItemDetailsContainer: React.FC<SearchItemDetailsContainerProps>;
6
- export {};
1
+ import React from 'react';
2
+ interface SearchItemDetailsContainerProps {
3
+ onSearchDetailsClose?: (panelKey: string) => void;
4
+ }
5
+ export declare const SearchItemDetailsContainer: React.FC<SearchItemDetailsContainerProps>;
6
+ export {};