Home / File/ EventSystemFlags.js — react Source File

EventSystemFlags.js — react Source File

Architecture documentation for EventSystemFlags.js, a javascript file in the react codebase. 0 imports, 10 dependents.

File javascript BabelCompiler 10 dependents

Entity Profile

Dependency Diagram

graph LR
  e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c["EventSystemFlags.js"]
  816b54e5_c63c_f8b2_68e8_0c637e281f03["DOMPluginEventSystem.js"]
  816b54e5_c63c_f8b2_68e8_0c637e281f03 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  59469541_eb24_2e4d_9b1d_8719abe8ae49["ReactDOMEventListener.js"]
  59469541_eb24_2e4d_9b1d_8719abe8ae49 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  2d4946a3_3487_598a_390d_fcf4897abb9b["ReactDOMEventReplaying.js"]
  2d4946a3_3487_598a_390d_fcf4897abb9b --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  a235366c_1abe_162c_b9bf_7fbbfb597584["BeforeInputEventPlugin.js"]
  a235366c_1abe_162c_b9bf_7fbbfb597584 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  ddc0fe5b_559e_c0f1_b50a_2b1305b3c3d7["ChangeEventPlugin.js"]
  ddc0fe5b_559e_c0f1_b50a_2b1305b3c3d7 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  5c7e27b3_eb27_811d_04b8_b882f63e7494["EnterLeaveEventPlugin.js"]
  5c7e27b3_eb27_811d_04b8_b882f63e7494 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  fa31fc00_cb0d_ab89_d37c_e55788d531b6["FormActionEventPlugin.js"]
  fa31fc00_cb0d_ab89_d37c_e55788d531b6 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  f81462d0_b06e_fbf9_f1b8_93352f59d5eb["ScrollEndEventPlugin.js"]
  f81462d0_b06e_fbf9_f1b8_93352f59d5eb --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  b8a5c95d_02fb_4719_0efd_4463f2546996["SelectEventPlugin.js"]
  b8a5c95d_02fb_4719_0efd_4463f2546996 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  43bccccc_6fb9_1e3f_9c97_ea90d6d01475["SimpleEventPlugin.js"]
  43bccccc_6fb9_1e3f_9c97_ea90d6d01475 --> e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c
  style e8ab76a4_05c2_cc4f_1bc2_aec96b5daa8c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

export type EventSystemFlags = number;

export const IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
export const IS_NON_DELEGATED = 1 << 1;
export const IS_CAPTURE_PHASE = 1 << 2;
export const IS_PASSIVE = 1 << 3;
export const IS_LEGACY_FB_SUPPORT_MODE = 1 << 4;

export const SHOULD_NOT_DEFER_CLICK_FOR_FB_SUPPORT_MODE =
  IS_LEGACY_FB_SUPPORT_MODE | IS_CAPTURE_PHASE;

// We do not want to defer if the event system has already been
// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
// we call willDeferLaterForLegacyFBSupport, thus not bailing out
// will result in endless cycles like an infinite loop.
// We also don't want to defer during event replaying.
export const SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS =
  IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;

Domain

Frequently Asked Questions

What does EventSystemFlags.js do?
EventSystemFlags.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What files import EventSystemFlags.js?
EventSystemFlags.js is imported by 10 file(s): BeforeInputEventPlugin.js, ChangeEventPlugin.js, DOMPluginEventSystem.js, EnterLeaveEventPlugin.js, FormActionEventPlugin.js, ReactDOMEventListener.js, ReactDOMEventReplaying.js, ScrollEndEventPlugin.js, and 2 more.
Where is EventSystemFlags.js in the architecture?
EventSystemFlags.js is located at packages/react-dom-bindings/src/events/EventSystemFlags.js (domain: BabelCompiler, directory: packages/react-dom-bindings/src/events).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free