|
|
@ -88,6 +88,8 @@ const all_registerd_events = new Set();
|
|
|
|
/** @type {Set<(events: Array<string>) => void>} */
|
|
|
|
/** @type {Set<(events: Array<string>) => void>} */
|
|
|
|
const root_event_handles = new Set();
|
|
|
|
const root_event_handles = new Set();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export let run_transitions = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param {string} html
|
|
|
|
* @param {string} html
|
|
|
|
* @param {boolean} return_fragment
|
|
|
|
* @param {boolean} return_fragment
|
|
|
@ -2547,6 +2549,8 @@ function _mount(Component, options) {
|
|
|
|
const container = options.target;
|
|
|
|
const container = options.target;
|
|
|
|
const block = create_root_block(options.intro || false);
|
|
|
|
const block = create_root_block(options.intro || false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run_transitions = options.intro ?? false;
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Exports} */
|
|
|
|
/** @type {Exports} */
|
|
|
|
// @ts-expect-error will be defined because the render effect runs synchronously
|
|
|
|
// @ts-expect-error will be defined because the render effect runs synchronously
|
|
|
|
let component = undefined;
|
|
|
|
let component = undefined;
|
|
|
@ -2579,6 +2583,8 @@ function _mount(Component, options) {
|
|
|
|
const bound_event_listener = handle_event_propagation.bind(null, container);
|
|
|
|
const bound_event_listener = handle_event_propagation.bind(null, container);
|
|
|
|
const bound_document_event_listener = handle_event_propagation.bind(null, document);
|
|
|
|
const bound_document_event_listener = handle_event_propagation.bind(null, document);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run_transitions = true;
|
|
|
|
|
|
|
|
|
|
|
|
/** @param {Array<string>} events */
|
|
|
|
/** @param {Array<string>} events */
|
|
|
|
const event_handle = (events) => {
|
|
|
|
const event_handle = (events) => {
|
|
|
|
for (let i = 0; i < events.length; i++) {
|
|
|
|
for (let i = 0; i < events.length; i++) {
|
|
|
|