@equinor/echo-framework 0.12.9 → 0.12.11

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 (25) hide show
  1. package/dist/components/homePage/HomePage.d.ts +2 -1
  2. package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +2 -2
  3. package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +2 -2
  4. package/dist/components/prepview/common/contentPicker/ContentPicker.d.ts +2 -2
  5. package/dist/components/prepview/common/details/accordion/DetailsAccordion.d.ts +1 -1
  6. package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +2 -2
  7. package/dist/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +2 -2
  8. package/dist/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +2 -2
  9. package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +2 -2
  10. package/dist/components/prepview/common/info/section/InfoSection.d.ts +1 -1
  11. package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +2 -2
  12. package/dist/components/prepview/common/link/Link.d.ts +2 -2
  13. package/dist/components/prepview/panels/attachments/Attachments.d.ts +2 -2
  14. package/dist/components/prepview/panels/objects/Objects.d.ts +2 -2
  15. package/dist/components/prepview/panels/operations/Operations.d.ts +2 -2
  16. package/dist/components/prepview/panels/risk/Risk.d.ts +2 -2
  17. package/dist/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +1 -1
  18. package/dist/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +2 -2
  19. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +2 -2
  20. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +2 -2
  21. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +2 -2
  22. package/dist/components/prepview/panels/tagInformation/TagInformation.d.ts +2 -2
  23. package/dist/coreApplication/EchoToolBar.d.ts +2 -2
  24. package/dist/index.js +4 -4
  25. package/package.json +21 -21
@@ -1 +1,2 @@
1
- export declare const HomePage: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const HomePage: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../types';
3
3
  interface Props {
4
4
  workOrderDetails?: WorkOrderDetails;
@@ -6,5 +6,5 @@ interface Props {
6
6
  additionalDetails: AdditionalDetailsDto;
7
7
  closePanel: () => void;
8
8
  }
9
- declare function AdditionalDetails({ workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element;
9
+ declare function AdditionalDetails({ workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): React.JSX.Element;
10
10
  export { AdditionalDetails };
@@ -6,9 +6,9 @@ interface Props {
6
6
  additionalDetails: AdditionalDetailsDto;
7
7
  closePanel: () => void;
8
8
  }
9
- declare function TabsPanels({ workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element | null;
9
+ declare function TabsPanels({ workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): React.JSX.Element | null;
10
10
  interface TabsListProps {
11
11
  tabListRef: React.RefObject<HTMLDivElement>;
12
12
  }
13
- declare function TabsList({ tabListRef }: TabsListProps): JSX.Element | null;
13
+ declare function TabsList({ tabListRef }: TabsListProps): React.JSX.Element | null;
14
14
  export { TabsPanels, TabsList };
@@ -1,8 +1,8 @@
1
- import { CSSProperties } from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import type { ContentPickerGroup } from '../../types';
3
3
  interface ContentPickerProps {
4
4
  groups: ContentPickerGroup[];
5
5
  listItemStyle?: CSSProperties;
6
6
  }
7
- declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): JSX.Element;
7
+ declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): React.JSX.Element;
8
8
  export { ContentPicker };
@@ -4,5 +4,5 @@ interface DetailsAccordionProps {
4
4
  headerLevel?: AccordionProps['headerLevel'];
5
5
  children: React.ReactNode[];
6
6
  }
7
- declare function DetailsAccordion({ headerLevel, children }: DetailsAccordionProps): JSX.Element;
7
+ declare function DetailsAccordion({ headerLevel, children }: DetailsAccordionProps): React.JSX.Element;
8
8
  export { DetailsAccordion };
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare function DetailsLoader(): JSX.Element | null;
1
+ import React from 'react';
2
+ declare function DetailsLoader(): React.JSX.Element | null;
3
3
  export { DetailsLoader };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface EmptyDetailsPanelProps {
3
3
  text: string;
4
4
  }
5
- declare function EmptyDetailsPanel({ text }: EmptyDetailsPanelProps): JSX.Element;
5
+ declare function EmptyDetailsPanel({ text }: EmptyDetailsPanelProps): React.JSX.Element;
6
6
  export { EmptyDetailsPanel };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FileDto } from '@equinor/echo-search';
3
3
  interface FileSizeDisplayProps {
4
4
  files: FileDto[];
@@ -6,6 +6,6 @@ interface FileSizeDisplayProps {
6
6
  viewCode?: 'v';
7
7
  className?: string;
8
8
  }
9
- declare function FileSizeDisplay({ files, fileType, viewCode, className }: FileSizeDisplayProps): JSX.Element | null;
9
+ declare function FileSizeDisplay({ files, fileType, viewCode, className }: FileSizeDisplayProps): React.JSX.Element | null;
10
10
  declare function formatBytes(bytes: number, decimals?: number): string;
11
11
  export { FileSizeDisplay, formatBytes };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface InfoBlockListProps {
3
3
  items: string[];
4
4
  }
5
- declare function InfoBlockList({ items }: InfoBlockListProps): JSX.Element;
5
+ declare function InfoBlockList({ items }: InfoBlockListProps): React.JSX.Element;
6
6
  export { InfoBlockList };
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  interface InfoSectionProps {
3
3
  children?: React.ReactNode;
4
4
  }
5
- declare function InfoSection({ children }: InfoSectionProps): JSX.Element;
5
+ declare function InfoSection({ children }: InfoSectionProps): React.JSX.Element;
6
6
  export { InfoSection };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Props {
3
3
  text: string;
4
4
  toggleLongText: () => void;
5
5
  isPunch?: boolean;
6
6
  }
7
- declare function LongTextSection({ text, toggleLongText }: Props): JSX.Element;
7
+ declare function LongTextSection({ text, toggleLongText }: Props): React.JSX.Element;
8
8
  export { LongTextSection };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LinkProps {
3
3
  href: string;
4
4
  linkText: string;
5
5
  }
6
- declare const Link: ({ href, linkText }: LinkProps) => JSX.Element;
6
+ declare const Link: ({ href, linkText }: LinkProps) => React.JSX.Element;
7
7
  export { Link };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { PrepviewAttachment } from '../../types';
3
3
  interface Props {
4
4
  recordType: string;
5
5
  recordId: string;
6
6
  attachments: PrepviewAttachment[];
7
7
  }
8
- declare function AttachmentsPanel({ recordType, recordId, attachments }: Props): JSX.Element;
8
+ declare function AttachmentsPanel({ recordType, recordId, attachments }: Props): React.JSX.Element;
9
9
  export { AttachmentsPanel };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewRelatedTag } from '../../types';
3
3
  interface Props {
4
4
  relatedTags: PrepviewRelatedTag[];
5
5
  }
6
- declare function ObjectsPanel({ relatedTags }: Props): JSX.Element;
6
+ declare function ObjectsPanel({ relatedTags }: Props): React.JSX.Element;
7
7
  export { ObjectsPanel };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewOperation } from '../../types';
3
3
  interface Props {
4
4
  operations: PrepviewOperation[];
5
5
  }
6
- declare function OperationsPanel({ operations }: Props): JSX.Element;
6
+ declare function OperationsPanel({ operations }: Props): React.JSX.Element;
7
7
  export { OperationsPanel };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewSafety } from '../../types';
3
3
  interface RiskTabProps {
4
4
  safetyCards: PrepviewSafety[];
5
5
  }
6
- declare function RiskPanel({ safetyCards }: RiskTabProps): JSX.Element;
6
+ declare function RiskPanel({ safetyCards }: RiskTabProps): React.JSX.Element;
7
7
  export { RiskPanel };
@@ -3,5 +3,5 @@ interface TrafficLightProps {
3
3
  severity: number;
4
4
  children?: React.ReactNode;
5
5
  }
6
- declare function TrafficLight({ severity, children }: TrafficLightProps): JSX.Element;
6
+ declare function TrafficLight({ severity, children }: TrafficLightProps): React.JSX.Element;
7
7
  export { TrafficLight };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewDocumentGroup } from '../../types';
3
3
  interface HorizontalDocumentGroupsProps {
4
4
  documentGroups: Array<PrepviewDocumentGroup>;
5
5
  tagNo: string;
6
6
  }
7
- declare function HorizontalDocumentGroups({ documentGroups, tagNo }: HorizontalDocumentGroupsProps): JSX.Element;
7
+ declare function HorizontalDocumentGroups({ documentGroups, tagNo }: HorizontalDocumentGroupsProps): React.JSX.Element;
8
8
  export { HorizontalDocumentGroups };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { PrepviewDocument } from '../../types';
3
3
  interface TagDocumentGroupProps {
4
4
  docType: string;
5
5
  documents: PrepviewDocument[];
6
6
  tagNo: string;
7
7
  }
8
- declare function TagDocumentGroup({ docType, documents, tagNo }: TagDocumentGroupProps): JSX.Element;
8
+ declare function TagDocumentGroup({ docType, documents, tagNo }: TagDocumentGroupProps): React.JSX.Element;
9
9
  export { TagDocumentGroup };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewDocument } from '../../types';
3
3
  interface TagDocumentItemProps {
4
4
  document: PrepviewDocument;
5
5
  tagNo: string;
6
6
  }
7
- declare function TagDocumentItem({ document, tagNo }: TagDocumentItemProps): JSX.Element;
7
+ declare function TagDocumentItem({ document, tagNo }: TagDocumentItemProps): React.JSX.Element;
8
8
  export { TagDocumentItem };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { PrepviewDocumentGroup } from '../../types';
3
3
  interface Props {
4
4
  documentGroups: Array<PrepviewDocumentGroup>;
5
5
  tagNo: string;
6
6
  }
7
- declare function TagDocumentRefsPanel({ documentGroups, tagNo }: Props): JSX.Element;
7
+ declare function TagDocumentRefsPanel({ documentGroups, tagNo }: Props): React.JSX.Element;
8
8
  export { TagDocumentRefsPanel };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrepviewTagInformation } from '../../types';
3
3
  interface Props {
4
4
  tagInformation: PrepviewTagInformation;
@@ -7,5 +7,5 @@ interface Props {
7
7
  * TagInformationPanel
8
8
  * this panel requires the user to have maintenance access to show data.
9
9
  */
10
- declare function TagInformationPanel({ tagInformation }: Props): JSX.Element;
10
+ declare function TagInformationPanel({ tagInformation }: Props): React.JSX.Element;
11
11
  export { TagInformationPanel };
@@ -14,6 +14,6 @@ export declare enum PanelNames {
14
14
  XLDsearchPanel = "XLDsearchPanel",
15
15
  XLDcommentPanel = "XLDcommentPanel"
16
16
  }
17
- export declare const EchoToolBar: () => JSX.Element;
18
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
17
+ export declare const EchoToolBar: () => React.JSX.Element;
18
+ declare const _default: React.MemoExoticComponent<() => React.JSX.Element>;
19
19
  export default _default;