lilact 0.26.11 → 0.26.12
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/lilact.development.js +6 -5
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +7 -7
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +7 -7
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +6 -5
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +7 -7
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +7 -7
- package/examples/lilact.development.js +6 -5
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +7 -7
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +7 -7
- package/package.json +1 -1
- package/src/jsx.js +1 -1
- package/src/run.jsx +7 -5
|
@@ -4,4 +4,4 @@ It is automatically attached to document.onload when Lilact is loaded.</p>
|
|
|
4
4
|
If element has inner content, it will be executed via <code>run</code>.</p>
|
|
5
5
|
<p>If both are present, first the src is loaded and then the inner content is executed.</p>
|
|
6
6
|
<p>Note that it won't detect such elements that are added after document.onload.</p>
|
|
7
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
7
|
+
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in run.jsx:315</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">Lilact</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -3656,7 +3656,8 @@ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, { isInline, i
|
|
|
3656
3656
|
globalThis.createComponent = lilact_default.createComponent;
|
|
3657
3657
|
globalThis.Fragment = lilact_default.Fragment;
|
|
3658
3658
|
const res = eval(processed);
|
|
3659
|
-
|
|
3659
|
+
console.log(path, isModule, module.exports);
|
|
3660
|
+
if (!isEmpty(module.exports)) return module.exports;
|
|
3660
3661
|
return res;
|
|
3661
3662
|
} catch (e) {
|
|
3662
3663
|
e = lilact_default.traceError(e);
|
|
@@ -3701,7 +3702,7 @@ function require2(path2) {
|
|
|
3701
3702
|
injectGlobal(res2);
|
|
3702
3703
|
return;
|
|
3703
3704
|
}
|
|
3704
|
-
res2 = run(res2, path2, false);
|
|
3705
|
+
res2 = run(res2, path2, { isInline: false });
|
|
3705
3706
|
return (_a2 = res2 == null ? void 0 : res2.default) != null ? _a2 : res2;
|
|
3706
3707
|
}).catch((err) => {
|
|
3707
3708
|
throw err;
|
|
@@ -3713,17 +3714,17 @@ function require2(path2) {
|
|
|
3713
3714
|
injectGlobal(p);
|
|
3714
3715
|
return;
|
|
3715
3716
|
}
|
|
3716
|
-
return run(p, path2, false);
|
|
3717
|
+
return run(p, path2, { isInline: false });
|
|
3717
3718
|
} else {
|
|
3718
3719
|
const request = new XMLHttpRequest();
|
|
3719
|
-
request.open("GET", path2,
|
|
3720
|
+
request.open("GET", path2, false);
|
|
3720
3721
|
request.send(null);
|
|
3721
3722
|
if (request.status === 200) {
|
|
3722
3723
|
if (path2.endsWith(".css")) {
|
|
3723
3724
|
injectGlobal(res);
|
|
3724
3725
|
return;
|
|
3725
3726
|
}
|
|
3726
|
-
return run(request.responseText, path2, false);
|
|
3727
|
+
return run(request.responseText, path2, { isInline: false });
|
|
3727
3728
|
}
|
|
3728
3729
|
}
|
|
3729
3730
|
}
|