@corva/ui 3.73.0-7 → 3.74.0-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.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
- package/cjs-bundle/components/AddComment/Popup.js +1 -1
- package/cjs-bundle/components/AddComment/Popup.js.map +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/AnchorsList/AnchorsList.js +1 -1
- package/cjs-bundle/components/AnchorsList/AnchorsList.js.map +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js.map +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js.map +1 -1
- package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js.map +1 -1
- package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
- package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
- package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
- package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js +1 -1
- package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js.map +1 -1
- package/cjs-bundle/components/AssetEditor/index.js +1 -1
- package/cjs-bundle/components/AssetEditor/index.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js.map +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js.map +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/Attachment/index.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/cjs-bundle/components/Button/components/Button/index.js +1 -1
- package/cjs-bundle/components/Button/components/Button/index.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingComponentIcon.js +1 -1
- package/cjs-bundle/components/Casing/CasingComponentIcon.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Casing/CasingTile/CasingTile.js +1 -1
- package/cjs-bundle/components/Casing/CasingTile/CasingTile.js.map +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartWrapper.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
- package/cjs-bundle/components/CollapsibleContent.js +1 -1
- package/cjs-bundle/components/CollapsibleContent.js.map +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js.map +1 -1
- package/cjs-bundle/components/CommentWrapper.js +1 -1
- package/cjs-bundle/components/CommentWrapper.js.map +1 -1
- package/cjs-bundle/components/CommentsInfo/index.js +1 -1
- package/cjs-bundle/components/CommentsInfo/index.js.map +1 -1
- package/cjs-bundle/components/CustomSelect/index.js +1 -1
- package/cjs-bundle/components/CustomSelect/index.js.map +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js.map +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js.map +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js.map +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js +1 -1
- package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js.map +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js.map +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
- package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
- package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js.map +1 -1
- package/cjs-bundle/components/DevCenter/SideBar/SideBar.js +1 -1
- package/cjs-bundle/components/DevCenter/SideBar/SideBar.js.map +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentIcon.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentIcon.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHAList/BHAList.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAList/BHAList.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHASchematic.js +1 -1
- package/cjs-bundle/components/Drillstring/BHASchematic.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BHATile/BHATile.js +1 -1
- package/cjs-bundle/components/Drillstring/BHATile/BHATile.js.map +1 -1
- package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
- package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js.map +1 -1
- package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
- package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js.map +1 -1
- package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js +1 -1
- package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
- package/cjs-bundle/components/EditableItem/EditableItem/index.js +1 -1
- package/cjs-bundle/components/EditableItem/EditableItem/index.js.map +1 -1
- package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js +1 -1
- package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js.map +1 -1
- package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
- package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js.map +1 -1
- package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js +1 -1
- package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js.map +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
- package/cjs-bundle/components/FailedFileUploading.js +1 -1
- package/cjs-bundle/components/FailedFileUploading.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js.map +1 -1
- package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
- package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
- package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
- package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
- package/cjs-bundle/components/FileTypeIcon.js +1 -1
- package/cjs-bundle/components/FileTypeIcon.js.map +1 -1
- package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/components/FilesLoader/FilesLoader.js.map +1 -1
- package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js +1 -1
- package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js.map +1 -1
- package/cjs-bundle/components/FolderMenuItem/index.js +1 -1
- package/cjs-bundle/components/FolderMenuItem/index.js.map +1 -1
- package/cjs-bundle/components/FolderMenuItemWithLinks/index.js +1 -1
- package/cjs-bundle/components/FolderMenuItemWithLinks/index.js.map +1 -1
- package/cjs-bundle/components/Formula/RootXIcon.js +1 -1
- package/cjs-bundle/components/Formula/RootXIcon.js.map +1 -1
- package/cjs-bundle/components/GoogleDocsViewer/index.js +1 -1
- package/cjs-bundle/components/GoogleDocsViewer/index.js.map +1 -1
- package/cjs-bundle/components/IconMenu/index.js +1 -1
- package/cjs-bundle/components/IconMenu/index.js.map +1 -1
- package/cjs-bundle/components/Icons/AnnotationIcon.js +1 -1
- package/cjs-bundle/components/Icons/AnnotationIcon.js.map +1 -1
- package/cjs-bundle/components/Icons/AttachIcon.js +1 -1
- package/cjs-bundle/components/Icons/AttachIcon.js.map +1 -1
- package/cjs-bundle/components/Icons/EmojiIcon.js +1 -1
- package/cjs-bundle/components/Icons/EmojiIcon.js.map +1 -1
- package/cjs-bundle/components/Icons/RecommendationIcon.js +1 -1
- package/cjs-bundle/components/Icons/RecommendationIcon.js.map +1 -1
- package/cjs-bundle/components/Icons/SendIcon.js +1 -1
- package/cjs-bundle/components/Icons/SendIcon.js.map +1 -1
- package/cjs-bundle/components/KeyboardDateTimePicker.js +1 -1
- package/cjs-bundle/components/KeyboardDateTimePicker.js.map +1 -1
- package/cjs-bundle/components/LabelsCounter/LabelsCounter.js +1 -1
- package/cjs-bundle/components/LabelsCounter/LabelsCounter.js.map +1 -1
- package/cjs-bundle/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/FullScreenLoadingIndicator.js.map +1 -1
- package/cjs-bundle/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/InlineLoadingIndicator.js.map +1 -1
- package/cjs-bundle/components/LoadingIndicator/Loader.js +1 -1
- package/cjs-bundle/components/LoadingIndicator/Loader.js.map +1 -1
- package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js +1 -1
- package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js.map +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/Chip.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/index.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/cjs-bundle/components/ParameterCharts/AddEditTrack.js +1 -1
- package/cjs-bundle/components/ParameterCharts/AddEditTrack.js.map +1 -1
- package/cjs-bundle/components/ParameterCharts/ParameterCharts.js +1 -1
- package/cjs-bundle/components/ParameterCharts/ParameterCharts.js.map +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js.map +1 -1
- package/cjs-bundle/components/ParameterCharts/components/Track.js +1 -1
- package/cjs-bundle/components/ParameterCharts/components/Track.js.map +1 -1
- package/cjs-bundle/components/PinnableFilters/PinnableFilters.js +1 -1
- package/cjs-bundle/components/PinnableFilters/PinnableFilters.js.map +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popover/Popover.js.map +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js.map +1 -1
- package/cjs-bundle/components/PostInput/PostInput.js +1 -1
- package/cjs-bundle/components/PostInput/PostInput.js.map +1 -1
- package/cjs-bundle/components/PriceInput/FormattedNumber.js +1 -1
- package/cjs-bundle/components/PriceInput/FormattedNumber.js.map +1 -1
- package/cjs-bundle/components/PriceInput/PriceInput.js +1 -1
- package/cjs-bundle/components/PriceInput/PriceInput.js.map +1 -1
- package/cjs-bundle/components/SearchInput/index.js +1 -1
- package/cjs-bundle/components/SearchInput/index.js.map +1 -1
- package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js +1 -1
- package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js.map +1 -1
- package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
- package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js.map +1 -1
- package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js +1 -1
- package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js.map +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js.map +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js.map +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js.map +1 -1
- package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
- package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js.map +1 -1
- package/cjs-bundle/components/SwitchControl/index.js +1 -1
- package/cjs-bundle/components/SwitchControl/index.js.map +1 -1
- package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
- package/cjs-bundle/components/Template/TemplatePopover/index.js.map +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/index.js +1 -1
- package/cjs-bundle/components/Template/TemplateSharingDialog/index.js.map +1 -1
- package/cjs-bundle/components/TracesEditModal/TracesEditModal.js +1 -1
- package/cjs-bundle/components/TracesEditModal/TracesEditModal.js.map +1 -1
- package/cjs-bundle/components/UserCard/index.js +1 -1
- package/cjs-bundle/components/UserCard/index.js.map +1 -1
- package/cjs-bundle/components/UserCardPopover.js +1 -1
- package/cjs-bundle/components/UserCardPopover.js.map +1 -1
- package/cjs-bundle/components/UserMention/index.js +1 -1
- package/cjs-bundle/components/UserMention/index.js.map +1 -1
- package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js +1 -1
- package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js.map +1 -1
- package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js +1 -1
- package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js.map +1 -1
- package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js +1 -1
- package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js.map +1 -1
- package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
- package/components/AddComment/Popover.d.ts +9 -15
- package/components/AddComment/Popover.d.ts.map +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/Popup.d.ts +8 -16
- package/components/AddComment/Popup.d.ts.map +1 -1
- package/components/AddComment/Popup.js +1 -1
- package/components/AddComment/Popup.js.map +1 -1
- package/components/AddComment/components/Content.d.ts +8 -15
- package/components/AddComment/components/Content.d.ts.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/AnchorsList/AnchorsList.d.ts +0 -4
- package/components/AnchorsList/AnchorsList.d.ts.map +1 -1
- package/components/AnchorsList/AnchorsList.js +1 -1
- package/components/AnchorsList/AnchorsList.js.map +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts +11 -56
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts.map +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js.map +1 -1
- package/components/Annotations/components/AnnotationsList/index.d.ts +18 -22
- package/components/Annotations/components/AnnotationsList/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/index.js.map +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js.map +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.d.ts +7 -16
- package/components/AppVersionsSelect/AppVersionsSelect.d.ts.map +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.d.ts +13 -96
- package/components/AssetEditor/AssetEditorAutocomplete.d.ts.map +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
- package/components/AssetEditor/SingleAssetEditor.d.ts +2 -29
- package/components/AssetEditor/SingleAssetEditor.js +1 -1
- package/components/AssetEditor/SingleAssetEditor.js.map +1 -1
- package/components/AssetEditor/index.d.ts +3 -9
- package/components/AssetEditor/index.d.ts.map +1 -1
- package/components/AssetEditor/index.js +1 -1
- package/components/AssetEditor/index.js.map +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts +3 -8
- package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts.map +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +8 -14
- package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelect.js.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts +8 -14
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts.map +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
- package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts +0 -10
- package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
- package/components/AssetEditorV2/components/SecondaryAssetSelect.js.map +1 -1
- package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
- package/components/AssetEditorV2/components/SelectItem.js +1 -1
- package/components/AssetEditorV2/components/SelectItem.js.map +1 -1
- package/components/AssetEditorV2/index.d.ts +12 -28
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/AssetEditorV2/index.js.map +1 -1
- package/components/Attachment/index.d.ts +2 -16
- package/components/Attachment/index.js +1 -1
- package/components/Attachment/index.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts +5 -5
- package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.d.ts +3 -3
- package/components/BICOffsetPickerDialog/components/Map/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts +4 -10
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts +5 -5
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts +2 -2
- package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
- package/components/BICOffsetPickerDialog/index.d.ts +5 -12
- package/components/BICOffsetPickerDialog/index.d.ts.map +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.map +1 -1
- package/components/Button/components/Button/index.d.ts.map +1 -1
- package/components/Button/components/Button/index.js +1 -1
- package/components/Button/components/Button/index.js.map +1 -1
- package/components/Casing/CasingComponentIcon.d.ts +2 -6
- package/components/Casing/CasingComponentIcon.d.ts.map +1 -1
- package/components/Casing/CasingComponentIcon.js +1 -1
- package/components/Casing/CasingComponentIcon.js.map +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.d.ts +4 -10
- package/components/Casing/CasingTableV2/CasingTableV2.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
- package/components/Casing/CasingTableV2/CasingTableV2.js.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts +2 -2
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.d.ts +3 -3
- package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts +2 -2
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
- package/components/Casing/CasingTile/CasingTile.d.ts +4 -9
- package/components/Casing/CasingTile/CasingTile.d.ts.map +1 -1
- package/components/Casing/CasingTile/CasingTile.js +1 -1
- package/components/Casing/CasingTile/CasingTile.js.map +1 -1
- package/components/Chart/components/ChartWrapper.d.ts +4 -8
- package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
- package/components/Chart/components/ChartWrapper.js +1 -1
- package/components/Chart/components/ChartWrapper.js.map +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.d.ts +4 -9
- package/components/Chart/components/buttons/ChartTypeButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.d.ts +5 -10
- package/components/Chart/components/buttons/DragToZoomButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
- package/components/Chart/components/buttons/HideAxesButton.d.ts +4 -6
- package/components/Chart/components/buttons/HideAxesButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
- package/components/Chart/components/buttons/PanButton.d.ts +5 -10
- package/components/Chart/components/buttons/PanButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.js.map +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.d.ts +5 -11
- package/components/Chart/components/buttons/ResetZoomButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
- package/components/Chart/components/buttons/ZoomInButton.d.ts +5 -9
- package/components/Chart/components/buttons/ZoomInButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.d.ts +5 -9
- package/components/Chart/components/buttons/ZoomOutButton.d.ts.map +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
- package/components/CollapsableSidebar.d.ts +8 -33
- package/components/CollapsableSidebar.d.ts.map +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/CollapsableSidebar.js.map +1 -1
- package/components/CollapsibleContent.d.ts +1 -4
- package/components/CollapsibleContent.d.ts.map +1 -1
- package/components/CollapsibleContent.js +1 -1
- package/components/CollapsibleContent.js.map +1 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js.map +1 -1
- package/components/CommentWrapper.d.ts +12 -16
- package/components/CommentWrapper.js +1 -1
- package/components/CommentWrapper.js.map +1 -1
- package/components/CommentsInfo/index.d.ts +23 -30
- package/components/CommentsInfo/index.d.ts.map +1 -1
- package/components/CommentsInfo/index.js +1 -1
- package/components/CommentsInfo/index.js.map +1 -1
- package/components/CustomSelect/index.d.ts +3 -6
- package/components/CustomSelect/index.d.ts.map +1 -1
- package/components/CustomSelect/index.js +1 -1
- package/components/CustomSelect/index.js.map +1 -1
- package/components/DatePicker/index.d.ts +1 -5
- package/components/DatePicker/index.d.ts.map +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DatePicker/index.js.map +1 -1
- package/components/DateTimePicker/index.d.ts +0 -5
- package/components/DateTimePicker/index.d.ts.map +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DateTimePicker/index.js.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.d.ts +18 -40
- package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js.map +1 -1
- package/components/DevCenter/AppHeader/PadMode.d.ts +4 -14
- package/components/DevCenter/AppHeader/PadMode.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/PadMode.js +1 -1
- package/components/DevCenter/AppHeader/PadMode.js.map +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts +1 -5
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts.map +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +3 -8
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +5 -11
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +1 -9
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts +1 -13
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts.map +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts +3 -8
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
- package/components/DevCenter/NavigationBar/NavigationBar.d.ts +5 -13
- package/components/DevCenter/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
- package/components/DevCenter/NavigationBar/NavigationBar.js.map +1 -1
- package/components/DevCenter/SideBar/SideBar.d.ts +11 -35
- package/components/DevCenter/SideBar/SideBar.d.ts.map +1 -1
- package/components/DevCenter/SideBar/SideBar.js +1 -1
- package/components/DevCenter/SideBar/SideBar.js.map +1 -1
- package/components/DevCenter/icons/CorvaLogoSmall.d.ts +3 -8
- package/components/DevCenter/icons/CorvaLogoSmall.d.ts.map +1 -1
- package/components/DevCenter/icons/DevCenterIcon.d.ts +3 -8
- package/components/DevCenter/icons/DevCenterIcon.d.ts.map +1 -1
- package/components/DocumentViewer/DocumentViewer.d.ts +1 -6
- package/components/DocumentViewer/DocumentViewer.d.ts.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.map +1 -1
- package/components/Drillstring/BHAComponentIcon.d.ts +2 -6
- package/components/Drillstring/BHAComponentIcon.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentIcon.js +1 -1
- package/components/Drillstring/BHAComponentIcon.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts +4 -10
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
- package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +3 -3
- package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts +2 -2
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts +4 -4
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts +4 -4
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts +5 -5
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts +2 -2
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts +1 -4
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts +3 -8
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts +4 -10
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts +1 -4
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts +3 -8
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts +1 -4
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts +5 -11
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts.map +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js.map +1 -1
- package/components/Drillstring/BHAList/BHAList.d.ts +5 -12
- package/components/Drillstring/BHAList/BHAList.d.ts.map +1 -1
- package/components/Drillstring/BHAList/BHAList.js +1 -1
- package/components/Drillstring/BHAList/BHAList.js.map +1 -1
- package/components/Drillstring/BHASchematic.d.ts +2 -6
- package/components/Drillstring/BHASchematic.d.ts.map +1 -1
- package/components/Drillstring/BHASchematic.js +1 -1
- package/components/Drillstring/BHASchematic.js.map +1 -1
- package/components/Drillstring/BHATile/BHATile.d.ts +6 -13
- package/components/Drillstring/BHATile/BHATile.d.ts.map +1 -1
- package/components/Drillstring/BHATile/BHATile.js +1 -1
- package/components/Drillstring/BHATile/BHATile.js.map +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts +1 -4
- package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts.map +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
- package/components/Drillstring/BhaIndicator/BhaIndicator.js.map +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts +0 -3
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts.map +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
- package/components/Drillstring/DrillstringDetail/DrillstringDetail.js.map +1 -1
- package/components/EChartsWrapper/EChartsWrapper.d.ts.map +1 -1
- package/components/EChartsWrapper/EChartsWrapper.js +1 -1
- package/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
- package/components/EditableItem/EditableItem/index.d.ts +0 -8
- package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
- package/components/EditableItem/EditableItem/index.js +1 -1
- package/components/EditableItem/EditableItem/index.js.map +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.d.ts +4 -4
- package/components/EditableItem/EditableItemWithBadge/index.d.ts.map +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.js +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.js.map +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts +3 -10
- package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts.map +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js.map +1 -1
- package/components/EmbeddedApp/EmbeddedApp.d.ts +1 -20
- package/components/EmbeddedApp/EmbeddedApp.d.ts.map +1 -1
- package/components/EmbeddedApp/EmbeddedApp.js +1 -1
- package/components/EmbeddedApp/EmbeddedApp.js.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +0 -3
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
- package/components/FailedFileUploading.d.ts +2 -5
- package/components/FailedFileUploading.js +1 -1
- package/components/FailedFileUploading.js.map +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItem.js.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts +0 -5
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts +5 -10
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts.map +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/components/FeedComments.js.map +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts +2 -6
- package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts.map +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
- package/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts +0 -3
- package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts +0 -3
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts +4 -9
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts +1 -4
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts.map +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
- package/components/FileTypeIcon.d.ts +1 -5
- package/components/FileTypeIcon.d.ts.map +1 -1
- package/components/FileTypeIcon.js +1 -1
- package/components/FileTypeIcon.js.map +1 -1
- package/components/FilesLoader/FilesLoader.d.ts +0 -16
- package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/FilesLoader.js.map +1 -1
- package/components/FolderMenuItem/components/FolderIcon.d.ts +2 -6
- package/components/FolderMenuItem/components/FolderIcon.d.ts.map +1 -1
- package/components/FolderMenuItem/components/FolderIcon.js +1 -1
- package/components/FolderMenuItem/components/FolderIcon.js.map +1 -1
- package/components/FolderMenuItem/index.d.ts +3 -8
- package/components/FolderMenuItem/index.d.ts.map +1 -1
- package/components/FolderMenuItem/index.js +1 -1
- package/components/FolderMenuItem/index.js.map +1 -1
- package/components/FolderMenuItemWithLinks/index.d.ts +5 -10
- package/components/FolderMenuItemWithLinks/index.d.ts.map +1 -1
- package/components/FolderMenuItemWithLinks/index.js +1 -1
- package/components/FolderMenuItemWithLinks/index.js.map +1 -1
- package/components/Formula/RootXIcon.d.ts +1 -4
- package/components/Formula/RootXIcon.d.ts.map +1 -1
- package/components/Formula/RootXIcon.js +1 -1
- package/components/Formula/RootXIcon.js.map +1 -1
- package/components/GoogleDocsViewer/index.d.ts +2 -8
- package/components/GoogleDocsViewer/index.d.ts.map +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/GoogleDocsViewer/index.js.map +1 -1
- package/components/IconMenu/index.d.ts +21 -67
- package/components/IconMenu/index.d.ts.map +1 -1
- package/components/IconMenu/index.js +1 -1
- package/components/IconMenu/index.js.map +1 -1
- package/components/Icons/AnnotationIcon.d.ts +2 -6
- package/components/Icons/AnnotationIcon.d.ts.map +1 -1
- package/components/Icons/AnnotationIcon.js +1 -1
- package/components/Icons/AnnotationIcon.js.map +1 -1
- package/components/Icons/AttachIcon.d.ts +2 -6
- package/components/Icons/AttachIcon.d.ts.map +1 -1
- package/components/Icons/AttachIcon.js +1 -1
- package/components/Icons/AttachIcon.js.map +1 -1
- package/components/Icons/EmojiIcon.d.ts +2 -6
- package/components/Icons/EmojiIcon.d.ts.map +1 -1
- package/components/Icons/EmojiIcon.js +1 -1
- package/components/Icons/EmojiIcon.js.map +1 -1
- package/components/Icons/RecommendationIcon.d.ts +2 -6
- package/components/Icons/RecommendationIcon.d.ts.map +1 -1
- package/components/Icons/RecommendationIcon.js +1 -1
- package/components/Icons/RecommendationIcon.js.map +1 -1
- package/components/Icons/SendIcon.d.ts +2 -6
- package/components/Icons/SendIcon.d.ts.map +1 -1
- package/components/Icons/SendIcon.js +1 -1
- package/components/Icons/SendIcon.js.map +1 -1
- package/components/KeyboardDateTimePicker.d.ts +7 -6
- package/components/KeyboardDateTimePicker.d.ts.map +1 -1
- package/components/KeyboardDateTimePicker.js +1 -1
- package/components/KeyboardDateTimePicker.js.map +1 -1
- package/components/LabelsCounter/LabelsCounter.d.ts +1 -4
- package/components/LabelsCounter/LabelsCounter.d.ts.map +1 -1
- package/components/LabelsCounter/LabelsCounter.js +1 -1
- package/components/LabelsCounter/LabelsCounter.js.map +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +1 -6
- package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js.map +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +1 -6
- package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js.map +1 -1
- package/components/LoadingIndicator/Loader.d.ts +0 -4
- package/components/LoadingIndicator/Loader.d.ts.map +1 -1
- package/components/LoadingIndicator/Loader.js +1 -1
- package/components/LoadingIndicator/Loader.js.map +1 -1
- package/components/MiddleTruncate/MiddleTruncate.d.ts +1 -13
- package/components/MiddleTruncate/MiddleTruncate.d.ts.map +1 -1
- package/components/MiddleTruncate/MiddleTruncate.js +1 -1
- package/components/MiddleTruncate/MiddleTruncate.js.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +1 -10
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js.map +1 -1
- package/components/OffsetWellChips/Chip.d.ts +1 -11
- package/components/OffsetWellChips/Chip.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/Chip.js.map +1 -1
- package/components/OffsetWellChips/types.d.ts +4 -4
- package/components/OffsetWellChips/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts +7 -16
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts +1 -4
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts +1 -4
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.d.ts +10 -12
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/RadiusInput.d.ts +11 -13
- package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.d.ts +10 -12
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts +3 -7
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.d.ts +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts +6 -6
- package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.d.ts +2 -2
- package/components/OffsetWellPickerV2/components/Map/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.d.ts +10 -12
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.d.ts +11 -13
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js.map +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.d.ts +20 -29
- package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts +4 -4
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts +2 -2
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts +4 -4
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
- package/components/OffsetWellPickerV3/index.d.ts +7 -16
- package/components/OffsetWellPickerV3/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV3/index.js +1 -1
- package/components/OffsetWellPickerV3/index.js.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/MultiSelect.d.ts +2 -6
- package/components/OffsetWellPickerV4/components/Filter/MultiSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts +1 -4
- package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts +2 -5
- package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts +2 -6
- package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts +2 -6
- package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.d.ts +1 -4
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.d.ts +5 -11
- package/components/PadOffsetsPicker/OffsetAssetChip.d.ts.map +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
- package/components/ParameterCharts/AddEditTrack.d.ts +12 -28
- package/components/ParameterCharts/AddEditTrack.js +1 -1
- package/components/ParameterCharts/AddEditTrack.js.map +1 -1
- package/components/ParameterCharts/ParameterCharts.d.ts +5 -12
- package/components/ParameterCharts/ParameterCharts.d.ts.map +1 -1
- package/components/ParameterCharts/ParameterCharts.js +1 -1
- package/components/ParameterCharts/ParameterCharts.js.map +1 -1
- package/components/ParameterCharts/components/TraceHeader.d.ts +13 -89
- package/components/ParameterCharts/components/TraceHeader.d.ts.map +1 -1
- package/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
- package/components/ParameterCharts/components/TraceSelect.d.ts +12 -18
- package/components/ParameterCharts/components/TraceSelect.js +1 -1
- package/components/ParameterCharts/components/TraceSelect.js.map +1 -1
- package/components/ParameterCharts/components/Track.d.ts +1 -4
- package/components/ParameterCharts/components/Track.d.ts.map +1 -1
- package/components/ParameterCharts/components/Track.js +1 -1
- package/components/ParameterCharts/components/Track.js.map +1 -1
- package/components/PinnableFilters/PinnableFilters.d.ts.map +1 -1
- package/components/PinnableFilters/PinnableFilters.js +1 -1
- package/components/PinnableFilters/PinnableFilters.js.map +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popover/Popover.js.map +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/Popper/Popper.js.map +1 -1
- package/components/PostInput/PostInput.d.ts +10 -20
- package/components/PostInput/PostInput.d.ts.map +1 -1
- package/components/PostInput/PostInput.js +1 -1
- package/components/PostInput/PostInput.js.map +1 -1
- package/components/PriceInput/FormattedNumber.d.ts +0 -3
- package/components/PriceInput/FormattedNumber.d.ts.map +1 -1
- package/components/PriceInput/FormattedNumber.js +1 -1
- package/components/PriceInput/FormattedNumber.js.map +1 -1
- package/components/PriceInput/PriceInput.d.ts +4 -4
- package/components/PriceInput/PriceInput.d.ts.map +1 -1
- package/components/PriceInput/PriceInput.js +1 -1
- package/components/PriceInput/PriceInput.js.map +1 -1
- package/components/SearchInput/index.d.ts +1 -4
- package/components/SearchInput/index.d.ts.map +1 -1
- package/components/SearchInput/index.js +1 -1
- package/components/SearchInput/index.js.map +1 -1
- package/components/SettingEditors/DropdownEditor/index.d.ts +21 -30
- package/components/SettingEditors/DropdownEditor/index.d.ts.map +1 -1
- package/components/SettingEditors/DropdownEditor/index.js +1 -1
- package/components/SettingEditors/DropdownEditor/index.js.map +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.d.ts +0 -4
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.d.ts.map +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js.map +1 -1
- package/components/SlateFormattedText/SlateFormattedText.d.ts +4 -11
- package/components/SlateFormattedText/SlateFormattedText.d.ts.map +1 -1
- package/components/SlateFormattedText/SlateFormattedText.js +1 -1
- package/components/SlateFormattedText/SlateFormattedText.js.map +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.d.ts +1 -6
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.d.ts.map +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js.map +1 -1
- package/components/StageDesignVActual/ComparisonHeader.d.ts +1 -7
- package/components/StageDesignVActual/ComparisonHeader.d.ts.map +1 -1
- package/components/StageDesignVActual/ComparisonHeader.js +1 -1
- package/components/StageDesignVActual/ComparisonHeader.js.map +1 -1
- package/components/StageDesignVActual/ComparisonRow.d.ts +7 -16
- package/components/StageDesignVActual/ComparisonRow.d.ts.map +1 -1
- package/components/StageDesignVActual/ComparisonRow.js +1 -1
- package/components/StageDesignVActual/ComparisonRow.js.map +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts +7 -15
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts.map +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js.map +1 -1
- package/components/SwitchControl/index.d.ts.map +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/SwitchControl/index.js.map +1 -1
- package/components/Template/TemplatePopover/index.d.ts +8 -18
- package/components/Template/TemplatePopover/index.d.ts.map +1 -1
- package/components/Template/TemplatePopover/index.js +1 -1
- package/components/Template/TemplatePopover/index.js.map +1 -1
- package/components/Template/TemplateSharingDialog/index.d.ts +1 -4
- package/components/Template/TemplateSharingDialog/index.d.ts.map +1 -1
- package/components/Template/TemplateSharingDialog/index.js +1 -1
- package/components/Template/TemplateSharingDialog/index.js.map +1 -1
- package/components/TracesEditModal/TracesEditModal.d.ts +5 -13
- package/components/TracesEditModal/TracesEditModal.d.ts.map +1 -1
- package/components/TracesEditModal/TracesEditModal.js +1 -1
- package/components/TracesEditModal/TracesEditModal.js.map +1 -1
- package/components/UserCard/index.d.ts +1 -1
- package/components/UserCard/index.js +1 -1
- package/components/UserCard/index.js.map +1 -1
- package/components/UserCardPopover.d.ts +14 -5
- package/components/UserCardPopover.js +1 -1
- package/components/UserCardPopover.js.map +1 -1
- package/components/UserMention/index.js +1 -1
- package/components/UserMention/index.js.map +1 -1
- package/components/WellSummary/ActivitySummaryChart.d.ts +3 -7
- package/components/WellSummary/ActivitySummaryChart.d.ts.map +1 -1
- package/components/WellSummary/ActivitySummaryChart.js +1 -1
- package/components/WellSummary/ActivitySummaryChart.js.map +1 -1
- package/components/WellSummary/FracWirelineTimeChart.d.ts +0 -4
- package/components/WellSummary/FracWirelineTimeChart.d.ts.map +1 -1
- package/components/WellSummary/FracWirelineTimeChart.js +1 -1
- package/components/WellSummary/FracWirelineTimeChart.js.map +1 -1
- package/components/WellSummary/WellSummaryItemLabel.d.ts +1 -4
- package/components/WellSummary/WellSummaryItemLabel.d.ts.map +1 -1
- package/components/WellSummary/WellSummaryItemLabel.js +1 -1
- package/components/WellSummary/WellSummaryItemLabel.js.map +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
- package/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
- package/mcp-server/server.mjs +5 -5
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/Annotation/index.js"],"sourcesContent":["import { useState } from 'react';\nimport classNames from 'classnames';\nimport { shape, string, arrayOf, func, node, oneOf, number } from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { flowRight } from 'lodash';\nimport withWidth, { isWidthUp } from '@material-ui/core/withWidth';\nimport moment from 'moment';\nimport { Paper, Typography, Divider, MenuItem, IconButton, Menu } from '@material-ui/core';\nimport grey from '@material-ui/core/colors/grey';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\n\nimport AnnotationComments from '../AnnotationComments';\nimport { useAnnotationsDispatch } from '../../../../AnnotationsContext';\nimport { DELETE_ANNOTATION, EDIT_ANNOTATION } from '../../../../constants';\nimport AnnotationInput from '../AnnotationInput';\n\nimport styles from './style.css';\n\nimport Avatar from '~components/Avatar';\nimport UserCardPopover from '~components/UserCardPopover';\nimport ConfirmationDialog from '~components/ConfirmationDialog';\nimport CommentsInfo from '~components/CommentsInfo';\nimport { formatMentionText } from '~components/UserMention/utils';\nimport Attachment from '~components/Attachment';\nimport { isNativeDetected as isNative } from '~/utils/mobileDetect';\nimport { deleteAnnotation, patchAnnotation } from '~/clients/jsonApi';\n\nconst PAGE_NAME = 'AppAnnotationItemPo';\n\nconst CREATED_AT_FORMAT = 'MM/DD/YY H:mm';\n\nconst muiStyles = theme => ({\n container: { backgroundColor: '#3b3b3be6', marginBottom: 16, marginLeft: 26 },\n headerDividerRoot: { margin: '10px 0' },\n createdAt: { color: theme.palette.grey[700], marginLeft: 5 },\n link: { cursor: 'pointer' },\n iconButtonRoot: {\n height: 24,\n width: 24,\n padding: 0,\n margin: '0 -10px 0 5px',\n },\n});\n\nconst UserAvatar = ({ user, currentUser, classes }) => (\n <div className={styles.cAnnotationUserAvatar}>\n {isNative ? (\n <Avatar\n // eslint-disable-next-line camelcase\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={38}\n className={classes.avatar}\n />\n ) : (\n <UserCardPopover user={user} currentUser={currentUser}>\n <Avatar\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={38}\n className={classes.avatar}\n />\n </UserCardPopover>\n )}\n </div>\n);\n\nconst MenuButton = ({\n actionsMenuAnchorEl,\n handleToggleActionsMenu,\n classes,\n handleEdit,\n handleDelete,\n}) => (\n <>\n <IconButton\n data-testid={`${PAGE_NAME}_menuButton`}\n aria-label=\"Actions\"\n aria-owns={actionsMenuAnchorEl ? styles.cAnnotationContainerActionsMenu : undefined}\n aria-haspopup=\"true\"\n className={classes.iconButtonRoot}\n onClick={handleToggleActionsMenu}\n >\n <MoreVertIcon htmlColor={grey[400]} />\n </IconButton>\n\n <Menu\n id=\"cAnnotationContainerActionsMenu\"\n anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n transformOrigin={{ vertical: 'top', horizontal: 'right' }}\n anchorEl={actionsMenuAnchorEl}\n open={!!actionsMenuAnchorEl}\n onClick={handleToggleActionsMenu}\n >\n <MenuItem data-testid={`${PAGE_NAME}_editMenuItem`} onClick={handleEdit}>\n Edit\n </MenuItem>\n <MenuItem data-testid={`${PAGE_NAME}_deleteMenuItem`} onClick={handleDelete}>\n Delete\n </MenuItem>\n </Menu>\n </>\n);\n\nconst Annotation = ({\n included,\n annotation,\n assetCompanyId,\n classes,\n showSuccessNotification,\n width,\n}) => {\n const [commentInputIsOpen, setCommentInputIsOpen] = useState(false);\n const [actionsMenuAnchorEl, setActionsMenuAnchorEl] = useState(null);\n const [isEdit, setIsEdit] = useState(false);\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const isSmallScreen = !isWidthUp('sm', width);\n\n const initialCommentsCount = annotation.attributes.comments_count || 0;\n const [commentsCount, setCommentsCount] = useState(initialCommentsCount);\n\n const dispatch = useAnnotationsDispatch();\n\n const activeUsersList = annotation.relationships.comment_users.data.reduce((users, { id }) => {\n const userData = included.find(user => user.id === id);\n if (userData) {\n users.push(userData.attributes);\n }\n return users;\n }, []);\n\n const userWhoCommented = activeUsersList.map(\n // eslint-disable-next-line camelcase\n ({ last_name, first_name }) => `${first_name} ${last_name}`\n );\n\n const handleToggleActionsMenu = event => {\n const currentT = event.currentTarget;\n setActionsMenuAnchorEl(actionsMenuAnchorEl ? null : currentT);\n };\n\n const handleDelete = async () => {\n try {\n const response = await deleteAnnotation(annotation.id);\n if (response) {\n dispatch({ type: DELETE_ANNOTATION, id: annotation.id });\n showSuccessNotification('Annotation has been deleted');\n }\n } catch (e) {\n console.error(e);\n }\n };\n\n const handleEdit = async (body, period, attachment) => {\n try {\n const changedAnnotation = {\n body,\n active_until: period,\n attachment: {\n file_name: attachment && attachment.attachmentName,\n signed_url: attachment && attachment.attachmentUrl,\n },\n };\n const updatedAnnotation = await patchAnnotation(annotation.id, changedAnnotation);\n dispatch({ type: EDIT_ANNOTATION, annotation: updatedAnnotation, id: annotation.id });\n } catch (e) {\n console.error(e);\n return;\n }\n\n showSuccessNotification('Annotation has been changed');\n setIsEdit(false);\n };\n\n const userId = annotation.relationships.user.data.id;\n const currentUser = included.find(({ type, id }) => type === 'user' && id === userId);\n const userData = currentUser.attributes;\n const { attachment } = annotation.attributes;\n\n return (\n <Paper className={classes.container} elevation={0}>\n <div\n data-testid={`${PAGE_NAME}_annotation_${annotation.attributes.body}`}\n className={styles.cAnnotationContainer}\n >\n <UserAvatar\n user={userData}\n classes={classes}\n isNative={isNative}\n currentUser={currentUser}\n />\n\n <div className={styles.cAnnotationContainerTop}>\n <div className={styles.cAnnotationContainerTopMainInfo}>\n <Typography variant=\"body2\" data-testid={`${PAGE_NAME}_userName`}>\n {`${userData.first_name} ${userData.last_name}`}\n </Typography>\n <Typography\n data-testid={`${PAGE_NAME}_addDate`}\n variant=\"caption\"\n className={classes.createdAt}\n >\n {moment(annotation.attributes.created_at).format(CREATED_AT_FORMAT)}\n </Typography>\n </div>\n <div\n className={classNames(styles.cAnnotationContainerTopMenu, {\n [styles.cAnnotationContainerTopMenuSmall]: isSmallScreen,\n })}\n >\n <MenuButton\n actionsMenuAnchorEl={actionsMenuAnchorEl}\n handleToggleActionsMenu={handleToggleActionsMenu}\n handleEdit={() => setIsEdit(true)}\n handleDelete={() => setDeleteDialogOpen(true)}\n classes={classes}\n />\n </div>\n </div>\n\n <Divider className={classes.headerDividerRoot} />\n\n <div data-testid={`${PAGE_NAME}_message`} className={styles.cAnnotationContainerContent}>\n {isEdit ? (\n <AnnotationInput\n initialText={annotation.attributes.body}\n assetCompanyId={assetCompanyId}\n initialPeriod={annotation.attributes.created_at}\n initialAttachment={attachment}\n onSend={handleEdit}\n onClose={() => setIsEdit(false)}\n closeOnEsc\n />\n ) : (\n <>\n {formatMentionText(\n annotation.attributes.body,\n annotation.relationships.mentioned_users.data,\n isNative,\n null,\n currentUser\n )}\n {attachment && attachment.signed_url && (\n <Attachment\n attachmentUrl={attachment.signed_url}\n fileName={attachment.file_name}\n size=\"small\"\n />\n )}\n </>\n )}\n </div>\n </div>\n <div\n data-testid={`${PAGE_NAME}_comments_${annotation.attributes.body}`}\n className={styles.cAnnotationComments}\n >\n <div className={styles.cAnnotationCommentsInfo}>\n <Typography\n data-testid={`${PAGE_NAME}_commentButton`}\n variant=\"caption\"\n color=\"primary\"\n className={classes.link}\n onClick={() => setCommentInputIsOpen(true)}\n >\n Comment\n </Typography>\n <CommentsInfo\n commentsCount={commentsCount}\n usersWhoCommented={userWhoCommented}\n activeUsersList={activeUsersList}\n currentUser={currentUser}\n small\n />\n </div>\n <AnnotationComments\n annotationId={annotation.id}\n commentInputIsOpen={commentInputIsOpen}\n setCommentInputIsOpen={setCommentInputIsOpen}\n commentsCount={commentsCount}\n initialCommentsCount={initialCommentsCount}\n assetCompanyId={assetCompanyId}\n setCommentsCount={setCommentsCount}\n currentUser={currentUser}\n />\n </div>\n {deleteDialogOpen && (\n <ConfirmationDialog\n open={deleteDialogOpen}\n text=\"Do you really want to delete annotation?\"\n handleClose={() => setDeleteDialogOpen(false)}\n handleOk={handleDelete}\n okText=\"Delete\"\n />\n )}\n </Paper>\n );\n};\n\nUserAvatar.propTypes = {\n user: shape({\n id: number.isRequired,\n first_name: string.isRequired,\n last_name: string.isRequired,\n profile_photo: string.isRequired,\n }).isRequired,\n currentUser: shape({}).isRequired,\n classes: shape({}).isRequired,\n};\n\nMenuButton.propTypes = {\n actionsMenuAnchorEl: oneOf([node, null]).isRequired,\n handleToggleActionsMenu: func.isRequired,\n classes: shape({}).isRequired,\n handleDelete: func.isRequired,\n handleEdit: func.isRequired,\n};\n\nAnnotation.propTypes = {\n included: arrayOf(shape({})).isRequired,\n annotation: shape({\n relationships: shape({\n user: shape({ data: shape({ id: string.isRequired }).isRequired }).isRequired,\n mentioned_users: shape({ data: arrayOf(shape({})).isRequired }).isRequired,\n }).isRequired,\n attributes: shape({ body: string.isRequired, created_at: string.isRequired }),\n }).isRequired,\n classes: shape({}).isRequired,\n showSuccessNotification: func,\n width: string.isRequired,\n assetCompanyId: number.isRequired,\n};\n\nAnnotation.defaultProps = {\n showSuccessNotification: () => undefined,\n};\n\nexport default flowRight([withStyles(muiStyles), withWidth()])(Annotation);\n"],"names":["PAGE_NAME","UserAvatar","_ref","user","currentUser","classes","_jsx","className","styles","cAnnotationUserAvatar","children","isNative","Avatar","displayName","concat","first_name","last_name","imgSrc","profile_photo","size","avatar","UserCardPopover","MenuButton","_ref2","actionsMenuAnchorEl","handleToggleActionsMenu","handleEdit","handleDelete","_jsxs","_Fragment","IconButton","cAnnotationContainerActionsMenu","undefined","iconButtonRoot","onClick","MoreVertIcon","htmlColor","grey","Menu","id","anchorOrigin","vertical","horizontal","transformOrigin","anchorEl","open","MenuItem","Annotation","_ref3","_ref6","_ref7","included","annotation","assetCompanyId","showSuccessNotification","width","useState","_useState2","_slicedToArray","_useState","commentInputIsOpen","setCommentInputIsOpen","_useState4","_useState3","setActionsMenuAnchorEl","_useState6","_useState5","isEdit","setIsEdit","_useState8","_useState7","deleteDialogOpen","setDeleteDialogOpen","isSmallScreen","isWidthUp","initialCommentsCount","attributes","comments_count","_useState10","_useState9","commentsCount","setCommentsCount","dispatch","useAnnotationsDispatch","activeUsersList","relationships","comment_users","data","reduce","users","_ref4","userData","find","push","userWhoCommented","map","_ref5","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","deleteAnnotation","sent","type","DELETE_ANNOTATION","t0","console","error","stop","apply","this","arguments","body","period","attachment","changedAnnotation","updatedAnnotation","_context2","active_until","file_name","attachmentName","signed_url","attachmentUrl","patchAnnotation","EDIT_ANNOTATION","abrupt","_callee2","_x","_x2","_x3","userId","_ref8","Paper","container","elevation","cAnnotationContainer","cAnnotationContainerTop","cAnnotationContainerTopMainInfo","Typography","variant","createdAt","moment","created_at","format","classNames","cAnnotationContainerTopMenu","cAnnotationContainerTopMenuSmall","event","currentT","currentTarget","Divider","headerDividerRoot","cAnnotationContainerContent","AnnotationInput","initialText","initialPeriod","initialAttachment","onSend","onClose","closeOnEsc","formatMentionText","mentioned_users","Attachment","fileName","cAnnotationComments","cAnnotationCommentsInfo","color","link","CommentsInfo","usersWhoCommented","small","AnnotationComments","annotationId","ConfirmationDialog","text","handleClose","handleOk","okText","propTypes","shape","number","isRequired","string","oneOf","node","func","arrayOf","defaultProps","Annotation$1","flowRight","withStyles","theme","backgroundColor","marginBottom","marginLeft","margin","palette","cursor","height","padding","withWidth"],"mappings":"yjDA2BA,IAAMA,EAAY,sBAiBZC,EAAa,SAAHC,GAAA,IAAMC,IAAAA,KAAMC,IAAAA,YAAaC,IAAAA,QAAO,OAC9CC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,sBAAsBC,SAC1CC,EACCL,EAACM,EACC,CACAC,YAAW,GAAAC,OAAKX,EAAKY,uBAAcZ,EAAKa,WACxCC,OAAQd,EAAKe,cACbC,KAAM,GACNZ,UAAWF,EAAQe,SAGrBd,EAACe,EAAe,CA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GAAEE,YAGrBnK,EAAWgK,UAAY,CACrB9J,oBAAqBmK,EAAM,CAACC,EAAM,OAAOH,WACzChK,wBAAyBoK,EAAKJ,WAC9BpL,QAASkL,EAAM,CAAE,GAAEE,WACnB9J,aAAckK,EAAKJ,WACnB/J,WAAYmK,EAAKJ,YAGnB1I,EAAWuI,UAAY,CACrBnI,SAAU2I,EAAQP,EAAM,CAAE,IAAGE,WAC7BrI,WAAYmI,EAAM,CAChBlG,cAAekG,EAAM,CACnBpL,KAAMoL,EAAM,CAAEhG,KAAMgG,EAAM,CAAEhJ,GAAImJ,EAAOD,aAAcA,aAAcA,WACnEpB,gBAAiBkB,EAAM,CAAEhG,KAAMuG,EAAQP,EAAM,CAAE,IAAGE,aAAcA,aAC/DA,WACH7G,WAAY2G,EAAM,CAAEnE,KAAMsE,EAAOD,WAAYvC,WAAYwC,EAAOD,eAC/DA,WACHpL,QAASkL,EAAM,CAAE,GAAEE,WACnBnI,wBAAyBuI,EACzBtI,MAAOmI,EAAOD,WACdpI,eAAgBmI,EAAOC,YAGzB1I,EAAWgJ,aAAe,CACxBzI,wBAAyB,WAAe,GAG1C,IAAA0I,EAAeC,EAAU,CAACC,GAlTR,SAAAC,GAAK,MAAK,CAC1B1D,UAAW,CAAE2D,gBAAiB,YAAaC,aAAc,GAAIC,WAAY,IACzE3C,kBAAmB,CAAE4C,OAAQ,UAC7BvD,UAAW,CAAE0B,MAAOyB,EAAMK,QAAQnK,KAAK,KAAMiK,WAAY,GACzD3B,KAAM,CAAE8B,OAAQ,WAChBxK,eAAgB,CACdyK,OAAQ,GACRnJ,MAAO,GACPoJ,QAAS,EACTJ,OAAQ,iBAEX,IAuSgDK,KAAlCX,CAAgDlJ"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/Annotation/index.js"],"sourcesContent":["import { useState } from 'react';\nimport classNames from 'classnames';\nimport { shape, string, arrayOf, func, node, oneOf, number } from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { flowRight } from 'lodash';\nimport withWidth, { isWidthUp } from '@material-ui/core/withWidth';\nimport moment from 'moment';\nimport { Paper, Typography, Divider, MenuItem, IconButton, Menu } from '@material-ui/core';\nimport grey from '@material-ui/core/colors/grey';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\n\nimport AnnotationComments from '../AnnotationComments';\nimport { useAnnotationsDispatch } from '../../../../AnnotationsContext';\nimport { DELETE_ANNOTATION, EDIT_ANNOTATION } from '../../../../constants';\nimport AnnotationInput from '../AnnotationInput';\n\nimport styles from './style.css';\n\nimport Avatar from '~components/Avatar';\nimport UserCardPopover from '~components/UserCardPopover';\nimport ConfirmationDialog from '~components/ConfirmationDialog';\nimport CommentsInfo from '~components/CommentsInfo';\nimport { formatMentionText } from '~components/UserMention/utils';\nimport Attachment from '~components/Attachment';\nimport { isNativeDetected as isNative } from '~/utils/mobileDetect';\nimport { deleteAnnotation, patchAnnotation } from '~/clients/jsonApi';\n\nconst PAGE_NAME = 'AppAnnotationItemPo';\n\nconst CREATED_AT_FORMAT = 'MM/DD/YY H:mm';\n\nconst muiStyles = theme => ({\n container: { backgroundColor: '#3b3b3be6', marginBottom: 16, marginLeft: 26 },\n headerDividerRoot: { margin: '10px 0' },\n createdAt: { color: theme.palette.grey[700], marginLeft: 5 },\n link: { cursor: 'pointer' },\n iconButtonRoot: {\n height: 24,\n width: 24,\n padding: 0,\n margin: '0 -10px 0 5px',\n },\n});\n\nconst UserAvatar = ({ user, currentUser, classes }) => (\n <div className={styles.cAnnotationUserAvatar}>\n {isNative ? (\n <Avatar\n // eslint-disable-next-line camelcase\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={38}\n className={classes.avatar}\n />\n ) : (\n <UserCardPopover user={user} currentUser={currentUser}>\n <Avatar\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={38}\n className={classes.avatar}\n />\n </UserCardPopover>\n )}\n </div>\n);\n\nconst MenuButton = ({\n actionsMenuAnchorEl,\n handleToggleActionsMenu,\n classes,\n handleEdit,\n handleDelete,\n}) => (\n <>\n <IconButton\n data-testid={`${PAGE_NAME}_menuButton`}\n aria-label=\"Actions\"\n aria-owns={actionsMenuAnchorEl ? styles.cAnnotationContainerActionsMenu : undefined}\n aria-haspopup=\"true\"\n className={classes.iconButtonRoot}\n onClick={handleToggleActionsMenu}\n >\n <MoreVertIcon htmlColor={grey[400]} />\n </IconButton>\n\n <Menu\n id=\"cAnnotationContainerActionsMenu\"\n anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n transformOrigin={{ vertical: 'top', horizontal: 'right' }}\n anchorEl={actionsMenuAnchorEl}\n open={!!actionsMenuAnchorEl}\n onClick={handleToggleActionsMenu}\n >\n <MenuItem data-testid={`${PAGE_NAME}_editMenuItem`} onClick={handleEdit}>\n Edit\n </MenuItem>\n <MenuItem data-testid={`${PAGE_NAME}_deleteMenuItem`} onClick={handleDelete}>\n Delete\n </MenuItem>\n </Menu>\n </>\n);\n\nconst Annotation = ({\n included,\n annotation,\n assetCompanyId,\n classes,\n showSuccessNotification = DEFAULT_ANNOTATION_SHOW_SUCCESS_NOTIFICATION,\n width,\n}) => {\n const [commentInputIsOpen, setCommentInputIsOpen] = useState(false);\n const [actionsMenuAnchorEl, setActionsMenuAnchorEl] = useState(null);\n const [isEdit, setIsEdit] = useState(false);\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const isSmallScreen = !isWidthUp('sm', width);\n\n const initialCommentsCount = annotation.attributes.comments_count || 0;\n const [commentsCount, setCommentsCount] = useState(initialCommentsCount);\n\n const dispatch = useAnnotationsDispatch();\n\n const activeUsersList = annotation.relationships.comment_users.data.reduce((users, { id }) => {\n const userData = included.find(user => user.id === id);\n if (userData) {\n users.push(userData.attributes);\n }\n return users;\n }, []);\n\n const userWhoCommented = activeUsersList.map(\n // eslint-disable-next-line camelcase\n ({ last_name, first_name }) => `${first_name} ${last_name}`\n );\n\n const handleToggleActionsMenu = event => {\n const currentT = event.currentTarget;\n setActionsMenuAnchorEl(actionsMenuAnchorEl ? null : currentT);\n };\n\n const handleDelete = async () => {\n try {\n const response = await deleteAnnotation(annotation.id);\n if (response) {\n dispatch({ type: DELETE_ANNOTATION, id: annotation.id });\n showSuccessNotification('Annotation has been deleted');\n }\n } catch (e) {\n console.error(e);\n }\n };\n\n const handleEdit = async (body, period, attachment) => {\n try {\n const changedAnnotation = {\n body,\n active_until: period,\n attachment: {\n file_name: attachment && attachment.attachmentName,\n signed_url: attachment && attachment.attachmentUrl,\n },\n };\n const updatedAnnotation = await patchAnnotation(annotation.id, changedAnnotation);\n dispatch({ type: EDIT_ANNOTATION, annotation: updatedAnnotation, id: annotation.id });\n } catch (e) {\n console.error(e);\n return;\n }\n\n showSuccessNotification('Annotation has been changed');\n setIsEdit(false);\n };\n\n const userId = annotation.relationships.user.data.id;\n const currentUser = included.find(({ type, id }) => type === 'user' && id === userId);\n const userData = currentUser.attributes;\n const { attachment } = annotation.attributes;\n\n return (\n <Paper className={classes.container} elevation={0}>\n <div\n data-testid={`${PAGE_NAME}_annotation_${annotation.attributes.body}`}\n className={styles.cAnnotationContainer}\n >\n <UserAvatar\n user={userData}\n classes={classes}\n isNative={isNative}\n currentUser={currentUser}\n />\n\n <div className={styles.cAnnotationContainerTop}>\n <div className={styles.cAnnotationContainerTopMainInfo}>\n <Typography variant=\"body2\" data-testid={`${PAGE_NAME}_userName`}>\n {`${userData.first_name} ${userData.last_name}`}\n </Typography>\n <Typography\n data-testid={`${PAGE_NAME}_addDate`}\n variant=\"caption\"\n className={classes.createdAt}\n >\n {moment(annotation.attributes.created_at).format(CREATED_AT_FORMAT)}\n </Typography>\n </div>\n <div\n className={classNames(styles.cAnnotationContainerTopMenu, {\n [styles.cAnnotationContainerTopMenuSmall]: isSmallScreen,\n })}\n >\n <MenuButton\n actionsMenuAnchorEl={actionsMenuAnchorEl}\n handleToggleActionsMenu={handleToggleActionsMenu}\n handleEdit={() => setIsEdit(true)}\n handleDelete={() => setDeleteDialogOpen(true)}\n classes={classes}\n />\n </div>\n </div>\n\n <Divider className={classes.headerDividerRoot} />\n\n <div data-testid={`${PAGE_NAME}_message`} className={styles.cAnnotationContainerContent}>\n {isEdit ? (\n <AnnotationInput\n initialText={annotation.attributes.body}\n assetCompanyId={assetCompanyId}\n initialPeriod={annotation.attributes.created_at}\n initialAttachment={attachment}\n onSend={handleEdit}\n onClose={() => setIsEdit(false)}\n closeOnEsc\n />\n ) : (\n <>\n {formatMentionText(\n annotation.attributes.body,\n annotation.relationships.mentioned_users.data,\n isNative,\n null,\n currentUser\n )}\n {attachment && attachment.signed_url && (\n <Attachment\n attachmentUrl={attachment.signed_url}\n fileName={attachment.file_name}\n size=\"small\"\n />\n )}\n </>\n )}\n </div>\n </div>\n <div\n data-testid={`${PAGE_NAME}_comments_${annotation.attributes.body}`}\n className={styles.cAnnotationComments}\n >\n <div className={styles.cAnnotationCommentsInfo}>\n <Typography\n data-testid={`${PAGE_NAME}_commentButton`}\n variant=\"caption\"\n color=\"primary\"\n className={classes.link}\n onClick={() => setCommentInputIsOpen(true)}\n >\n Comment\n </Typography>\n <CommentsInfo\n commentsCount={commentsCount}\n usersWhoCommented={userWhoCommented}\n activeUsersList={activeUsersList}\n currentUser={currentUser}\n small\n />\n </div>\n <AnnotationComments\n annotationId={annotation.id}\n commentInputIsOpen={commentInputIsOpen}\n setCommentInputIsOpen={setCommentInputIsOpen}\n commentsCount={commentsCount}\n initialCommentsCount={initialCommentsCount}\n assetCompanyId={assetCompanyId}\n setCommentsCount={setCommentsCount}\n currentUser={currentUser}\n />\n </div>\n {deleteDialogOpen && (\n <ConfirmationDialog\n open={deleteDialogOpen}\n text=\"Do you really want to delete annotation?\"\n handleClose={() => setDeleteDialogOpen(false)}\n handleOk={handleDelete}\n okText=\"Delete\"\n />\n )}\n </Paper>\n );\n};\n\nUserAvatar.propTypes = {\n user: shape({\n id: number.isRequired,\n first_name: string.isRequired,\n last_name: string.isRequired,\n profile_photo: string.isRequired,\n }).isRequired,\n currentUser: shape({}).isRequired,\n classes: shape({}).isRequired,\n};\n\nMenuButton.propTypes = {\n actionsMenuAnchorEl: oneOf([node, null]).isRequired,\n handleToggleActionsMenu: func.isRequired,\n classes: shape({}).isRequired,\n handleDelete: func.isRequired,\n handleEdit: func.isRequired,\n};\n\nAnnotation.propTypes = {\n included: arrayOf(shape({})).isRequired,\n annotation: shape({\n relationships: shape({\n user: shape({ data: shape({ id: string.isRequired }).isRequired }).isRequired,\n mentioned_users: shape({ data: arrayOf(shape({})).isRequired }).isRequired,\n }).isRequired,\n attributes: shape({ body: string.isRequired, created_at: string.isRequired }),\n }).isRequired,\n classes: shape({}).isRequired,\n showSuccessNotification: func,\n width: string.isRequired,\n assetCompanyId: number.isRequired,\n};\n\nconst DEFAULT_ANNOTATION_SHOW_SUCCESS_NOTIFICATION = () => undefined;\n\nexport default flowRight([withStyles(muiStyles), withWidth()])(Annotation);\n"],"names":["PAGE_NAME","UserAvatar","_ref","user","currentUser","classes","_jsx","className","styles","cAnnotationUserAvatar","children","isNative","Avatar","displayName","concat","first_name","last_name","imgSrc","profile_photo","size","avatar","UserCardPopover","MenuButton","_ref2","actionsMenuAnchorEl","handleToggleActionsMenu","handleEdit","handleDelete","_jsxs","_Fragment","IconButton","cAnnotationContainerActionsMenu","undefined","iconButtonRoot","onClick","MoreVertIcon","htmlColor","grey","Menu","id","anchorOrigin","vertical","horizontal","transformOrigin","anchorEl","open","MenuItem","Annotation","_ref3","_ref6","_ref7","included","annotation","assetCompanyId","_ref3$showSuccessNoti","showSuccessNotification","DEFAULT_ANNOTATION_SHOW_SUCCESS_NOTIFICATION","width","useState","_useState2","_slicedToArray","_useState","commentInputIsOpen","setCommentInputIsOpen","_useState4","_useState3","setActionsMenuAnchorEl","_useState6","_useState5","isEdit","setIsEdit","_useState8","_useState7","deleteDialogOpen","setDeleteDialogOpen","isSmallScreen","isWidthUp","initialCommentsCount","attributes","comments_count","_useState10","_useState9","commentsCount","setCommentsCount","dispatch","useAnnotationsDispatch","activeUsersList","relationships","comment_users","data","reduce","users","_ref4","userData","find","push","userWhoCommented","map","_ref5","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","deleteAnnotation","sent","type","DELETE_ANNOTATION","t0","console","error","stop","apply","this","arguments","body","period","attachment","changedAnnotation","updatedAnnotation","_context2","active_until","file_name","attachmentName","signed_url","attachmentUrl","patchAnnotation","EDIT_ANNOTATION","abrupt","_callee2","_x","_x2","_x3","userId","_ref8","Paper","container","elevation","cAnnotationContainer","cAnnotationContainerTop","cAnnotationContainerTopMainInfo","Typography","variant","createdAt","moment","created_at","format","classNames","cAnnotationContainerTopMenu","cAnnotationContainerTopMenuSmall","event","currentT","currentTarget","Divider","headerDividerRoot","cAnnotationContainerContent","AnnotationInput","initialText","initialPeriod","initialAttachment","onSend","onClose","closeOnEsc","formatMentionText","mentioned_users","Attachment","fileName","cAnnotationComments","cAnnotationCommentsInfo","color","link","CommentsInfo","usersWhoCommented","small","AnnotationComments","annotationId","ConfirmationDialog","text","handleClose","handleOk","okText","propTypes","shape","number","isRequired","string","oneOf","node","func","arrayOf","Annotation$1","flowRight","withStyles","theme","backgroundColor","marginBottom","marginLeft","margin","palette","cursor","height","padding","withWidth"],"mappings":"yjDA2BA,IAAMA,EAAY,sBAiBZC,EAAa,SAAHC,GAAA,IAAMC,IAAAA,KAAMC,IAAAA,YAAaC,IAAAA,QAAO,OAC9CC,EAAA,MAAA,CAAKC,UAAWC,EAAOC,sBAAsBC,SAC1CC,EACCL,EAACM,EACC,CACAC,YAAW,GAAAC,OAAKX,EAAKY,uBAAcZ,EAAKa,WACxCC,OAAQd,EAAKe,cACbC,KAAM,GACNZ,UAAWF,EAAQe,SAGrBd,EAACe,EAAe,CAAClB,KAAMA,EAAMC,YAAaA,EAAYM,SACpDJ,EAACM,EAAM,CACLC,YAAW,GAAAC,OAAKX,EAAKY,uBAAcZ,EAAKa,WACxCC,OAAQd,EAA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ClK,wBAAyBsK,EAAKJ,WAC9BtL,QAASoL,EAAM,CAAE,GAAEE,WACnBhK,aAAcoK,EAAKJ,WACnBjK,WAAYqK,EAAKJ,YAGnB5I,EAAWyI,UAAY,CACrBrI,SAAU6I,EAAQP,EAAM,CAAE,IAAGE,WAC7BvI,WAAYqI,EAAM,CAChBlG,cAAekG,EAAM,CACnBtL,KAAMsL,EAAM,CAAEhG,KAAMgG,EAAM,CAAElJ,GAAIqJ,EAAOD,aAAcA,aAAcA,WACnEpB,gBAAiBkB,EAAM,CAAEhG,KAAMuG,EAAQP,EAAM,CAAE,IAAGE,aAAcA,aAC/DA,WACH7G,WAAY2G,EAAM,CAAEnE,KAAMsE,EAAOD,WAAYvC,WAAYwC,EAAOD,eAC/DA,WACHtL,QAASoL,EAAM,CAAE,GAAEE,WACnBpI,wBAAyBwI,EACzBtI,MAAOmI,EAAOD,WACdtI,eAAgBqI,EAAOC,YAGzB,IAAMnI,EAA+C,WAAe,EAEpEyI,EAAeC,EAAU,CAACC,GAhTR,SAAAC,GAAK,MAAK,CAC1BzD,UAAW,CAAE0D,gBAAiB,YAAaC,aAAc,GAAIC,WAAY,IACzE1C,kBAAmB,CAAE2C,OAAQ,UAC7BtD,UAAW,CAAE0B,MAAOwB,EAAMK,QAAQpK,KAAK,KAAMkK,WAAY,GACzD1B,KAAM,CAAE6B,OAAQ,WAChBzK,eAAgB,CACd0K,OAAQ,GACRlJ,MAAO,GACPmJ,QAAS,EACTJ,OAAQ,iBAEX,IAqSgDK,KAAlCX,CAAgDnJ"}
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts
CHANGED
|
@@ -1,62 +1,17 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const DEFAULT_ANNOTATION_INPUT_ON_SEND: () => undefined;
|
|
2
|
+
declare const DEFAULT_ANNOTATION_INPUT_ON_CLOSE: () => undefined;
|
|
3
|
+
declare const _default: import("react").ComponentType<Pick<import("@material-ui/types").ConsistentWith<{
|
|
2
4
|
assetCompanyId: any;
|
|
3
5
|
classes: any;
|
|
4
|
-
closeOnEsc
|
|
6
|
+
closeOnEsc?: boolean | undefined;
|
|
5
7
|
currentUser: any;
|
|
6
|
-
initialAttachment
|
|
8
|
+
initialAttachment?: null | undefined;
|
|
7
9
|
initialPeriod: any;
|
|
8
|
-
initialText
|
|
9
|
-
onClose
|
|
10
|
-
onSend
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
initialAttachment: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
15
|
-
file_name: import("prop-types").Requireable<string>;
|
|
16
|
-
s3_link: import("prop-types").Requireable<string>;
|
|
17
|
-
}>>;
|
|
18
|
-
onSend: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
|
-
onClose: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
20
|
-
closeOnEsc: import("prop-types").Requireable<boolean>;
|
|
21
|
-
assetCompanyId: import("prop-types").Validator<number>;
|
|
22
|
-
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
23
|
-
classes: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
24
|
-
}>, "closeOnEsc" | "initialAttachment" | "initialPeriod" | "initialText" | "onClose" | "onSend" | import("prop-types").RequiredKeys<{
|
|
25
|
-
initialText: import("prop-types").Requireable<string>;
|
|
26
|
-
initialPeriod: import("prop-types").Requireable<string>;
|
|
27
|
-
initialAttachment: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
28
|
-
file_name: import("prop-types").Requireable<string>;
|
|
29
|
-
s3_link: import("prop-types").Requireable<string>;
|
|
30
|
-
}>>;
|
|
31
|
-
onSend: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
32
|
-
onClose: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
|
-
closeOnEsc: import("prop-types").Requireable<boolean>;
|
|
34
|
-
assetCompanyId: import("prop-types").Validator<number>;
|
|
35
|
-
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
36
|
-
classes: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
37
|
-
}>>, import("prop-types").RequiredKeys<{
|
|
38
|
-
initialText: import("prop-types").Requireable<string>;
|
|
39
|
-
initialPeriod: import("prop-types").Requireable<string>;
|
|
40
|
-
initialAttachment: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
41
|
-
file_name: import("prop-types").Requireable<string>;
|
|
42
|
-
s3_link: import("prop-types").Requireable<string>;
|
|
43
|
-
}>>;
|
|
44
|
-
onSend: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
45
|
-
onClose: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
46
|
-
closeOnEsc: import("prop-types").Requireable<boolean>;
|
|
47
|
-
assetCompanyId: import("prop-types").Validator<number>;
|
|
48
|
-
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
49
|
-
classes: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>>;
|
|
50
|
-
}>> & {
|
|
51
|
-
initialText?: string | null | undefined;
|
|
52
|
-
initialPeriod?: string | null | undefined;
|
|
53
|
-
initialAttachment?: import("prop-types").InferProps<{
|
|
54
|
-
file_name: import("prop-types").Requireable<string>;
|
|
55
|
-
s3_link: import("prop-types").Requireable<string>;
|
|
56
|
-
}> | null | undefined;
|
|
57
|
-
onSend?: ((...args: any[]) => any) | null | undefined;
|
|
58
|
-
onClose?: ((...args: any[]) => any) | null | undefined;
|
|
59
|
-
closeOnEsc?: boolean | null | undefined;
|
|
60
|
-
} & {}, "assetCompanyId" | "closeOnEsc" | "currentUser" | "initialAttachment" | "initialPeriod" | "initialText" | "onClose" | "onSend"> & import("@material-ui/styles").StyledComponentProps<"inputLabel" | "inputRoot" | "labelHighlighter" | "selectLabel" | "sendButton" | "sendLabel" | "uploadingError">>;
|
|
10
|
+
initialText?: string | undefined;
|
|
11
|
+
onClose?: typeof DEFAULT_ANNOTATION_INPUT_ON_CLOSE | undefined;
|
|
12
|
+
onSend?: typeof DEFAULT_ANNOTATION_INPUT_ON_SEND | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
classes: import("@material-ui/styles").ClassNameMap<"inputLabel" | "inputRoot" | "labelHighlighter" | "selectLabel" | "sendButton" | "sendLabel" | "uploadingError">;
|
|
15
|
+
}>, "assetCompanyId" | "closeOnEsc" | "currentUser" | "initialAttachment" | "initialPeriod" | "initialText" | "onClose" | "onSend"> & import("@material-ui/styles").StyledComponentProps<"inputLabel" | "inputRoot" | "labelHighlighter" | "selectLabel" | "sendButton" | "sendLabel" | "uploadingError">>;
|
|
61
16
|
export default _default;
|
|
62
17
|
//# sourceMappingURL=index.d.ts.map
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js"],"names":[],"mappings":"AAkRA,QAAA,MAAM,gCAAgC,iBAAkB,CAAC;AACzD,QAAA,MAAM,iCAAiC,iBAAkB,CAAC"}
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import n from"moment";import{string as i,shape as o,func as a,bool as
|
|
1
|
+
import t from"@babel/runtime/helpers/slicedToArray";import{useState as e}from"react";import n from"moment";import{string as i,shape as o,func as a,bool as r,number as l}from"prop-types";import{withStyles as c}from"@material-ui/core/styles";import{Paper as s,Input as m,Tooltip as d,FormControl as p,InputLabel as u,MenuItem as f,Typography as h,IconButton as v}from"@material-ui/core";import g from"@material-ui/icons/Send";import b from"@material-ui/core/colors/grey";import{ANNOTATION_ACTIVE_PERIODS as y}from"../../../../constants.js";import A from"./StyledSelect.js";import N from"./style.css.js";import j from"../../../../../UserMention/index.js";import I from"../../../../../EmojiIconButton.js";import U from"../../../../../FileUploadIconButton.js";import C from"../../../../../FailedFileUploading.js";import S from"../../../../../FilePreview/index.js";import{isSuggestionsListOpened as _}from"../../../../../UserMention/utils/index.js";import E from"../../../../../../effects/useEscPress.js";import{jsxs as x,jsx as k}from"react/jsx-runtime";var B="AppAnnotationsPo",F=Object.keys(y),P=function(i){var o=i.initialText,a=void 0===o?"":o,r=i.initialPeriod,l=i.onSend,c=void 0===l?w:l,P=i.onClose,T=void 0===P?R:P,L=i.closeOnEsc,D=void 0!==L&&L,z=i.classes,H=i.initialAttachment,M=void 0===H?null:H,O=i.assetCompanyId,W=i.currentUser,q=e(a),K=t(q,2),G=K[0],J=K[1],Q=e((function(){return M?{attachmentName:M.file_name,attachmentUrl:M.signed_url||M.s3_link}:null})),V=t(Q,2),X=V[0],Y=V[1],Z=e(null),$=t(Z,2),tt=$[0],et=$[1],nt=e(!1),it=t(nt,2),ot=it[0],at=it[1],rt=e(F[0]),lt=t(rt,2),ct=lt[0],st=lt[1];E((function(){D&&T()}));var mt=function(){if(G){var t=function(t,e){if("forever"===t)return null;var i=y[t];return n(e).add(i.time.amount,i.time.key).format()}(ct,r);c(G,t,X)}};return x("div",{className:N.cAnnotationInput,children:[x(s,{className:N.cAnnotationInputContent,children:[k(m,{"data-testid":"".concat(B,"_annotationsInput"),inputComponent:j,inputProps:{withLightTheme:!1,onChange:function(t){return J(t)},onKeyDown:function(t){"Shift"===t.key&&at(!0),"Enter"!==t.key||ot||_()||(t.preventDefault(),mt())},onKeyUp:function(t){"Shift"===t.key&&at(!1)},companyId:O,currentUser:W},placeholder:"Type annotation here",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:z.inputRoot,value:G}),x("div",{className:N.cAnnotationInputContentActions,children:[k(d,{title:"Attach File",placement:"bottom",children:k("div",{className:N.cAnnotationInputContentActionsButton,children:k(U,{"data-testid":"".concat(B,"_attachFileButton"),openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:function(t,e,n){Y({attachmentUrl:t,attachmentName:e,attachmentSize:n}),et(null)},onError:function(t){Y(null),et(t)},htmlColor:"action"})})}),k(d,{title:"Add Emoji",placement:"bottom",children:k("div",{className:N.cAnnotationInputContentActionsButton,children:k(I,{"data-testid":"".concat(B,"_emojiButton"),htmlColor:b[400],handleSelectEmoji:function(t){return J("".concat(G).concat(t.native))}})})})]})]}),tt&&k(C,{className:z.uploadingError,errorMessage:tt}),X&&X.attachmentUrl&&k(S,{fileName:X.attachmentName,fileUrl:X.attachmentUrl,handleFileDelete:function(){Y(null),et(null)}}),x("div",{className:N.cAnnotationInputActions,children:[x(p,{className:z.formControl,children:[k(u,{shrink:!0,id:"periods-label-label",className:z.selectLabel,children:"Active"}),k(A,{"data-testid":"".concat(B,"_periodDropdown"),labelId:"periods-label-label",id:"periods-label",value:ct,disableUnderline:!0,onChange:function(t){return st(t.target.value)},children:F.map((function(t){return k(f,{"data-testid":"".concat(B,"_period_").concat(y[t].label,"MenuItem"),value:t,children:y[t].label},t)}))})]}),x("div",{className:N.cAnnotationInputActionsSend,children:[x(h,{variant:"caption",className:z.sendLabel,children:["Press ",k(h,{variant:"caption",color:"primary",component:"span",className:z.labelHighlighter,children:"Enter "}),"to send "]}),k(d,{title:"Send",placement:"bottom",children:k("div",{children:k(v,{"data-testid":"".concat(B,"_sendButton"),className:z.sendButton,onClick:mt,disabled:!G,children:k(g,{color:"primary"})})})})]})]})]})};P.propTypes={initialText:i,initialPeriod:i,initialAttachment:o({file_name:i,s3_link:i}),onSend:a,onClose:a,closeOnEsc:r,assetCompanyId:l.isRequired,currentUser:o().isRequired,classes:o().isRequired};var w=function(){},R=function(){},T=c((function(t){return{inputLabel:{color:t.palette.grey[700],fontWeight:200,width:"100%"},inputRoot:{lineHeight:15},sendLabel:{display:"flex",alignItems:"center",fontWeight:200,color:t.palette.grey[700],marginRight:22,fontSize:10},sendButton:{padding:5},labelHighlighter:{fontWeight:200,fontSize:10},selectLabel:{fontSize:10,lineHeight:"14px",color:t.palette.grey[500]},uploadingError:{paddingTop:"10px"}}}))(P);export{T as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js"],"sourcesContent":["import { useState } from 'react';\nimport moment from 'moment';\nimport { string, bool, shape, func, number } from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport {\n Paper,\n Input,\n Tooltip,\n Typography,\n IconButton,\n FormControl,\n InputLabel,\n MenuItem,\n} from '@material-ui/core';\nimport SendIcon from '@material-ui/icons/Send';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { ANNOTATION_ACTIVE_PERIODS } from '../../../../constants';\n\nimport StyledSelect from './StyledSelect';\n\nimport styles from './style.css';\n\nimport UserMention from '~components/UserMention';\nimport EmojiIconButton from '~components/EmojiIconButton';\nimport FileUploadIconButton from '~components/FileUploadIconButton';\nimport FailedFileUploading from '~components/FailedFileUploading';\nimport FilePreview from '~components/FilePreview';\nimport { isSuggestionsListOpened } from '~components/UserMention/utils';\nimport useEscPress from '~/effects/useEscPress';\n\nconst PAGE_NAME = 'AppAnnotationsPo';\n\nconst ANNOTATION_ACTIVE_PERIODS_KEYS = Object.keys(ANNOTATION_ACTIVE_PERIODS);\nconst ANNOTATION_PLACEHOLDER = 'Type annotation here';\n\nconst muiStyles = theme => ({\n inputLabel: {\n color: theme.palette.grey[700],\n fontWeight: 200,\n width: '100%',\n },\n inputRoot: {\n lineHeight: 15,\n },\n sendLabel: {\n display: 'flex',\n alignItems: 'center',\n fontWeight: 200,\n color: theme.palette.grey[700],\n marginRight: 22,\n fontSize: 10,\n },\n sendButton: {\n padding: 5,\n },\n labelHighlighter: {\n fontWeight: 200,\n fontSize: 10,\n },\n selectLabel: {\n fontSize: 10,\n lineHeight: '14px',\n color: theme.palette.grey[500],\n },\n uploadingError: {\n paddingTop: '10px',\n },\n});\n\nconst getAnnotationActiveUntil = (value, initialPeriod) => {\n if (value === 'forever') return null;\n\n const period = ANNOTATION_ACTIVE_PERIODS[value];\n return moment(initialPeriod).add(period.time.amount, period.time.key).format();\n};\n\nconst AnnotationInput = ({\n initialText,\n initialPeriod,\n onSend,\n onClose,\n closeOnEsc,\n classes,\n initialAttachment,\n assetCompanyId,\n currentUser,\n}) => {\n const [annotationText, setAnnotationText] = useState(initialText);\n const [attachment, setAttachment] = useState(() =>\n initialAttachment\n ? {\n attachmentName: initialAttachment.file_name,\n attachmentUrl: initialAttachment.signed_url || initialAttachment.s3_link,\n }\n : null\n );\n const [uploadError, setUploadError] = useState(null);\n const [isShiftKeyDown, setIsShiftKeyDown] = useState(false);\n const [period, setPeriod] = useState(ANNOTATION_ACTIVE_PERIODS_KEYS[0]);\n\n useEscPress(() => {\n if (closeOnEsc) onClose();\n });\n\n const handleSend = () => {\n if (annotationText) {\n const formattedPeriod = getAnnotationActiveUntil(period, initialPeriod);\n onSend(annotationText, formattedPeriod, attachment);\n }\n };\n\n const handlePeriodChange = e => setPeriod(e.target.value);\n\n const handleKeyDown = e => {\n if (e.key === 'Shift') setIsShiftKeyDown(true);\n\n if (e.key === 'Enter' && !isShiftKeyDown && !isSuggestionsListOpened()) {\n e.preventDefault(); // NOTE: Don't add linebreak to the post\n handleSend();\n }\n };\n\n const handleKeyUp = e => {\n if (e.key === 'Shift') setIsShiftKeyDown(false);\n };\n\n const handleSelectEmoji = emoji => setAnnotationText(`${annotationText}${emoji.native}`);\n\n const handleAnnotationTextChange = text => setAnnotationText(text);\n\n const onFileUploaded = (attachmentUrl, attachmentName, attachmentSize) => {\n setAttachment({ attachmentUrl, attachmentName, attachmentSize });\n setUploadError(null);\n };\n\n const onUploadingError = error => {\n setAttachment(null);\n setUploadError(error);\n };\n\n const onAttachmentDelete = () => {\n setAttachment(null);\n setUploadError(null);\n };\n\n return (\n <div className={styles.cAnnotationInput}>\n <Paper className={styles.cAnnotationInputContent}>\n <Input\n data-testid={`${PAGE_NAME}_annotationsInput`}\n inputComponent={UserMention}\n inputProps={{\n withLightTheme: false,\n onChange: handleAnnotationTextChange,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n companyId: assetCompanyId,\n currentUser,\n }}\n placeholder={ANNOTATION_PLACEHOLDER}\n fullWidth\n disableUnderline\n multiline\n rows=\"3\"\n className={classes.inputRoot}\n value={annotationText}\n />\n <div className={styles.cAnnotationInputContentActions}>\n <Tooltip title=\"Attach File\" placement=\"bottom\">\n <div className={styles.cAnnotationInputContentActionsButton}>\n <FileUploadIconButton\n data-testid={`${PAGE_NAME}_attachFileButton`}\n openPreviewDialogOnUpload={false}\n disableRipple\n onFinish={onFileUploaded}\n onError={onUploadingError}\n htmlColor=\"action\"\n />\n </div>\n </Tooltip>\n <Tooltip title=\"Add Emoji\" placement=\"bottom\">\n <div className={styles.cAnnotationInputContentActionsButton}>\n <EmojiIconButton\n data-testid={`${PAGE_NAME}_emojiButton`}\n htmlColor={grey[400]}\n handleSelectEmoji={handleSelectEmoji}\n />\n </div>\n </Tooltip>\n </div>\n </Paper>\n {uploadError && (\n <FailedFileUploading className={classes.uploadingError} errorMessage={uploadError} />\n )}\n {attachment && attachment.attachmentUrl && (\n <FilePreview\n fileName={attachment.attachmentName}\n fileUrl={attachment.attachmentUrl}\n handleFileDelete={onAttachmentDelete}\n />\n )}\n <div className={styles.cAnnotationInputActions}>\n <FormControl className={classes.formControl}>\n <InputLabel shrink id=\"periods-label-label\" className={classes.selectLabel}>\n Active\n </InputLabel>\n <StyledSelect\n data-testid={`${PAGE_NAME}_periodDropdown`}\n labelId=\"periods-label-label\"\n id=\"periods-label\"\n value={period}\n disableUnderline\n onChange={handlePeriodChange}\n >\n {ANNOTATION_ACTIVE_PERIODS_KEYS.map(key => (\n <MenuItem\n data-testid={`${PAGE_NAME}_period_${ANNOTATION_ACTIVE_PERIODS[key].label}MenuItem`}\n key={key}\n value={key}\n >\n {ANNOTATION_ACTIVE_PERIODS[key].label}\n </MenuItem>\n ))}\n </StyledSelect>\n </FormControl>\n <div className={styles.cAnnotationInputActionsSend}>\n <Typography variant=\"caption\" className={classes.sendLabel}>\n Press \n <Typography\n variant=\"caption\"\n color=\"primary\"\n component=\"span\"\n className={classes.labelHighlighter}\n >\n Enter \n </Typography>\n to send \n </Typography>\n <Tooltip title=\"Send\" placement=\"bottom\">\n <div>\n {/* div to display label since button is disabled */}\n <IconButton\n data-testid={`${PAGE_NAME}_sendButton`}\n className={classes.sendButton}\n onClick={handleSend}\n disabled={!annotationText}\n >\n <SendIcon color=\"primary\" />\n </IconButton>\n </div>\n </Tooltip>\n </div>\n </div>\n </div>\n );\n};\n\nAnnotationInput.propTypes = {\n initialText: string,\n initialPeriod: string,\n initialAttachment: shape({\n file_name: string,\n s3_link: string,\n }),\n onSend: func,\n onClose: func,\n closeOnEsc: bool,\n assetCompanyId: number.isRequired,\n currentUser: shape().isRequired,\n\n classes: shape().isRequired,\n};\n\nAnnotationInput.defaultProps = {\n initialText: '',\n initialPeriod: undefined,\n initialAttachment: null,\n onSend: () => undefined,\n onClose: () => undefined,\n closeOnEsc: false,\n};\n\nexport default withStyles(muiStyles)(AnnotationInput);\n"],"names":["PAGE_NAME","ANNOTATION_ACTIVE_PERIODS_KEYS","Object","keys","ANNOTATION_ACTIVE_PERIODS","AnnotationInput","_ref","initialText","initialPeriod","onSend","onClose","closeOnEsc","classes","initialAttachment","assetCompanyId","currentUser","useState","_useState2","_slicedToArray","_useState","annotationText","setAnnotationText","_useState3","attachmentName","file_name","attachmentUrl","signed_url","s3_link","_useState4","attachment","setAttachment","_useState6","_useState5","uploadError","setUploadError","_useState8","_useState7","isShiftKeyDown","setIsShiftKeyDown","_useState9","_useState10","period","setPeriod","useEscPress","handleSend","formattedPeriod","value","moment","add","time","amount","key","format","getAnnotationActiveUntil","_jsxs","className","styles","cAnnotationInput","children","Paper","cAnnotationInputContent","_jsx","Input","concat","inputComponent","UserMention","inputProps","withLightTheme","onChange","text","onKeyDown","e","isSuggestionsListOpened","preventDefault","onKeyUp","companyId","placeholder","fullWidth","disableUnderline","multiline","rows","inputRoot","cAnnotationInputContentActions","Tooltip","title","placement","cAnnotationInputContentActionsButton","FileUploadIconButton","openPreviewDialogOnUpload","disableRipple","onFinish","attachmentSize","onError","error","htmlColor","EmojiIconButton","grey","handleSelectEmoji","emoji","native","FailedFileUploading","uploadingError","errorMessage","FilePreview","fileName","fileUrl","handleFileDelete","cAnnotationInputActions","FormControl","formControl","InputLabel","shrink","id","selectLabel","StyledSelect","labelId","target","map","MenuItem","label","cAnnotationInputActionsSend","Typography","variant","sendLabel","color","component","labelHighlighter","IconButton","sendButton","onClick","disabled","SendIcon","propTypes","string","shape","func","bool","number","isRequired","defaultProps","undefined","AnnotationInput$1","withStyles","theme","inputLabel","palette","fontWeight","width","lineHeight","display","alignItems","marginRight","fontSize","padding","paddingTop"],"mappings":"yhCA+BA,IAAMA,EAAY,mBAEZC,EAAiCC,OAAOC,KAAKC,GA4C7CC,EAAkB,SAUlBC,GAAA,IATJC,IAAAA,YACAC,IAAAA,cACAC,IAAAA,OACAC,IAAAA,QACAC,IAAAA,WACAC,IAAAA,QACAC,IAAAA,kBACAC,IAAAA,eACAC,IAAAA,YAE4CC,EAAAA,EAAST,GAAYU,EAAAC,EAAAC,EAAA,GAA1DC,EAAcH,EAAA,GAAEI,EAAiBJ,EAAA,GACxCK,EAAoCN,GAAS,WAAA,OAC3CH,EACI,CACEU,eAAgBV,EAAkBW,UAClCC,cAAeZ,EAAkBa,YAAcb,EAAkBc,SAEnE,QACLC,EAA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AAC,GAAK,MAAK,CAC1BC,WAAY,CACVpB,MAAOmB,EAAME,QAAQjD,KAAK,KAC1BkD,WAAY,IACZC,MAAO,QAETlE,UAAW,CACTmE,WAAY,IAEdzB,UAAW,CACT0B,QAAS,OACTC,WAAY,SACZJ,WAAY,IACZtB,MAAOmB,EAAME,QAAQjD,KAAK,KAC1BuD,YAAa,GACbC,SAAU,IAEZxB,WAAY,CACVyB,QAAS,GAEX3B,iBAAkB,CAChBoB,WAAY,IACZM,SAAU,IAEZvC,YAAa,CACXuC,SAAU,GACVJ,WAAY,OACZxB,MAAOmB,EAAME,QAAQjD,KAAK,MAE5BK,eAAgB,CACdqD,WAAY,QAEf,GAuNcZ,CAAsBzI"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../src/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js"],"sourcesContent":["import { useState } from 'react';\nimport moment from 'moment';\nimport { string, bool, shape, func, number } from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport {\n Paper,\n Input,\n Tooltip,\n Typography,\n IconButton,\n FormControl,\n InputLabel,\n MenuItem,\n} from '@material-ui/core';\nimport SendIcon from '@material-ui/icons/Send';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { ANNOTATION_ACTIVE_PERIODS } from '../../../../constants';\n\nimport StyledSelect from './StyledSelect';\n\nimport styles from './style.css';\n\nimport UserMention from '~components/UserMention';\nimport EmojiIconButton from '~components/EmojiIconButton';\nimport FileUploadIconButton from '~components/FileUploadIconButton';\nimport FailedFileUploading from '~components/FailedFileUploading';\nimport FilePreview from '~components/FilePreview';\nimport { isSuggestionsListOpened } from '~components/UserMention/utils';\nimport useEscPress from '~/effects/useEscPress';\n\nconst PAGE_NAME = 'AppAnnotationsPo';\n\nconst ANNOTATION_ACTIVE_PERIODS_KEYS = Object.keys(ANNOTATION_ACTIVE_PERIODS);\nconst ANNOTATION_PLACEHOLDER = 'Type annotation here';\n\nconst muiStyles = theme => ({\n inputLabel: {\n color: theme.palette.grey[700],\n fontWeight: 200,\n width: '100%',\n },\n inputRoot: {\n lineHeight: 15,\n },\n sendLabel: {\n display: 'flex',\n alignItems: 'center',\n fontWeight: 200,\n color: theme.palette.grey[700],\n marginRight: 22,\n fontSize: 10,\n },\n sendButton: {\n padding: 5,\n },\n labelHighlighter: {\n fontWeight: 200,\n fontSize: 10,\n },\n selectLabel: {\n fontSize: 10,\n lineHeight: '14px',\n color: theme.palette.grey[500],\n },\n uploadingError: {\n paddingTop: '10px',\n },\n});\n\nconst getAnnotationActiveUntil = (value, initialPeriod) => {\n if (value === 'forever') return null;\n\n const period = ANNOTATION_ACTIVE_PERIODS[value];\n return moment(initialPeriod).add(period.time.amount, period.time.key).format();\n};\n\nconst AnnotationInput = ({\n initialText = '',\n initialPeriod,\n onSend = DEFAULT_ANNOTATION_INPUT_ON_SEND,\n onClose = DEFAULT_ANNOTATION_INPUT_ON_CLOSE,\n closeOnEsc = false,\n classes,\n initialAttachment = null,\n assetCompanyId,\n currentUser,\n}) => {\n const [annotationText, setAnnotationText] = useState(initialText);\n const [attachment, setAttachment] = useState(() =>\n initialAttachment\n ? {\n attachmentName: initialAttachment.file_name,\n attachmentUrl: initialAttachment.signed_url || initialAttachment.s3_link,\n }\n : null\n );\n const [uploadError, setUploadError] = useState(null);\n const [isShiftKeyDown, setIsShiftKeyDown] = useState(false);\n const [period, setPeriod] = useState(ANNOTATION_ACTIVE_PERIODS_KEYS[0]);\n\n useEscPress(() => {\n if (closeOnEsc) onClose();\n });\n\n const handleSend = () => {\n if (annotationText) {\n const formattedPeriod = getAnnotationActiveUntil(period, initialPeriod);\n onSend(annotationText, formattedPeriod, attachment);\n }\n };\n\n const handlePeriodChange = e => setPeriod(e.target.value);\n\n const handleKeyDown = e => {\n if (e.key === 'Shift') setIsShiftKeyDown(true);\n\n if (e.key === 'Enter' && !isShiftKeyDown && !isSuggestionsListOpened()) {\n e.preventDefault(); // NOTE: Don't add linebreak to the post\n handleSend();\n }\n };\n\n const handleKeyUp = e => {\n if (e.key === 'Shift') setIsShiftKeyDown(false);\n };\n\n const handleSelectEmoji = emoji => setAnnotationText(`${annotationText}${emoji.native}`);\n\n const handleAnnotationTextChange = text => setAnnotationText(text);\n\n const onFileUploaded = (attachmentUrl, attachmentName, attachmentSize) => {\n setAttachment({ attachmentUrl, attachmentName, attachmentSize });\n setUploadError(null);\n };\n\n const onUploadingError = error => {\n setAttachment(null);\n setUploadError(error);\n };\n\n const onAttachmentDelete = () => {\n setAttachment(null);\n setUploadError(null);\n };\n\n return (\n <div className={styles.cAnnotationInput}>\n <Paper className={styles.cAnnotationInputContent}>\n <Input\n data-testid={`${PAGE_NAME}_annotationsInput`}\n inputComponent={UserMention}\n inputProps={{\n withLightTheme: false,\n onChange: handleAnnotationTextChange,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n companyId: assetCompanyId,\n currentUser,\n }}\n placeholder={ANNOTATION_PLACEHOLDER}\n fullWidth\n disableUnderline\n multiline\n rows=\"3\"\n className={classes.inputRoot}\n value={annotationText}\n />\n <div className={styles.cAnnotationInputContentActions}>\n <Tooltip title=\"Attach File\" placement=\"bottom\">\n <div className={styles.cAnnotationInputContentActionsButton}>\n <FileUploadIconButton\n data-testid={`${PAGE_NAME}_attachFileButton`}\n openPreviewDialogOnUpload={false}\n disableRipple\n onFinish={onFileUploaded}\n onError={onUploadingError}\n htmlColor=\"action\"\n />\n </div>\n </Tooltip>\n <Tooltip title=\"Add Emoji\" placement=\"bottom\">\n <div className={styles.cAnnotationInputContentActionsButton}>\n <EmojiIconButton\n data-testid={`${PAGE_NAME}_emojiButton`}\n htmlColor={grey[400]}\n handleSelectEmoji={handleSelectEmoji}\n />\n </div>\n </Tooltip>\n </div>\n </Paper>\n {uploadError && (\n <FailedFileUploading className={classes.uploadingError} errorMessage={uploadError} />\n )}\n {attachment && attachment.attachmentUrl && (\n <FilePreview\n fileName={attachment.attachmentName}\n fileUrl={attachment.attachmentUrl}\n handleFileDelete={onAttachmentDelete}\n />\n )}\n <div className={styles.cAnnotationInputActions}>\n <FormControl className={classes.formControl}>\n <InputLabel shrink id=\"periods-label-label\" className={classes.selectLabel}>\n Active\n </InputLabel>\n <StyledSelect\n data-testid={`${PAGE_NAME}_periodDropdown`}\n labelId=\"periods-label-label\"\n id=\"periods-label\"\n value={period}\n disableUnderline\n onChange={handlePeriodChange}\n >\n {ANNOTATION_ACTIVE_PERIODS_KEYS.map(key => (\n <MenuItem\n data-testid={`${PAGE_NAME}_period_${ANNOTATION_ACTIVE_PERIODS[key].label}MenuItem`}\n key={key}\n value={key}\n >\n {ANNOTATION_ACTIVE_PERIODS[key].label}\n </MenuItem>\n ))}\n </StyledSelect>\n </FormControl>\n <div className={styles.cAnnotationInputActionsSend}>\n <Typography variant=\"caption\" className={classes.sendLabel}>\n Press \n <Typography\n variant=\"caption\"\n color=\"primary\"\n component=\"span\"\n className={classes.labelHighlighter}\n >\n Enter \n </Typography>\n to send \n </Typography>\n <Tooltip title=\"Send\" placement=\"bottom\">\n <div>\n {/* div to display label since button is disabled */}\n <IconButton\n data-testid={`${PAGE_NAME}_sendButton`}\n className={classes.sendButton}\n onClick={handleSend}\n disabled={!annotationText}\n >\n <SendIcon color=\"primary\" />\n </IconButton>\n </div>\n </Tooltip>\n </div>\n </div>\n </div>\n );\n};\n\nAnnotationInput.propTypes = {\n initialText: string,\n initialPeriod: string,\n initialAttachment: shape({\n file_name: string,\n s3_link: string,\n }),\n onSend: func,\n onClose: func,\n closeOnEsc: bool,\n assetCompanyId: number.isRequired,\n currentUser: shape().isRequired,\n\n classes: shape().isRequired,\n};\n\nconst DEFAULT_ANNOTATION_INPUT_ON_SEND = () => undefined;\nconst DEFAULT_ANNOTATION_INPUT_ON_CLOSE = () => undefined;\n\nexport default withStyles(muiStyles)(AnnotationInput);\n"],"names":["PAGE_NAME","ANNOTATION_ACTIVE_PERIODS_KEYS","Object","keys","ANNOTATION_ACTIVE_PERIODS","AnnotationInput","_ref","_ref$initialText","initialText","initialPeriod","_ref$onSend","onSend","DEFAULT_ANNOTATION_INPUT_ON_SEND","_ref$onClose","onClose","DEFAULT_ANNOTATION_INPUT_ON_CLOSE","_ref$closeOnEsc","closeOnEsc","classes","_ref$initialAttachmen","initialAttachment","assetCompanyId","currentUser","useState","_useState2","_slicedToArray","_useState","annotationText","setAnnotationText","_useState3","attachmentName","file_name","attachmentUrl","signed_url","s3_link","_useState4","attachment","setAttachment","_useState6","_useState5","uploadError","setUploadError","_useState8","_useState7","isShiftKeyDown","setIsShiftKeyDown","_useState9","_useState10","period","setPeriod","useEscPress","handleSend","formattedPeriod","value","moment","add","time","amount","key","format","getAnnotationActiveUntil","_jsxs","className","styles","cAnnotationInput","children","Paper","cAnnotationInputContent","_jsx","Input","concat","inputComponent","UserMention","inputProps","withLightTheme","onChange","text","onKeyDown","e","isSuggestionsListOpened","preventDefault","onKeyUp","companyId","placeholder","fullWidth","disableUnderline","multiline","rows","inputRoot","cAnnotationInputContentActions","Tooltip","title","placement","cAnnotationInputContentActionsButton","FileUploadIconButton","openPreviewDialogOnUpload","disableRipple","onFinish","attachmentSize","onError","error","htmlColor","EmojiIconButton","grey","handleSelectEmoji","emoji","native","FailedFileUploading","uploadingError","errorMessage","FilePreview","fileName","fileUrl","handleFileDelete","cAnnotationInputActions","FormControl","formControl","InputLabel","shrink","id","selectLabel","StyledSelect","labelId","target","map","MenuItem","label","cAnnotationInputActionsSend","Typography","variant","sendLabel","color","component","labelHighlighter","IconButton","sendButton","onClick","disabled","SendIcon","propTypes","string","shape","func","bool","number","isRequired","AnnotationInput$1","withStyles","theme","inputLabel","palette","fontWeight","width","lineHeight","display","alignItems","marginRight","fontSize","padding","paddingTop"],"mappings":"yhCA+BA,IAAMA,EAAY,mBAEZC,EAAiCC,OAAOC,KAAKC,GA4C7CC,EAAkB,SAUlBC,GAAA,IAAAC,EAAAD,EATJE,YAAAA,aAAc,GAAED,EAChBE,IAAAA,cAAaC,EAAAJ,EACbK,OAAAA,aAASC,EAAgCF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EA9H,EAAgBsI,UAAY,CAC1BnI,YAAaoI,EACbnI,cAAemI,EACfxH,kBAAmByH,EAAM,CACvB9G,UAAW6G,EACX1G,QAAS0G,IAEXjI,OAAQmI,EACRhI,QAASgI,EACT7H,WAAY8H,EACZ1H,eAAgB2H,EAAOC,WACvB3H,YAAauH,IAAQI,WAErB/H,QAAS2H,IAAQI,YAGnB,IAAMrI,EAAmC,WAAe,EAClDG,EAAoC,WAAe,EAEzDmI,EAAeC,GAjPG,SAAAC,GAAK,MAAK,CAC1BC,WAAY,CACVlB,MAAOiB,EAAME,QAAQ/C,KAAK,KAC1BgD,WAAY,IACZC,MAAO,QAEThE,UAAW,CACTiE,WAAY,IAEdvB,UAAW,CACTwB,QAAS,OACTC,WAAY,SACZJ,WAAY,IACZpB,MAAOiB,EAAME,QAAQ/C,KAAK,KAC1BqD,YAAa,GACbC,SAAU,IAEZtB,WAAY,CACVuB,QAAS,GAEXzB,iBAAkB,CAChBkB,WAAY,IACZM,SAAU,IAEZrC,YAAa,CACXqC,SAAU,GACVJ,WAAY,OACZtB,MAAOiB,EAAME,QAAQ/C,KAAK,MAE5BK,eAAgB,CACdmD,WAAY,QAEf,GAiNcZ,CAAsB9I"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare const _default: import("react").ComponentType<Pick<Pick<
|
|
1
|
+
declare const _default: import("react").ComponentType<Pick<Pick<{
|
|
2
2
|
appId: any;
|
|
3
|
-
appSettings
|
|
3
|
+
appSettings?: {} | undefined;
|
|
4
4
|
appTitle: any;
|
|
5
5
|
assetCompanyId: any;
|
|
6
6
|
assetId: any;
|
|
7
7
|
classes: any;
|
|
8
8
|
currentUser: any;
|
|
9
|
-
dashboardType
|
|
10
|
-
isNative
|
|
9
|
+
dashboardType?: null | undefined;
|
|
10
|
+
isNative?: boolean | undefined;
|
|
11
11
|
onClose: any;
|
|
12
|
-
},
|
|
12
|
+
}, "appSettings" | "dashboardType" | "isNative"> & Pick<import("prop-types").InferProps<{
|
|
13
13
|
appId: import("prop-types").Validator<number>;
|
|
14
14
|
appTitle: import("prop-types").Validator<string>;
|
|
15
15
|
assetId: import("prop-types").Validator<number>;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
20
20
|
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
|
|
21
21
|
isNative: import("prop-types").Requireable<boolean>;
|
|
22
22
|
dashboardType: import("prop-types").Requireable<string>;
|
|
23
|
-
}>,
|
|
23
|
+
}>, import("prop-types").RequiredKeys<{
|
|
24
24
|
appId: import("prop-types").Validator<number>;
|
|
25
25
|
appTitle: import("prop-types").Validator<string>;
|
|
26
26
|
assetId: import("prop-types").Validator<number>;
|
|
@@ -31,21 +31,17 @@ declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
|
|
|
31
31
|
currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
|
|
32
32
|
isNative: import("prop-types").Requireable<boolean>;
|
|
33
33
|
dashboardType: import("prop-types").Requireable<string>;
|
|
34
|
-
}
|
|
35
|
-
appId:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
assetCompanyId:
|
|
39
|
-
|
|
40
|
-
classes:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isNative
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
appSettings?: import("prop-types").InferProps<import("prop-types").ValidationMap<any>> | null | undefined;
|
|
47
|
-
isNative?: boolean | null | undefined;
|
|
48
|
-
dashboardType?: string | null | undefined;
|
|
49
|
-
} & {}, "appId" | "appSettings" | "appTitle" | "assetCompanyId" | "assetId" | "currentUser" | "dashboardType" | "isNative" | "onClose"> & import("@material-ui/styles").StyledComponentProps<"annotateIcon" | "backIcon" | "noAnnotations" | "secondaryTitle" | "title">>;
|
|
34
|
+
}>> & Pick<{
|
|
35
|
+
appId: any;
|
|
36
|
+
appSettings?: {} | undefined;
|
|
37
|
+
appTitle: any;
|
|
38
|
+
assetCompanyId: any;
|
|
39
|
+
assetId: any;
|
|
40
|
+
classes: any;
|
|
41
|
+
currentUser: any;
|
|
42
|
+
dashboardType?: null | undefined;
|
|
43
|
+
isNative?: boolean | undefined;
|
|
44
|
+
onClose: any;
|
|
45
|
+
}, never>, "appId" | "appSettings" | "appTitle" | "assetCompanyId" | "assetId" | "currentUser" | "dashboardType" | "isNative" | "onClose"> & import("@material-ui/styles").StyledComponentProps<"annotateIcon" | "backIcon" | "noAnnotations" | "secondaryTitle" | "title">>;
|
|
50
46
|
export default _default;
|
|
51
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as r,useRef as a,useState as i,useEffect as s}from"react";import{number as c,string as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{memo as r,useRef as a,useState as i,useEffect as s}from"react";import{number as c,string as d,shape as p,func as m,bool as l}from"prop-types";import u from"classnames";import{withStyles as f}from"@material-ui/core/styles";import{RootRef as h,Paper as y,Typography as b,Tooltip as v,IconButton as g}from"@material-ui/core";import A from"@material-ui/icons/ChevronLeft";import{getAnnotations as I}from"../../../../clients/jsonApi/index.js";import{useAnnotationsState as C,useAnnotationsDispatch as T}from"../../AnnotationsContext.js";import{SET_ANNOTATIONS as x,APPEND_ANNOTATIONS as N}from"../../constants.js";import j from"./components/AddAnnotationForm/index.js";import L from"./components/Annotation/index.js";import k from"./style.css.js";import"../../../../utils/index.js";import{isNativeDetected as R}from"../../../../utils/mobileDetect.js";import _ from"../../../InfiniteList/index.js";import q from"../../../../effects/useOutsideClick.js";import{jsx as w,jsxs as S,Fragment as H}from"react/jsx-runtime";import{showSuccessNotification as U}from"../../../../utils/notificationToasts.js";var F="AppAnnotationsPo",O=function(r){var c,d=r.appId,p=r.appTitle,m=r.assetId,l=r.assetCompanyId,f=r.appSettings,R=void 0===f?W:f,O=r.currentUser,P=r.onClose,D=r.isNative,E=void 0===D?B:D,G=r.classes,M=r.dashboardType,z=void 0===M?null:M,J=C().annotations,K=T(),Q=a(),V=a();q(Q,P);var X=i(!1),Y=n(X,2),Z=Y[0],$=Y[1],tt=i(!0),et=n(tt,2),nt=et[0],ot=et[1],rt=i(!0),at=n(rt,2),it=at[0],st=at[1],ct=i(1),dt=n(ct,2),pt=dt[0],mt=dt[1];function lt(){return(lt=e(o.mark((function t(){var e,n,r;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d&&m){t.next=2;break}return t.abrupt("return");case 2:return ot(!0),t.prev=3,n={page:pt,per_page:4,sort:"created_at",order:"desc"},z&&(n.dashboard_type=z),t.next=8,I(d,m,n);case 8:e=t.sent,K({type:1===pt?x:N,annotations:e}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),console.error(t.t0);case 15:r=e&&e.data.length<4,mt(pt+1),st(!r),ot(!1);case 19:case"end":return t.stop()}}),t,null,[[3,12]])})))).apply(this,arguments)}return s((function(){$(!0)}),[]),w(h,{rootRef:Q,children:S(y,{className:u(k.cAnnotationsList,(c={},t(c,k.cAnnotationsListOpen,Z),t(c,k.cAnnotationsListOpenNative,E),c)),children:[w(_,{infiniteClassName:k.cAnnotationsListContentContainer,headerComponent:S(H,{children:[w(b,{"data-testid":"".concat(F,"_appTitle"),variant:"body1",className:G.title,children:p}),w("div",{className:k.cAnnotationsListContentTop,children:S(b,{"data-testid":"".concat(F,"_annotationsTitle"),variant:"caption",className:G.secondaryTitle,children:["Annotations (",J.data?J.data.length:0,")"]})}),w(j,{appId:d,assetId:m,assetCompanyId:l,appSettings:R,currentUser:O,dashboardType:z})]}),useWindow:E,items:J.data||[],showNoItemsFound:!(J.data&&0!==J.data.length||nt),noItemsFoundLabel:w(b,{variant:"body2","data-testid":"".concat(F,"_noAnnotations"),className:G.noAnnotations,children:"No Annotations yet"}),threshold:50,infiniteContainerHeight:Q.current&&V.current?Q.current.clientHeight-V.current.clientHeight:null,moreItemsMayExist:it,pathToCreatedAt:["attributes","created_at"],renderItem:function(t){return w(L,{isNative:E,annotation:t,assetCompanyId:l,included:J.included,currentUser:O,showSuccessNotification:U},t.id)},loadItems:function(){return lt.apply(this,arguments)}}),w("div",{className:k.cAnnotationsListActions,ref:V,children:w(v,{title:"Hide",placement:"bottom",children:w(g,{"data-testid":"".concat(F,"_hideButton"),onClick:P,className:G.backIcon,children:w(A,{})})})})]})})};O.propTypes={appId:c.isRequired,appTitle:d.isRequired,assetId:c.isRequired,assetCompanyId:c.isRequired,appSettings:p(),classes:p().isRequired,onClose:m.isRequired,currentUser:p({}).isRequired,isNative:l,dashboardType:d};var W={},B=R,P=f((function(t){return{title:{fontWeight:200,marginBottom:20},secondaryTitle:{fontWeight:200,textTransform:"uppercase",color:t.palette.grey[600]},annotateIcon:{padding:0,"&:hover":{backgroundColor:"transparent",boxShadow:"none"}},noAnnotations:{marginTop:16},backIcon:{cursor:"pointer",color:t.palette.grey[600],padding:5}}}))(r(O));export{P as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Annotations/components/AnnotationsList/index.js"],"sourcesContent":["import { memo, useState, useEffect, useRef } from 'react';\nimport { func, bool, shape, number, string } from 'prop-types';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Paper, Typography, IconButton, Tooltip, RootRef } from '@material-ui/core';\nimport BackIcon from '@material-ui/icons/ChevronLeft';\n\nimport { getAnnotations } from '../../../../clients/jsonApi';\nimport { useAnnotationsState, useAnnotationsDispatch } from '../../AnnotationsContext';\nimport { SET_ANNOTATIONS, APPEND_ANNOTATIONS } from '../../constants';\n\nimport AddAnnotationForm from './components/AddAnnotationForm';\nimport Annotation from './components/Annotation';\n\nimport styles from './style.css';\n\nimport { showSuccessNotification } from '~/utils';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport InfiniteList from '~components/InfiniteList';\nimport useOutsideClick from '~effects/useOutsideClick';\n\nconst PAGE_NAME = 'AppAnnotationsPo';\n\nconst muiStyles = theme => ({\n title: { fontWeight: 200, marginBottom: 20 },\n secondaryTitle: {\n fontWeight: 200,\n textTransform: 'uppercase',\n color: theme.palette.grey[600],\n },\n annotateIcon: {\n padding: 0,\n '&:hover': {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n noAnnotations: { marginTop: 16 },\n backIcon: { cursor: 'pointer', color: theme.palette.grey[600], padding: 5 },\n});\n\nconst PER_PAGE = 4;\n\nconst AnnotationsList = ({\n appId,\n appTitle,\n assetId,\n assetCompanyId,\n appSettings,\n currentUser,\n onClose,\n isNative,\n classes,\n dashboardType,\n}) => {\n const { annotations } = useAnnotationsState();\n const dispatch = useAnnotationsDispatch();\n\n const rootRef = useRef();\n const footerRef = useRef();\n\n const infiniteContainerHeight = () => {\n if (rootRef.current && footerRef.current)\n return rootRef.current.clientHeight - footerRef.current.clientHeight;\n return null;\n };\n\n useOutsideClick(rootRef, onClose);\n\n const [isOpen, setIsOpen] = useState(false);\n const [isInfiniteLoading, setIsInfiniteLoading] = useState(true);\n const [moreItemsMayExist, setMoreItemsMayExist] = useState(true);\n const [page, setPage] = useState(1);\n\n async function handleFetchAnnotations() {\n if (!(appId && assetId)) return;\n setIsInfiniteLoading(true);\n\n let response;\n try {\n const options = {\n page,\n per_page: PER_PAGE,\n sort: 'created_at',\n order: 'desc',\n };\n if (dashboardType) options.dashboard_type = dashboardType;\n\n response = await getAnnotations(appId, assetId, options);\n dispatch({\n type: page === 1 ? SET_ANNOTATIONS : APPEND_ANNOTATIONS,\n annotations: response,\n });\n } catch (e) {\n console.error(e);\n }\n\n const lessThanPerPage = response && response.data.length < PER_PAGE;\n\n setPage(page + 1);\n setMoreItemsMayExist(!lessThanPerPage);\n setIsInfiniteLoading(false);\n }\n\n useEffect(() => {\n setIsOpen(true); // NOTE: Opens here because of for the sliding effect on open\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <RootRef rootRef={rootRef}>\n <Paper\n className={classNames(styles.cAnnotationsList, {\n [styles.cAnnotationsListOpen]: isOpen,\n [styles.cAnnotationsListOpenNative]: isNative,\n })}\n >\n <InfiniteList\n infiniteClassName={styles.cAnnotationsListContentContainer}\n headerComponent={\n <>\n <Typography\n data-testid={`${PAGE_NAME}_appTitle`}\n variant=\"body1\"\n className={classes.title}\n >\n {appTitle}\n </Typography>\n\n <div className={styles.cAnnotationsListContentTop}>\n <Typography\n data-testid={`${PAGE_NAME}_annotationsTitle`}\n variant=\"caption\"\n className={classes.secondaryTitle}\n >\n Annotations ({annotations.data ? annotations.data.length : 0})\n </Typography>\n </div>\n\n <AddAnnotationForm\n appId={appId}\n assetId={assetId}\n assetCompanyId={assetCompanyId}\n appSettings={appSettings}\n currentUser={currentUser}\n dashboardType={dashboardType}\n />\n </>\n }\n useWindow={isNative}\n items={annotations.data || []}\n showNoItemsFound={\n (!annotations.data || annotations.data.length === 0) && !isInfiniteLoading\n }\n noItemsFoundLabel={\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_noAnnotations`}\n className={classes.noAnnotations}\n >\n No Annotations yet\n </Typography>\n }\n threshold={50}\n infiniteContainerHeight={infiniteContainerHeight()}\n moreItemsMayExist={moreItemsMayExist}\n pathToCreatedAt={['attributes', 'created_at']}\n renderItem={item => (\n <Annotation\n key={item.id}\n isNative={isNative}\n annotation={item}\n assetCompanyId={assetCompanyId}\n included={annotations.included}\n currentUser={currentUser}\n showSuccessNotification={showSuccessNotification}\n />\n )}\n loadItems={handleFetchAnnotations}\n />\n <div className={styles.cAnnotationsListActions} ref={footerRef}>\n <Tooltip title=\"Hide\" placement=\"bottom\">\n <IconButton\n data-testid={`${PAGE_NAME}_hideButton`}\n onClick={onClose}\n className={classes.backIcon}\n >\n <BackIcon />\n </IconButton>\n </Tooltip>\n </div>\n </Paper>\n </RootRef>\n );\n};\n\nAnnotationsList.propTypes = {\n appId: number.isRequired,\n appTitle: string.isRequired,\n assetId: number.isRequired,\n assetCompanyId: number.isRequired,\n appSettings: shape(),\n classes: shape().isRequired,\n onClose: func.isRequired,\n currentUser: shape({}).isRequired,\n isNative: bool,\n dashboardType: string,\n};\n\nAnnotationsList.defaultProps = {\n appSettings: {},\n isNative: isNativeDetected,\n dashboardType: null,\n};\n\nexport default withStyles(muiStyles)(memo(AnnotationsList));\n"],"names":["PAGE_NAME","AnnotationsList","_ref","_classNames","appId","appTitle","assetId","assetCompanyId","appSettings","currentUser","onClose","isNative","classes","dashboardType","annotations","useAnnotationsState","dispatch","useAnnotationsDispatch","rootRef","useRef","footerRef","useOutsideClick","useState","_useState2","_slicedToArray","_useState","isOpen","setIsOpen","_useState4","_useState3","isInfiniteLoading","setIsInfiniteLoading","_useState6","_useState5","moreItemsMayExist","setMoreItemsMayExist","_useState8","_useState7","page","setPage","_handleFetchAnnotations","_asyncToGenerator","_regeneratorRuntime","mark","_callee","response","options","lessThanPerPage","wrap","_context","prev","next","abrupt","per_page","sort","order","dashboard_type","getAnnotations","sent","type","SET_ANNOTATIONS","APPEND_ANNOTATIONS","t0","console","error","data","length","stop","apply","this","arguments","useEffect","_jsx","RootRef","children","_jsxs","Paper","className","classNames","styles","cAnnotationsList","cAnnotationsListOpen","cAnnotationsListOpenNative","InfiniteList","infiniteClassName","cAnnotationsListContentContainer","headerComponent","_Fragment","Typography","concat","variant","title","cAnnotationsListContentTop","secondaryTitle","AddAnnotationForm","useWindow","items","showNoItemsFound","noItemsFoundLabel","noAnnotations","threshold","infiniteContainerHeight","current","clientHeight","pathToCreatedAt","renderItem","item","Annotation","annotation","included","showSuccessNotification","id","loadItems","cAnnotationsListActions","ref","Tooltip","placement","IconButton","onClick","backIcon","BackIcon","propTypes","number","isRequired","string","shape","func","bool","defaultProps","isNativeDetected","withStyles","theme","fontWeight","marginBottom","textTransform","color","palette","grey","annotateIcon","padding","backgroundColor","boxShadow","marginTop","cursor","memo"],"mappings":"qxCAqBA,IAAMA,EAAY,mBAsBZC,EAAkB,SAWlBC,GAAA,IAAAC,EAVJC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,eACAC,IAAAA,YACAC,IAAAA,YACAC,IAAAA,QACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,cAEQC,EAAgBC,IAAhBD,YACFE,EAAWC,IAEXC,EAAUC,IACVC,EAAYD,IAQlBE,EAAgBH,EAASR,GAEzB,IAA4BY,EAAAA,GAAS,GAAMC,EAAAC,EAAAC,EAAA,GAApCC,EAAMH,EAAA,GAAEI,EAASJ,EAAA,GAC0BD,EAAAA,GAAS,GAAKM,EAAAJ,EAAAK,EAAA,GAAzDC,EAAiBF,EAAA,GAAEG,EAAoBH,EAAA,GACIN,EAAAA,GAAS,GAAKU,GAAAR,EAAAS,EAAA,GAAzDC,GAAiBF,GAAA,GAAEG,GAAoBH,GAAA,GACtBV,GAAAA,EAAS,GAAEc,GAAAZ,EAAAa,GAAA,GAA5BC,GAAIF,GAAA,GAAEG,GAAOH,GAAA,GAEiB,SAAAI,KA4BpC,OA5BoCA,GAArCC,EAAAC,EAAAC,MAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAA,OAAAL,EAAAM,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,GACQ/C,GAASE,EAAO,CAAA2C,EAAAE,KAAA,EAAA,KAAA,CAAA,OAAAF,EAAAG,OAAA,UAAA,KAAA,EAWsC,OAV5DrB,GAAqB,GAAMkB,EAAAC,KAAA,EAInBJ,EAAU,CACdR,KAAAA,GACAe,SAzCS,EA0CTC,KAAM,aACNC,MAAO,QAEL1C,IAAeiC,EAAQU,eAAiB3C,GAAcoC,EAAAE,KAAA,EAEzCM,EAAerD,EAAOE,EAASw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AAC,GAAK,MAAK,CAC1BxC,MAAO,CAAEyC,WAAY,IAAKC,aAAc,IACxCxC,eAAgB,CACduC,WAAY,IACZE,cAAe,YACfC,MAAOJ,EAAMK,QAAQC,KAAK,MAE5BC,aAAc,CACZC,QAAS,EACT,UAAW,CACTC,gBAAiB,cACjBC,UAAW,SAGf1C,cAAe,CAAE2C,UAAW,IAC5BvB,SAAU,CAAEwB,OAAQ,UAAWR,MAAOJ,EAAMK,QAAQC,KAAK,KAAME,QAAS,GACzE,GA+KcT,CAAsBc,EAAK/I"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Annotations/components/AnnotationsList/index.js"],"sourcesContent":["import { memo, useState, useEffect, useRef } from 'react';\nimport { func, bool, shape, number, string } from 'prop-types';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Paper, Typography, IconButton, Tooltip, RootRef } from '@material-ui/core';\nimport BackIcon from '@material-ui/icons/ChevronLeft';\n\nimport { getAnnotations } from '../../../../clients/jsonApi';\nimport { useAnnotationsState, useAnnotationsDispatch } from '../../AnnotationsContext';\nimport { SET_ANNOTATIONS, APPEND_ANNOTATIONS } from '../../constants';\n\nimport AddAnnotationForm from './components/AddAnnotationForm';\nimport Annotation from './components/Annotation';\n\nimport styles from './style.css';\n\nimport { showSuccessNotification } from '~/utils';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport InfiniteList from '~components/InfiniteList';\nimport useOutsideClick from '~effects/useOutsideClick';\n\nconst PAGE_NAME = 'AppAnnotationsPo';\n\nconst muiStyles = theme => ({\n title: { fontWeight: 200, marginBottom: 20 },\n secondaryTitle: {\n fontWeight: 200,\n textTransform: 'uppercase',\n color: theme.palette.grey[600],\n },\n annotateIcon: {\n padding: 0,\n '&:hover': {\n backgroundColor: 'transparent',\n boxShadow: 'none',\n },\n },\n noAnnotations: { marginTop: 16 },\n backIcon: { cursor: 'pointer', color: theme.palette.grey[600], padding: 5 },\n});\n\nconst PER_PAGE = 4;\n\nconst AnnotationsList = ({\n appId,\n appTitle,\n assetId,\n assetCompanyId,\n appSettings = DEFAULT_ANNOTATIONS_LIST_APP_SETTINGS,\n currentUser,\n onClose,\n isNative = DEFAULT_ANNOTATIONS_LIST_IS_NATIVE,\n classes,\n dashboardType = null,\n}) => {\n const { annotations } = useAnnotationsState();\n const dispatch = useAnnotationsDispatch();\n\n const rootRef = useRef();\n const footerRef = useRef();\n\n const infiniteContainerHeight = () => {\n if (rootRef.current && footerRef.current)\n return rootRef.current.clientHeight - footerRef.current.clientHeight;\n return null;\n };\n\n useOutsideClick(rootRef, onClose);\n\n const [isOpen, setIsOpen] = useState(false);\n const [isInfiniteLoading, setIsInfiniteLoading] = useState(true);\n const [moreItemsMayExist, setMoreItemsMayExist] = useState(true);\n const [page, setPage] = useState(1);\n\n async function handleFetchAnnotations() {\n if (!(appId && assetId)) return;\n setIsInfiniteLoading(true);\n\n let response;\n try {\n const options = {\n page,\n per_page: PER_PAGE,\n sort: 'created_at',\n order: 'desc',\n };\n if (dashboardType) options.dashboard_type = dashboardType;\n\n response = await getAnnotations(appId, assetId, options);\n dispatch({\n type: page === 1 ? SET_ANNOTATIONS : APPEND_ANNOTATIONS,\n annotations: response,\n });\n } catch (e) {\n console.error(e);\n }\n\n const lessThanPerPage = response && response.data.length < PER_PAGE;\n\n setPage(page + 1);\n setMoreItemsMayExist(!lessThanPerPage);\n setIsInfiniteLoading(false);\n }\n\n useEffect(() => {\n setIsOpen(true); // NOTE: Opens here because of for the sliding effect on open\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <RootRef rootRef={rootRef}>\n <Paper\n className={classNames(styles.cAnnotationsList, {\n [styles.cAnnotationsListOpen]: isOpen,\n [styles.cAnnotationsListOpenNative]: isNative,\n })}\n >\n <InfiniteList\n infiniteClassName={styles.cAnnotationsListContentContainer}\n headerComponent={\n <>\n <Typography\n data-testid={`${PAGE_NAME}_appTitle`}\n variant=\"body1\"\n className={classes.title}\n >\n {appTitle}\n </Typography>\n\n <div className={styles.cAnnotationsListContentTop}>\n <Typography\n data-testid={`${PAGE_NAME}_annotationsTitle`}\n variant=\"caption\"\n className={classes.secondaryTitle}\n >\n Annotations ({annotations.data ? annotations.data.length : 0})\n </Typography>\n </div>\n\n <AddAnnotationForm\n appId={appId}\n assetId={assetId}\n assetCompanyId={assetCompanyId}\n appSettings={appSettings}\n currentUser={currentUser}\n dashboardType={dashboardType}\n />\n </>\n }\n useWindow={isNative}\n items={annotations.data || []}\n showNoItemsFound={\n (!annotations.data || annotations.data.length === 0) && !isInfiniteLoading\n }\n noItemsFoundLabel={\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_noAnnotations`}\n className={classes.noAnnotations}\n >\n No Annotations yet\n </Typography>\n }\n threshold={50}\n infiniteContainerHeight={infiniteContainerHeight()}\n moreItemsMayExist={moreItemsMayExist}\n pathToCreatedAt={['attributes', 'created_at']}\n renderItem={item => (\n <Annotation\n key={item.id}\n isNative={isNative}\n annotation={item}\n assetCompanyId={assetCompanyId}\n included={annotations.included}\n currentUser={currentUser}\n showSuccessNotification={showSuccessNotification}\n />\n )}\n loadItems={handleFetchAnnotations}\n />\n <div className={styles.cAnnotationsListActions} ref={footerRef}>\n <Tooltip title=\"Hide\" placement=\"bottom\">\n <IconButton\n data-testid={`${PAGE_NAME}_hideButton`}\n onClick={onClose}\n className={classes.backIcon}\n >\n <BackIcon />\n </IconButton>\n </Tooltip>\n </div>\n </Paper>\n </RootRef>\n );\n};\n\nAnnotationsList.propTypes = {\n appId: number.isRequired,\n appTitle: string.isRequired,\n assetId: number.isRequired,\n assetCompanyId: number.isRequired,\n appSettings: shape(),\n classes: shape().isRequired,\n onClose: func.isRequired,\n currentUser: shape({}).isRequired,\n isNative: bool,\n dashboardType: string,\n};\n\nconst DEFAULT_ANNOTATIONS_LIST_APP_SETTINGS = {};\nconst DEFAULT_ANNOTATIONS_LIST_IS_NATIVE = isNativeDetected;\n\nexport default withStyles(muiStyles)(memo(AnnotationsList));\n"],"names":["PAGE_NAME","AnnotationsList","_ref","_classNames","appId","appTitle","assetId","assetCompanyId","_ref$appSettings","appSettings","DEFAULT_ANNOTATIONS_LIST_APP_SETTINGS","currentUser","onClose","_ref$isNative","isNative","DEFAULT_ANNOTATIONS_LIST_IS_NATIVE","classes","_ref$dashboardType","dashboardType","annotations","useAnnotationsState","dispatch","useAnnotationsDispatch","rootRef","useRef","footerRef","useOutsideClick","useState","_useState2","_slicedToArray","_useState","isOpen","setIsOpen","_useState4","_useState3","isInfiniteLoading","setIsInfiniteLoading","_useState6","_useState5","moreItemsMayExist","setMoreItemsMayExist","_useState8","_useState7","page","setPage","_handleFetchAnnotations","_asyncToGenerator","_regeneratorRuntime","mark","_callee","response","options","lessThanPerPage","wrap","_context","prev","next","abrupt","per_page","sort","order","dashboard_type","getAnnotations","sent","type","SET_ANNOTATIONS","APPEND_ANNOTATIONS","t0","console","error","data","length","stop","apply","this","arguments","useEffect","_jsx","RootRef","children","_jsxs","Paper","className","classNames","styles","cAnnotationsList","cAnnotationsListOpen","cAnnotationsListOpenNative","InfiniteList","infiniteClassName","cAnnotationsListContentContainer","headerComponent","_Fragment","Typography","concat","variant","title","cAnnotationsListContentTop","secondaryTitle","AddAnnotationForm","useWindow","items","showNoItemsFound","noItemsFoundLabel","noAnnotations","threshold","infiniteContainerHeight","current","clientHeight","pathToCreatedAt","renderItem","item","Annotation","annotation","included","showSuccessNotification","id","loadItems","cAnnotationsListActions","ref","Tooltip","placement","IconButton","onClick","backIcon","BackIcon","propTypes","number","isRequired","string","shape","func","bool","isNativeDetected","withStyles","theme","fontWeight","marginBottom","textTransform","color","palette","grey","annotateIcon","padding","backgroundColor","boxShadow","marginTop","cursor","memo"],"mappings":"qxCAqBA,IAAMA,EAAY,mBAsBZC,EAAkB,SAWlBC,GAAA,IAAAC,EAVJC,IAAAA,MACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,eAAcC,EAAAN,EACdO,YAAAA,aAAcC,EAAqCF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SAGfzC,cAAe,CAAE0C,UAAW,IAC5BtB,SAAU,CAAEuB,OAAQ,UAAWR,MAAOJ,EAAMK,QAAQC,KAAK,KAAME,QAAS,GACzE,GA4KcT,CAAsBc,EAAKnJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/regenerator";import{memo as i,useMemo as n}from"react";import{number as a,shape as o,arrayOf as s,string as c,bool as m,func as d}from"prop-types";import u from"classnames";import{flowRight as l}from"lodash";import{withStyles as p}from"@material-ui/core/styles";import f,{isWidthUp as v}from"@material-ui/core/withWidth";import h from"@material-ui/core/Paper";import b from"@material-ui/core/Typography";import y from"@material-ui/icons/Comment";import N from"@material-ui/icons/Close";import{closeLastAnnotation as R}from"../../../../clients/jsonApi/index.js";import g from"./style.css.js";import A from"../../../UserCardPopover.js";import{AvatarComponent as x}from"../../../Avatar/index.js";import{formatMentionText as q}from"../../../UserMention/utils/index.js";import{isNativeDetected as _}from"../../../../utils/mobileDetect.js";import{jsxs as U,jsx as C}from"react/jsx-runtime";var j="lastAnnotation",T=function(e){var t=e.user,r=e.currentUser,i=e.isNative,n=e.className,a=e.size,o=C(x,{displayName:"".concat(t.first_name," ").concat(t.last_name),imgSrc:t.profile_photo,size:a,className:n});return i?o:C(A,{user:t,currentUser:r,children:o})},L=function(e){var r=e.commentsCount,i=e.commentUsers,n=e.isSmallScreen,a=e.isNative,o=e.currentUser,s=e.classes;return r?U("div",{className:g.cTopAnnotationAdditionalReactions,children:[C(y,{className:s.commentIcon}),!n&&U(b,{variant:"body2","data-testid":"".concat(j,"_comments"),noWrap:!0,className:s.commentText,component:"div",children:["Comments ",r]}),C("div",{className:g.cTopAnnotationAdditionalReactionsList,children:i.map((function(e,r){var i=e.attributes;return C(T,{user:i,currentUser:o,isNative:a,className:u(s.avatar,t({},s.avatarInList,0!==r)),size:25},i.id)}))})]}):null},w=function(t){var i,a=t.isNative,o=void 0===a?I:a,s=t.appId,c=t.annotation,m=t.openAnnotationsList,d=t.currentUser,u=void 0===d?z:d,l=t.updateCurrentDashboardAppLastAnnotation,p=void 0===l?S:l,f=t.width,y=t.classes,A=c.data,x=c.included,_=x.find((function(e){var t=e.id,r=e.type;return t===A.relationships.user.data.id&&"user"===r})),w=n((function(){return A.relationships.mentioned_users.data.map((function(e){var t=e.id;return x.find((function(e){return e.id===t}))}))}),[A.relationships.mentioned_users.data,x]),k=n((function(){return A.relationships.comment_users.data.map((function(e){var t=e.id;return x.find((function(e){return e.id===t}))}))}),[A.relationships.comment_users.data,x]),P=!v("sm",f),W=(i=e(r.mark((function e(t){var i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.prev=1,e.next=4,R(A.id);case 4:i=e.sent,p(A.id,s,i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e){return i.apply(this,arguments)});return U(h,{"data-testid":"".concat(j,"_lastAnnotation"),className:y.container,onClick:m,children:[U("div",{className:g.cTopAnnotationMain,children:[C(T,{user:_.attributes,currentUser:u,isNative:o,className:y.avatar,size:38}),C(b,{variant:"body2","data-testid":"".concat(j,"_message"),noWrap:!0,className:y.body,children:q(A.attributes.body,w,o,null,u)})]}),U("div",{className:g.cTopAnnotationAdditional,children:[C(L,{commentsCount:A.attributes.comments_count,commentUsers:k,classes:y,isSmallScreen:P,currentUser:u}),C(N,{"data-testid":"".concat(j,"_closeButton"),fontSize:"small",className:y.closeButton,onClick:W})]})]})};w.propTypes={appId:a.isRequired,annotation:o({included:s(o({})).isRequired,data:o({relationships:o({user:o({data:o({id:c.isRequired}).isRequired}).isRequired,mentioned_users:o({data:s(o()).isRequired}).isRequired}).isRequired,attributes:o({body:c.isRequired,created_at:c.isRequired})}).isRequired}).isRequired,classes:o({}).isRequired,isNative:m,width:c.isRequired,openAnnotationsList:d.isRequired,updateCurrentDashboardAppLastAnnotation:d,currentUser:o({})};var I=_,S=function(){},z={},k=l([p((function(e){return{container:{height:56,margin:"10px 0",padding:"0 20px",display:"flex",alignItems:"center",justifyContent:"space-between",flex:"auto 1",width:"100%",cursor:"pointer"},body:{margin:"0 16px ",minWidth:100},avatar:{border:"1px solid #909090"},commentIcon:{marginRight:16,color:e.palette.grey[500]},commentText:{marginRight:16,color:e.palette.grey[500]},closeButton:{color:e.palette.grey[500]},avatarInList:{marginLeft:-4}}})),f()])(i(w));export{k as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Annotations/components/LastAnnotation/index.js"],"sourcesContent":["import { memo, useMemo } from 'react';\nimport { shape, string, bool, arrayOf, func, number } from 'prop-types';\nimport classNames from 'classnames';\nimport { flowRight } from 'lodash';\nimport { withStyles } from '@material-ui/core/styles';\nimport withWidth, { isWidthUp } from '@material-ui/core/withWidth';\nimport Paper from '@material-ui/core/Paper';\nimport Typography from '@material-ui/core/Typography';\nimport CommentIcon from '@material-ui/icons/Comment';\nimport CloseButton from '@material-ui/icons/Close';\n\nimport { closeLastAnnotation } from '../../../../clients/jsonApi';\n\nimport styles from './style.css';\n\nimport UserCardPopover from '~/components/UserCardPopover';\nimport Avatar from '~/components/Avatar';\nimport { formatMentionText } from '~/components/UserMention/utils';\nimport { isNativeDetected } from '~/utils/mobileDetect';\n\nconst PAGE_NAME = 'lastAnnotation';\n\nconst muiStyles = theme => ({\n container: {\n height: 56,\n margin: '10px 0',\n padding: '0 20px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n flex: 'auto 1',\n width: '100%',\n cursor: 'pointer',\n },\n body: { margin: '0 16px ', minWidth: 100 },\n avatar: { border: '1px solid #909090' },\n commentIcon: { marginRight: 16, color: theme.palette.grey[500] },\n commentText: { marginRight: 16, color: theme.palette.grey[500] },\n closeButton: { color: theme.palette.grey[500] },\n avatarInList: { marginLeft: -4 },\n});\n\n/* eslint-disable react/prop-types */\nconst CreatorAvatar = ({ user, currentUser, isNative, className, size }) => {\n const children = (\n <Avatar\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={size}\n className={className}\n />\n );\n\n if (isNative) return children;\n return (\n <UserCardPopover user={user} currentUser={currentUser}>\n {children}\n </UserCardPopover>\n );\n};\n\nconst Reactions = ({\n commentsCount,\n commentUsers,\n isSmallScreen,\n isNative,\n currentUser,\n classes,\n}) => {\n if (!commentsCount) return null;\n\n return (\n <div className={styles.cTopAnnotationAdditionalReactions}>\n <CommentIcon className={classes.commentIcon} />\n {!isSmallScreen && (\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_comments`}\n noWrap\n className={classes.commentText}\n component=\"div\"\n >\n Comments {commentsCount}\n </Typography>\n )}\n\n <div className={styles.cTopAnnotationAdditionalReactionsList}>\n {commentUsers.map(({ attributes }, index) => (\n <CreatorAvatar\n key={attributes.id}\n user={attributes}\n currentUser={currentUser}\n isNative={isNative}\n className={classNames(classes.avatar, { [classes.avatarInList]: index !== 0 })}\n size={25}\n />\n ))}\n </div>\n </div>\n );\n};\n/* eslint-enable */\n\nconst LastAnnotation = ({\n isNative,\n appId,\n annotation,\n openAnnotationsList,\n currentUser,\n updateCurrentDashboardAppLastAnnotation: updateLastAnnotation,\n width,\n classes,\n}) => {\n const { data, included } = annotation;\n const creator = included.find(\n ({ id, type }) => id === data.relationships.user.data.id && type === 'user'\n );\n\n const mentionedUsers = useMemo(\n () =>\n data.relationships.mentioned_users.data.map(({ id: mentionedUserId }) =>\n included.find(({ id }) => id === mentionedUserId)\n ),\n [data.relationships.mentioned_users.data, included]\n );\n\n const commentUsers = useMemo(\n () =>\n data.relationships.comment_users.data.map(({ id: commentUserId }) =>\n included.find(({ id }) => id === commentUserId)\n ),\n [data.relationships.comment_users.data, included]\n );\n\n const isSmallScreen = !isWidthUp('sm', width);\n\n const handleCloseClick = async e => {\n e.stopPropagation();\n\n try {\n const response = await closeLastAnnotation(data.id);\n updateLastAnnotation(data.id, appId, response);\n } catch (error) {\n console.error(error);\n }\n };\n\n return (\n <Paper\n data-testid={`${PAGE_NAME}_lastAnnotation`}\n className={classes.container}\n onClick={openAnnotationsList}\n >\n <div className={styles.cTopAnnotationMain}>\n <CreatorAvatar\n user={creator.attributes}\n currentUser={currentUser}\n isNative={isNative}\n className={classes.avatar}\n size={38}\n />\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_message`}\n noWrap\n className={classes.body}\n >\n {formatMentionText(data.attributes.body, mentionedUsers, isNative, null, currentUser)}\n </Typography>\n </div>\n <div className={styles.cTopAnnotationAdditional}>\n <Reactions\n commentsCount={data.attributes.comments_count}\n commentUsers={commentUsers}\n classes={classes}\n isSmallScreen={isSmallScreen}\n currentUser={currentUser}\n />\n <CloseButton\n data-testid={`${PAGE_NAME}_closeButton`}\n fontSize=\"small\"\n className={classes.closeButton}\n onClick={handleCloseClick}\n />\n </div>\n </Paper>\n );\n};\n\nLastAnnotation.propTypes = {\n appId: number.isRequired,\n annotation: shape({\n included: arrayOf(shape({})).isRequired,\n data: shape({\n relationships: shape({\n user: shape({ data: shape({ id: string.isRequired }).isRequired }).isRequired,\n mentioned_users: shape({ data: arrayOf(shape()).isRequired }).isRequired,\n }).isRequired,\n attributes: shape({ body: string.isRequired, created_at: string.isRequired }),\n }).isRequired,\n }).isRequired,\n classes: shape({}).isRequired,\n isNative: bool,\n width: string.isRequired,\n openAnnotationsList: func.isRequired,\n updateCurrentDashboardAppLastAnnotation: func,\n currentUser: shape({}),\n};\n\nLastAnnotation.defaultProps = {\n isNative: isNativeDetected,\n updateCurrentDashboardAppLastAnnotation: () => undefined,\n currentUser: {},\n};\n\nexport default flowRight([withStyles(muiStyles), withWidth()])(memo(LastAnnotation));\n"],"names":["PAGE_NAME","CreatorAvatar","_ref","user","currentUser","isNative","className","size","children","_jsx","Avatar","displayName","concat","first_name","last_name","imgSrc","profile_photo","UserCardPopover","Reactions","_ref2","commentsCount","commentUsers","isSmallScreen","classes","_jsxs","styles","cTopAnnotationAdditionalReactions","CommentIcon","commentIcon","Typography","variant","noWrap","commentText","component","cTopAnnotationAdditionalReactionsList","map","index","attributes","classNames","avatar","_defineProperty","avatarInList","id","LastAnnotation","_ref4","_ref10","appId","annotation","openAnnotationsList","updateLastAnnotation","updateCurrentDashboardAppLastAnnotation","width","data","included","creator","find","_ref5","type","relationships","mentionedUsers","useMemo","mentioned_users","_ref6","mentionedUserId","_ref7","comment_users","_ref8","commentUserId","_ref9","isWidthUp","handleCloseClick","_asyncToGenerator","_regeneratorRuntime","mark","e","response","wrap","_context","prev","next","stopPropagation","closeLastAnnotation","sent","t0","console","error","stop","_callee","_x","apply","this","arguments","Paper","container","onClick","cTopAnnotationMain","body","formatMentionText","cTopAnnotationAdditional","comments_count","CloseButton","fontSize","closeButton","propTypes","number","isRequired","shape","arrayOf","string","created_at","bool","func","defaultProps","isNativeDetected","LastAnnotation$1","flowRight","withStyles","theme","height","margin","padding","display","alignItems","justifyContent","flex","cursor","minWidth","border","marginRight","color","palette","grey","marginLeft","withWidth","memo"],"mappings":"6/BAoBA,IAAMA,EAAY,iBAuBZC,EAAgB,SAAsDC,GAAA,IAAnDC,IAAAA,KAAMC,IAAAA,YAAaC,IAAAA,SAAUC,IAAAA,UAAWC,IAAAA,KACzDC,EACJC,EAACC,EAAM,CACLC,YAAW,GAAAC,OAAKT,EAAKU,uBAAcV,EAAKW,WACxCC,OAAQZ,EAAKa,cACbT,KAAMA,EACND,UAAWA,IAIf,OAAID,EAAiBG,EAEnBC,EAACQ,EAAe,CAACd,KAAMA,EAAMC,YAAaA,EAAYI,SACnDA,GAGP,EAEMU,EAAY,SAOZC,GAAA,IANJC,IAAAA,cACAC,IAAAA,aACAC,IAAAA,cACAjB,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Aa,GAAIC,MAAOZ,EAAMa,QAAQC,KAAK,MAC1D7B,YAAa,CAAE2B,MAAOZ,EAAMa,QAAQC,KAAK,MACzC1F,aAAc,CAAE2F,YAAa,GAC9B,IA+KgDC,KAAlClB,CAAgDmB,EAAK3F"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Annotations/components/LastAnnotation/index.js"],"sourcesContent":["import { memo, useMemo } from 'react';\nimport { shape, string, bool, arrayOf, func, number } from 'prop-types';\nimport classNames from 'classnames';\nimport { flowRight } from 'lodash';\nimport { withStyles } from '@material-ui/core/styles';\nimport withWidth, { isWidthUp } from '@material-ui/core/withWidth';\nimport Paper from '@material-ui/core/Paper';\nimport Typography from '@material-ui/core/Typography';\nimport CommentIcon from '@material-ui/icons/Comment';\nimport CloseButton from '@material-ui/icons/Close';\n\nimport { closeLastAnnotation } from '../../../../clients/jsonApi';\n\nimport styles from './style.css';\n\nimport UserCardPopover from '~/components/UserCardPopover';\nimport Avatar from '~/components/Avatar';\nimport { formatMentionText } from '~/components/UserMention/utils';\nimport { isNativeDetected } from '~/utils/mobileDetect';\n\nconst PAGE_NAME = 'lastAnnotation';\n\nconst muiStyles = theme => ({\n container: {\n height: 56,\n margin: '10px 0',\n padding: '0 20px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n flex: 'auto 1',\n width: '100%',\n cursor: 'pointer',\n },\n body: { margin: '0 16px ', minWidth: 100 },\n avatar: { border: '1px solid #909090' },\n commentIcon: { marginRight: 16, color: theme.palette.grey[500] },\n commentText: { marginRight: 16, color: theme.palette.grey[500] },\n closeButton: { color: theme.palette.grey[500] },\n avatarInList: { marginLeft: -4 },\n});\n\n/* eslint-disable react/prop-types */\nconst CreatorAvatar = ({ user, currentUser, isNative, className, size }) => {\n const children = (\n <Avatar\n displayName={`${user.first_name} ${user.last_name}`}\n imgSrc={user.profile_photo}\n size={size}\n className={className}\n />\n );\n\n if (isNative) return children;\n return (\n <UserCardPopover user={user} currentUser={currentUser}>\n {children}\n </UserCardPopover>\n );\n};\n\nconst Reactions = ({\n commentsCount,\n commentUsers,\n isSmallScreen,\n isNative,\n currentUser,\n classes,\n}) => {\n if (!commentsCount) return null;\n\n return (\n <div className={styles.cTopAnnotationAdditionalReactions}>\n <CommentIcon className={classes.commentIcon} />\n {!isSmallScreen && (\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_comments`}\n noWrap\n className={classes.commentText}\n component=\"div\"\n >\n Comments {commentsCount}\n </Typography>\n )}\n\n <div className={styles.cTopAnnotationAdditionalReactionsList}>\n {commentUsers.map(({ attributes }, index) => (\n <CreatorAvatar\n key={attributes.id}\n user={attributes}\n currentUser={currentUser}\n isNative={isNative}\n className={classNames(classes.avatar, { [classes.avatarInList]: index !== 0 })}\n size={25}\n />\n ))}\n </div>\n </div>\n );\n};\n/* eslint-enable */\n\nconst LastAnnotation = ({\n isNative = DEFAULT_LAST_ANNOTATION_IS_NATIVE,\n appId,\n annotation,\n openAnnotationsList,\n currentUser = DEFAULT_LAST_ANNOTATION_CURRENT_USER,\n updateCurrentDashboardAppLastAnnotation:\n updateLastAnnotation = DEFAULT_LAST_ANNOTATION_UPDATE_CURRENT_DASHBOARD_APP_LAST_ANNOTATION,\n width,\n classes,\n}) => {\n const { data, included } = annotation;\n const creator = included.find(\n ({ id, type }) => id === data.relationships.user.data.id && type === 'user'\n );\n\n const mentionedUsers = useMemo(\n () =>\n data.relationships.mentioned_users.data.map(({ id: mentionedUserId }) =>\n included.find(({ id }) => id === mentionedUserId)\n ),\n [data.relationships.mentioned_users.data, included]\n );\n\n const commentUsers = useMemo(\n () =>\n data.relationships.comment_users.data.map(({ id: commentUserId }) =>\n included.find(({ id }) => id === commentUserId)\n ),\n [data.relationships.comment_users.data, included]\n );\n\n const isSmallScreen = !isWidthUp('sm', width);\n\n const handleCloseClick = async e => {\n e.stopPropagation();\n\n try {\n const response = await closeLastAnnotation(data.id);\n updateLastAnnotation(data.id, appId, response);\n } catch (error) {\n console.error(error);\n }\n };\n\n return (\n <Paper\n data-testid={`${PAGE_NAME}_lastAnnotation`}\n className={classes.container}\n onClick={openAnnotationsList}\n >\n <div className={styles.cTopAnnotationMain}>\n <CreatorAvatar\n user={creator.attributes}\n currentUser={currentUser}\n isNative={isNative}\n className={classes.avatar}\n size={38}\n />\n <Typography\n variant=\"body2\"\n data-testid={`${PAGE_NAME}_message`}\n noWrap\n className={classes.body}\n >\n {formatMentionText(data.attributes.body, mentionedUsers, isNative, null, currentUser)}\n </Typography>\n </div>\n <div className={styles.cTopAnnotationAdditional}>\n <Reactions\n commentsCount={data.attributes.comments_count}\n commentUsers={commentUsers}\n classes={classes}\n isSmallScreen={isSmallScreen}\n currentUser={currentUser}\n />\n <CloseButton\n data-testid={`${PAGE_NAME}_closeButton`}\n fontSize=\"small\"\n className={classes.closeButton}\n onClick={handleCloseClick}\n />\n </div>\n </Paper>\n );\n};\n\nLastAnnotation.propTypes = {\n appId: number.isRequired,\n annotation: shape({\n included: arrayOf(shape({})).isRequired,\n data: shape({\n relationships: shape({\n user: shape({ data: shape({ id: string.isRequired }).isRequired }).isRequired,\n mentioned_users: shape({ data: arrayOf(shape()).isRequired }).isRequired,\n }).isRequired,\n attributes: shape({ body: string.isRequired, created_at: string.isRequired }),\n }).isRequired,\n }).isRequired,\n classes: shape({}).isRequired,\n isNative: bool,\n width: string.isRequired,\n openAnnotationsList: func.isRequired,\n updateCurrentDashboardAppLastAnnotation: func,\n currentUser: shape({}),\n};\n\nconst DEFAULT_LAST_ANNOTATION_IS_NATIVE = isNativeDetected;\nconst DEFAULT_LAST_ANNOTATION_UPDATE_CURRENT_DASHBOARD_APP_LAST_ANNOTATION = () => undefined;\nconst DEFAULT_LAST_ANNOTATION_CURRENT_USER = {};\n\nexport default flowRight([withStyles(muiStyles), withWidth()])(memo(LastAnnotation));\n"],"names":["PAGE_NAME","CreatorAvatar","_ref","user","currentUser","isNative","className","size","children","_jsx","Avatar","displayName","concat","first_name","last_name","imgSrc","profile_photo","UserCardPopover","Reactions","_ref2","commentsCount","commentUsers","isSmallScreen","classes","_jsxs","styles","cTopAnnotationAdditionalReactions","CommentIcon","commentIcon","Typography","variant","noWrap","commentText","component","cTopAnnotationAdditionalReactionsList","map","index","attributes","classNames","avatar","_defineProperty","avatarInList","id","LastAnnotation","_ref4","_ref10","_ref4$isNative","DEFAULT_LAST_ANNOTATION_IS_NATIVE","appId","annotation","openAnnotationsList","_ref4$currentUser","DEFAULT_LAST_ANNOTATION_CURRENT_USER","_ref4$updateCurrentDa","updateCurrentDashboardAppLastAnnotation","updateLastAnnotation","DEFAULT_LAST_ANNOTATION_UPDATE_CURRENT_DASHBOARD_APP_LAST_ANNOTATION","width","data","included","creator","find","_ref5","type","relationships","mentionedUsers","useMemo","mentioned_users","_ref6","mentionedUserId","_ref7","comment_users","_ref8","commentUserId","_ref9","isWidthUp","handleCloseClick","_asyncToGenerator","_regeneratorRuntime","mark","e","response","wrap","_context","prev","next","stopPropagation","closeLastAnnotation","sent","t0","console","error","stop","_callee","_x","apply","this","arguments","Paper","container","onClick","cTopAnnotationMain","body","formatMentionText","cTopAnnotationAdditional","comments_count","CloseButton","fontSize","closeButton","propTypes","number","isRequired","shape","arrayOf","string","created_at","bool","func","isNativeDetected","LastAnnotation$1","flowRight","withStyles","theme","height","margin","padding","display","alignItems","justifyContent","flex","cursor","minWidth","border","marginRight","color","palette","grey","marginLeft","withWidth","memo"],"mappings":"6/BAoBA,IAAMA,EAAY,iBAuBZC,EAAgB,SAAsDC,GAAA,IAAnDC,IAAAA,KAAMC,IAAAA,YAAaC,IAAAA,SAAUC,IAAAA,UAAWC,IAAAA,KACzDC,EACJC,EAACC,EAAM,CACLC,YAAW,GAAAC,OAAKT,EAAKU,uBAAcV,EAAKW,WACxCC,OAAQZ,EAAKa,cACbT,KAAMA,EACND,UAAWA,IAIf,OAAID,EAAiBG,EAEnBC,EAACQ,EAAe,CAACd,KAAMA,EAAMC,YAAaA,EAAYI,SACnDA,GAGP,EAE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