mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
* [PM-10669] Notification bar appears inconsistently after login * [PM-10669] Notification bar appears inconsistently after login * [PM-10669] Migrating work from POC branch into feature branch * [PM-10669] Incorporating styles for select element * [PM-10669] Incorporating styles for select element * [PM-10669] Fixing notification bar lifespan const * [PM-10669] Incorporating logic that conditionally loads specific bootstrap autofill feature files * [PM-10669] Incorporating logic to more smoothly handle transitioning between pages within the notification bar0 * [PM-10669] Incorporating logic to more smoothly handle transitioning between pages within the notification bar0 * [PM-10669] Incorporating logic to more smoothly handle transitioning between pages within the notification bar0 * [PM-10669] Incorporating a circle checkmark icon within the success message of the notification bar * [PM-10669] Fixing an issue where the notification bar can potentially load in between loading states for a tab * [PM-10669] Fixing an issue where the notification bar can potentially load in between loading states for a tab * [PM-10669] Fixing an issue where the notification bar can potentially load in between loading states for a tab * [PM-10669] Fixing an issue where the notification bar can potentially load in between loading states for a tab * [PM-10669] Fixing how we handle keyup events on the submit button * [PM-10669] Fixing how we handle keyup events on the submit button * [PM-10669] Fixing jest tests within notification bar * [PM-10669] Adding a jest tests to validate behavior within AutofillInit * [PM-10669] Adding a jest tests to validate behavior within AutofillInit * [PM-11170] Addressing test coverage within CollectAutofillContentService * [PM-11170] Addressing test coverage within CollectAutofillContentService * [PM-10669] Refactoring implementation * [PM-10669] Adding documentation to the methods incorporated within the AutofillOverlayContentService * [PM-10669] Incorporating jest tests for the AutofillOverlayContentService * [PM-10669] Migrating logic associated with the DomQuerySevice away from the CollectAutofillContentService * [PM-10669] Fixing required references to DomQueryService within the implementation * [PM-10669] Holding off on re-incorporating the userTreeWalkerStrategyFlag * [PM-10669] Incorporating jest tests for DomQueryService * [PM-10669] Adding jest test to validate changes within AutofillService * [PM-10669] Adding jest tests to validate changes within AutofillOverlayContentService * [PM-10669] Adding documentation to the OverlayNotificationsBackground class * [PM-10669] Adding documentation to the OverlayNotificationsBackground class * [PM-10669] Incorporating jest tests to validate the OverlayNotificationsBackground class * [PM-10669] Incorporating jest tests to validate the OverlayNotificationsBackground class * [PM-10669] Incorporating jest tests to validate the OverlayNotificationsBackground class * [PM-10669] Incorporating jest tests to validate the OverlayNotificationsBackground class * [PM-10669] Incorporating jest tests to validate the OverlayNotificationsBackground class * [PM-10669] Refactoring OverlayNotificationsContentService and incorporating logic that triggers a fade out of the notification bar on success of a saved password * [PM-10669] Refactoring OverlayNotificationsContentService and incorporating logic that triggers a fade out of the notification bar on success of a saved password * [PM-10669] Refactoring OverlayNotificationsContentService and incorporating logic that triggers a fade out of the notification bar on success of a saved password * [PM-10669] Finalizing jest tests for OverlayNotificationsContentService * [PM-10669] Finalizing jest tests for OverlayNotificationsContentService * [PM-10669] Adding new copy for the password saved/updated event in the notification bar * [PM-10669] Fixing visual presentation of sucesss message * [PM-10669] Fixing visual presentation of sucesss message * [PM-10418] Incorporating fallback for when we cannot capture the form button effectively * [PM-10669] Incorporating fixes for form submission button not being captured * [PM-10669] Incorporating a guard to ensure that an AJAX submission captures form data after the user has entered their credentials * [PM-10669] Incorporating a field qualification rule to ensure that we capture forms that are non-viewable on load * [PM-10669] Incorporating a document readyState listener to ensure that we populate the notification bar once the document body is loaded * [PM-10669] Incorporating a match pattern for subdomains of a main domain when filtering out web requests * [PM-10669] Incorporating a match pattern for subdomains of a main domain when filtering out web requests * [PM-10669] Incorporating a redundant methodology to capture `GET` requests that trigger after a form submisson * [PM-10669] Incorporating a redundant methodology to capture `GET` requests that trigger after a form submisson * [PM-10669] Adding jest tests to validate changes within OverlayNotificationsBackground * [PM-10669] Adjusting timeout for modified login credentials to ensure user can enter data on form * [PM-10669] Refining how we handle re-capturing user credentails on before request to better handle multi-part forms * [PM-10669] Refining how we handle re-capturing user credentails on before request to better handle multi-part forms * [PM-10669] Adjusting jest tests to ensure code coverage * [PM-10669] Fixing issues with Safari * [PM-10669] Fixing an invalid qualification rule * [PM-10669] Ensuring that we capture input changes correctly when a field is going from a hidden to non-hidden state * [PM-10669] Fixing jest tests within overlay content service * [PM-10669] Fixing jest tests within overlay content service * [PM-10669] Adding a jest test to validate changes to overlay content service
110 lines
3.2 KiB
TypeScript
110 lines
3.2 KiB
TypeScript
export const TYPE_CHECK = {
|
|
FUNCTION: "function",
|
|
NUMBER: "number",
|
|
STRING: "string",
|
|
} as const;
|
|
|
|
export const EVENTS = {
|
|
CHANGE: "change",
|
|
INPUT: "input",
|
|
KEYDOWN: "keydown",
|
|
KEYPRESS: "keypress",
|
|
KEYUP: "keyup",
|
|
BLUR: "blur",
|
|
CLICK: "click",
|
|
FOCUS: "focus",
|
|
FOCUSIN: "focusin",
|
|
FOCUSOUT: "focusout",
|
|
SCROLL: "scroll",
|
|
RESIZE: "resize",
|
|
DOMCONTENTLOADED: "DOMContentLoaded",
|
|
LOAD: "load",
|
|
MESSAGE: "message",
|
|
VISIBILITYCHANGE: "visibilitychange",
|
|
MOUSEENTER: "mouseenter",
|
|
MOUSELEAVE: "mouseleave",
|
|
MOUSEUP: "mouseup",
|
|
SUBMIT: "submit",
|
|
} as const;
|
|
|
|
export const ClearClipboardDelay = {
|
|
Never: null as null,
|
|
TenSeconds: 10,
|
|
TwentySeconds: 20,
|
|
ThirtySeconds: 30,
|
|
OneMinute: 60,
|
|
TwoMinutes: 120,
|
|
FiveMinutes: 300,
|
|
} as const;
|
|
|
|
/* Context Menu item Ids */
|
|
export const AUTOFILL_CARD_ID = "autofill-card";
|
|
export const AUTOFILL_ID = "autofill";
|
|
export const SHOW_AUTOFILL_BUTTON = "show-autofill-button";
|
|
export const AUTOFILL_IDENTITY_ID = "autofill-identity";
|
|
export const COPY_IDENTIFIER_ID = "copy-identifier";
|
|
export const COPY_PASSWORD_ID = "copy-password";
|
|
export const COPY_USERNAME_ID = "copy-username";
|
|
export const COPY_VERIFICATION_CODE_ID = "copy-totp";
|
|
export const CREATE_CARD_ID = "create-card";
|
|
export const CREATE_IDENTITY_ID = "create-identity";
|
|
export const CREATE_LOGIN_ID = "create-login";
|
|
export const GENERATE_PASSWORD_ID = "generate-password";
|
|
export const NOOP_COMMAND_SUFFIX = "noop";
|
|
export const ROOT_ID = "root";
|
|
export const SEPARATOR_ID = "separator";
|
|
|
|
export const NOTIFICATION_BAR_LIFESPAN_MS = 150000; // 150 seconds
|
|
|
|
export const AUTOFILL_OVERLAY_HANDLE_REPOSITION = "autofill-overlay-handle-reposition-event";
|
|
|
|
export const UPDATE_PASSKEYS_HEADINGS_ON_SCROLL = "update-passkeys-headings-on-scroll";
|
|
|
|
export const AUTOFILL_TRIGGER_FORM_FIELD_SUBMIT = "autofill-trigger-form-field-submit";
|
|
|
|
export const AutofillOverlayVisibility = {
|
|
Off: 0,
|
|
OnButtonClick: 1,
|
|
OnFieldFocus: 2,
|
|
} as const;
|
|
|
|
export const BrowserClientVendors = {
|
|
Chrome: "Chrome",
|
|
Opera: "Opera",
|
|
Edge: "Edge",
|
|
Vivaldi: "Vivaldi",
|
|
Unknown: "Unknown",
|
|
} as const;
|
|
|
|
export const BrowserShortcutsUris = {
|
|
Chrome: "chrome://extensions/shortcuts",
|
|
Opera: "opera://extensions/shortcuts",
|
|
Edge: "edge://extensions/shortcuts",
|
|
Vivaldi: "vivaldi://extensions/shortcuts",
|
|
Unknown: "https://bitwarden.com/help/keyboard-shortcuts",
|
|
} as const;
|
|
|
|
export const DisablePasswordManagerUris = {
|
|
Chrome: "chrome://settings/autofill",
|
|
Opera: "opera://settings/autofill",
|
|
Edge: "edge://settings/passwords",
|
|
Vivaldi: "vivaldi://settings/autofill",
|
|
Unknown: "https://bitwarden.com/help/disable-browser-autofill/",
|
|
} as const;
|
|
|
|
export const ExtensionCommand = {
|
|
AutofillCommand: "autofill_cmd",
|
|
AutofillCard: "autofill_card",
|
|
AutofillIdentity: "autofill_identity",
|
|
AutofillLogin: "autofill_login",
|
|
OpenAutofillOverlay: "open_autofill_overlay",
|
|
GeneratePassword: "generate_password",
|
|
OpenPopup: "open_popup",
|
|
LockVault: "lock_vault",
|
|
NoopCommand: "noop",
|
|
} as const;
|
|
|
|
export type ExtensionCommandType = (typeof ExtensionCommand)[keyof typeof ExtensionCommand];
|
|
|
|
export const CLEAR_NOTIFICATION_LOGIN_DATA_DURATION = 60 * 1000; // 1 minute
|