marko 6.3.43 → 6.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug/dom/catch.feat.js +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-BbtmY5_5.js → dom-DBuLwSOh.js} +10 -0
- package/dist/debug/{dom-DYV177a1.mjs → dom-ky42a_qY.mjs} +5 -1
- package/dist/debug/dom.js +2 -1
- package/dist/debug/dom.mjs +2 -2
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/controllable-input.feat.js +1 -1
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +1 -1
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +1 -1
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +1 -1
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +1 -1
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +2 -2
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/signals.d.ts +1 -0
- package/dist/{dom-HMfNm7KC.mjs → dom-BSAs0ur8.mjs} +4 -1
- package/dist/{dom-CKak9Qet.js → dom-DHJCbngT.js} +45 -37
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +21 -21
- package/dist/dom.mjs +2 -2
- package/dist/translator/index.js +23 -4
- package/dist/translator/util/tag-name-type.d.ts +1 -0
- package/dist/translator/visitors/tag/custom-tag.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as PendingRenders, Cn as ClosestBranch, On as ParentBranch, bn as Pending, en as caughtError, g as renderCatch, kn as PendingEffects, nn as placeholderShown, tn as installCatch, xn as Scope } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/catch.feat.ts
|
|
3
3
|
const handlePendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/controllable-input.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[0] = require_control_flow._attr_input_checked_script;
|
|
5
5
|
require_control_flow.controllableScripts[1] = require_control_flow._attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
5
5
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-
|
|
1
|
+
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/dynamic-tag-var.feat.ts
|
|
4
4
|
const elementGetter = (branch) => () => require_control_flow._el_read(branch[require_control_flow.StartNode]);
|
|
5
5
|
require_control_flow.installDynamicTagVar((branch) => branch[require_control_flow.TagVariable](elementGetter(branch)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mn as TagVariable, Ot as _el_read,
|
|
1
|
+
import { Mn as StartNode, Nn as TagVariable, Ot as _el_read, Xt as DYNAMIC_TAG_VAR_REGISTER_ID, gt as _resume, m as installDynamicTagVar } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/dynamic-tag-var.feat.ts
|
|
3
3
|
const elementGetter = (branch) => () => _el_read(branch[StartNode]);
|
|
4
4
|
installDynamicTagVar((branch) => branch[TagVariable](elementGetter(branch)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-DBuLwSOh.js");
|
|
3
3
|
//#region src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow.registeredValues[require_control_flow.PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
5
5
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as destroyBranch, St as registeredValues, Zt as PLACEHOLDER_DISMISS_REGISTER_ID, jn as PlaceholderBranch } from "../dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
registeredValues[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
@@ -773,6 +773,10 @@ function _script(id, fn) {
|
|
|
773
773
|
queueEffect(scope, fn);
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
|
+
function _global_read($global, key) {
|
|
777
|
+
if (!(key in $global)) console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`);
|
|
778
|
+
return $global[key];
|
|
779
|
+
}
|
|
776
780
|
function _el_read(value) {
|
|
777
781
|
if (rendering) _el_read_error();
|
|
778
782
|
return value;
|
|
@@ -2548,6 +2552,12 @@ Object.defineProperty(exports, "_for_until", {
|
|
|
2548
2552
|
return _for_until;
|
|
2549
2553
|
}
|
|
2550
2554
|
});
|
|
2555
|
+
Object.defineProperty(exports, "_global_read", {
|
|
2556
|
+
enumerable: true,
|
|
2557
|
+
get: function() {
|
|
2558
|
+
return _global_read;
|
|
2559
|
+
}
|
|
2560
|
+
});
|
|
2551
2561
|
Object.defineProperty(exports, "_hoist", {
|
|
2552
2562
|
enumerable: true,
|
|
2553
2563
|
get: function() {
|
|
@@ -772,6 +772,10 @@ function _script(id, fn) {
|
|
|
772
772
|
queueEffect(scope, fn);
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
+
function _global_read($global, key) {
|
|
776
|
+
if (!(key in $global)) console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`);
|
|
777
|
+
return $global[key];
|
|
778
|
+
}
|
|
775
779
|
function _el_read(value) {
|
|
776
780
|
if (rendering) _el_read_error();
|
|
777
781
|
return value;
|
|
@@ -2073,4 +2077,4 @@ function byFirstArg(name) {
|
|
|
2073
2077
|
return name;
|
|
2074
2078
|
}
|
|
2075
2079
|
//#endregion
|
|
2076
|
-
export { _attrs_script as $,
|
|
2080
|
+
export { _attrs_script as $, $signalReset as $t, _attr_input_value_script as A, PendingRenders as An, _for_selector as At, _attr as B, _return_change as Bt, _attr_input_checkedValue_script as C, ClosestBranch as Cn, withLazy as Ct, _attr_input_value_attribute_default as D, Load as Dn, _const as Dt, _attr_input_value as E, Global as En, _closure_get as Et, _controllable_open as F, _if_closure as Ft, _attr_nonce as G, destroyBranch as Gt, _attr_class_item as H, _var as Ht, _controllable_select as I, _let as It, _attr_style_items as J, syncGen as Jt, _attr_style as K, insertBranchBefore as Kt, _controllable_textarea as L, _let_change as Lt, _attr_select_value_default as M, StartNode as Mn, _hoist as Mt, _attr_select_value_script as N, TagVariable as Nn, _hoist_resume as Nt, _attr_input_value_default as O, ParentBranch as On, _el_read as Ot, _controllable_input as P, _id as Pt, _attrs_partial_content as Q, $signal as Qt, controllableRenders as R, _or as Rt, _attr_input_checkedValue_default as S, AwaitCounter as Sn, registeredValues as St, _attr_input_checked_script as T, Gen$1 as Tn, _closure as Tt, _attr_class_items as U, _var_change as Ut, _attr_class as V, _script as Vt, _attr_content as W, _assert_init as Wt, _attrs_content as X, DYNAMIC_TAG_VAR_REGISTER_ID as Xt, _attrs as Y, _on as Yt, _attrs_partial as Z, PLACEHOLDER_DISMISS_REGISTER_ID as Zt, _attr_details_or_dialog_open as _, Owner as _n, _var_resume as _t, _for_in as a, queueEffect as an, _text_content as at, _attr_input_checked as b, Pending as bn, initEmbedded as bt, _for_until as c, runId as cn, toInsertNode as ct, _show as d, forTo as dn, _content_resume as dt, caughtError as en, _html as et, _try as f, forUntil as fn, createAndSetupBranch as ft, renderCatch as g, Clone as gn, _resume as gt, patchDynamicTag as h, _call as hn, _el as ht, _dynamic_tag_content as i, queueAsyncRender as in, _text as it, _attr_select_value as j, PlaceholderBranch as jn, _global_read as jt, _attr_input_value_dynamic_default as k, PendingEffects as kn, _for_closure as kt, _if as l, forIn as ln, _content as lt, installDynamicTagVar as m, _hoist_read_error as mn, setupBranch as mt, _await_promise as n, placeholderShown as nn, _style_rule_item as nt, _for_of as o, run as on, _to_text as ot, addAwaitCounter as p, _assert_hoist as pn, createBranch as pt, _attr_style_item as q, removeAndDestroyBranch as qt, _dynamic_tag as r, prepareEffects as rn, _style_shell as rt, _for_to as s, runEffects as sn, insertChildNodes as st, _await_content as t, installCatch as tn, _lifecycle as tt, _resume_dynamic_tag as u, forOf as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, Params as vn, getRegisteredWithScope as vt, _attr_input_checked_default as w, EndNode as wn, _child_setup as wt, _attr_input_checkedValue as x, Scope as xn, ready as xt, _attr_details_or_dialog_open_script as y, Setup as yn, init as yt, controllableScripts as z, _return as zt };
|
package/dist/debug/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_control_flow = require("./dom-
|
|
3
|
+
const require_control_flow = require("./dom-DBuLwSOh.js");
|
|
4
4
|
//#region src/common/attr-tag.ts
|
|
5
5
|
const empty = [];
|
|
6
6
|
const rest = Symbol("Attribute Tag");
|
|
@@ -366,6 +366,7 @@ exports._for_of = require_control_flow._for_of;
|
|
|
366
366
|
exports._for_selector = require_control_flow._for_selector;
|
|
367
367
|
exports._for_to = require_control_flow._for_to;
|
|
368
368
|
exports._for_until = require_control_flow._for_until;
|
|
369
|
+
exports._global_read = require_control_flow._global_read;
|
|
369
370
|
exports._hoist = require_control_flow._hoist;
|
|
370
371
|
exports._hoist_read_error = require_control_flow._hoist_read_error;
|
|
371
372
|
exports._hoist_resume = require_control_flow._hoist_resume;
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as
|
|
1
|
+
import { $ as _attrs_script, $t as $signalReset, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as _return_change, C as _attr_input_checkedValue_script, Ct as withLazy, D as _attr_input_value_attribute_default, Dn as Load, Dt as _const, E as _attr_input_value, En as Global, Et as _closure_get, F as _controllable_open, Ft as _if_closure, G as _attr_nonce, Gt as destroyBranch, H as _attr_class_item, Ht as _var, I as _controllable_select, It as _let, J as _attr_style_items, Jt as syncGen, K as _attr_style, Kt as insertBranchBefore, L as _controllable_textarea, Lt as _let_change, M as _attr_select_value_default, Mn as StartNode, Mt as _hoist, N as _attr_select_value_script, Nn as TagVariable, Nt as _hoist_resume, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _id, Q as _attrs_partial_content, Qt as $signal, Rt as _or, S as _attr_input_checkedValue_default, T as _attr_input_checked_script, Tt as _closure, U as _attr_class_items, Ut as _var_change, V as _attr_class, Vt as _script, W as _attr_content, Wt as _assert_init, X as _attrs_content, Y as _attrs, Yt as _on, Z as _attrs_partial, _ as _attr_details_or_dialog_open, _n as Owner, _t as _var_resume, a as _for_in, an as queueEffect, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as runId, ct as toInsertNode, d as _show, dn as forTo, dt as _content_resume, et as _html, f as _try, fn as forUntil, ft as createAndSetupBranch, g as renderCatch, gn as Clone, gt as _resume, h as patchDynamicTag, hn as _call, ht as _el, i as _dynamic_tag_content, in as queueAsyncRender, it as _text, j as _attr_select_value, jt as _global_read, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forIn, lt as _content, mn as _hoist_read_error, mt as setupBranch, n as _await_promise, nt as _style_rule_item, o as _for_of, on as run, ot as _to_text, p as addAwaitCounter, pn as _assert_hoist, pt as createBranch, q as _attr_style_item, qt as removeAndDestroyBranch, r as _dynamic_tag, rn as prepareEffects, rt as _style_shell, s as _for_to, sn as runEffects, st as insertChildNodes, t as _await_content, tt as _lifecycle, u as _resume_dynamic_tag, un as forOf, ut as _content_closures, v as _attr_details_or_dialog_open_default, vn as Params, vt as getRegisteredWithScope, w as _attr_input_checked_default, wn as EndNode, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yn as Setup, yt as init, zt as _return } from "./dom-ky42a_qY.mjs";
|
|
2
2
|
//#region src/common/attr-tag.ts
|
|
3
3
|
const empty = [];
|
|
4
4
|
const rest = Symbol("Attribute Tag");
|
|
@@ -294,4 +294,4 @@ function getSelectorOrResolve(selector, resolve) {
|
|
|
294
294
|
return document.querySelector(selector) || (console.warn(`A lazy load trigger could not find an element matching "${selector}". The module was loaded immediately.`), resolve());
|
|
295
295
|
}
|
|
296
296
|
//#endregion
|
|
297
|
-
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
|
|
297
|
+
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _global_read, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
|
package/dist/dom/catch.feat.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-DHJCbngT.js"), handlePendingTry = (fn, scope, branch) => {
|
|
2
2
|
for (; branch;) {
|
|
3
3
|
if (branch.O?.i) return (branch.J ||= []).push(fn, scope);
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
7
|
//#region src/dom/catch.feat.ts
|
|
8
|
-
require_control_flow
|
|
9
|
-
if (checkPending || require_control_flow.
|
|
8
|
+
require_control_flow.$t((runEffects) => (effects, checkPending = require_control_flow.en.has(effects)) => {
|
|
9
|
+
if (checkPending || require_control_flow.Qt.has(effects)) {
|
|
10
10
|
let i = 0, fn, scope, branch;
|
|
11
11
|
for (; i < effects.length;) fn = effects[i++], scope = effects[i++], (branch = scope.F)?.H !== 0 && !(checkPending && handlePendingTry(fn, scope, branch)) && fn(scope);
|
|
12
12
|
} else runEffects(effects);
|
package/dist/dom/catch.feat.mjs
CHANGED
|
@@ -4,7 +4,7 @@ let handlePendingTry = (fn, scope, branch) => {
|
|
|
4
4
|
branch = branch.N;
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
import { $t as
|
|
7
|
+
import { $t as installCatch, Qt as caughtError, en as placeholderShown, g as renderCatch } from "../dom-BSAs0ur8.mjs";
|
|
8
8
|
//#region src/dom/catch.feat.ts
|
|
9
9
|
installCatch((runEffects) => (effects, checkPending = placeholderShown.has(effects)) => {
|
|
10
10
|
if (checkPending || caughtError.has(effects)) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-DHJCbngT.js");
|
|
2
2
|
require_control_flow.z[0] = require_control_flow.T, require_control_flow.z[1] = require_control_flow.C, require_control_flow.z[2] = require_control_flow.A;
|
|
3
3
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { A as _attr_input_value_script, C as _attr_input_checkedValue_script, T as _attr_input_checked_script, z as controllableScripts } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { y as _attr_details_or_dialog_open_script, z as controllableScripts } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
//#region src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { N as _attr_select_value_script, z as controllableScripts } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
//#region src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-
|
|
1
|
+
import { A as _attr_input_value_script, z as controllableScripts } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
//#region src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
4
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-DHJCbngT.js");
|
|
2
2
|
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.R.INPUT = require_control_flow.P, require_control_flow.R.TEXTAREA = require_control_flow.L, require_control_flow.R.SELECT = require_control_flow.I, require_control_flow.R.DETAILS = require_control_flow.R.DIALOG = require_control_flow.F;
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-
|
|
1
|
+
import { F as _controllable_open, I as _controllable_select, L as _controllable_textarea, P as _controllable_input, R as controllableRenders } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-DHJCbngT.js"), elementGetter = (branch) => () => branch.S;
|
|
2
2
|
require_control_flow.m((branch) => branch.T(elementGetter(branch))), require_control_flow.gt("_e", elementGetter);
|
|
3
3
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
let elementGetter = (branch) => () => branch.S;
|
|
2
|
-
import { gt as _resume, m as installDynamicTagVar } from "../dom-
|
|
2
|
+
import { gt as _resume, m as installDynamicTagVar } from "../dom-BSAs0ur8.mjs";
|
|
3
3
|
installDynamicTagVar((branch) => branch.T(elementGetter(branch))), _resume("_e", elementGetter);
|
|
4
4
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
let require_control_flow = require("../dom-
|
|
1
|
+
let require_control_flow = require("../dom-DHJCbngT.js");
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
require_control_flow.St._f = (tryBranch) => {
|
|
4
|
-
tryBranch.P &&= (require_control_flow.
|
|
4
|
+
tryBranch.P &&= (require_control_flow.Gt(tryBranch.P), 0);
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as destroyBranch, St as registeredValues } from "../dom-BSAs0ur8.mjs";
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
registeredValues._f = (tryBranch) => {
|
|
4
4
|
tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare function _return_change(scope: Scope, changeHandler?: ((value: un
|
|
|
26
26
|
export declare const _var_change: (scope: Scope, value: unknown, name?: string) => void;
|
|
27
27
|
export declare function _id(scope: Scope, accessor?: Accessor): string;
|
|
28
28
|
export declare function _script(id: string, fn: (scope: Scope) => void): (scope: Scope) => void;
|
|
29
|
+
export declare function _global_read($global: Record<string, unknown>, key: string): unknown;
|
|
29
30
|
export declare function _el_read<T>(value: T): T;
|
|
30
31
|
type Hoistable<T> = (...args: unknown[]) => T;
|
|
31
32
|
type Hoisted<T> = Hoistable<T> & Iterable<T>;
|
|
@@ -475,6 +475,9 @@ function _script(id, fn) {
|
|
|
475
475
|
queueEffect(scope, fn);
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
+
function _global_read($global, key) {
|
|
479
|
+
return key in $global || console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`), $global[key];
|
|
480
|
+
}
|
|
478
481
|
function _el_read(value) {
|
|
479
482
|
return value;
|
|
480
483
|
}
|
|
@@ -1150,4 +1153,4 @@ function byFirstArg(name) {
|
|
|
1150
1153
|
return name;
|
|
1151
1154
|
}
|
|
1152
1155
|
//#endregion
|
|
1153
|
-
export { _attrs_script as $,
|
|
1156
|
+
export { _attrs_script as $, installCatch as $t, _attr_input_value_script as A, _for_selector as At, _attr as B, _return_change as Bt, _attr_input_checkedValue_script as C, withLazy as Ct, _attr_input_value_attribute_default as D, _const as Dt, _attr_input_value as E, _closure_get as Et, _controllable_open as F, _if_closure as Ft, _attr_nonce as G, destroyBranch as Gt, _attr_class_item as H, _var as Ht, _controllable_select as I, _let as It, _attr_style_items as J, syncGen as Jt, _attr_style as K, insertBranchBefore as Kt, _controllable_textarea as L, _let_change as Lt, _attr_select_value_default as M, _hoist as Mt, _attr_select_value_script as N, _hoist_resume as Nt, _attr_input_value_default as O, _el_read as Ot, _controllable_input as P, _id as Pt, _attrs_partial_content as Q, caughtError as Qt, controllableRenders as R, _or as Rt, _attr_input_checkedValue_default as S, registeredValues as St, _attr_input_checked_script as T, _closure as Tt, _attr_class_items as U, _var_change as Ut, _attr_class as V, _script as Vt, _attr_content as W, _assert_init as Wt, _attrs_content as X, $signal as Xt, _attrs as Y, _on as Yt, _attrs_partial as Z, $signalReset as Zt, _attr_details_or_dialog_open as _, _var_resume as _t, _for_in as a, runEffects as an, _text_content as at, _attr_input_checked as b, initEmbedded as bt, _for_until as c, forOf as cn, toInsertNode as ct, _show as d, _assert_hoist as dn, _content_resume as dt, placeholderShown as en, _html as et, _try as f, _hoist_read_error as fn, createAndSetupBranch as ft, renderCatch as g, _resume as gt, patchDynamicTag as h, _el as ht, _dynamic_tag_content as i, run as in, _text as it, _attr_select_value as j, _global_read as jt, _attr_input_value_dynamic_default as k, _for_closure as kt, _if as l, forTo as ln, _content as lt, installDynamicTagVar as m, decodeAccessor as mn, setupBranch as mt, _await_promise as n, queueAsyncRender as nn, _style_rule_item as nt, _for_of as o, runId as on, _to_text as ot, addAwaitCounter as p, _call as pn, createBranch as pt, _attr_style_item as q, removeAndDestroyBranch as qt, _dynamic_tag as r, queueEffect as rn, _style_shell as rt, _for_to as s, forIn as sn, insertChildNodes as st, _await_content as t, prepareEffects as tn, _lifecycle as tt, _resume_dynamic_tag as u, forUntil as un, _content_closures as ut, _attr_details_or_dialog_open_default as v, getRegisteredWithScope as vt, _attr_input_checked_default as w, _child_setup as wt, _attr_input_checkedValue as x, ready as xt, _attr_details_or_dialog_open_script as y, init as yt, controllableScripts as z, _return as zt };
|
|
@@ -475,6 +475,9 @@ function _script(id, fn) {
|
|
|
475
475
|
queueEffect(scope, fn);
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
+
function _global_read($global, key) {
|
|
479
|
+
return key in $global || console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`), $global[key];
|
|
480
|
+
}
|
|
478
481
|
function _el_read(value) {
|
|
479
482
|
return value;
|
|
480
483
|
}
|
|
@@ -1157,7 +1160,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1157
1160
|
}), Object.defineProperty(exports, "$t", {
|
|
1158
1161
|
enumerable: !0,
|
|
1159
1162
|
get: function() {
|
|
1160
|
-
return
|
|
1163
|
+
return installCatch;
|
|
1161
1164
|
}
|
|
1162
1165
|
}), Object.defineProperty(exports, "A", {
|
|
1163
1166
|
enumerable: !0,
|
|
@@ -1177,7 +1180,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1177
1180
|
}), Object.defineProperty(exports, "Bt", {
|
|
1178
1181
|
enumerable: !0,
|
|
1179
1182
|
get: function() {
|
|
1180
|
-
return
|
|
1183
|
+
return _return_change;
|
|
1181
1184
|
}
|
|
1182
1185
|
}), Object.defineProperty(exports, "C", {
|
|
1183
1186
|
enumerable: !0,
|
|
@@ -1217,7 +1220,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1217
1220
|
}), Object.defineProperty(exports, "Ft", {
|
|
1218
1221
|
enumerable: !0,
|
|
1219
1222
|
get: function() {
|
|
1220
|
-
return
|
|
1223
|
+
return _if_closure;
|
|
1221
1224
|
}
|
|
1222
1225
|
}), Object.defineProperty(exports, "G", {
|
|
1223
1226
|
enumerable: !0,
|
|
@@ -1227,7 +1230,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1227
1230
|
}), Object.defineProperty(exports, "Gt", {
|
|
1228
1231
|
enumerable: !0,
|
|
1229
1232
|
get: function() {
|
|
1230
|
-
return
|
|
1233
|
+
return destroyBranch;
|
|
1231
1234
|
}
|
|
1232
1235
|
}), Object.defineProperty(exports, "H", {
|
|
1233
1236
|
enumerable: !0,
|
|
@@ -1237,7 +1240,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1237
1240
|
}), Object.defineProperty(exports, "Ht", {
|
|
1238
1241
|
enumerable: !0,
|
|
1239
1242
|
get: function() {
|
|
1240
|
-
return
|
|
1243
|
+
return _var;
|
|
1241
1244
|
}
|
|
1242
1245
|
}), Object.defineProperty(exports, "I", {
|
|
1243
1246
|
enumerable: !0,
|
|
@@ -1247,7 +1250,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1247
1250
|
}), Object.defineProperty(exports, "It", {
|
|
1248
1251
|
enumerable: !0,
|
|
1249
1252
|
get: function() {
|
|
1250
|
-
return
|
|
1253
|
+
return _let;
|
|
1251
1254
|
}
|
|
1252
1255
|
}), Object.defineProperty(exports, "J", {
|
|
1253
1256
|
enumerable: !0,
|
|
@@ -1257,7 +1260,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1257
1260
|
}), Object.defineProperty(exports, "Jt", {
|
|
1258
1261
|
enumerable: !0,
|
|
1259
1262
|
get: function() {
|
|
1260
|
-
return
|
|
1263
|
+
return syncGen;
|
|
1261
1264
|
}
|
|
1262
1265
|
}), Object.defineProperty(exports, "K", {
|
|
1263
1266
|
enumerable: !0,
|
|
@@ -1267,7 +1270,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1267
1270
|
}), Object.defineProperty(exports, "Kt", {
|
|
1268
1271
|
enumerable: !0,
|
|
1269
1272
|
get: function() {
|
|
1270
|
-
return
|
|
1273
|
+
return insertBranchBefore;
|
|
1271
1274
|
}
|
|
1272
1275
|
}), Object.defineProperty(exports, "L", {
|
|
1273
1276
|
enumerable: !0,
|
|
@@ -1277,7 +1280,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1277
1280
|
}), Object.defineProperty(exports, "Lt", {
|
|
1278
1281
|
enumerable: !0,
|
|
1279
1282
|
get: function() {
|
|
1280
|
-
return
|
|
1283
|
+
return _let_change;
|
|
1281
1284
|
}
|
|
1282
1285
|
}), Object.defineProperty(exports, "M", {
|
|
1283
1286
|
enumerable: !0,
|
|
@@ -1287,7 +1290,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1287
1290
|
}), Object.defineProperty(exports, "Mt", {
|
|
1288
1291
|
enumerable: !0,
|
|
1289
1292
|
get: function() {
|
|
1290
|
-
return
|
|
1293
|
+
return _hoist;
|
|
1291
1294
|
}
|
|
1292
1295
|
}), Object.defineProperty(exports, "N", {
|
|
1293
1296
|
enumerable: !0,
|
|
@@ -1297,7 +1300,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1297
1300
|
}), Object.defineProperty(exports, "Nt", {
|
|
1298
1301
|
enumerable: !0,
|
|
1299
1302
|
get: function() {
|
|
1300
|
-
return
|
|
1303
|
+
return _hoist_resume;
|
|
1301
1304
|
}
|
|
1302
1305
|
}), Object.defineProperty(exports, "O", {
|
|
1303
1306
|
enumerable: !0,
|
|
@@ -1317,7 +1320,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1317
1320
|
}), Object.defineProperty(exports, "Pt", {
|
|
1318
1321
|
enumerable: !0,
|
|
1319
1322
|
get: function() {
|
|
1320
|
-
return
|
|
1323
|
+
return _id;
|
|
1321
1324
|
}
|
|
1322
1325
|
}), Object.defineProperty(exports, "Q", {
|
|
1323
1326
|
enumerable: !0,
|
|
@@ -1327,7 +1330,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1327
1330
|
}), Object.defineProperty(exports, "Qt", {
|
|
1328
1331
|
enumerable: !0,
|
|
1329
1332
|
get: function() {
|
|
1330
|
-
return
|
|
1333
|
+
return caughtError;
|
|
1331
1334
|
}
|
|
1332
1335
|
}), Object.defineProperty(exports, "R", {
|
|
1333
1336
|
enumerable: !0,
|
|
@@ -1337,7 +1340,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1337
1340
|
}), Object.defineProperty(exports, "Rt", {
|
|
1338
1341
|
enumerable: !0,
|
|
1339
1342
|
get: function() {
|
|
1340
|
-
return
|
|
1343
|
+
return _or;
|
|
1341
1344
|
}
|
|
1342
1345
|
}), Object.defineProperty(exports, "S", {
|
|
1343
1346
|
enumerable: !0,
|
|
@@ -1367,7 +1370,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1367
1370
|
}), Object.defineProperty(exports, "Ut", {
|
|
1368
1371
|
enumerable: !0,
|
|
1369
1372
|
get: function() {
|
|
1370
|
-
return
|
|
1373
|
+
return _var_change;
|
|
1371
1374
|
}
|
|
1372
1375
|
}), Object.defineProperty(exports, "V", {
|
|
1373
1376
|
enumerable: !0,
|
|
@@ -1377,7 +1380,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1377
1380
|
}), Object.defineProperty(exports, "Vt", {
|
|
1378
1381
|
enumerable: !0,
|
|
1379
1382
|
get: function() {
|
|
1380
|
-
return
|
|
1383
|
+
return _script;
|
|
1381
1384
|
}
|
|
1382
1385
|
}), Object.defineProperty(exports, "W", {
|
|
1383
1386
|
enumerable: !0,
|
|
@@ -1387,7 +1390,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1387
1390
|
}), Object.defineProperty(exports, "Wt", {
|
|
1388
1391
|
enumerable: !0,
|
|
1389
1392
|
get: function() {
|
|
1390
|
-
return
|
|
1393
|
+
return _assert_init;
|
|
1391
1394
|
}
|
|
1392
1395
|
}), Object.defineProperty(exports, "X", {
|
|
1393
1396
|
enumerable: !0,
|
|
@@ -1397,7 +1400,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1397
1400
|
}), Object.defineProperty(exports, "Xt", {
|
|
1398
1401
|
enumerable: !0,
|
|
1399
1402
|
get: function() {
|
|
1400
|
-
return $
|
|
1403
|
+
return $signal;
|
|
1401
1404
|
}
|
|
1402
1405
|
}), Object.defineProperty(exports, "Y", {
|
|
1403
1406
|
enumerable: !0,
|
|
@@ -1407,7 +1410,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1407
1410
|
}), Object.defineProperty(exports, "Yt", {
|
|
1408
1411
|
enumerable: !0,
|
|
1409
1412
|
get: function() {
|
|
1410
|
-
return
|
|
1413
|
+
return _on;
|
|
1411
1414
|
}
|
|
1412
1415
|
}), Object.defineProperty(exports, "Z", {
|
|
1413
1416
|
enumerable: !0,
|
|
@@ -1417,7 +1420,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1417
1420
|
}), Object.defineProperty(exports, "Zt", {
|
|
1418
1421
|
enumerable: !0,
|
|
1419
1422
|
get: function() {
|
|
1420
|
-
return
|
|
1423
|
+
return $signalReset;
|
|
1421
1424
|
}
|
|
1422
1425
|
}), Object.defineProperty(exports, "_", {
|
|
1423
1426
|
enumerable: !0,
|
|
@@ -1437,7 +1440,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1437
1440
|
}), Object.defineProperty(exports, "an", {
|
|
1438
1441
|
enumerable: !0,
|
|
1439
1442
|
get: function() {
|
|
1440
|
-
return
|
|
1443
|
+
return runEffects;
|
|
1441
1444
|
}
|
|
1442
1445
|
}), Object.defineProperty(exports, "at", {
|
|
1443
1446
|
enumerable: !0,
|
|
@@ -1462,7 +1465,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1462
1465
|
}), Object.defineProperty(exports, "cn", {
|
|
1463
1466
|
enumerable: !0,
|
|
1464
1467
|
get: function() {
|
|
1465
|
-
return
|
|
1468
|
+
return forOf;
|
|
1466
1469
|
}
|
|
1467
1470
|
}), Object.defineProperty(exports, "ct", {
|
|
1468
1471
|
enumerable: !0,
|
|
@@ -1477,7 +1480,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1477
1480
|
}), Object.defineProperty(exports, "dn", {
|
|
1478
1481
|
enumerable: !0,
|
|
1479
1482
|
get: function() {
|
|
1480
|
-
return
|
|
1483
|
+
return _assert_hoist;
|
|
1481
1484
|
}
|
|
1482
1485
|
}), Object.defineProperty(exports, "dt", {
|
|
1483
1486
|
enumerable: !0,
|
|
@@ -1487,7 +1490,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1487
1490
|
}), Object.defineProperty(exports, "en", {
|
|
1488
1491
|
enumerable: !0,
|
|
1489
1492
|
get: function() {
|
|
1490
|
-
return
|
|
1493
|
+
return placeholderShown;
|
|
1491
1494
|
}
|
|
1492
1495
|
}), Object.defineProperty(exports, "et", {
|
|
1493
1496
|
enumerable: !0,
|
|
@@ -1502,7 +1505,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1502
1505
|
}), Object.defineProperty(exports, "fn", {
|
|
1503
1506
|
enumerable: !0,
|
|
1504
1507
|
get: function() {
|
|
1505
|
-
return
|
|
1508
|
+
return _hoist_read_error;
|
|
1506
1509
|
}
|
|
1507
1510
|
}), Object.defineProperty(exports, "ft", {
|
|
1508
1511
|
enumerable: !0,
|
|
@@ -1537,7 +1540,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1537
1540
|
}), Object.defineProperty(exports, "in", {
|
|
1538
1541
|
enumerable: !0,
|
|
1539
1542
|
get: function() {
|
|
1540
|
-
return
|
|
1543
|
+
return run;
|
|
1541
1544
|
}
|
|
1542
1545
|
}), Object.defineProperty(exports, "it", {
|
|
1543
1546
|
enumerable: !0,
|
|
@@ -1552,7 +1555,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1552
1555
|
}), Object.defineProperty(exports, "jt", {
|
|
1553
1556
|
enumerable: !0,
|
|
1554
1557
|
get: function() {
|
|
1555
|
-
return
|
|
1558
|
+
return _global_read;
|
|
1556
1559
|
}
|
|
1557
1560
|
}), Object.defineProperty(exports, "k", {
|
|
1558
1561
|
enumerable: !0,
|
|
@@ -1572,7 +1575,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1572
1575
|
}), Object.defineProperty(exports, "ln", {
|
|
1573
1576
|
enumerable: !0,
|
|
1574
1577
|
get: function() {
|
|
1575
|
-
return
|
|
1578
|
+
return forTo;
|
|
1576
1579
|
}
|
|
1577
1580
|
}), Object.defineProperty(exports, "lt", {
|
|
1578
1581
|
enumerable: !0,
|
|
@@ -1584,6 +1587,11 @@ Object.defineProperty(exports, "$", {
|
|
|
1584
1587
|
get: function() {
|
|
1585
1588
|
return installDynamicTagVar;
|
|
1586
1589
|
}
|
|
1590
|
+
}), Object.defineProperty(exports, "mn", {
|
|
1591
|
+
enumerable: !0,
|
|
1592
|
+
get: function() {
|
|
1593
|
+
return decodeAccessor;
|
|
1594
|
+
}
|
|
1587
1595
|
}), Object.defineProperty(exports, "mt", {
|
|
1588
1596
|
enumerable: !0,
|
|
1589
1597
|
get: function() {
|
|
@@ -1597,7 +1605,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1597
1605
|
}), Object.defineProperty(exports, "nn", {
|
|
1598
1606
|
enumerable: !0,
|
|
1599
1607
|
get: function() {
|
|
1600
|
-
return
|
|
1608
|
+
return queueAsyncRender;
|
|
1601
1609
|
}
|
|
1602
1610
|
}), Object.defineProperty(exports, "nt", {
|
|
1603
1611
|
enumerable: !0,
|
|
@@ -1612,7 +1620,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1612
1620
|
}), Object.defineProperty(exports, "on", {
|
|
1613
1621
|
enumerable: !0,
|
|
1614
1622
|
get: function() {
|
|
1615
|
-
return
|
|
1623
|
+
return runId;
|
|
1616
1624
|
}
|
|
1617
1625
|
}), Object.defineProperty(exports, "ot", {
|
|
1618
1626
|
enumerable: !0,
|
|
@@ -1627,7 +1635,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1627
1635
|
}), Object.defineProperty(exports, "pn", {
|
|
1628
1636
|
enumerable: !0,
|
|
1629
1637
|
get: function() {
|
|
1630
|
-
return
|
|
1638
|
+
return _call;
|
|
1631
1639
|
}
|
|
1632
1640
|
}), Object.defineProperty(exports, "pt", {
|
|
1633
1641
|
enumerable: !0,
|
|
@@ -1642,7 +1650,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1642
1650
|
}), Object.defineProperty(exports, "qt", {
|
|
1643
1651
|
enumerable: !0,
|
|
1644
1652
|
get: function() {
|
|
1645
|
-
return
|
|
1653
|
+
return removeAndDestroyBranch;
|
|
1646
1654
|
}
|
|
1647
1655
|
}), Object.defineProperty(exports, "r", {
|
|
1648
1656
|
enumerable: !0,
|
|
@@ -1652,7 +1660,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1652
1660
|
}), Object.defineProperty(exports, "rn", {
|
|
1653
1661
|
enumerable: !0,
|
|
1654
1662
|
get: function() {
|
|
1655
|
-
return
|
|
1663
|
+
return queueEffect;
|
|
1656
1664
|
}
|
|
1657
1665
|
}), Object.defineProperty(exports, "rt", {
|
|
1658
1666
|
enumerable: !0,
|
|
@@ -1667,7 +1675,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1667
1675
|
}), Object.defineProperty(exports, "sn", {
|
|
1668
1676
|
enumerable: !0,
|
|
1669
1677
|
get: function() {
|
|
1670
|
-
return
|
|
1678
|
+
return forIn;
|
|
1671
1679
|
}
|
|
1672
1680
|
}), Object.defineProperty(exports, "st", {
|
|
1673
1681
|
enumerable: !0,
|
|
@@ -1682,7 +1690,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1682
1690
|
}), Object.defineProperty(exports, "tn", {
|
|
1683
1691
|
enumerable: !0,
|
|
1684
1692
|
get: function() {
|
|
1685
|
-
return
|
|
1693
|
+
return prepareEffects;
|
|
1686
1694
|
}
|
|
1687
1695
|
}), Object.defineProperty(exports, "tt", {
|
|
1688
1696
|
enumerable: !0,
|
|
@@ -1697,7 +1705,7 @@ Object.defineProperty(exports, "$", {
|
|
|
1697
1705
|
}), Object.defineProperty(exports, "un", {
|
|
1698
1706
|
enumerable: !0,
|
|
1699
1707
|
get: function() {
|
|
1700
|
-
return
|
|
1708
|
+
return forUntil;
|
|
1701
1709
|
}
|
|
1702
1710
|
}), Object.defineProperty(exports, "ut", {
|
|
1703
1711
|
enumerable: !0,
|
|
@@ -1752,6 +1760,6 @@ Object.defineProperty(exports, "$", {
|
|
|
1752
1760
|
}), Object.defineProperty(exports, "zt", {
|
|
1753
1761
|
enumerable: !0,
|
|
1754
1762
|
get: function() {
|
|
1755
|
-
return
|
|
1763
|
+
return _return;
|
|
1756
1764
|
}
|
|
1757
1765
|
});
|
package/dist/dom.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export { run } from "./dom/queue";
|
|
|
13
13
|
export { _content, _content_closures, _content_resume } from "./dom/renderer";
|
|
14
14
|
export { _el, _resume, _var_resume, init, initEmbedded, ready, } from "./dom/resume";
|
|
15
15
|
export { _assert_init } from "./dom/scope";
|
|
16
|
-
export { _child_setup, _closure, _closure_get, _const, _el_read, _for_closure, _for_selector, _hoist, _hoist_resume, _id, _if_closure, _let, _let_change, _or, _return, _return_change, _script, _var, _var_change, } from "./dom/signals";
|
|
16
|
+
export { _child_setup, _closure, _closure_get, _const, _el_read, _global_read, _for_closure, _for_selector, _hoist, _hoist_resume, _id, _if_closure, _let, _let_change, _or, _return, _return_change, _script, _var, _var_change, } from "./dom/signals";
|
|
17
17
|
export { _template } from "./dom/template";
|
package/dist/dom.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
let require_control_flow = require("./dom-
|
|
1
|
+
let require_control_flow = require("./dom-DHJCbngT.js"), empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), classEventResolver, scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
2
2
|
require_control_flow.yt($global.runtimeId);
|
|
3
3
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
4
4
|
return render && !scopes && scopesByRender.set(render, scopes = {}), scopes;
|
|
5
5
|
}, compat = {
|
|
6
6
|
patchDynamicTag: require_control_flow.h,
|
|
7
|
-
queueEffect: require_control_flow.
|
|
7
|
+
queueEffect: require_control_flow.rn,
|
|
8
8
|
init(warp10Noop) {
|
|
9
9
|
require_control_flow.gt("$C_s", (scope) => {
|
|
10
10
|
if (getRenderScopes(scope.$)[scope.L] = scope, scope.m5c && classIdToBranch.set(scope.m5c, scope), classEventResolver) for (let key in scope) {
|
|
@@ -38,10 +38,10 @@ let require_control_flow = require("./dom-CKak9Qet.js"), empty = [], rest = Symb
|
|
|
38
38
|
branch.S = startNode, branch.K = endNode;
|
|
39
39
|
},
|
|
40
40
|
runComponentEffects() {
|
|
41
|
-
this.effects && require_control_flow.
|
|
41
|
+
this.effects && require_control_flow.an(this.effects);
|
|
42
42
|
},
|
|
43
43
|
runComponentDestroy() {
|
|
44
|
-
this.scope && require_control_flow.
|
|
44
|
+
this.scope && require_control_flow.Gt(this.scope);
|
|
45
45
|
},
|
|
46
46
|
resolveRegistered(value, $global) {
|
|
47
47
|
return Array.isArray(value) && typeof value[0] == "string" ? require_control_flow.vt(value[0], getRenderScopes($global)?.[value[1]]) : value;
|
|
@@ -60,7 +60,7 @@ let require_control_flow = require("./dom-CKak9Qet.js"), empty = [], rest = Symb
|
|
|
60
60
|
let input = args[0], normalizedInput = args[0] = {};
|
|
61
61
|
for (let key in input) normalizedInput[key === "renderBody" ? "content" : key] = input[key];
|
|
62
62
|
}
|
|
63
|
-
if (component.effects = require_control_flow.
|
|
63
|
+
if (component.effects = require_control_flow.tn(() => {
|
|
64
64
|
branch ||= (created = 1, component.scope = require_control_flow.ft(out.global, renderer, renderer.e, document.body)), renderer.d?.(branch, renderer._ ? args[0] : args);
|
|
65
65
|
}), created) return require_control_flow.ct(branch.S, branch.K);
|
|
66
66
|
}
|
|
@@ -71,12 +71,12 @@ let require_control_flow = require("./dom-CKak9Qet.js"), empty = [], rest = Symb
|
|
|
71
71
|
let pending, lazyTemplate = _template(id, 0, 0, (branch) => {
|
|
72
72
|
let awaitCounter = require_control_flow.p(branch);
|
|
73
73
|
branch.X ||= /* @__PURE__ */ new Map(), (pending ||= load()).then((renderer) => {
|
|
74
|
-
Object.assign(lazyTemplate, renderer), require_control_flow.
|
|
74
|
+
Object.assign(lazyTemplate, renderer), require_control_flow.nn(branch, (branch) => insertLoaded(renderer, branch, branch.S, awaitCounter));
|
|
75
75
|
}, loadFailed(branch, awaitCounter));
|
|
76
76
|
}, _load_signal(() => (pending ||= load()).then((r) => ({ _: r.d }))));
|
|
77
77
|
return lazyTemplate;
|
|
78
78
|
}), _load_setup = /*@__PURE__*/ require_control_flow.Ct((nodeAccessor, childScopeAccessor, load) => {
|
|
79
|
-
nodeAccessor = require_control_flow.
|
|
79
|
+
nodeAccessor = require_control_flow.mn(nodeAccessor), childScopeAccessor = require_control_flow.mn(childScopeAccessor);
|
|
80
80
|
let pending, renderer;
|
|
81
81
|
return (owner) => {
|
|
82
82
|
let child = owner[childScopeAccessor];
|
|
@@ -84,14 +84,14 @@ let require_control_flow = require("./dom-CKak9Qet.js"), empty = [], rest = Symb
|
|
|
84
84
|
else {
|
|
85
85
|
let awaitCounter = require_control_flow.p(owner);
|
|
86
86
|
child.X ||= /* @__PURE__ */ new Map(), (pending ||= load()).then((mod) => {
|
|
87
|
-
renderer = require_control_flow.lt("", ...mod._)(), require_control_flow.
|
|
87
|
+
renderer = require_control_flow.lt("", ...mod._)(), require_control_flow.nn(child, (child) => insertLoaded(renderer, child, owner[nodeAccessor], awaitCounter));
|
|
88
88
|
}, loadFailed(child, awaitCounter));
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
}), _load_signal = /*@__PURE__*/ require_control_flow.Ct((load) => {
|
|
92
92
|
let pending, signal;
|
|
93
93
|
return (scope, value) => {
|
|
94
|
-
pending ||= load(), scope.X || !("X" in scope) && scope.H === require_control_flow.
|
|
94
|
+
pending ||= load(), scope.X || !("X" in scope) && scope.H === require_control_flow.on ? (scope.X ||= /* @__PURE__ */ new Map()).set(pending, { a: value }) : signal ? signal(scope, value) : pending.then((mod) => require_control_flow.nn(scope, signal = mod._, value), () => 0);
|
|
95
95
|
};
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
@@ -131,25 +131,25 @@ function mount(input = {}, reference, position) {
|
|
|
131
131
|
parentNode = reference.parentNode, nextSibling = reference.nextSibling;
|
|
132
132
|
break;
|
|
133
133
|
}
|
|
134
|
-
let curValue, args = this.d, effects = require_control_flow.
|
|
134
|
+
let curValue, args = this.d, effects = require_control_flow.tn(() => {
|
|
135
135
|
branch = require_control_flow.pt($global, this, void 0, parentNode), branch.T = (newValue) => {
|
|
136
136
|
curValue = newValue;
|
|
137
137
|
}, this.c?.(branch), args?.(branch, input);
|
|
138
138
|
});
|
|
139
|
-
return require_control_flow.st(parentNode, nextSibling, branch.S, branch.K), require_control_flow.
|
|
139
|
+
return require_control_flow.st(parentNode, nextSibling, branch.S, branch.K), require_control_flow.an(effects), {
|
|
140
140
|
get value() {
|
|
141
141
|
return curValue;
|
|
142
142
|
},
|
|
143
143
|
set value(newValue) {
|
|
144
|
-
require_control_flow.
|
|
144
|
+
require_control_flow.Ut(branch, newValue);
|
|
145
145
|
},
|
|
146
146
|
update(newInput = {}) {
|
|
147
|
-
args && (newInput.$global && ({$global, ...newInput} = newInput), require_control_flow.
|
|
147
|
+
args && (newInput.$global && ({$global, ...newInput} = newInput), require_control_flow.an(require_control_flow.tn(() => {
|
|
148
148
|
args(branch, newInput);
|
|
149
149
|
})));
|
|
150
150
|
},
|
|
151
151
|
destroy() {
|
|
152
|
-
require_control_flow.
|
|
152
|
+
require_control_flow.qt(branch);
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
}
|
|
@@ -157,20 +157,20 @@ function mount(input = {}, reference, position) {
|
|
|
157
157
|
//#region src/dom/load.ts
|
|
158
158
|
function insertLoaded(renderer, branch, marker, awaitCounter) {
|
|
159
159
|
let parent = marker.parentNode, values = branch.X, insert = () => {
|
|
160
|
-
require_control_flow.
|
|
160
|
+
require_control_flow.Kt(branch, parent, marker), marker.remove(), awaitCounter?.c();
|
|
161
161
|
}, remaining;
|
|
162
|
-
if (require_control_flow.
|
|
162
|
+
if (require_control_flow.Jt(branch), renderer.b(branch, parent.namespaceURI), branch.X = 0, remaining = values?.size) {
|
|
163
163
|
let fail = loadFailed(branch, awaitCounter);
|
|
164
164
|
for (let [promise, entry] of values) promise.then((signal) => {
|
|
165
|
-
entry.b = signal, --remaining || require_control_flow.
|
|
166
|
-
require_control_flow.
|
|
165
|
+
entry.b = signal, --remaining || require_control_flow.nn(branch, (branch) => {
|
|
166
|
+
require_control_flow.Jt(branch), renderer.c?.(branch), values.forEach((e) => e.b._(branch, e.a)), insert();
|
|
167
167
|
});
|
|
168
168
|
}, (error) => remaining > 0 && (remaining = 0, fail(error)));
|
|
169
169
|
} else require_control_flow.mt(renderer, branch), insert();
|
|
170
170
|
}
|
|
171
171
|
function loadFailed(scope, awaitCounter) {
|
|
172
172
|
return (error) => {
|
|
173
|
-
awaitCounter && (awaitCounter.m ? awaitCounter.i = 0 : awaitCounter.c()), require_control_flow.
|
|
173
|
+
awaitCounter && (awaitCounter.m ? awaitCounter.i = 0 : awaitCounter.c()), require_control_flow.nn(scope, require_control_flow.g, error);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
function _load_visible_trigger(selector, options) {
|
|
@@ -196,9 +196,9 @@ function _load_race_trigger(...triggers) {
|
|
|
196
196
|
function getSelectorOrResolve(selector, resolve) {
|
|
197
197
|
return document.querySelector(selector) || resolve();
|
|
198
198
|
}
|
|
199
|
-
exports.$signal = require_control_flow.
|
|
199
|
+
exports.$signal = require_control_flow.Xt, exports.$signalReset = require_control_flow.Zt, exports._assert_hoist = require_control_flow.dn, exports._assert_init = require_control_flow.Wt, exports._attr = require_control_flow.B, exports._attr_class = require_control_flow.V, exports._attr_class_item = require_control_flow.H, exports._attr_class_items = require_control_flow.U, exports._attr_content = require_control_flow.W, exports._attr_details_open = require_control_flow._, exports._attr_dialog_open = require_control_flow._, exports._attr_details_open_default = require_control_flow.v, exports._attr_dialog_open_default = require_control_flow.v, exports._attr_details_open_script = require_control_flow.y, exports._attr_dialog_open_script = require_control_flow.y, exports._attr_input_checked = require_control_flow.b, exports._attr_input_checkedValue = require_control_flow.x, exports._attr_input_checkedValue_default = require_control_flow.S, exports._attr_input_checkedValue_script = require_control_flow.C, exports._attr_input_checked_default = require_control_flow.w, exports._attr_input_checked_script = require_control_flow.T, exports._attr_input_value = require_control_flow.E, exports._attr_textarea_value = require_control_flow.E, exports._attr_input_value_attribute_default = require_control_flow.D, exports._attr_input_value_default = require_control_flow.O, exports._attr_textarea_value_default = require_control_flow.O, exports._attr_input_value_dynamic_default = require_control_flow.k, exports._attr_input_value_script = require_control_flow.A, exports._attr_textarea_value_script = require_control_flow.A, exports._attr_nonce = require_control_flow.G, exports._attr_select_value = require_control_flow.j, exports._attr_select_value_default = require_control_flow.M, exports._attr_select_value_script = require_control_flow.N, exports._attr_style = require_control_flow.K, exports._attr_style_item = require_control_flow.q, exports._attr_style_items = require_control_flow.J, exports._attrs = require_control_flow.Y, exports._attrs_content = require_control_flow.X, exports._attrs_partial = require_control_flow.Z, exports._attrs_partial_content = require_control_flow.Q, exports._attrs_script = require_control_flow.$, exports._await_content = require_control_flow.t, exports._await_promise = require_control_flow.n, exports._call = require_control_flow.pn, exports._child_setup = require_control_flow.wt, exports._closure = require_control_flow.Tt, exports._closure_get = require_control_flow.Et, exports._const = require_control_flow.Dt, exports._content = require_control_flow.lt, exports._content_closures = require_control_flow.ut, exports._content_resume = require_control_flow.dt, exports._controllable_input = require_control_flow.P, exports._controllable_open = require_control_flow.F, exports._controllable_select = require_control_flow.I, exports._controllable_textarea = require_control_flow.L, Object.defineProperty(exports, "_dynamic_tag", {
|
|
200
200
|
enumerable: !0,
|
|
201
201
|
get: function() {
|
|
202
202
|
return require_control_flow.r;
|
|
203
203
|
}
|
|
204
|
-
}), exports._dynamic_tag_content = require_control_flow.i, exports._el = require_control_flow.ht, exports._el_read = require_control_flow.Ot, exports._for_closure = require_control_flow.kt, exports._for_in = require_control_flow.a, exports._for_of = require_control_flow.o, exports._for_selector = require_control_flow.At, exports._for_to = require_control_flow.s, exports._for_until = require_control_flow.c, exports.
|
|
204
|
+
}), exports._dynamic_tag_content = require_control_flow.i, exports._el = require_control_flow.ht, exports._el_read = require_control_flow.Ot, exports._for_closure = require_control_flow.kt, exports._for_in = require_control_flow.a, exports._for_of = require_control_flow.o, exports._for_selector = require_control_flow.At, exports._for_to = require_control_flow.s, exports._for_until = require_control_flow.c, exports._global_read = require_control_flow.jt, exports._hoist = require_control_flow.Mt, exports._hoist_read_error = require_control_flow.fn, exports._hoist_resume = require_control_flow.Nt, exports._html = require_control_flow.et, exports._id = require_control_flow.Pt, exports._if = require_control_flow.l, exports._if_closure = require_control_flow.Ft, exports._let = require_control_flow.It, exports._let_change = require_control_flow.Lt, exports._lifecycle = require_control_flow.tt, exports._load_event_trigger = _load_event_trigger, exports._load_idle_trigger = _load_idle_trigger, exports._load_media_trigger = _load_media_trigger, exports._load_race_trigger = _load_race_trigger, exports._load_setup = _load_setup, exports._load_signal = _load_signal, exports._load_template = _load_template, exports._load_visible_trigger = _load_visible_trigger, exports._on = require_control_flow.Yt, exports._or = require_control_flow.Rt, exports._resume = require_control_flow.gt, exports._resume_dynamic_tag = require_control_flow.u, exports._return = require_control_flow.zt, exports._return_change = require_control_flow.Bt, exports._script = require_control_flow.Vt, exports._show = require_control_flow.d, exports._style_rule_item = require_control_flow.nt, exports._style_shell = require_control_flow.rt, exports._template = _template, exports._text = require_control_flow.it, exports._text_content = require_control_flow.at, exports._to_text = require_control_flow.ot, exports._try = require_control_flow.f, exports._var = require_control_flow.Ht, exports._var_change = require_control_flow.Ut, exports._var_resume = require_control_flow._t, exports.attrTag = attrTag, exports.attrTags = attrTags, exports.compat = compat, exports.forIn = require_control_flow.sn, exports.forOf = require_control_flow.cn, exports.forTo = require_control_flow.ln, exports.forUntil = require_control_flow.un, exports.init = require_control_flow.yt, exports.initEmbedded = require_control_flow.bt, exports.ready = require_control_flow.xt, exports.run = require_control_flow.in;
|
package/dist/dom.mjs
CHANGED
|
@@ -94,7 +94,7 @@ let empty = [], rest = Symbol(), classIdToBranch = /* @__PURE__ */ new Map(), cl
|
|
|
94
94
|
pending ||= load(), scope.X || !("X" in scope) && scope.H === runId ? (scope.X ||= /* @__PURE__ */ new Map()).set(pending, { a: value }) : signal ? signal(scope, value) : pending.then((mod) => queueAsyncRender(scope, signal = mod._, value), () => 0);
|
|
95
95
|
};
|
|
96
96
|
});
|
|
97
|
-
import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as
|
|
97
|
+
import { $ as _attrs_script, A as _attr_input_value_script, At as _for_selector, B as _attr, Bt as _return_change, C as _attr_input_checkedValue_script, Ct as withLazy, D as _attr_input_value_attribute_default, Dt as _const, E as _attr_input_value, Et as _closure_get, F as _controllable_open, Ft as _if_closure, G as _attr_nonce, Gt as destroyBranch, H as _attr_class_item, Ht as _var, I as _controllable_select, It as _let, J as _attr_style_items, Jt as syncGen, K as _attr_style, Kt as insertBranchBefore, L as _controllable_textarea, Lt as _let_change, M as _attr_select_value_default, Mt as _hoist, N as _attr_select_value_script, Nt as _hoist_resume, O as _attr_input_value_default, Ot as _el_read, P as _controllable_input, Pt as _id, Q as _attrs_partial_content, Rt as _or, S as _attr_input_checkedValue_default, T as _attr_input_checked_script, Tt as _closure, U as _attr_class_items, Ut as _var_change, V as _attr_class, Vt as _script, W as _attr_content, Wt as _assert_init, X as _attrs_content, Xt as $signal, Y as _attrs, Yt as _on, Z as _attrs_partial, Zt as $signalReset, _ as _attr_details_or_dialog_open, _t as _var_resume, a as _for_in, an as runEffects, at as _text_content, b as _attr_input_checked, bt as initEmbedded, c as _for_until, cn as forOf, ct as toInsertNode, d as _show, dn as _assert_hoist, dt as _content_resume, et as _html, f as _try, fn as _hoist_read_error, ft as createAndSetupBranch, g as renderCatch, gt as _resume, h as patchDynamicTag, ht as _el, i as _dynamic_tag_content, in as run, it as _text, j as _attr_select_value, jt as _global_read, k as _attr_input_value_dynamic_default, kt as _for_closure, l as _if, ln as forTo, lt as _content, mn as decodeAccessor, mt as setupBranch, n as _await_promise, nn as queueAsyncRender, nt as _style_rule_item, o as _for_of, on as runId, ot as _to_text, p as addAwaitCounter, pn as _call, pt as createBranch, q as _attr_style_item, qt as removeAndDestroyBranch, r as _dynamic_tag, rn as queueEffect, rt as _style_shell, s as _for_to, sn as forIn, st as insertChildNodes, t as _await_content, tn as prepareEffects, tt as _lifecycle, u as _resume_dynamic_tag, un as forUntil, ut as _content_closures, v as _attr_details_or_dialog_open_default, vt as getRegisteredWithScope, w as _attr_input_checked_default, wt as _child_setup, x as _attr_input_checkedValue, xt as ready, y as _attr_details_or_dialog_open_script, yt as init, zt as _return } from "./dom-BSAs0ur8.mjs";
|
|
98
98
|
//#region src/common/attr-tag.ts
|
|
99
99
|
function attrTag(attrs) {
|
|
100
100
|
return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
|
|
@@ -197,4 +197,4 @@ function getSelectorOrResolve(selector, resolve) {
|
|
|
197
197
|
return document.querySelector(selector) || resolve();
|
|
198
198
|
}
|
|
199
199
|
//#endregion
|
|
200
|
-
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
|
|
200
|
+
export { $signal, $signalReset, _assert_hoist, _assert_init, _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_checked_default, _attr_input_checked_script, _attr_input_value, _attr_input_value as _attr_textarea_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_input_value_script as _attr_textarea_value_script, _attr_nonce, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _await_content, _await_promise, _call, _child_setup, _closure, _closure_get, _const, _content, _content_closures, _content_resume, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, _dynamic_tag, _dynamic_tag_content, _el, _el_read, _for_closure, _for_in, _for_of, _for_selector, _for_to, _for_until, _global_read, _hoist, _hoist_read_error, _hoist_resume, _html, _id, _if, _if_closure, _let, _let_change, _lifecycle, _load_event_trigger, _load_idle_trigger, _load_media_trigger, _load_race_trigger, _load_setup, _load_signal, _load_template, _load_visible_trigger, _on, _or, _resume, _resume_dynamic_tag, _return, _return_change, _script, _show, _style_rule_item, _style_shell, _template, _text, _text_content, _to_text, _try, _var, _var_change, _var_resume, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, init, initEmbedded, ready, run };
|
package/dist/translator/index.js
CHANGED
|
@@ -1323,6 +1323,7 @@ function createSectionState(key, init) {
|
|
|
1323
1323
|
//#endregion
|
|
1324
1324
|
//#region src/translator/util/tag-name-type.ts
|
|
1325
1325
|
const MARKO_FILE_REG = /^<.*>$|\.marko$/;
|
|
1326
|
+
const TAG_NAME_IDENTIFIER_REG$1 = /^[A-Z][a-zA-Z0-9_$]*$/;
|
|
1326
1327
|
function analyzeTagNameType(tag, allowDynamic) {
|
|
1327
1328
|
const extra = tag.node.extra ??= {};
|
|
1328
1329
|
if (extra.tagNameType === void 0) {
|
|
@@ -1349,6 +1350,8 @@ function analyzeTagNameType(tag, allowDynamic) {
|
|
|
1349
1350
|
} else if (!childFile) {
|
|
1350
1351
|
extra.tagNameType = 2;
|
|
1351
1352
|
extra.tagNameDynamic = true;
|
|
1353
|
+
const tagName = name.node.value;
|
|
1354
|
+
extra.tagNameUnresolved = !(TAG_NAME_IDENTIFIER_REG$1.test(tagName) && tag.scope.hasBinding(tagName));
|
|
1352
1355
|
}
|
|
1353
1356
|
}
|
|
1354
1357
|
}
|
|
@@ -6085,7 +6088,8 @@ function preAnalyze$1(tag) {
|
|
|
6085
6088
|
const [firstChild] = tag.node.body.body;
|
|
6086
6089
|
if (firstChild.type === "MarkoText") firstChild.value = firstChild.value.replace(/^\r?\n/, "");
|
|
6087
6090
|
const parts = [];
|
|
6088
|
-
for (const child of tag.node.body.body) if (child.type === "MarkoText"
|
|
6091
|
+
for (const child of tag.node.body.body) if (child.type === "MarkoText") parts.push((0, _marko_compiler_babel_utils.decodeHTML)(child.value));
|
|
6092
|
+
else if (child.type === "MarkoPlaceholder" && child.escape) parts.push(child.value);
|
|
6089
6093
|
else throw tag.hub.file.hub.buildError(child, "Unexpected content in textarea, only text and placeholders are supported.", SyntaxError);
|
|
6090
6094
|
const textValue = normalizeStringExpression(parts);
|
|
6091
6095
|
if (textValue) {
|
|
@@ -9805,7 +9809,9 @@ var import_declaration_default = {
|
|
|
9805
9809
|
}
|
|
9806
9810
|
(node.extra ??= {}).loadImport = loadImport;
|
|
9807
9811
|
const { file } = importDecl.hub;
|
|
9808
|
-
|
|
9812
|
+
const loadFile = tagImport && (0, _marko_compiler_babel_utils.loadFileForImport)(file, value);
|
|
9813
|
+
if (!loadFile) throw importDecl.buildCodeFrameError("Unable to resolve marko file for load import.");
|
|
9814
|
+
if (loadFile.ast.program.extra?.featureType === "class") throw importDecl.buildCodeFrameError(`The [\`load\` import attribute](https://markojs.com/docs/reference/lazy-loading) is not supported for the Marko 5 (class API) tag \`${value}\`. Import it without \`load\`, or migrate the tag to the tags API.`);
|
|
9809
9815
|
}
|
|
9810
9816
|
},
|
|
9811
9817
|
translate: { exit(importDecl) {
|
|
@@ -10127,9 +10133,14 @@ var referenced_identifier_default = {
|
|
|
10127
10133
|
const { name } = identifier.node;
|
|
10128
10134
|
if (identifier.scope.hasBinding(name)) return;
|
|
10129
10135
|
switch (name) {
|
|
10130
|
-
case "$global":
|
|
10131
|
-
if (
|
|
10136
|
+
case "$global": {
|
|
10137
|
+
if (isOutputHTML()) break;
|
|
10138
|
+
const globalRead = _marko_compiler.types.memberExpression(scopeIdentifier, _marko_compiler.types.identifier(getAccessorProp().Global));
|
|
10139
|
+
const key = !isOptimize() && getSignalGlobalKey(identifier);
|
|
10140
|
+
if (key) identifier.parentPath.replaceWith(callRuntime("_global_read", globalRead, _marko_compiler.types.stringLiteral(key)));
|
|
10141
|
+
else identifier.replaceWith(globalRead);
|
|
10132
10142
|
break;
|
|
10143
|
+
}
|
|
10133
10144
|
case "$signal": if (isOutputHTML()) identifier.replaceWith(_marko_compiler.types.callExpression(_marko_compiler.types.arrowFunctionExpression([], _marko_compiler.types.blockStatement([_marko_compiler.types.throwStatement(_marko_compiler.types.newExpression(_marko_compiler.types.identifier("Error"), [_marko_compiler.types.stringLiteral("Cannot use $signal in a server render.")]))])), []));
|
|
10134
10145
|
else {
|
|
10135
10146
|
const section = getSection(identifier);
|
|
@@ -10145,6 +10156,13 @@ var referenced_identifier_default = {
|
|
|
10145
10156
|
}
|
|
10146
10157
|
}
|
|
10147
10158
|
};
|
|
10159
|
+
function getSignalGlobalKey(identifier) {
|
|
10160
|
+
const { parent } = identifier;
|
|
10161
|
+
if (!_marko_compiler.types.isMemberExpression(parent) || parent.computed || !_marko_compiler.types.isIdentifier(parent.property) || parent.object !== identifier.node) return;
|
|
10162
|
+
const { name } = parent.property;
|
|
10163
|
+
if (name === "runtimeId" || name === "renderId") return;
|
|
10164
|
+
return getExprRoot(identifier).node.extra?.referencedBindings ? name : void 0;
|
|
10165
|
+
}
|
|
10148
10166
|
//#endregion
|
|
10149
10167
|
//#region src/translator/visitors/scriptlet.ts
|
|
10150
10168
|
var scriptlet_default = {
|
|
@@ -10403,6 +10421,7 @@ function pushCompatRegistration(key, statement) {
|
|
|
10403
10421
|
}
|
|
10404
10422
|
var dynamic_tag_default = {
|
|
10405
10423
|
analyze: { enter(tag) {
|
|
10424
|
+
if (tag.node.extra?.tagNameUnresolved) throw tagNotFoundError(tag);
|
|
10406
10425
|
(0, _marko_compiler_babel_utils.assertAttributesOrArgs)(tag);
|
|
10407
10426
|
const { node } = tag;
|
|
10408
10427
|
const definedBodySection = node.extra?.defineBodySection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marko",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.44",
|
|
4
4
|
"description": "Optimized runtime for Marko templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@marko/compiler": "^5.42.
|
|
54
|
+
"@marko/compiler": "^5.42.2",
|
|
55
55
|
"csstype": "^3.2.3",
|
|
56
56
|
"fastest-levenshtein": "^1.0.16",
|
|
57
57
|
"magic-string": "^0.30.21"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@marko/runtime-tags": "npm:marko@6.3.
|
|
61
|
-
"marko": "5.39.
|
|
60
|
+
"@marko/runtime-tags": "npm:marko@6.3.44",
|
|
61
|
+
"marko": "5.39.36"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|