@corva/ui 3.68.1 → 3.68.2
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/components/Content.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
- package/cjs-bundle/components/AttachFileButton/AttachFileButton.js +2 -0
- package/cjs-bundle/components/AttachFileButton/AttachFileButton.js.map +1 -0
- package/cjs-bundle/components/AttachFileButton/AttachFileButton.scss.js +2 -0
- package/cjs-bundle/components/AttachFileButton/AttachFileButton.scss.js.map +1 -0
- package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js +2 -0
- package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -0
- package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.scss.js +2 -0
- package/cjs-bundle/components/AttachmentLightbox/AttachmentLightbox.scss.js.map +1 -0
- package/cjs-bundle/components/AttachmentLightbox/useAttachmentLightbox.js +2 -0
- package/cjs-bundle/components/AttachmentLightbox/useAttachmentLightbox.js.map +1 -0
- package/cjs-bundle/components/AttachmentPreview/AttachmentPreview.js +1 -1
- package/cjs-bundle/components/AttachmentPreview/AttachmentPreview.scss.js +1 -1
- package/cjs-bundle/components/AttachmentPreview/StoredAttachmentPreview.js +2 -0
- package/cjs-bundle/components/AttachmentPreview/StoredAttachmentPreview.js.map +1 -0
- package/cjs-bundle/components/AttachmentPreview/getAttachmentKind.js +2 -0
- package/cjs-bundle/components/AttachmentPreview/getAttachmentKind.js.map +1 -0
- package/cjs-bundle/components/AttachmentPreview/useStoredAttachment.js +2 -0
- package/cjs-bundle/components/AttachmentPreview/useStoredAttachment.js.map +1 -0
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.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/CommentCard/CommentCard.js +1 -1
- package/cjs-bundle/components/CommentCard/CommentCard.scss.js +1 -1
- package/cjs-bundle/components/CommentCard/CommentCardReactions.js +1 -1
- package/cjs-bundle/components/CommentCard/CommentCardReplies.js +1 -1
- package/cjs-bundle/components/CommentCard/CommentMenu.js +1 -1
- package/cjs-bundle/components/CommentCard/buildCommentReply.js +2 -0
- package/cjs-bundle/components/CommentCard/buildCommentReply.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js +2 -0
- package/cjs-bundle/components/CommentComposer/ChatChannelSelector.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/ChatChannelSelector.scss.js +2 -0
- package/cjs-bundle/components/CommentComposer/ChatChannelSelector.scss.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/CommentComposer.js +2 -0
- package/cjs-bundle/components/CommentComposer/CommentComposer.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/CommentComposer.scss.js +2 -0
- package/cjs-bundle/components/CommentComposer/CommentComposer.scss.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/CommentMetaLine.js +2 -0
- package/cjs-bundle/components/CommentComposer/CommentMetaLine.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/CommentMetaLine.scss.js +2 -0
- package/cjs-bundle/components/CommentComposer/CommentMetaLine.scss.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/CommentReplyInput.js +2 -0
- package/cjs-bundle/components/CommentComposer/CommentReplyInput.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/ShareToChatRow.js +2 -0
- package/cjs-bundle/components/CommentComposer/ShareToChatRow.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/ShareToChatRow.scss.js +2 -0
- package/cjs-bundle/components/CommentComposer/ShareToChatRow.scss.js.map +1 -0
- package/cjs-bundle/components/CommentComposer/useAttachmentUpload.js +2 -0
- package/cjs-bundle/components/CommentComposer/useAttachmentUpload.js.map +1 -0
- package/cjs-bundle/components/CommentInputNext/CommentInputNext.js +1 -1
- package/cjs-bundle/components/CommentInputNext/CommentInputNext.scss.js +1 -1
- package/cjs-bundle/components/ConfirmationDialog.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/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/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/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/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/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/EmojiIconButton.js +1 -1
- package/cjs-bundle/components/EmojiIconButton.js.map +1 -1
- package/cjs-bundle/components/FeedCard/useActivityInteractions.js +2 -0
- package/cjs-bundle/components/FeedCard/useActivityInteractions.js.map +1 -0
- package/cjs-bundle/components/FeedCard/useDeleteFeedItem.js +2 -0
- package/cjs-bundle/components/FeedCard/useDeleteFeedItem.js.map +1 -0
- package/cjs-bundle/components/FeedCard/useFeedActivity.js +2 -0
- package/cjs-bundle/components/FeedCard/useFeedActivity.js.map +1 -0
- package/cjs-bundle/components/FeedItemCard/FeedItemCard.js +1 -1
- package/cjs-bundle/components/FeedItemCard/FeedItemCard.scss.js +1 -1
- package/cjs-bundle/components/NewCommentCursor/NewCommentCursor.js +1 -1
- package/cjs-bundle/components/NewCommentCursor/NewCommentCursor.scss.js +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/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.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/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/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +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/UserMention/index.js +1 -1
- package/cjs-bundle/components/UserMention/index.js.map +1 -1
- package/cjs-bundle/components/UserMention/utils/index.js +1 -1
- package/cjs-bundle/components/UserMention/utils/index.js.map +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/cjs-bundle/componentsV2/Popper/Popper.js +1 -1
- package/cjs-bundle/componentsV2/Popper/constants.js +2 -0
- package/cjs-bundle/componentsV2/Popper/constants.js.map +1 -0
- package/cjs-bundle/effects/useOutsideClick.js +1 -1
- package/cjs-bundle/effects/useSignedURL.js +1 -1
- package/cjs-bundle/effects/useSignedURL.js.map +1 -1
- package/cjs-bundle/utils/index.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popover.js.map +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AddComment/components/Content.js.map +1 -1
- package/components/AttachFileButton/AttachFileButton.d.ts +13 -0
- package/components/AttachFileButton/AttachFileButton.d.ts.map +1 -0
- package/components/AttachFileButton/AttachFileButton.js +2 -0
- package/components/AttachFileButton/AttachFileButton.js.map +1 -0
- package/components/AttachFileButton/AttachFileButton.scss.js +2 -0
- package/components/AttachFileButton/AttachFileButton.scss.js.map +1 -0
- package/components/AttachFileButton/index.d.ts +2 -0
- package/components/AttachFileButton/index.d.ts.map +1 -0
- package/components/AttachmentLightbox/AttachmentLightbox.d.ts +14 -0
- package/components/AttachmentLightbox/AttachmentLightbox.d.ts.map +1 -0
- package/components/AttachmentLightbox/AttachmentLightbox.js +2 -0
- package/components/AttachmentLightbox/AttachmentLightbox.js.map +1 -0
- package/components/AttachmentLightbox/AttachmentLightbox.scss.js +2 -0
- package/components/AttachmentLightbox/AttachmentLightbox.scss.js.map +1 -0
- package/components/AttachmentLightbox/index.d.ts +2 -0
- package/components/AttachmentLightbox/index.d.ts.map +1 -0
- package/components/AttachmentLightbox/useAttachmentLightbox.d.ts +7 -0
- package/components/AttachmentLightbox/useAttachmentLightbox.d.ts.map +1 -0
- package/components/AttachmentLightbox/useAttachmentLightbox.js +2 -0
- package/components/AttachmentLightbox/useAttachmentLightbox.js.map +1 -0
- package/components/AttachmentPreview/AttachmentPreview.d.ts.map +1 -1
- package/components/AttachmentPreview/AttachmentPreview.js +1 -1
- package/components/AttachmentPreview/AttachmentPreview.scss.js +1 -1
- package/components/AttachmentPreview/AttachmentPreview.types.d.ts +4 -0
- package/components/AttachmentPreview/AttachmentPreview.types.d.ts.map +1 -1
- package/components/AttachmentPreview/StoredAttachmentPreview.d.ts +7 -0
- package/components/AttachmentPreview/StoredAttachmentPreview.d.ts.map +1 -0
- package/components/AttachmentPreview/StoredAttachmentPreview.js +2 -0
- package/components/AttachmentPreview/StoredAttachmentPreview.js.map +1 -0
- package/components/AttachmentPreview/getAttachmentKind.d.ts +6 -0
- package/components/AttachmentPreview/getAttachmentKind.d.ts.map +1 -0
- package/components/AttachmentPreview/getAttachmentKind.js +2 -0
- package/components/AttachmentPreview/getAttachmentKind.js.map +1 -0
- package/components/AttachmentPreview/index.d.ts +2 -0
- package/components/AttachmentPreview/index.d.ts.map +1 -1
- package/components/AttachmentPreview/useStoredAttachment.d.ts +7 -0
- package/components/AttachmentPreview/useStoredAttachment.d.ts.map +1 -0
- package/components/AttachmentPreview/useStoredAttachment.js +2 -0
- package/components/AttachmentPreview/useStoredAttachment.js.map +1 -0
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js.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.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js.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/CommentCard/CommentCard.d.ts.map +1 -1
- package/components/CommentCard/CommentCard.js +1 -1
- package/components/CommentCard/CommentCard.scss.js +1 -1
- package/components/CommentCard/CommentCard.types.d.ts +9 -2
- package/components/CommentCard/CommentCard.types.d.ts.map +1 -1
- package/components/CommentCard/CommentCardReactions.d.ts +2 -1
- package/components/CommentCard/CommentCardReactions.d.ts.map +1 -1
- package/components/CommentCard/CommentCardReactions.js +1 -1
- package/components/CommentCard/CommentCardReplies.d.ts +1 -0
- package/components/CommentCard/CommentCardReplies.d.ts.map +1 -1
- package/components/CommentCard/CommentCardReplies.js +1 -1
- package/components/CommentCard/CommentMenu.d.ts.map +1 -1
- package/components/CommentCard/CommentMenu.js +1 -1
- package/components/CommentCard/buildCommentReply.d.ts +28 -0
- package/components/CommentCard/buildCommentReply.d.ts.map +1 -0
- package/components/CommentCard/buildCommentReply.js +2 -0
- package/components/CommentCard/buildCommentReply.js.map +1 -0
- package/components/CommentComposer/ChatChannelSelector.d.ts +18 -0
- package/components/CommentComposer/ChatChannelSelector.d.ts.map +1 -0
- package/components/CommentComposer/ChatChannelSelector.js +2 -0
- package/components/CommentComposer/ChatChannelSelector.js.map +1 -0
- package/components/CommentComposer/ChatChannelSelector.scss.js +2 -0
- package/components/CommentComposer/ChatChannelSelector.scss.js.map +1 -0
- package/components/CommentComposer/CommentComposer.d.ts +38 -0
- package/components/CommentComposer/CommentComposer.d.ts.map +1 -0
- package/components/CommentComposer/CommentComposer.js +2 -0
- package/components/CommentComposer/CommentComposer.js.map +1 -0
- package/components/CommentComposer/CommentComposer.scss.js +2 -0
- package/components/CommentComposer/CommentComposer.scss.js.map +1 -0
- package/components/CommentComposer/CommentMetaLine.d.ts +13 -0
- package/components/CommentComposer/CommentMetaLine.d.ts.map +1 -0
- package/components/CommentComposer/CommentMetaLine.js +2 -0
- package/components/CommentComposer/CommentMetaLine.js.map +1 -0
- package/components/CommentComposer/CommentMetaLine.scss.js +2 -0
- package/components/CommentComposer/CommentMetaLine.scss.js.map +1 -0
- package/components/CommentComposer/CommentReplyInput.d.ts +15 -0
- package/components/CommentComposer/CommentReplyInput.d.ts.map +1 -0
- package/components/CommentComposer/CommentReplyInput.js +2 -0
- package/components/CommentComposer/CommentReplyInput.js.map +1 -0
- package/components/CommentComposer/ShareToChatRow.d.ts +13 -0
- package/components/CommentComposer/ShareToChatRow.d.ts.map +1 -0
- package/components/CommentComposer/ShareToChatRow.js +2 -0
- package/components/CommentComposer/ShareToChatRow.js.map +1 -0
- package/components/CommentComposer/ShareToChatRow.scss.js +2 -0
- package/components/CommentComposer/ShareToChatRow.scss.js.map +1 -0
- package/components/CommentComposer/index.d.ts +2 -0
- package/components/CommentComposer/index.d.ts.map +1 -0
- package/components/CommentComposer/useAttachmentUpload.d.ts +26 -0
- package/components/CommentComposer/useAttachmentUpload.d.ts.map +1 -0
- package/components/CommentComposer/useAttachmentUpload.js +2 -0
- package/components/CommentComposer/useAttachmentUpload.js.map +1 -0
- package/components/CommentInputNext/CommentInputNext.d.ts +8 -5
- package/components/CommentInputNext/CommentInputNext.d.ts.map +1 -1
- package/components/CommentInputNext/CommentInputNext.js +1 -1
- package/components/CommentInputNext/CommentInputNext.scss.js +1 -1
- package/components/ConfirmationDialog.js.map +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js.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.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.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.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.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.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.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/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.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/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.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.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.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/EmojiIconButton.d.ts +2 -0
- package/components/EmojiIconButton.d.ts.map +1 -1
- package/components/EmojiIconButton.js +1 -1
- package/components/EmojiIconButton.js.map +1 -1
- package/components/FeedCard/useActivityInteractions.d.ts +44 -0
- package/components/FeedCard/useActivityInteractions.d.ts.map +1 -0
- package/components/FeedCard/useActivityInteractions.js +2 -0
- package/components/FeedCard/useActivityInteractions.js.map +1 -0
- package/components/FeedCard/useDeleteFeedItem.d.ts +16 -0
- package/components/FeedCard/useDeleteFeedItem.d.ts.map +1 -0
- package/components/FeedCard/useDeleteFeedItem.js +2 -0
- package/components/FeedCard/useDeleteFeedItem.js.map +1 -0
- package/components/FeedCard/useFeedActivity.d.ts +38 -0
- package/components/FeedCard/useFeedActivity.d.ts.map +1 -0
- package/components/FeedCard/useFeedActivity.js +2 -0
- package/components/FeedCard/useFeedActivity.js.map +1 -0
- package/components/FeedItemCard/FeedItemCard.d.ts +4 -0
- package/components/FeedItemCard/FeedItemCard.d.ts.map +1 -1
- package/components/FeedItemCard/FeedItemCard.js +1 -1
- package/components/FeedItemCard/FeedItemCard.scss.js +1 -1
- package/components/NewCommentCursor/NewCommentCursor.d.ts.map +1 -1
- package/components/NewCommentCursor/NewCommentCursor.js +1 -1
- package/components/NewCommentCursor/NewCommentCursor.scss.js +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/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.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/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/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +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/UserMention/index.js +1 -1
- package/components/UserMention/index.js.map +1 -1
- package/components/UserMention/utils/index.d.ts +2 -1
- package/components/UserMention/utils/index.d.ts.map +1 -1
- package/components/UserMention/utils/index.js +1 -1
- package/components/UserMention/utils/index.js.map +1 -1
- package/components/index.d.ts +6 -6
- package/components/index.d.ts.map +1 -1
- package/components/index.js +1 -1
- package/componentsV2/Popover/Popover.d.ts +3 -2
- package/componentsV2/Popover/Popover.d.ts.map +1 -1
- package/componentsV2/Popper/Popper.d.ts +1 -1
- package/componentsV2/Popper/Popper.d.ts.map +1 -1
- package/componentsV2/Popper/Popper.js +1 -1
- package/componentsV2/Popper/constants.d.ts +6 -0
- package/componentsV2/Popper/constants.d.ts.map +1 -0
- package/componentsV2/Popper/constants.js +2 -0
- package/componentsV2/Popper/constants.js.map +1 -0
- package/effects/useOutsideClick.d.ts.map +1 -1
- package/effects/useOutsideClick.js +1 -1
- package/effects/useSignedURL.d.ts.map +1 -1
- package/effects/useSignedURL.js +1 -1
- package/effects/useSignedURL.js.map +1 -1
- package/mcp-server/server.mjs +309 -12
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentCardReactions.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentCardReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CommentCardReactions.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentCardReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOtC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAKtD,KAAK,yBAAyB,GAAG;IAC/B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAgE9D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as o,jsx as s}from"react/jsx-runtime";import
|
|
1
|
+
import{jsxs as o,jsx as s}from"react/jsx-runtime";import c from"classnames";import{ButtonIcon as i}from"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as n}from"../../componentsV2/Tooltip/Tooltip.js";import{MessageIcon as t,ThumbsUpIcon as m,ShareTwoIcon as r}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{CommentMenu as e}from"./CommentMenu.js";import p from"./CommentCard.scss.js";var u=function(u){var a=u.info,l=u.commentsCount,I=void 0===l?0:l,j=u.likesCount,d=void 0===j?0:j,C=u.isLiked,h=u.menuItems,v=u.onLike,F=u.onReplyToggle,k=u.onForward;return o("div",{className:p.actionsRow,children:[o("div",{className:p.actions,children:[F&&o("div",{className:p.action,children:[s(i,{size:"xs",type:"tertiary",onClick:F,testId:"comment-card-reply",children:s(t,{size:16})}),I>0&&s("span",{className:p.count,children:I})]}),v&&o("div",{className:p.action,children:[s(i,{size:"xs",type:"tertiary",onClick:v,className:c(C&&p.liked),testId:"comment-card-like",children:s(m,{size:16})}),d>0&&s("span",{className:p.count,children:d})]}),k&&s(n,{title:"Share to Chat",children:s("span",{children:s(i,{size:"xs",type:"tertiary",onClick:k,testId:"comment-card-forward",children:s(r,{size:16})})})})]}),o("div",{className:p.trailingActions,children:[a,s(e,{items:h,testId:"comment-card-menu"})]})]})};export{u as CommentCardReactions};
|
|
2
2
|
//# sourceMappingURL=CommentCardReactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentCardReplies.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentCardReplies.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CommentCardReplies.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentCardReplies.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,KAAK,uBAAuB,GAAG;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAmC1D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as o,jsx as s}from"react/jsx-runtime";import{Avatar as c}from"../../componentsV2/Avatar/Avatar.js";import{ButtonText as i}from"../../componentsV2/ButtonText/ButtonText.js";import{DownSmallIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{CommentMenu as t}from"./CommentMenu.js";import m from"./CommentCard.scss.js";var r=function(r){var e=r.replies,p=r.hasMoreReplies,u=r.moreRepliesCount,a=r.replyInput,l=r.onShowMoreReplies;return o("div",{className:m.replies,children:[a,null==e?void 0:e.map((function(i){return o("div",{className:m.reply,children:[o("div",{className:m.replyHeader,children:[s(c,{size:32,name:i.author.name,imageSrc:i.author.avatarUrl}),o("div",{className:m.replyNameRow,children:[s("span",{className:m.replyName,children:i.author.name}),s("span",{className:m.replyTimestamp,children:i.timestamp})]}),s(t,{items:i.menuItems,testId:"comment-reply-menu"})]}),s("div",{className:m.replyText,children:i.body})]},i.id)})),p&&l&&s(i,{type:"primary",size:"medium",prefix:s(n,{size:16}),onClick:l,children:u?"Show ".concat(u," More Comments"):"Show More Comments"})]})};export{r as CommentCardReplies};
|
|
2
2
|
//# sourceMappingURL=CommentCardReplies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentMenu.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoB,MAAM,OAAO,CAAC;AAM7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CommentMenu.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/CommentMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoB,MAAM,OAAO,CAAC;AAM7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuC5C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from"@babel/runtime/helpers/slicedToArray";import{jsxs as e,Fragment as r,jsx as t}from"react/jsx-runtime";import{useState as o,useRef as i}from"react";import l from"@material-ui/icons/MoreVert";import{ButtonIcon as c}from"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Menu as m}from"../../componentsV2/Menu/Menu.js";var u=function(u){var a=u.items,s=u.testId,f=o(!1),p=n(f,2),d=p[0],h=p[1],b=i(null);return null!=a&&a.length?e(r,{children:[t(c,{size:"xs",type:"tertiary",ref:b,onClick:function(){return h((function(n){return!n}))},testId:s,children:t(l,{fontSize:"inherit"})}),t(m,{open:d,placement:"bottom-end",anchorEl:b.current,onClose:function(){return h(!1)},children:a.map((function(n){return t(m.Item,{prefix:n.icon,disabled:n.disabled,onClick:function(){h(!1),n.onClick()},children:n.label},n.label)}))})]}):null};export{u as CommentMenu};
|
|
2
2
|
//# sourceMappingURL=CommentMenu.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommentReply } from './CommentCard.types';
|
|
2
|
+
type ReplyUser = {
|
|
3
|
+
id?: string | number;
|
|
4
|
+
first_name?: string;
|
|
5
|
+
last_name?: string;
|
|
6
|
+
profile_photo?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ActivityReply = {
|
|
9
|
+
id: string | number;
|
|
10
|
+
body?: string;
|
|
11
|
+
user?: ReplyUser;
|
|
12
|
+
created_at?: string | number;
|
|
13
|
+
allowed_actions?: string[];
|
|
14
|
+
mentioned_users?: unknown[];
|
|
15
|
+
attachment?: {
|
|
16
|
+
url?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
file_name?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
} | null;
|
|
21
|
+
};
|
|
22
|
+
export type BuildCommentReplyOptions = {
|
|
23
|
+
currentUserId?: string | number;
|
|
24
|
+
onDelete: (id: string | number) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const buildCommentReply: (reply: ActivityReply, { currentUserId, onDelete }: BuildCommentReplyOptions) => CommentReply;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=buildCommentReply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildCommentReply.d.ts","sourceRoot":"","sources":["../../../src/components/CommentCard/buildCommentReply.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOnD,KAAK,SAAS,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACxF,CAAC;AAaF,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,aAAa,EACpB,6BAA6B,wBAAwB,KACpD,YAmCF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as o,Fragment as s,jsx as c}from"react/jsx-runtime";import i from"moment-timezone";import{DeleteFourIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{StoredAttachmentPreview as t}from"../AttachmentPreview/StoredAttachmentPreview.js";import{formatMentionText as m}from"../UserMention/utils/index.js";import{isNativeDetected as r}from"../../utils/mobileDetect.js";var e=function(e,u){var p,l,a,j,I,d,v,h,C,b=u.currentUserId,F=u.onDelete,f=Number(null===(p=e.user)||void 0===p?void 0:p.id)===Number(b)||(null!==(l=e.allowed_actions)&&void 0!==l?l:[]).includes("destroy"),O=function(o){var s,c,i,n,t=null!==(s=null===(c=o.attachment)||void 0===c?void 0:c.file_name)&&void 0!==s?s:null===(i=o.attachment)||void 0===i?void 0:i.name,m=null===(n=o.attachment)||void 0===n?void 0:n.url;return m&&t?{url:m,name:t}:null}(e);return{id:e.id,author:{id:null===(a=e.user)||void 0===a?void 0:a.id,name:(v=e.user,"".concat(null!==(h=null==v?void 0:v.first_name)&&void 0!==h?h:""," ").concat(null!==(C=null==v?void 0:v.last_name)&&void 0!==C?C:"").trim()),avatarUrl:null===(j=e.user)||void 0===j?void 0:j.profile_photo},timestamp:i(e.created_at).format("MM/DD/YY H:mm"),body:o(s,{children:[m(null!==(I=e.body)&&void 0!==I?I:"",null!==(d=e.mentioned_users)&&void 0!==d?d:[],r,void 0,void 0),O&&c(t,{attachment:O})]}),menuItems:[{label:"Delete",icon:c(n,{size:16}),disabled:!f,onClick:function(){return F(e.id)}}]}};export{e as buildCommentReply};
|
|
2
|
+
//# sourceMappingURL=buildCommentReply.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildCommentReply.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ChatChannel = {
|
|
2
|
+
rid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
isVirtual?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type ChatChannelSelectorProps = {
|
|
10
|
+
channels: ChatChannel[];
|
|
11
|
+
value: ChatChannel | null;
|
|
12
|
+
onChange: (channel: ChatChannel) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
testId?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ChatChannelSelector: ({ channels, value, onChange, disabled, placeholder, testId, }: ChatChannelSelectorProps) => JSX.Element;
|
|
18
|
+
//# sourceMappingURL=ChatChannelSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatChannelSelector.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/ChatChannelSelector.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAaF,eAAO,MAAM,mBAAmB,GAAI,+DAOjC,wBAAwB,gBA8E1B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,Fragment as c,jsx as n}from"react/jsx-runtime";import{useRef as i,useState as t,useMemo as r}from"react";import e from"@material-ui/icons/ArrowDropDown";import m from"@material-ui/icons/Search";import{Avatar as p}from"../../componentsV2/Avatar/Avatar.js";import{Chip as a}from"../../componentsV2/Chip/Chip.js";import{Popover as u}from"../../componentsV2/Popover/Popover.js";import{TextInputNext as l}from"../../componentsV2/TextInputNext/TextInputNext.js";import{Tooltip as I}from"../../componentsV2/Tooltip/Tooltip.js";import{FolderClosedIcon as j}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import d from"./ChatChannelSelector.scss.js";var h=function(h){var C,v,f=h.channels,b=h.value,N=h.onChange,F=h.disabled,g=h.placeholder,A=void 0===g?"Select chat":g,O=h.testId,x=i(null),P=t(!1),y=o(P,2),S=y[0],T=y[1],k=t(""),M=o(k,2),D=M[0],L=M[1],V=r((function(){return function(o,s){var c=s.trim().toLowerCase();return c?o.filter((function(o){var s;return o.name.toLowerCase().includes(c)||(null!==(s=o.subtitle)&&void 0!==s?s:"").toLowerCase().includes(c)})):o.filter((function(o){return!o.isVirtual}))}(f,D)}),[f,D]);return s(c,{children:[n("div",{ref:x,className:d.trigger,"data-testid":O,children:n(I,{title:null!==(C=null==b?void 0:b.name)&&void 0!==C?C:"",children:n(a,{size:"small",shape:"square",onClick:function(){F||(L(""),T(!0))},children:s("span",{className:d.triggerInner,children:[n("span",{className:d.triggerLabel,children:null!==(v=null==b?void 0:b.name)&&void 0!==v?v:A}),n(e,{className:d.caret})]})})})}),s(u,{open:S,type:"menu",placement:"top-start",anchorEl:x.current,onClose:function(){return T(!1)},className:d.paper,children:[n("div",{className:d.search,children:n(l,{autoFocus:!0,inputType:"search",placeholder:"Add by name or channel",prefix:n(m,{className:d.searchIcon}),value:D,onChange:L})}),s("div",{className:d.list,children:[!V.length&&n("div",{className:d.empty,children:"No results found"}),V.map((function(o){return s("button",{type:"button",className:d.option,onClick:function(){return function(o){N(o),T(!1)}(o)},children:["d"===o.type?n(p,{size:24,name:o.name,imageSrc:o.avatarUrl}):n("span",{className:d.channelIcon,children:n(j,{size:24})}),s("div",{className:d.optionText,children:[n("span",{className:d.optionName,children:o.name}),o.subtitle&&n("span",{className:d.optionSubtitle,children:o.subtitle})]})]},o.rid)}))]})]})]})};export{h as ChatChannelSelector};
|
|
2
|
+
//# sourceMappingURL=ChatChannelSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatChannelSelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var t={spacing:"8",trigger:"ChatChannelSelector_trigger__mvD81",triggerInner:"ChatChannelSelector_triggerInner__9NYA4",triggerLabel:"ChatChannelSelector_triggerLabel__g8LjR",caret:"ChatChannelSelector_caret__uHHpD",paper:"ChatChannelSelector_paper__l6hx2",search:"ChatChannelSelector_search__FEYtN",searchIcon:"ChatChannelSelector_searchIcon__jGuuJ",list:"ChatChannelSelector_list__p2OJ0",empty:"ChatChannelSelector_empty__EHSF-",option:"ChatChannelSelector_option__DwWc9",channelIcon:"ChatChannelSelector_channelIcon__5S8PJ",optionText:"ChatChannelSelector_optionText__ZZQ7Z",optionName:"ChatChannelSelector_optionName__W0EMf",optionSubtitle:"ChatChannelSelector_optionSubtitle__YL-PS"};e(".ChatChannelSelector_trigger__mvD81{display:inline-flex;min-width:0}.ChatChannelSelector_triggerInner__9NYA4{align-items:center;display:inline-flex;gap:2px;min-width:0}.ChatChannelSelector_triggerLabel__g8LjR{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ChatChannelSelector_caret__uHHpD{color:var(--palette-primary-text-6);flex-shrink:0;font-size:16px}.ChatChannelSelector_paper__l6hx2{display:flex;flex-direction:column;max-height:320px;width:280px}.ChatChannelSelector_search__FEYtN{border-bottom:1px solid var(--palette-background-b-4);padding:8px}.ChatChannelSelector_searchIcon__jGuuJ{color:var(--palette-primary-text-7);font-size:18px}.ChatChannelSelector_list__p2OJ0{overflow-y:auto;padding:4px}.ChatChannelSelector_empty__EHSF-{color:var(--palette-primary-text-7);font-size:12px;padding:12px;text-align:center}.ChatChannelSelector_option__DwWc9{align-items:center;background:transparent;border:none;border-radius:6px;color:var(--palette-primary-text-1);cursor:pointer;display:flex;gap:8px;padding:6px 8px;text-align:left;width:100%}.ChatChannelSelector_option__DwWc9:hover{background:rgb(from var(--palette-primary-text-1) r g b/.08)}.ChatChannelSelector_channelIcon__5S8PJ{align-items:center;color:var(--palette-primary-text-6);display:inline-flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ChatChannelSelector_optionText__ZZQ7Z{display:flex;flex-direction:column;min-width:0}.ChatChannelSelector_optionName__W0EMf{font-size:16px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ChatChannelSelector_optionSubtitle__YL-PS{color:var(--palette-primary-text-7);font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");export{t as default};
|
|
2
|
+
//# sourceMappingURL=ChatChannelSelector.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { UploadedAttachment } from './useAttachmentUpload';
|
|
3
|
+
import { CommentMetaRow } from './CommentMetaLine';
|
|
4
|
+
import { ShareToChatRowProps } from './ShareToChatRow';
|
|
5
|
+
export type CommentComposerUser = {
|
|
6
|
+
id?: number;
|
|
7
|
+
company_id?: number;
|
|
8
|
+
first_name?: string;
|
|
9
|
+
last_name?: string;
|
|
10
|
+
profile_photo?: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type CommentComposerProps = {
|
|
14
|
+
body: string;
|
|
15
|
+
onBodyChange: (value: string) => void;
|
|
16
|
+
onSubmit: () => void;
|
|
17
|
+
canSubmit: boolean;
|
|
18
|
+
currentUser: CommentComposerUser;
|
|
19
|
+
attachment: UploadedAttachment | null;
|
|
20
|
+
onAttachmentChange: (attachment: UploadedAttachment | null) => void;
|
|
21
|
+
attachmentError?: string | null;
|
|
22
|
+
onAttachmentError?: (message: string | null) => void;
|
|
23
|
+
maxAttachmentSizeBytes?: number;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
autoFocus?: boolean;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
metaRows?: CommentMetaRow[];
|
|
28
|
+
isMetaSingleLine?: boolean;
|
|
29
|
+
shareToChat?: Omit<ShareToChatRowProps, 'testId'>;
|
|
30
|
+
/** Replaces the default send button, e.g. the edit form's Cancel/Save. */
|
|
31
|
+
trailing?: ReactNode;
|
|
32
|
+
/** Render flush inside a host card instead of as its own surface. */
|
|
33
|
+
embedded?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
testId?: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const CommentComposer: ({ body, onBodyChange, onSubmit, canSubmit, currentUser, attachment, onAttachmentChange, attachmentError, onAttachmentError, maxAttachmentSizeBytes, disabled, autoFocus, placeholder, metaRows, isMetaSingleLine, shareToChat, trailing, embedded, className, testId, }: CommentComposerProps) => JSX.Element;
|
|
38
|
+
//# sourceMappingURL=CommentComposer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentComposer.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentComposer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,SAAS,EAAU,MAAM,OAAO,CAAC;AAe1F,OAAO,EAAuB,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvE,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,mBAAmB,CAAC;IAEjC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACtC,kBAAkB,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC;IAClD,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAyBF,eAAO,MAAM,eAAe,GAAI,yQAqB7B,oBAAoB,gBAkHtB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import{jsx as s,jsxs as n,Fragment as t}from"react/jsx-runtime";import{useRef as c}from"react";import{Input as i}from"@material-ui/core";import e from"@material-ui/icons/AlternateEmail";import{ButtonIcon as r}from"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as m}from"../../componentsV2/Tooltip/Tooltip.js";import{SmilingFaceIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{AvatarComponent as p}from"../Avatar/index.js";import{AttachFileButton as l}from"../AttachFileButton/AttachFileButton.js";import{CommentInput as u}from"../CommentInputNext/CommentInputNext.js";import j from"../EmojiIconButton.js";import d from"../FailedFileUploading.js";import I from"../UserMention/index.js";import{isSuggestionsListOpened as h}from"../UserMention/utils/index.js";import{useAttachmentUpload as b}from"./useAttachmentUpload.js";import{CommentMetaLine as f}from"./CommentMetaLine.js";import{ShareToChatRow as g}from"./ShareToChatRow.js";import v from"./CommentComposer.scss.js";function y(o,s){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);s&&(t=t.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),n.push.apply(n,t)}return n}function C(s){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){o(s,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(t,o))}))}return s}var O={fontSize:14,lineHeight:"20px",suggestions:{backgroundColor:"var(--palette-background-b-9)",list:{backgroundColor:"var(--palette-background-b-9)"},item:{color:"var(--palette-primary-text-1)","&focused":{backgroundColor:"rgb(from var(--palette-primary-text-1) r g b / 0.08)"}}}},F=function(o){return n("div",{className:v.suggestion,children:[s(p,{size:26,alt:o.display,imgSrc:o.photo,displayName:o.display}),s("span",{children:o.display})]})},S=function(o){var p=o.body,y=o.onBodyChange,S=o.onSubmit,A=o.canSubmit,P=o.currentUser,E=o.attachment,k=o.onAttachmentChange,x=o.attachmentError,w=o.onAttachmentError,M=o.maxAttachmentSizeBytes,R=o.disabled,D=o.autoFocus,U=o.placeholder,B=void 0===U?"Add a comment...":U,z=o.metaRows,N=o.isMetaSingleLine,T=o.shareToChat,L=o.trailing,G=o.embedded,q=o.className,K=o.testId,W=b({value:E,onChange:k,onError:w,maxSizeBytes:M}),H=A&&!W.isUploading,V=c(null);return s(u,{value:p,canSubmit:H,disabled:R,onSubmit:S,trailing:L,embedded:G,className:q,testId:K,field:s(i,{inputComponent:I,inputProps:{onChange:y,currentUser:P,allowEmptyQuery:!0,suggestionsPortalHost:document.querySelector("body"),withLightTheme:!1,mentionProps:{renderSuggestion:F},style:O},value:p,placeholder:B,inputRef:V,className:v.mentionField,onKeyDown:function(o){"Enter"!==o.key||o.shiftKey||H&&!R&&(h()||(o.preventDefault(),S()))},disableUnderline:!0,rows:1,fullWidth:!0,multiline:!0,autoFocus:D}),attachments:W.items,onAttachmentRemove:W.removeAttachment,onAttachmentRetry:W.handleRetry,attachmentSlot:x?s(d,{errorMessage:x}):void 0,toolbar:n(t,{children:[s(l,{inputRef:W.fileInputRef,onClick:W.openFileDialog,onFileSelect:W.handleFileSelect,disabled:W.hasAttachment,tooltip:W.hasAttachment?"Only one file can be attached":"Attach file"}),s(m,{title:"Mention someone",children:s(r,{size:"xs",type:"tertiary",onClick:function(){var o,s=V.current;if(s){s.focus();var n=!!s.value&&!/\s$/.test(s.value),t="".concat(s.value).concat(n?" @":"@"),c=null===(o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"value"))||void 0===o?void 0:o.set;null==c||c.call(s,t),s.setSelectionRange(t.length,t.length),s.dispatchEvent(new Event("input",{bubbles:!0})),s.dispatchEvent(new Event("keyup",{bubbles:!0}))}},children:s(e,{fontSize:"inherit"})})}),s("span",{className:v.iconSlot,children:s(j,{icon:s(a,{size:16}),handleSelectEmoji:function(o){return y("".concat(p).concat(o.native))}})})]}),footer:(!(null==z||!z.length)||!!T)&&n(t,{children:[s(f,{rows:null!=z?z:[],singleLine:N}),T&&s(g,C({},T))]})})};export{S as CommentComposer};
|
|
2
|
+
//# sourceMappingURL=CommentComposer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentComposer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",mentionField:"CommentComposer_mentionField__CcogW",suggestion:"CommentComposer_suggestion__q5GXD",iconSlot:"CommentComposer_iconSlot__shxGe"};o(".CommentComposer_mentionField__CcogW{color:var(--palette-primary-text-1);font-size:14px!important;line-height:20px!important;padding:0!important;width:100%}.CommentComposer_mentionField__CcogW [class*=mention__control]{height:auto!important;max-height:160px;min-height:20px}.CommentComposer_mentionField__CcogW [class*=mention__highlighter]{box-sizing:border-box;max-height:160px}.CommentComposer_mentionField__CcogW textarea{letter-spacing:normal!important;max-height:160px;overflow-y:auto!important;padding:0!important}.CommentComposer_suggestion__q5GXD{align-items:center;display:flex;gap:16px}.CommentComposer_iconSlot__shxGe{color:var(--palette-primary-text-6);display:inline-flex}.CommentComposer_iconSlot__shxGe .MuiIconButton-root{border-radius:6px;padding:4px}.CommentComposer_iconSlot__shxGe .MuiSvgIcon-root{font-size:16px}div[class*=mention__suggestions]{z-index:1500!important}");export{e as default};
|
|
2
|
+
//# sourceMappingURL=CommentComposer.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CommentMetaRow = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
unit?: string;
|
|
5
|
+
};
|
|
6
|
+
export type CommentMetaLineProps = {
|
|
7
|
+
rows: CommentMetaRow[];
|
|
8
|
+
singleLine?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const CommentMetaLine: ({ rows, singleLine, className, testId }: CommentMetaLineProps) => JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=CommentMetaLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentMetaLine.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentMetaLine.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,yCAAyC,oBAAoB,uBAmB5F,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Fragment as t}from"react";import a from"classnames";import r from"./CommentMetaLine.scss.js";var i=function(i){var s=i.rows,l=i.singleLine,m=i.className,o=i.testId;return s.length?e("div",{className:a(r.line,l&&r.lineSingle,m),"data-testid":o,children:s.map((function(a,i){return n(t,{children:[i>0&&e("span",{className:r.dot}),n("span",{children:[a.label," ",a.value,a.unit?" ".concat(a.unit):""]})]},a.label)}))}):null};export{i as CommentMetaLine};
|
|
2
|
+
//# sourceMappingURL=CommentMetaLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentMetaLine.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var t={spacing:"8",line:"CommentMetaLine_line__CKWkP",lineSingle:"CommentMetaLine_lineSingle__hOTuG",dot:"CommentMetaLine_dot__swrU8"};e(".CommentMetaLine_line__CKWkP{align-items:center;color:var(--palette-primary-text-6);display:flex;flex-wrap:wrap;font-size:12px;gap:4px;line-height:16px}.CommentMetaLine_lineSingle__hOTuG{flex-wrap:nowrap;white-space:nowrap}.CommentMetaLine_dot__swrU8{background:var(--palette-primary-text-6);border-radius:50%;flex-shrink:0;height:4px;margin:0 2px;width:4px}");export{t as default};
|
|
2
|
+
//# sourceMappingURL=CommentMetaLine.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UploadedAttachment } from './useAttachmentUpload';
|
|
2
|
+
export type CommentReplyInputProps = {
|
|
3
|
+
/** Resolving to `false` keeps the draft, so a failed post can be retried. */
|
|
4
|
+
onSubmit: (body: string, attachment?: UploadedAttachment | null) => void | boolean | Promise<void | boolean>;
|
|
5
|
+
author?: {
|
|
6
|
+
name?: string;
|
|
7
|
+
avatarUrl?: string;
|
|
8
|
+
};
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
testId?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const CommentReplyInput: ({ onSubmit, author, disabled, placeholder, autoFocus, testId, }: CommentReplyInputProps) => JSX.Element;
|
|
15
|
+
//# sourceMappingURL=CommentReplyInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentReplyInput.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentReplyInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAuB,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC,6EAA6E;IAC7E,QAAQ,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,kBAAkB,GAAG,IAAI,KACnC,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,iEAO/B,sBAAsB,gBAgDxB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import{jsx as n}from"react/jsx-runtime";import{useState as a}from"react";import{Avatar as o}from"../../componentsV2/Avatar/Avatar.js";import{AttachFileButton as i}from"../AttachFileButton/AttachFileButton.js";import{CommentInput as l}from"../CommentInputNext/CommentInputNext.js";import m from"../FailedFileUploading.js";import{useAttachmentUpload as u}from"./useAttachmentUpload.js";var c=function(c){var s=c.onSubmit,p=c.author,d=c.disabled,h=c.placeholder,f=void 0===h?"Reply":h,b=c.autoFocus,v=void 0===b||b,A=c.testId,g=a(""),F=e(g,2),x=F[0],y=F[1],S=a(null),j=e(S,2),R=j[0],C=j[1],I=a(null),U=e(I,2),k=U[0],w=U[1],B=u({value:R,onChange:C,onError:w}),N=function(){var e=t(r.mark((function t(e){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s(e,R);case 2:if(t.t0=t.sent,!1!==t.t0){t.next=5;break}return t.abrupt("return");case 5:y(""),C(null);case 7:case"end":return t.stop()}}),t)})));return function(t){return e.apply(this,arguments)}}();return n(l,{bare:!0,autoFocus:v,placeholder:f,value:x,onChange:y,canSubmit:!(!x.trim()&&!R||B.isUploading),onSubmit:N,disabled:d,attachments:B.items,onAttachmentRemove:B.removeAttachment,onAttachmentRetry:B.handleRetry,testId:A,attachmentSlot:k?n(m,{errorMessage:k}):void 0,toolbar:n(i,{inputRef:B.fileInputRef,onClick:B.openFileDialog,onFileSelect:B.handleFileSelect,disabled:B.hasAttachment,tooltip:B.hasAttachment?"Only one file can be attached":"Attach file"}),leading:n(o,{size:32,name:null==p?void 0:p.name,imageSrc:null==p?void 0:p.avatarUrl})})};export{c as CommentReplyInput};
|
|
2
|
+
//# sourceMappingURL=CommentReplyInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentReplyInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChatChannel } from './ChatChannelSelector';
|
|
2
|
+
export type ShareToChatRowProps = {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange: (checked: boolean) => void;
|
|
5
|
+
channels: ChatChannel[];
|
|
6
|
+
selectedChannel: ChatChannel | null;
|
|
7
|
+
onChannelChange: (channel: ChatChannel) => void;
|
|
8
|
+
isChannelSelectDisabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const ShareToChatRow: ({ checked, onChange, channels, selectedChannel, onChannelChange, isChannelSelectDisabled, label, testId, }: ShareToChatRowProps) => JSX.Element;
|
|
13
|
+
//# sourceMappingURL=ShareToChatRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareToChatRow.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/ShareToChatRow.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAIzE,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,eAAe,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,4GAS5B,mBAAmB,gBAcrB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{Checkbox as n}from"../../componentsV2/Checkbox/Checkbox.js";import{ChatChannelSelector as o}from"./ChatChannelSelector.js";import h from"./ShareToChatRow.scss.js";var l=function(l){var s=l.checked,c=l.onChange,r=l.channels,t=l.selectedChannel,i=l.onChannelChange,d=l.isChannelSelectDisabled,m=l.label,C=void 0===m?"Share in Chat":m,b=l.testId;return e("div",{className:h.row,"data-testid":b,children:[a("div",{className:h.checkbox,children:a(n,{size:"small",checked:s,onChange:c,label:C})}),s&&a(o,{channels:r,value:t,onChange:i,disabled:d})]})};export{l as ShareToChatRow};
|
|
2
|
+
//# sourceMappingURL=ShareToChatRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareToChatRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",row:"ShareToChatRow_row__qJIkB",checkbox:"ShareToChatRow_checkbox__iNEHs"};e(".ShareToChatRow_row__qJIkB{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;min-width:0;opacity:.8}.ShareToChatRow_checkbox__iNEHs{flex-shrink:0;white-space:nowrap}");export{o as default};
|
|
2
|
+
//# sourceMappingURL=ShareToChatRow.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,sDAAyD;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import type { AttachmentPreviewItem } from '../AttachmentPreview/AttachmentPreview.types';
|
|
3
|
+
export type UploadedAttachment = {
|
|
4
|
+
url: string;
|
|
5
|
+
name: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
};
|
|
8
|
+
type UseAttachmentUploadOptions = {
|
|
9
|
+
value: UploadedAttachment | null;
|
|
10
|
+
onChange: (attachment: UploadedAttachment | null) => void;
|
|
11
|
+
onError?: (message: string | null) => void;
|
|
12
|
+
maxSizeBytes?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const useAttachmentUpload: ({ value, onChange, onError, maxSizeBytes, }: UseAttachmentUploadOptions) => {
|
|
15
|
+
items: AttachmentPreviewItem[];
|
|
16
|
+
fileInputRef: import("react").RefObject<HTMLInputElement>;
|
|
17
|
+
openFileDialog: () => void | undefined;
|
|
18
|
+
handleFileSelect: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
+
removeAttachment: () => void;
|
|
20
|
+
handleRetry: () => void;
|
|
21
|
+
isUploading: boolean;
|
|
22
|
+
error: string | null;
|
|
23
|
+
hasAttachment: boolean;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useAttachmentUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAttachmentUpload.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/useAttachmentUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4C,MAAM,OAAO,CAAC;AAG9E,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAKtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAmBF,eAAO,MAAM,mBAAmB,GAAI,6CAKjC,0BAA0B;;;;8BAiGjB,WAAW,CAAC,gBAAgB,CAAC;;;;;;CA6FxC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/regenerator";import{useState as i,useRef as l,useCallback as o,useEffect as u}from"react";import a from"react-s3-uploader/s3upload";import{getAttachmentKind as c}from"../AttachmentPreview/getAttachmentKind.js";import{getS3SignedUrl as s,getS3DownloadLink as p}from"../../clients/jsonApi/index.js";function f(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var v=function(e){return e.type.startsWith("image/")?"image":e.type.startsWith("video/")?"video":"file"},m=function(e){return(e/1048576).toFixed(1)},g=function(r){var f,g=r.value,h=r.onChange,b=r.onError,y=r.maxSizeBytes,O=i(null),U=n(O,2),j=U[0],w=U[1],x=l(null),P=l(null),k=l(null),F=l(null),z=l(0),A=o((function(){k.current&&(URL.revokeObjectURL(k.current),k.current=null)}),[]),R=o((function(){var e;z.current+=1,null===(e=P.current)||void 0===e||e.abortUpload(),P.current=null}),[]);u((function(){return function(){return A()}}),[A]);var S=o((function(r){var n,i,l=z.current,o=function(){return z.current===l},u=function(e){o()&&(w((function(r){return r?d(d({},r),{},{isUploading:!1,error:e}):r})),null==b||b(e))};P.current=new a({files:[r],preprocess:function(e,r){return r(e)},onProgress:function(){},getSignedUrl:(i=e(t.mark((function e(r,n){var i;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s(r.name,r.type);case 3:i=e.sent,F.current=i.file_name,n(d(d({},i),{},{signedUrl:i.signed_url})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),u((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Failed to upload the file");case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,r){return i.apply(this,arguments)}),onFinishS3Put:(n=e(t.mark((function e(){var n,i,l;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=F.current,e.next=4,p(n);case 4:if(i=e.sent,l=i.url,o()){e.next=8;break}return e.abrupt("return");case 8:w((function(e){return e?d(d({},e),{},{isUploading:!1,error:null}):e})),null==b||b(null),h({url:l,name:n,size:r.size}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),u((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Failed to upload the file");case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(){return n.apply(this,arguments)}),onError:function(e){return u(e||"Failed to upload the file")}})}),[h,b]),D=o((function(e){R(),A();var r="file"===v(e)?"":URL.createObjectURL(e);k.current=r||null;var n=!!y&&e.size>y,t=n?"File is too large (".concat(m(e.size)," MB). Maximum size is ").concat(m(y)," MB."):null;w({file:e,previewUrl:r,isUploading:!n,error:t}),t?null==b||b(t):(null==b||b(null),S(e))}),[R,A,y,b,S]),E=o((function(e){var r,n=null===(r=e.target.files)||void 0===r?void 0:r[0];x.current&&(x.current.value=""),n&&D(n)}),[D]),L=o((function(){var e;return null===(e=x.current)||void 0===e?void 0:e.click()}),[]),B=o((function(){R(),A(),w(null),null==b||b(null),h(null)}),[R,A,h,b]),M=o((function(){var e=null==j?void 0:j.file;e&&(R(),w(d(d({},j),{},{isUploading:!0,error:null})),null==b||b(null),S(e))}),[j,R,b,S]),T=!(null!=j&&j.isUploading||null!=j&&j.error);u((function(){!g&&j&&T&&(A(),w(null))}),[g,j,T,A]);var W=!j&&g?g.name:"",_=i(""),C=n(_,2),G=C[0],I=C[1];u((function(){var e=!0;return W?p(W,"inline").then((function(r){var n=r.url;e&&I(n)})).catch((function(){e&&I("")})):I(""),function(){e=!1}}),[W]);var K,q=[];j?q.push({id:"pending-attachment",name:j.file.name,src:j.previewUrl,kind:v(j.file),isUploading:j.isUploading,error:null!==(K=j.error)&&void 0!==K?K:void 0}):g&&G&&q.push({id:g.url,name:g.name,src:G,kind:c(g)});return{items:q,fileInputRef:x,openFileDialog:L,handleFileSelect:E,removeAttachment:B,handleRetry:M,isUploading:!(null==j||!j.isUploading),error:null!==(f=null==j?void 0:j.error)&&void 0!==f?f:null,hasAttachment:!!j||!!g}};export{g as useAttachmentUpload};
|
|
2
|
+
//# sourceMappingURL=useAttachmentUpload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAttachmentUpload.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -9,21 +9,24 @@ export type CommentInputProps = {
|
|
|
9
9
|
autoFocus?: boolean;
|
|
10
10
|
minRows?: number;
|
|
11
11
|
maxRows?: number;
|
|
12
|
-
/**
|
|
12
|
+
/** Editable control rendered in place of the built-in textarea. */
|
|
13
13
|
field?: ReactNode;
|
|
14
14
|
canSubmit?: boolean;
|
|
15
|
-
/** Drop the outer surface so the field sits flush
|
|
15
|
+
/** Drop the outer surface so the field sits flush, for the in-card reply input. */
|
|
16
16
|
bare?: boolean;
|
|
17
17
|
leading?: ReactNode;
|
|
18
|
-
/** Replaces the default send button
|
|
18
|
+
/** Replaces the default send button. */
|
|
19
19
|
trailing?: ReactNode;
|
|
20
|
-
|
|
20
|
+
sendTooltip?: string;
|
|
21
21
|
attachments?: AttachmentPreviewItem[];
|
|
22
22
|
onAttachmentRemove?: (id: AttachmentPreviewItem['id']) => void;
|
|
23
|
-
|
|
23
|
+
onAttachmentRetry?: (id: AttachmentPreviewItem['id']) => void;
|
|
24
|
+
/** Extra content in the attachment area, e.g. an upload-error banner. */
|
|
24
25
|
attachmentSlot?: ReactNode;
|
|
25
26
|
toolbar?: ReactNode;
|
|
26
27
|
footer?: ReactNode;
|
|
28
|
+
/** Render flush inside a host surface: no background, full-width divider. */
|
|
29
|
+
embedded?: boolean;
|
|
27
30
|
className?: string;
|
|
28
31
|
testId?: string;
|
|
29
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentInputNext.d.ts","sourceRoot":"","sources":["../../../src/components/CommentInputNext/CommentInputNext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAMV,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CommentInputNext.d.ts","sourceRoot":"","sources":["../../../src/components/CommentInputNext/CommentInputNext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAMV,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAIrF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mEAAmE;IACnE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,qBAAqB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC/D,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,qBAAqB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;IAC9D,yEAAyE;IACzE,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAMF,eAAO,MAAM,YAAY,8GA6KxB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/slicedToArray";import{jsx as s,jsxs as c,Fragment as i}from"react/jsx-runtime";import{forwardRef as n,useState as t,useRef as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{jsx as s,jsxs as c,Fragment as i}from"react/jsx-runtime";import{forwardRef as n,useState as t,useRef as e,useCallback as m,useLayoutEffect as r}from"react";import a from"classnames";import{ButtonIcon as l}from"../../componentsV2/ButtonIcon/ButtonIcon.js";import{Tooltip as p}from"../../componentsV2/Tooltip/Tooltip.js";import{ArrowUpIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{AttachmentPreview as d}from"../AttachmentPreview/AttachmentPreview.js";import"file-extension";import"image-extensions";import"video-extensions";import"@material-ui/core";import"../AttachmentLightbox/AttachmentLightbox.scss.js";import"../../clients/jsonApi/index.js";import j from"./CommentInputNext.scss.js";var I=n((function(n,I){var h=n.placeholder,v=void 0===h?"Add a comment":h,f=n.value,b=n.onChange,C=n.onSubmit,g=n.disabled,A=n.autoFocus,x=n.minRows,F=void 0===x?1:x,N=n.maxRows,y=n.field,O=n.canSubmit,R=n.bare,P=n.leading,M=n.trailing,S=n.sendTooltip,k=void 0===S?"Send":S,w=n.attachments,D=n.onAttachmentRemove,T=n.onAttachmentRetry,E=n.attachmentSlot,B=n.toolbar,G=n.footer,L=n.embedded,U=n.className,z=n.testId,K=void 0!==f,q=t(""),H=o(q,2),V=H[0],W=H[1],Y=K?f:V,Z=null!=N?N:R?12:8,J=e(null),Q=m((function(o){if(J.current=o,o){var s=o;s.style.height="auto";var c=20*Z;s.style.height="".concat(Math.min(s.scrollHeight,c),"px"),s.style.overflowY=s.scrollHeight>c?"auto":"hidden"}}),[Z]);r((function(){y||Q(J.current)}),[Y,y,Q]);var X=(null!=O?O:!!Y.trim())&&!g,$=function(){X&&(null==C||C(Y.trim()),K||y||W(""))},_=null!=y?y:s("textarea",{ref:Q,className:j.input,rows:F,placeholder:v,value:Y,disabled:g,autoFocus:A,onChange:function(o){var s;s=o.target.value,K||W(s),null==b||b(s),Q(o.target)},onKeyDown:function(o){"Enter"!==o.key||o.shiftKey||(o.preventDefault(),$())}}),oo=null!=M?M:s(p,{title:k,children:s("span",{className:j.send,children:s(l,{size:R?"xs":"small",type:"primary",disabled:!X,onClick:$,testId:"comment-input-send",children:s(u,{})})})}),so=((null==w?void 0:w.length)||E)&&c("div",{className:j.attachment,children:[null!=w&&w.length?s(d,{items:w,onRemove:D,onRetry:T}):null,E]});return R?s("div",{ref:I,"data-testid":z,className:a(j.rootBare,U),children:c("div",{className:j.fieldRow,children:[P&&s("div",{className:j.leading,children:P}),c("div",{className:a(j.field,!!so&&j.fieldExpanded,g&&j.fieldDisabled),children:[c("div",{className:j.fieldMain,children:[_,so]}),B&&s("div",{className:j.bareToolbar,children:B}),oo]})]})}):c("div",{ref:I,"data-testid":z,className:a(j.root,L&&j.rootEmbedded,U),children:[c("div",{className:j.inputPanel,children:[_,so,c("div",{className:j.toolbarRow,children:[s("div",{className:j.toolbar,children:B}),oo]})]}),G&&c(i,{children:[s("div",{className:j.divider}),s("div",{className:j.metaShare,children:G})]})]})}));export{I as CommentInput};
|
|
2
2
|
//# sourceMappingURL=CommentInputNext.js.map
|