lilact 0.31.12 → 0.31.13
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 +37 -37
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +27 -26
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +27 -26
- 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 +37 -37
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +27 -26
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +27 -26
- package/examples/lilact.development.js +37 -37
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +27 -26
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +27 -26
- package/package.json +1 -1
- package/src/events.jsx +71 -76
- package/src/jsx.js +4 -0
- package/src/run.jsx +2 -3
|
@@ -7,4 +7,4 @@ promise, or thenable resolving to a component or module.</p>
|
|
|
7
7
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Function</span></h4><p>A component that renders the resolved component.</p>
|
|
8
8
|
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>The pending promise or loading error while the component is
|
|
9
9
|
unresolved.</p>
|
|
10
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
10
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:519</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>
|
|
@@ -4,4 +4,4 @@ transpiled Lilact modules.</p>
|
|
|
4
4
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">path</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Module path or URL to load.</p>
|
|
5
5
|
</div></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><p>The module exports, or a Promise for asynchronous modules.</p>
|
|
6
6
|
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the module cannot be loaded or evaluated.</p>
|
|
7
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
7
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:242</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>
|
|
@@ -11,4 +11,4 @@ used for caching, diagnostics, and source mapping.</p>
|
|
|
11
11
|
to reload when they are required.</p>
|
|
12
12
|
</div></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><p>The evaluated module exports.</p>
|
|
13
13
|
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If transpilation or runtime evaluation fails.</p>
|
|
14
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
14
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:350</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>
|
|
@@ -5,4 +5,4 @@ order.</p>
|
|
|
5
5
|
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>A promise that resolves after all scripts finish.</p>
|
|
6
6
|
<div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If an external or inline script cannot be loaded or
|
|
7
7
|
evaluated.</p>
|
|
8
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
8
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in run.jsx:584</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>
|
|
@@ -4385,53 +4385,51 @@ function TransitionGroup({ children }) {
|
|
|
4385
4385
|
// .tmp/src/events.jsx
|
|
4386
4386
|
var events_exports = {};
|
|
4387
4387
|
__export(events_exports, {
|
|
4388
|
+
SyntheticEvent: () => SyntheticEvent,
|
|
4388
4389
|
addWrappedEventListener: () => addWrappedEventListener,
|
|
4389
4390
|
createSyntheticEvent: () => createSyntheticEvent,
|
|
4390
4391
|
releaseSyntheticEvent: () => releaseSyntheticEvent,
|
|
4391
4392
|
wrapListener: () => wrapListener
|
|
4392
4393
|
});
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
nativeEvent
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
isDefaultPrevented()
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
isPropagationStopped() {
|
|
4406
|
-
return propagationStopped;
|
|
4407
|
-
},
|
|
4408
|
-
preventDefault() {
|
|
4394
|
+
var SyntheticEvent = class {
|
|
4395
|
+
constructor(nativeEvent, currentTarget) {
|
|
4396
|
+
this.nativeEvent = nativeEvent;
|
|
4397
|
+
this.type = nativeEvent.type;
|
|
4398
|
+
this.target = nativeEvent.target || nativeEvent.srcElement || null;
|
|
4399
|
+
this.currentTarget = currentTarget || nativeEvent.currentTarget || null;
|
|
4400
|
+
this.timeStamp = nativeEvent.timeStamp ?? Date.now();
|
|
4401
|
+
this.defaultPrevented = !!nativeEvent.defaultPrevented;
|
|
4402
|
+
let propagationStopped = false;
|
|
4403
|
+
this.isDefaultPrevented = () => this.defaultPrevented;
|
|
4404
|
+
this.isPropagationStopped = () => propagationStopped;
|
|
4405
|
+
this.preventDefault = () => {
|
|
4409
4406
|
nativeEvent.preventDefault?.();
|
|
4410
|
-
|
|
4411
|
-
}
|
|
4412
|
-
stopPropagation() {
|
|
4407
|
+
this.defaultPrevented = true;
|
|
4408
|
+
};
|
|
4409
|
+
this.stopPropagation = () => {
|
|
4413
4410
|
nativeEvent.stopPropagation?.();
|
|
4414
4411
|
propagationStopped = true;
|
|
4415
|
-
}
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4412
|
+
};
|
|
4413
|
+
this.persist = () => {
|
|
4414
|
+
};
|
|
4415
|
+
this.isPersistent = () => true;
|
|
4416
|
+
for (let source = nativeEvent; source && source !== Object.prototype; source = Object.getPrototypeOf(source)) {
|
|
4417
|
+
for (const key of Object.getOwnPropertyNames(source)) {
|
|
4418
|
+
if (key === "constructor" || key in this) continue;
|
|
4419
|
+
Object.defineProperty(this, key, {
|
|
4420
|
+
configurable: true,
|
|
4421
|
+
enumerable: true,
|
|
4422
|
+
get() {
|
|
4423
|
+
const value = nativeEvent[key];
|
|
4424
|
+
return typeof value === "function" ? value.bind(nativeEvent) : value;
|
|
4425
|
+
}
|
|
4426
|
+
});
|
|
4427
4427
|
}
|
|
4428
|
-
const value = Reflect.get(nativeEvent, property, nativeEvent);
|
|
4429
|
-
return typeof value === "function" ? value.bind(nativeEvent) : value;
|
|
4430
|
-
},
|
|
4431
|
-
has(target, property) {
|
|
4432
|
-
return Reflect.has(target, property) || property in nativeEvent;
|
|
4433
4428
|
}
|
|
4434
|
-
}
|
|
4429
|
+
}
|
|
4430
|
+
};
|
|
4431
|
+
function createSyntheticEvent(nativeEvent, currentTarget) {
|
|
4432
|
+
return new SyntheticEvent(nativeEvent, currentTarget);
|
|
4435
4433
|
}
|
|
4436
4434
|
function releaseSyntheticEvent(event) {
|
|
4437
4435
|
if (event) event.currentTarget = null;
|
|
@@ -6900,6 +6898,7 @@ function transpileJSX(jsx2, {
|
|
|
6900
6898
|
} = {}) {
|
|
6901
6899
|
transpilerConfig.preprocessorDelimiter ?? (transpilerConfig.preprocessorDelimiter = "\u0294");
|
|
6902
6900
|
transpilerConfig.injectTraceLabels ?? (transpilerConfig.injectTraceLabels = injectTraceLabels);
|
|
6901
|
+
jsx2 += "\n";
|
|
6903
6902
|
const eols = scanEOLs(jsx2);
|
|
6904
6903
|
raiseError = ((eols2, msg, index2) => {
|
|
6905
6904
|
const rc = getRowCol(eols2, index2);
|
|
@@ -7152,6 +7151,7 @@ export {
|
|
|
7152
7151
|
SplitPane,
|
|
7153
7152
|
Suspense,
|
|
7154
7153
|
SwitchTransition,
|
|
7154
|
+
SyntheticEvent,
|
|
7155
7155
|
TEXT2 as TEXT,
|
|
7156
7156
|
Transition,
|
|
7157
7157
|
TransitionGroup,
|