index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/ComposerInnerModals.tsx | import { c } from 'ttag';
import { Href } from '@proton/atoms';
import { Alert, ErrorButton } from '@proton/components';
import { Cancellable } from '@proton/components/hooks/useHandler';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
import { ATTACHMENT_DISPOSITION } from '@proton/shared/lib/ma... | 3,400 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/ComposerInsertImageModal.tsx | import { c, msgid } from 'ttag';
import { Button } from '@proton/atoms';
import { ATTACHMENT_DISPOSITION } from '@proton/shared/lib/mail/constants';
import ComposerInnerModal from './ComposerInnerModal';
interface Props {
files: File[];
onSelect: (action: ATTACHMENT_DISPOSITION) => void;
onClose: () => v... | 3,401 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/ComposerPasswordModal.tsx | import { addDays, differenceInDays } from 'date-fns';
import { c, msgid } from 'ttag';
import { Href } from '@proton/atoms';
import { useNotifications } from '@proton/components';
import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { setBit } from '@proton/shared/lib/helpers/bitset';
import { getKnowl... | 3,402 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/ComposerScheduleSendModal.tsx | import { useEffect, useState } from 'react';
import { addDays, endOfToday, getUnixTime, isToday } from 'date-fns';
import { c, msgid } from 'ttag';
import { Href } from '@proton/atoms/Href';
import { DateInputTwo, InputFieldTwo, TimeInput, generateUID, useUserSettings } from '@proton/components';
import { getKnowledg... | 3,403 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/PasswordInnerModal.scss | @import '~@proton/styles/scss/lib';
.password-inner-modal-copy {
&-container {
margin-block-start: 1.8em; // Magic number only for this case, otherwise impossible to align
block-size: rem($default-height-fields);
}
svg {
margin-block: auto;
}
}
| 3,404 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/PasswordInnerModalForm.tsx | import { ChangeEvent, useState } from 'react';
import { c } from 'ttag';
import { Copy, Info, InputFieldTwo, PasswordInputTwo, generateUID, useNotifications } from '@proton/components';
import { minLengthValidator, requiredValidator } from '@proton/shared/lib/helpers/formValidators';
import './PasswordInnerModal.scs... | 3,405 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/SendingFromDefaultAddressModal.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { ModalProps, PrimaryButton, Prompt } from '@proton/components';
interface Props extends ModalProps {
email: string;
onResolve: () => void;
onReject: () => void;
}
const SendingFromDefaultAddressModal = ({ email, onResolve, onReject... | 3,406 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/SendingOriginalMessageModal.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { ErrorButton, Prompt } from '@proton/components';
interface Props {
onResolve: () => void;
onReject: () => void;
}
const SendingOriginalMessageModal = ({ onResolve, onReject, ...rest }: Props) => {
return (
<Prompt
... | 3,407 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModal.scss | @import '~@proton/styles/scss/lib';
$field-container: rem(260) !default;
$modal-max-width: rem(700) !default;
$modal-breakpoint-width: 52em !default;
$breakpoint-low-height-modal: em(500, 16) !default;
$modal-max-height: 80% !default;
$modal-full-dimension: 98% !default;
.inner-modal {
position: relative;
inline-si... | 3,408 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalCloseButton.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { Icon } from '@proton/components';
interface InnerModalModalCloseButtonProps {
onClose?: () => void;
closeTextModal?: string;
}
const InnerModalModalCloseButton = ({ closeTextModal, onClose }: InnerModalModalCloseButtonProps) => {
... | 3,409 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalContent.tsx | import { FormEvent, ReactNode } from 'react';
import clsx from '@proton/utils/clsx';
import noop from '@proton/utils/noop';
interface Props {
children: ReactNode;
className?: string;
onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
onReset?: (event: FormEvent<HTMLFormElement>) => void;
auto... | 3,410 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalFooter.tsx | import { ComponentPropsWithoutRef, ReactNode } from 'react';
import clsx from '@proton/utils/clsx';
interface Props extends ComponentPropsWithoutRef<'footer'> {
children?: ReactNode;
isColumn?: boolean;
}
const InnerModalFooter = ({
children,
isColumn,
className = clsx([
'flex flex-nowrap... | 3,411 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalHeader.tsx | import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
import clsx from '@proton/utils/clsx';
import InnerModalModalCloseButton from './InnerModalCloseButton';
import InnerModalTitle from './InnerModalTitle';
interface Props extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, 'ch... | 3,412 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalScroll.tsx | import { ReactNode, Ref, forwardRef } from 'react';
import { ScrollShadows } from '@proton/atoms';
import clsx from '@proton/utils/clsx';
interface Props {
children: ReactNode;
className?: string;
}
const InnerModalScroll = forwardRef<HTMLDivElement, Props>(
({ children, className = '' }: Props, ref: Ref<... | 3,413 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/modals/InnerModal/InnerModalTitle.tsx | import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
import clsx from '@proton/utils/clsx';
interface Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
id: string;
children: ReactNode;
}
const InnerModalTitle = ({ children, className, ...rest }: Props)... | 3,414 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/DeleteQuickReplyModal.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import { Alert, ErrorButton, ModalProps, Prompt } from '@proton/components/components';
interface Props extends ModalProps {
onDeleteDraft: () => void;
}
const DeleteQuickReplyModal = ({ onDeleteDraft, ...rest }: Props) => {
const { onC... | 3,415 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/NoAttachmentsModal.tsx | import { c } from 'ttag';
import { Button, Href } from '@proton/atoms';
import { Alert, ModalProps, PrimaryButton, Prompt } from '@proton/components/components';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
interface Props extends ModalProps {
attachmentsFoundKeyword: string;
onResolv... | 3,416 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/QuickReply.scss | @import '~@proton/styles/scss/lib';
@import '../../composer/composer';
.quick-reply {
&-collapsed {
&:hover {
border-color: var(--field-hover);
}
}
&-composer {
// need to size it, because quick reply does not have dimensions like the composer container
block-size: em(135);
// plain text case
texta... | 3,417 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/QuickReply.tsx | import { Dispatch, SetStateAction, Suspense, lazy, useCallback, useEffect, useRef, useState } from 'react';
import { useDispatch } from 'react-redux';
import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import { Editor, EditorActions, Icon, Tooltip, useModalState } from '@proton/components/compon... | 3,418 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/QuickReplyContainer.tsx | import { Dispatch, KeyboardEvent, SetStateAction, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import { Icon } from '@proton/components/components';
import { useAddresses } from '@proton/components/hooks';
import { MESSAGE_ACTIONS } from '../../../constants';
impo... | 3,419 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/QuickReplyType.tsx | import React, { MutableRefObject, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { DropdownMenu, DropdownMenuButton, EditorActions, Icon, SimpleDropdown } from '@proton/components/components';
import { useAddresses } from '@proton/components/hooks';
import { MESSAGE... | 3,420 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/tests/QuickReply.compose.test.tsx | import {
GeneratedKey,
clearAll,
generateKeys,
releaseCryptoProxy,
removeLineBreaks,
setFeatureFlags,
setupCryptoProxyForTesting,
} from '../../../../helpers/test/helper';
import { messageID } from '../../../message/tests/Message.test.helpers';
import { data, fromFields, recipients } from '.... | 3,421 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/tests/QuickReply.replyType.test.tsx | import { MESSAGE_ACTIONS } from '../../../../constants';
import {
GeneratedKey,
clearAll,
generateKeys,
releaseCryptoProxy,
setFeatureFlags,
setupCryptoProxyForTesting,
} from '../../../../helpers/test/helper';
import { messageID } from '../../../message/tests/Message.test.helpers';
import { dat... | 3,422 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/tests/QuickReply.test.data.ts | import { MIME_TYPES } from '@proton/shared/lib/constants';
import { Recipient } from '@proton/shared/lib/interfaces';
import { Attachment, Message } from '@proton/shared/lib/interfaces/mail/Message';
import { formatFullDate } from '../../../../helpers/date';
import { createDocument } from '../../../../helpers/test/mes... | 3,423 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/quickReply/tests/QuickReply.test.helpers.tsx | import { act, findByTestId, fireEvent, waitFor } from '@testing-library/react';
import { ROOSTER_EDITOR_ID } from '@proton/components/components/editor/constants';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { wait } from '@proton/shared/lib/helpers/promise';
import { MailSettings } from '@proton... | 3,424 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.attachments.test.tsx | import { fireEvent, getByTitle, waitFor } from '@testing-library/react';
import { act } from '@testing-library/react';
import loudRejection from 'loud-rejection';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { Address, Key } from '@proton/shared/lib/interfaces';
import { arrayToBase64 } from '../... | 3,425 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.autosave.test.tsx | import { fireEvent, getByTestId, waitFor } from '@testing-library/react';
import { act } from '@testing-library/react';
import { ROOSTER_EDITOR_ID } from '@proton/components/components/editor/constants';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import noop from '@proton/utils/noop';
import { release... | 3,426 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.expiration.test.tsx | import { fireEvent } from '@testing-library/react';
import { act, getByTestId as getByTestIdDefault, getByText as getByTextDefault } from '@testing-library/react';
import { format } from 'date-fns';
import loudRejection from 'loud-rejection';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { addDays ... | 3,427 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.hotkeys.test.tsx | import { fireEvent } from '@testing-library/react';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { SHORTCUTS } from '@proton/shared/lib/mail/mailSettings';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../helpers/test/crypto';
import {
GeneratedKey,
addApiKeys,
... | 3,428 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.outsideEncryption.test.tsx | import { fireEvent, getByTestId as getByTestIdDefault } from '@testing-library/react';
import { act } from '@testing-library/react';
import { addHours } from 'date-fns';
import loudRejection from 'loud-rejection';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { releaseCryptoProxy, setupCryptoProxy... | 3,429 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.plaintext.test.tsx | import { fireEvent } from '@testing-library/react';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { clearAll, createDocument, waitForSpyCall } from '../../../helpers/test/helper';
import { render } from '../../../helpers/test/render';
import * as useSaveDraft from '../../../hooks/message/useSaveDr... | 3,430 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.reply.test.tsx | import { fireEvent } from '@testing-library/react';
import { act } from '@testing-library/react';
import loudRejection from 'loud-rejection';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { MailSettings } from '@proton/shared/lib/interfaces';
import {
GeneratedKey,
addApiKeys,
addKeysT... | 3,431 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.schedule.test.tsx | import {
act,
fireEvent,
getByTestId as getByTestIdDefault,
getByText as getByTextDefault,
screen,
waitFor,
} from '@testing-library/react';
import { format, getUnixTime } from 'date-fns';
import { enUS } from 'date-fns/locale';
import loudRejection from 'loud-rejection';
import { MAILBOX_LABEL... | 3,432 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.sending.test.tsx | import { fireEvent, getByTestId } from '@testing-library/react';
import loudRejection from 'loud-rejection';
import { ROOSTER_EDITOR_ID } from '@proton/components/components/editor/constants';
import { WorkerDecryptionResult } from '@proton/crypto/lib';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import... | 3,433 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.test.helpers.tsx | import { act } from 'react-dom/test-utils';
import { RenderResult, fireEvent } from '@testing-library/react';
import { pick } from '@proton/shared/lib/helpers/object';
import { wait } from '@proton/shared/lib/helpers/promise';
import { Message } from '@proton/shared/lib/interfaces/mail/Message';
import { mergeMessag... | 3,434 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/composer/tests/Composer.verifySender.test.tsx | import { getByText as getByTextDefault } from '@testing-library/react';
import loudRejection from 'loud-rejection';
import { MIME_TYPES } from '@proton/shared/lib/constants';
import { Address, Recipient } from '@proton/shared/lib/interfaces';
import { addToCache, minimalCache } from '../../../helpers/test/cache';
imp... | 3,435 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/ConversationErrorBanner.tsx | import { forwardRef } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { Icon } from '@proton/components';
import { hasError } from '../../helpers/errors';
import { ConversationErrors } from '../../logic/conversations/conversationsTypes';
const getTranslations = (key: keyof Con... | 3,436 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/ConversationHeader.tsx | import { useMemo } from 'react';
import clsx from '@proton/utils/clsx';
import { useEncryptedSearchContext } from '../../containers/EncryptedSearchProvider';
import { isConversation as testIsConversation } from '../../helpers/elements';
import { Element } from '../../models/element';
import NumMessages from './NumMes... | 3,437 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/ConversationView.test.tsx | import { fireEvent, waitFor } from '@testing-library/react';
import { act } from '@testing-library/react';
import { wait } from '@proton/shared/lib/helpers/promise';
import { MailSettings } from '@proton/shared/lib/interfaces';
import { Message } from '@proton/shared/lib/interfaces/mail/Message';
import range from '@p... | 3,438 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/ConversationView.tsx | import { RefObject, memo, useEffect, useRef } from 'react';
import { useDispatch } from 'react-redux';
import { Scroll } from '@proton/atoms';
import { useLabels, useToggle } from '@proton/components';
import { isEditing } from '@proton/shared/lib/busy';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants'... | 3,439 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/NumMessages.scss | @import '~@proton/styles/scss/lib';
.number-elements {
block-size: 1.5em;
border: 1px solid;
.message-conversation-summary-header & {
font-size: em(16, 20); // we want 16 in an element with 20
}
}
| 3,440 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/NumMessages.tsx | import { c, msgid } from 'ttag';
import { Conversation } from '../../models/conversation';
import './NumMessages.scss';
interface Props {
conversation: Conversation | undefined;
className?: string;
}
const NumMessages = ({ conversation, className }: Props) => {
// ContextNumMessages should not be used
... | 3,441 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/TrashWarning.tsx | import { forwardRef } from 'react';
import * as React from 'react';
import { c } from 'ttag';
import { Icon, InlineLinkButton, useHotkeys } from '@proton/components';
interface Props {
inTrash: boolean;
filter: boolean;
onToggle: () => void;
}
const TrashWarning = ({ inTrash, filter, onToggle }: Props, ... | 3,442 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/conversation/UnreadMessages.tsx | import { useEffect, useState } from 'react';
import { c, msgid } from 'ttag';
import { Button } from '@proton/atoms';
import { Icon } from '@proton/components';
import { Message } from '@proton/shared/lib/interfaces/mail/Message';
import { isUnread } from '../../helpers/elements';
interface Props {
conversation... | 3,443 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/drawer/MailQuickSettings.tsx | import { useMemo } from 'react';
import { c } from 'ttag';
import { Icon, IconName, Info, Option, SelectTwo, Tooltip, useModalState } from '@proton/components/components';
import {
DefaultQuickSettings,
QuickSettingsButton,
QuickSettingsButtonSection,
QuickSettingsMain,
QuickSettingsSection,
Q... | 3,444 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/CustomFilterDropdown.tsx | import * as React from 'react';
import { useEffect, useMemo, useState } from 'react';
import { c } from 'ttag';
import { Checkbox, FiltersUpsellModal, PrimaryButton, useFilters, useModalState, useUser } from '@proton/components';
import { OPERATORS } from '@proton/components/containers/filters/constants';
import { Co... | 3,445 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/LabelDropdown.scss | @import '~@proton/styles/scss/lib';
.label-dropdown {
&-list {
@include media('>small') {
max-block-size: 13.5em;
}
}
}
| 3,446 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/LabelDropdown.tsx | import { ChangeEvent, useEffect, useMemo, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import {
Checkbox,
Icon,
LabelsUpsellModal,
Mark,
PrimaryButton,
SearchInput,
Tooltip,
generateUID,
useLabels,
useModalState,
useUser,
} from... | 3,447 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/MoveDropdown.scss | @import '~@proton/styles/scss/lib';
.move-dropdown {
[data-level='1'] {
padding-inline-start: 1em;
}
[data-level='2'] {
padding-inline-start: 2em;
}
&-list {
@include media('>small') {
max-block-size: 15.5em;
}
}
}
| 3,448 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/MoveDropdown.tsx | import { useEffect, useMemo, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import {
Checkbox,
FolderIcon,
Icon,
IconName,
LabelsUpsellModal,
Mark,
PrimaryButton,
Radio,
SearchInput,
Tooltip,
generateUID,
useFolders,
useMo... | 3,449 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/tests/CustomFilterDropdown.test.tsx | import { fireEvent } from '@testing-library/react';
import { act } from '@testing-library/react';
import { ConditionType } from '@proton/components/containers/filters/interfaces';
import { Message } from '@proton/shared/lib/interfaces/mail/Message';
import { render, tick } from '../../../helpers/test/render';
import ... | 3,450 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/tests/LabelDropdown.test.tsx | import { fireEvent } from '@testing-library/react';
import { act, getByTestId as getByTestIdDefault, screen } from '@testing-library/react';
import { ACCENT_COLORS } from '@proton/shared/lib/colors';
import { LABEL_TYPE, MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import { wait } from '@proton/shared/lib/... | 3,451 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/dropdown/tests/MoveDropdownd.test.tsx | import { act, fireEvent, getByTestId as getByTestIdDefault, screen } from '@testing-library/react';
import { ACCENT_COLORS } from '@proton/shared/lib/colors';
import { LABEL_TYPE, MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import { wait } from '@proton/shared/lib/helpers/promise';
import { Label } from '... | 3,452 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/EORedirect.test.tsx | import { EOGetHistory, EORender } from '../../helpers/test/eo/EORender';
import { EOClearAll } from '../../helpers/test/eo/helpers';
import { MessageState } from '../../logic/messages/messagesTypes';
import EORedirect from './EORedirect';
describe('Encrypted Outside Redirection', () => {
afterEach(EOClearAll);
... | 3,453 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/EORedirect.tsx | import { ReactNode, useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { Loader, useApi } from '@proton/components';
import { EO_REDIRECT_PATH, LOAD_RETRY_COUNT } from '../../constants';
import { useInitializeEOMessage } from '../../hooks/eo/useInitializeEOMessage';
import { useGetEODecrypt... | 3,454 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOExpirationTime.test.tsx | import { add, addHours, addMinutes, addSeconds, getUnixTime } from 'date-fns';
import { Message } from '@proton/shared/lib/interfaces/mail/Message';
import { clearAll, render, tick } from '../../../helpers/test/helper';
import EOExpirationTime from './EOExpirationTime';
describe('EOExpirationTime', () => {
const... | 3,455 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOExpirationTime.tsx | import {
differenceInHours,
differenceInMinutes,
endOfHour,
endOfMinute,
formatDistanceToNow,
startOfHour,
startOfMinute,
} from 'date-fns';
import { c, msgid } from 'ttag';
import { Button, ButtonLike, Href } from '@proton/atoms';
import { Icon, Prompt, Tooltip, useModalState } from '@prot... | 3,456 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOHeaderExpanded.tsx | import { MouseEvent } from 'react';
import { c } from 'ttag';
import { Icon, useToggle } from '@proton/components';
import { scrollIntoView } from '@proton/shared/lib/helpers/dom';
import { EO_DEFAULT_MAILSETTINGS } from '@proton/shared/lib/mail/eo/constants';
import { getRecipients } from '@proton/shared/lib/mail/me... | 3,457 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOMessage.scss | @import '~@proton/styles/scss/lib/index';
.eo-message-header {
&#{&} {
border-radius: 0;
@include media('>small') {
.message-banners-container {
> * {
margin-block-end: 0.85em;
margin-inline-end: 0.85em;
}
}
}
.message-recipient-item-expanded-content {
padding-block-start: 0.5em;
... | 3,458 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOMessageBody.tsx | import { useMemo, useRef } from 'react';
import { EO_DEFAULT_MAILSETTINGS } from '@proton/shared/lib/mail/eo/constants';
import { isPlainText } from '@proton/shared/lib/mail/messages';
import clsx from '@proton/utils/clsx';
import { MailboxContainerContextProvider } from '../../../containers/mailbox/MailboxContainerP... | 3,459 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/EOMessageHeader.tsx | import { useHistory } from 'react-router';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { Icon, Loader, Tooltip } from '@proton/components';
import clsx from '@proton/utils/clsx';
import { EO_MAX_REPLIES_NUMBER, EO_REPLY_REDIRECT_PATH } from '../../../constants';
import { MessageState } f... | 3,460 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/ViewEOMessage.tsx | import { useRef, useState } from 'react';
import { useRouteMatch } from 'react-router-dom';
import { useActiveBreakpoint } from '@proton/components';
import { EO_DEFAULT_MAILSETTINGS } from '@proton/shared/lib/mail/eo/constants';
import { EOUrlParams } from '../../../helpers/eo/eoUrl';
import { useLoadEOEmbeddedImage... | 3,461 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/recipients/EORecipientSingle.tsx | import { usePopperAnchor } from '@proton/components';
import { Recipient } from '@proton/shared/lib/interfaces';
import RecipientItemSingle from '../../../message/recipients/RecipientItemSingle';
interface Props {
recipient: Recipient;
isRecipient?: boolean;
isExpanded?: boolean;
}
const EORecipientSingl... | 3,462 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/recipients/EORecipientsList.tsx | import { Recipient } from '@proton/shared/lib/interfaces';
import noop from '@proton/utils/noop';
import { recipientsToRecipientOrGroup } from '../../../../helpers/message/messageRecipients';
import RecipientsList from '../../../message/recipients/RecipientsList';
interface Props {
list: Recipient[];
isLoadin... | 3,463 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.attachments.test.tsx | import { fireEvent, waitFor, within } from '@testing-library/react';
import humanSize from '@proton/shared/lib/helpers/humanSize';
import { VERIFICATION_STATUS } from '@proton/shared/lib/mail/constants';
import { assertIcon } from '../../../../helpers/test/assertion';
import { releaseCryptoProxy, setupCryptoProxyForT... | 3,464 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.banners.test.tsx | import { screen, waitFor } from '@testing-library/react';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOClearAll } from '../../../../helpers/test/eo/helpers';
import { setup } from './ViewEOMessage.test.helpers';
describe('Encrypted Outside message banner... | 3,465 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.encryption.test.tsx | import { findByText, waitFor } from '@testing-library/react';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOBody, EOClearAll, EOSubject } from '../../../../helpers/test/eo/helpers';
import { getIframeRootDiv } from '../../../message/tests/Message.test.help... | 3,466 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.images.test.tsx | import { findByRole, findByText, fireEvent, screen, waitFor } from '@testing-library/react';
import { VERIFICATION_STATUS } from '@proton/shared/lib/mail/constants';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOBody, EOClearAll, EOSubject } from '../../.... | 3,467 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.reply.test.tsx | import { screen, waitFor } from '@testing-library/react';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOClearAll, reply } from '../../../../helpers/test/eo/helpers';
import { EOMessageReply } from '../../../../logic/eo/eoType';
import { setup } from './Vie... | 3,468 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/message/tests/ViewEOMessage.test.helpers.tsx | import { EORender } from '../../../../helpers/test/eo/EORender';
import { EOInitStore, EOOriginalMessageOptions } from '../../../../helpers/test/eo/helpers';
import ViewEOMessage from '../ViewEOMessage';
export const setup = async (options?: EOOriginalMessageOptions) => {
await EOInitStore('message', options);
... | 3,469 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/EOComposer.tsx | import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { EditorMetadata, useHandler } from '@proton/components';
import { PublicKeyReference } from '@proton/crypto';
import { EO_DEFAULT_MAILSETTINGS, eoDefaultUserSettings } from '@proton/shared/lib/mail/eo/constants';
import { DIRECTION } fr... | 3,470 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/EOReply.tsx | import { useRouteMatch } from 'react-router-dom';
import { EOUrlParams } from '../../../helpers/eo/eoUrl';
import { useLoadEOMessage } from '../../../hooks/eo/useLoadEOMessage';
import EORedirect from '../EORedirect';
import EOComposer from './EOComposer';
import './EOreply.scss';
interface Props {
setSessionSto... | 3,471 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/EOReplyFooter.tsx | import { useState } from 'react';
import { useHistory } from 'react-router';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { Tooltip } from '@proton/components';
import { PublicKeyReference } from '@proton/crypto';
import { EO_REPLY_NUM_ATTACHMENTS_LIMIT } from '@proton/shared/lib/mail/eo/c... | 3,472 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/EOReplyHeader.tsx | import { c } from 'ttag';
import clsx from '@proton/utils/clsx';
import noop from '@proton/utils/noop';
import { MessageState } from '../../../logic/messages/messagesTypes';
import RecipientItem from '../../message/recipients/RecipientItem';
import RecipientType from '../../message/recipients/RecipientType';
interfa... | 3,473 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/EOreply.scss | @import '~@proton/styles/scss/lib/index';
@import '../../composer/composer';
.eo {
&-message-header {
border-radius: 0;
padding-block-end: 1em;
.message-recipient-expanded .message-recipient-item-expanded-content {
padding-block-start: 0.2em;
}
}
&-composer {
// need to size it, because EO does not h... | 3,474 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/tests/EOReply.attachments.test.tsx | import { act, fireEvent, waitFor } from '@testing-library/react';
import { wait } from '@proton/shared/lib/helpers/promise';
import { EO_REPLY_NUM_ATTACHMENTS_LIMIT } from '@proton/shared/lib/mail/eo/constants';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import {... | 3,475 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/tests/EOReply.reply.test.tsx | import { waitFor } from '@testing-library/react';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOClearAll, reply } from '../../../../helpers/test/eo/helpers';
import { setup } from './EOReply.test.helpers';
describe('EO Reply if max replies has been reache... | 3,476 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/tests/EOReply.sending.test.tsx | import { CryptoProxy } from '@proton/crypto';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../../helpers/test/crypto';
import { EOGetHistory } from '../../../../helpers/test/eo/EORender';
import { EOClearAll, EOPassword, validID } from '../../../../helpers/test/eo/helpers';
import { send } fro... | 3,477 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/reply/tests/EOReply.test.helpers.tsx | import { RenderResult, fireEvent } from '@testing-library/react';
import { EORender } from '../../../../helpers/test/eo/EORender';
import { EOInitStore, EOOriginalMessageOptions } from '../../../../helpers/test/eo/helpers';
import { addApiMock, waitForNoNotification, waitForNotification } from '../../../../helpers/tes... | 3,478 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/unlock/EOUnlock.test.tsx | import { act, fireEvent } from '@testing-library/react';
import { wait } from '@proton/shared/lib/helpers/promise';
import { addApiMock } from '../../../helpers/test/api';
import { releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../helpers/test/crypto';
import { EOGetHistory, EORender, EOResetHistory } f... | 3,479 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/unlock/EOUnlock.tsx | import { useEffect, useState } from 'react';
import { useRouteMatch } from 'react-router';
import { c } from 'ttag';
import { Href } from '@proton/atoms';
import { Loader } from '@proton/components';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
import { EOUrlParams } from '../../../helpers/e... | 3,480 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/eo/unlock/MessageDecryptForm.tsx | import { KeyboardEvent, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { InputFieldTwo, PasswordInputTwo } from '@proton/components';
import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
interface Props {
onSubmit: (password: string) => void;
}
const M... | 3,481 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/ClearBrowserDataModal.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { ModalProps, Prompt } from '@proton/components';
import { useEncryptedSearchContext } from '../../containers/EncryptedSearchProvider';
const ClearBrowserDataModal = (rest: ModalProps) => {
const { onClose } = rest;
const { esDelete } =... | 3,482 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/MailDefaultHandlerModal.tsx | import { c } from 'ttag';
import { Button, Href } from '@proton/atoms';
import { ModalProps, Prompt } from '@proton/components';
import { MAIL_APP_NAME } from '@proton/shared/lib/constants';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
import { registerMailToProtocolHandler } from '../../help... | 3,483 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/MailHeader.test.tsx | import { fireEvent } from '@testing-library/react';
import { screen } from '@testing-library/react';
import loudRejection from 'loud-rejection';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import {
addApiMock,
addToCache,
clearAll,
getDropdown,
getHistory,
minimalCache,
... | 3,484 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/MailHeader.tsx | import { ReactNode, memo, useCallback } from 'react';
import { useLocation } from 'react-router-dom';
import {
FloatingButton,
Icon,
PrivateHeader,
RebrandingFeedbackModal,
TopNavbarListItemFeedbackButton,
UserDropdown,
useFolders,
useHasRebrandingFeedback,
useLabels,
useModalSt... | 3,485 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/OnboardingChecklistModal.tsx | import { ModalProps, ModalTwo, ModalTwoContent, ModalTwoHeader } from '@proton/components';
import UsersOnboardingChecklist from '../checklist/UsersOnboardingChecklist';
const OnboardingChecklistModal = (rest: ModalProps) => {
return (
<ModalTwo {...rest}>
<ModalTwoHeader />
<Modal... | 3,486 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/SpotlightEmailForwarding.tsx | import React, { useRef } from 'react';
import { c } from 'ttag';
import { SettingsLink, Spotlight, useSpotlightShow } from '@proton/components/components';
import { FeatureCode, useFlag } from '@proton/components/containers';
import { useActiveBreakpoint, useSpotlightOnFeature, useUser, useWelcomeFlags } from '@proto... | 3,487 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearch.tsx | import { FormEvent, useMemo, useRef, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { add, fromUnixTime, getUnixTime, isAfter, isBefore, isEqual, sub } from 'date-fns';
import { History } from 'history';
import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { DateInp... | 3,488 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/MailSearch.tsx | import { useEffect, useState } from 'react';
import { Location } from 'history';
import {
FeatureCode,
TopNavbarListItemSearchButton,
generateUID,
useAddresses,
useFolders,
useLabels,
usePopperAnchor,
useProgressiveRollout,
useToggle,
useUser,
} from '@proton/components';
impo... | 3,489 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/MailSearchInput.tsx | import { Ref, forwardRef, useRef } from 'react';
import { c } from 'ttag';
import { Button, Input } from '@proton/atoms';
import { Icon } from '@proton/components';
import clsx from '@proton/utils/clsx';
interface Props {
onOpen: () => void;
value: string;
onChange: (newValue: string) => void;
loadin... | 3,490 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/MailSearchSpotlight.tsx | import { c } from 'ttag';
import { Href } from '@proton/atoms';
import { Spotlight, useSpotlightShow } from '@proton/components/components';
import { FeatureCode } from '@proton/components/containers';
import { useSpotlightOnFeature, useWelcomeFlags } from '@proton/components/hooks';
import { getKnowledgeBaseUrl } fro... | 3,491 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/Search.scss | @use 'sass:math';
@import '~@proton/styles/scss/lib';
// #{em(940, 16)} was `medium` but the value differs between default config and mail config.
// The default value of 910 was loaded instead of 940. To check.
.overlay {
--min-width: 0;
--max-width: 100vw;
--max-height: 100vh;
position: fixed;
z-index: $layer... | 3,492 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/SearchOverlay.tsx | import {
AnimationEvent,
CSSProperties,
HTMLAttributes,
MouseEvent as ReactMouseEvent,
ReactNode,
RefObject,
useLayoutEffect,
useRef,
} from 'react';
import { c } from 'ttag';
import {
HotkeyTuple,
getCustomSizingClasses,
useDropdownArrowNavigation,
useFocusTrap,
us... | 3,493 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/EnableEncryptedSearchModal.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import { Href } from '@proton/atoms/Href';
import { ModalProps, Prompt } from '@proton/components/components';
import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
import { useEncryptedSearchContext } from '../../../../container... | 3,494 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/EncryptedSearchField.tsx | import { ReactNode } from 'react';
import { add } from 'date-fns';
import { c, msgid } from 'ttag';
import { Button } from '@proton/atoms';
import { Info, Label, Progress, Toggle, Tooltip, useModalState } from '@proton/components';
import { ESIndexingState } from '@proton/encrypted-search';
import clsx from '@proton/... | 3,495 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/LocationField.test.tsx | import { render, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import { ALMOST_ALL_MAIL } from '@proton/shared/lib/mail/mailSettings';
import { mockUseFolders, mockUseMailSettings } from '@proton/t... | 3,496 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/LocationField.test.utils.tsx | import * as useLocationFieldOptionsModule from './useLocationFieldOptions';
const defaultFolders: useLocationFieldOptionsModule.ItemDefaultFolder[] = [
{
value: '5',
text: 'All mail',
url: '/all-mail',
icon: 'envelopes',
},
{
value: '0',
text: 'Inbox',
... | 3,497 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/LocationField.tsx | import { c } from 'ttag';
import { Button } from '@proton/atoms';
import { Icon } from '@proton/components';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import useMailModel from 'proton-mail/hooks/useMailModel';
import LocationFieldDropdown from './LocationFieldDropdown';
import { useLocationFi... | 3,498 |
0 | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search | petrpan-code/ProtonMail/WebClients/applications/mail/src/app/components/header/search/AdvancedSearchFields/LocationFieldDropdown.tsx | import { useEffect, useRef, useState } from 'react';
import { c } from 'ttag';
import {
Dropdown,
DropdownButton,
DropdownMenu,
DropdownMenuButton,
FolderIcon,
Icon,
Mark,
SearchInput,
generateUID,
usePopperAnchor,
} from '@proton/components';
import clsx from '@proton/utils/cl... | 3,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.