Module Private_skyline_preludeSource

include module type of struct include Bonsai_web end
include module type of Bonsai.For_open
Sourceval am_running_how : [ `Browser | `Browser_test | `Browser_benchmark | `Node | `Node_benchmark | `Node_test | `Node_jsdom_test ]

am_running_how provides information on how the code is currently being run:

  • `Node_test means that the code is being run using node as part of an expect_test
  • `Node_jsdom_test means that the code is being run using node as part of an expect_test that enables jsdom to simulate a browser environment.
  • `Node_benchmark means that the code is being run using node as part of a benchmark
  • `Node means that the code is being run using node, but not as part of an expect_test or a benchmark
  • `Browser_test means that the code is being run in a browser as part of an expect_test
  • `Browser_benchmark means that the code is being run in the browser as part of a benchmark
  • `Browser means that the code is being run in a browser but not as part of a benchmark
Sourceval am_within_disabled_fieldset : Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> bool

am_within_disabled_fieldset traverses up the DOM to see whether an event occurred within a fieldset element with the disabled attribute. As this function requires DOM interaction, it will return false if the code is not running in the browser.

Note: because this function bubbles up from the target of the event, it's possible that the event occurs within a disabled fieldset, but the form element which performs this check is not within a disabled fieldset (or vice versa). For example, mousemove events will originate from the element under the mouse, so if the mouse is over a different disabled form, am_within_disabled_fieldset will be true, even if the component which performs this check is not.

Sourcemodule For_bonsai_internal = Bonsai_web.For_bonsai_internal
Sourcemodule Effect = Bonsai_web.Effect
Sourcemodule Vdom = Bonsai_web.Vdom
include module type of Vdom.Html_syntax
Sourcemodule Start_for_arrow_deprecated = Bonsai_web.Start_for_arrow_deprecated
Sourcemodule Driver = Bonsai_web.Driver
Sourcemodule Test_selector = Bonsai_web.Test_selector
Sourcemodule Bonsai = Bonsai_web.Bonsai
module Incr = Bonsai_web.Incr
module View = Bonsai_web.View
Sourcemodule To_incr_dom = Bonsai_web.To_incr_dom
Sourcemodule Persistent_var = Bonsai_web.Persistent_var
Sourcemodule Rpc_effect = Bonsai_web.Rpc_effect
Sourcemodule Start = Bonsai_web.Start
include module type of struct include Bonsai.Let_syntax end
Sourceval (>>|) : here:lexing_position -> 'a Bonsai_web.Bonsai.t -> ('a -> 'b) -> 'b Bonsai_web.Bonsai.t
Sourceval return : here:lexing_position -> 'a -> 'a Bonsai_web.Bonsai.t
include module type of struct include Bonsai_web_vdom_node_reset end

The Bonsai_web_vdom_node_reset is for overriding vdom generating functions. The new functions are identical to the originals, except they apply a css reset to created nodes so they behave identically whether or not the app itself has a css reset installed. The reset we apply to nodes is roughly equivalent to the Tailwind Preflight.

Sourcemodule Attr = Vdom.Attr
Sourcemodule Palette = Tailwind_colors