lilact 0.24.2 → 0.26.0
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/README.md +1 -1
- package/dist/lilact.development.js +140 -60
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +28 -28
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +28 -28
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +7 -2
- package/docs/index.html +1 -7
- package/docs/static/demos/usedefered.jsx +1 -1
- package/docs/static/lilact.development.js +140 -60
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +28 -28
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +28 -28
- package/docs/variables/accessories.SplitPane.html +8 -3
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/demos/usedefered.jsx +1 -1
- package/examples/lilact.development.js +140 -60
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +28 -28
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +28 -28
- package/package.json +1 -1
- package/src/accessories.jsx +158 -89
- package/src/components.jsx +5 -3
- package/src/jsx.js +1 -1
- package/src/lilact.jsx +1 -1
|
@@ -32,17 +32,22 @@
|
|
|
32
32
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-position">Param: position<a href="#param-position" 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>Controlled splitter position. Normalized value within <code>[min, max]</code>.
|
|
33
33
|
If provided, the component uses this value instead of internal state.</p>
|
|
34
34
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-defaultposition">Param: defaultPosition<a href="#param-defaultposition" 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>Initial splitter position for uncontrolled usage. Defaults to <code>0.5</code>.</p>
|
|
35
|
-
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-min">Param: min<a href="#param-min" 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>Minimum allowed position. Defaults to <code>0.1</code
|
|
36
|
-
|
|
35
|
+
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-min">Param: min<a href="#param-min" 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>Minimum allowed position. Defaults to <code>0.1</code>.
|
|
36
|
+
Can also be a function that will be called with (containerWidth|containerHeight,splitterSize) as arguments</p>
|
|
37
|
+
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-max">Param: max<a href="#param-max" 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>Maximum allowed position. Defaults to <code>0.9</code>.
|
|
38
|
+
Can also be a function that will be called with (containerWidth|containerHeight,splitterSize) as arguments</p>
|
|
37
39
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-splittersize">Param: splitterSize<a href="#param-splittersize" 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>Thickness of the draggable splitter in pixels. Defaults to <code>8</code>.</p>
|
|
40
|
+
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-resizemode">Param: resizeMode<a href="#param-resizemode" 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 behavior on container resize. Its value can be <code>proportional</code>, <code>fixFirst</code> or <code>fixSecond</code>.
|
|
41
|
+
Default is <code>proportional</code>.</p>
|
|
38
42
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-onsizechange">Param: onSizeChange<a href="#param-onsizechange" 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>Callback invoked when the position changes. Receives the new normalized position.</p>
|
|
39
43
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-style">Param: style<a href="#param-style" 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>Optional root container styles.</p>
|
|
40
44
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-classname">Param: className<a href="#param-classname" 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>Optional root container CSS class.</p>
|
|
41
45
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-leftpanestyle">Param: leftPaneStyle<a href="#param-leftpanestyle" 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>Optional styles applied to the left pane (or top pane in vertical mode).</p>
|
|
42
46
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-rightpanestyle">Param: rightPaneStyle<a href="#param-rightpanestyle" 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>Optional styles applied to the right pane (or bottom pane in vertical mode).</p>
|
|
43
47
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-splitterstyle">Param: splitterStyle<a href="#param-splitterstyle" 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>Optional styles applied to the splitter element.</p>
|
|
48
|
+
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-splitterchild">Param: splitterChild<a href="#param-splitterchild" 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>Child to be rendered into the splitter itself.</p>
|
|
44
49
|
</div><div class="tsd-tag-param"><h4 class="tsd-anchor-link" id="param-children">Param: children<a href="#param-children" 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>Children to be rendered into the two pane containers.</p>
|
|
45
50
|
</div><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example">Example<a href="#example" 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><pre><code class="tsx"><span class="hl-3">const</span><span class="hl-1"> </span><span class="hl-7">ref</span><span class="hl-1"> = </span><span class="hl-0">useRef</span><span class="hl-1"><</span><span class="hl-8">SplitPaneHandle</span><span class="hl-1">>(</span><span class="hl-3">null</span><span class="hl-1">);</span><br/><br/><span class="hl-9"><</span><span class="hl-8">SplitPane</span><br/><span class="hl-1"> </span><span class="hl-12">ref</span><span class="hl-1">=</span><span class="hl-3">{</span><span class="hl-5">ref</span><span class="hl-3">}</span><br/><span class="hl-1"> </span><span class="hl-12">mode</span><span class="hl-1">=</span><span class="hl-2">"horizontal"</span><br/><span class="hl-1"> </span><span class="hl-12">defaultPosition</span><span class="hl-1">=</span><span class="hl-3">{</span><span class="hl-14">0.5</span><span class="hl-3">}</span><br/><span class="hl-1"> </span><span class="hl-12">min</span><span class="hl-1">=</span><span class="hl-3">{</span><span class="hl-14">0.1</span><span class="hl-3">}</span><br/><span class="hl-1"> </span><span class="hl-12">max</span><span class="hl-1">=</span><span class="hl-3">{</span><span class="hl-14">0.9</span><span class="hl-3">}</span><br/><span class="hl-1"> </span><span class="hl-12">onSizeChange</span><span class="hl-1">=</span><span class="hl-3">{</span><span class="hl-11">(</span><span class="hl-5">pos</span><span class="hl-11">) </span><span class="hl-3">=></span><span class="hl-11"> </span><span class="hl-5">console</span><span class="hl-11">.</span><span class="hl-0">log</span><span class="hl-11">(</span><span class="hl-5">pos</span><span class="hl-11">)</span><span class="hl-3">}</span><br/><span class="hl-9">></span><br/><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">div</span><span class="hl-1"> </span><span class="hl-9">/></span><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">div</span><span class="hl-1"> </span><span class="hl-9">/></span><br/><span class="hl-9"></</span><span class="hl-8">SplitPane</span><span class="hl-9">></span>
|
|
46
51
|
</code><button type="button">Copy</button></pre>
|
|
47
52
|
|
|
48
|
-
</div></div><aside class="tsd-sources"><ul><li>Defined in accessories.jsx:
|
|
53
|
+
</div></div><aside class="tsd-sources"><ul><li>Defined in accessories.jsx:430</li></ul></aside></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>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>cloneElement | Lilact</title><meta name="description" content="Documentation for Lilact"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lilact</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/components.html">components</a></li><li><a href="" aria-current="page">cloneElement</a></li></ul><h1>Variable cloneElement<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">cloneElement</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">component</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">propsPatch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = cloneComponent</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">component</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">propsPatch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">component</span>: <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-kind-parameter">propsPatch</span>: <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</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-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in components.jsx:
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>cloneElement | Lilact</title><meta name="description" content="Documentation for Lilact"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lilact</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/components.html">components</a></li><li><a href="" aria-current="page">cloneElement</a></li></ul><h1>Variable cloneElement<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">cloneElement</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">component</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">propsPatch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = cloneComponent</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">component</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">propsPatch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">component</span>: <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-kind-parameter">propsPatch</span>: <span class="tsd-signature-type">any</span></span></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">children</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-symbol">{</span> <span class="tsd-kind-property">entity</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">props</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">symbol</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">}</span></h4></li></ul></li></ul></div><aside class="tsd-sources"><ul><li>Defined in components.jsx:1228</li></ul></aside></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>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useDeferredValue } from "lilact";
|
|
2
2
|
|
|
3
3
|
function ExpensiveList({ query }) {
|
|
4
|
-
const items = Array.from({ length:
|
|
4
|
+
const items = Array.from({ length: 2000 }, (_, i) => `${query} item ${i}`);
|
|
5
5
|
return (
|
|
6
6
|
<ul>
|
|
7
7
|
{items.map((it) => (
|
|
@@ -2408,6 +2408,8 @@ var ComponentCore = class {
|
|
|
2408
2408
|
insert_index
|
|
2409
2409
|
loader_args
|
|
2410
2410
|
|
|
2411
|
+
is_svg
|
|
2412
|
+
|
|
2411
2413
|
*/
|
|
2412
2414
|
__publicField(this, "component");
|
|
2413
2415
|
__publicField(this, "props");
|
|
@@ -3039,7 +3041,7 @@ var HTMLComponent = class extends Component {
|
|
|
3039
3041
|
};
|
|
3040
3042
|
var RootComponent = class extends HTMLComponent {
|
|
3041
3043
|
constructor(element, props) {
|
|
3042
|
-
super(":root", props);
|
|
3044
|
+
super(":root:", props);
|
|
3043
3045
|
__publicField(this, "displayName", "Root");
|
|
3044
3046
|
if (typeof this.element === "string") {
|
|
3045
3047
|
element = document.querySelector(element);
|
|
@@ -4968,26 +4970,55 @@ var SplitPane = forwardRef(function SplitPane2({
|
|
|
4968
4970
|
max = 0.9,
|
|
4969
4971
|
splitterSize = 8,
|
|
4970
4972
|
onSizeChange,
|
|
4973
|
+
resizeMode = "proportional",
|
|
4971
4974
|
style,
|
|
4972
4975
|
className,
|
|
4973
4976
|
firstPaneStyle,
|
|
4974
4977
|
secondPaneStyle,
|
|
4975
4978
|
splitterStyle,
|
|
4979
|
+
splitterChild,
|
|
4976
4980
|
children
|
|
4977
4981
|
}, ref) {
|
|
4982
|
+
const containerRef = useRef(null);
|
|
4983
|
+
const sizeRef = useRef({ w: 0, h: 0 });
|
|
4978
4984
|
const initialMode = mode === "vertical" ? "vertical" : "horizontal";
|
|
4979
4985
|
const [internalMode, setInternalMode] = useState(initialMode);
|
|
4980
|
-
const [internalPos, setInternalPos] = useState(clamp(
|
|
4981
|
-
|
|
4986
|
+
const [internalPos, setInternalPos] = useState(clamp(
|
|
4987
|
+
defaultPosition,
|
|
4988
|
+
min,
|
|
4989
|
+
max,
|
|
4990
|
+
mode === "verical" ? sizeRef.current.h : sizeRef.current.w,
|
|
4991
|
+
splitterSize
|
|
4992
|
+
));
|
|
4993
|
+
let posResolved = position2 == null ? internalPos : position2;
|
|
4994
|
+
posResolved = clamp(
|
|
4995
|
+
posResolved,
|
|
4996
|
+
min,
|
|
4997
|
+
max,
|
|
4998
|
+
mode === "verical" ? sizeRef.current.h : sizeRef.current.w,
|
|
4999
|
+
splitterSize
|
|
5000
|
+
);
|
|
4982
5001
|
useEffect(() => {
|
|
4983
5002
|
if (position2 == null) return;
|
|
4984
|
-
setInternalPos(clamp(
|
|
5003
|
+
setInternalPos(clamp(
|
|
5004
|
+
position2,
|
|
5005
|
+
min,
|
|
5006
|
+
max,
|
|
5007
|
+
mode === "verical" ? sizeRef.current.h : sizeRef.current.w,
|
|
5008
|
+
splitterSize
|
|
5009
|
+
));
|
|
4985
5010
|
}, [position2, min, max]);
|
|
4986
5011
|
useEffect(() => {
|
|
4987
5012
|
setInternalMode(mode === "vertical" ? "vertical" : "horizontal");
|
|
4988
5013
|
}, [mode]);
|
|
4989
5014
|
const setPosition = (next2) => {
|
|
4990
|
-
const clamped = clamp(
|
|
5015
|
+
const clamped = clamp(
|
|
5016
|
+
next2,
|
|
5017
|
+
min,
|
|
5018
|
+
max,
|
|
5019
|
+
mode === "verical" ? sizeRef.current.h : sizeRef.current.w,
|
|
5020
|
+
splitterSize
|
|
5021
|
+
);
|
|
4991
5022
|
if (position2 == null) setInternalPos(clamped);
|
|
4992
5023
|
onSizeChange == null ? void 0 : onSizeChange(clamped);
|
|
4993
5024
|
};
|
|
@@ -4997,20 +5028,35 @@ var SplitPane = forwardRef(function SplitPane2({
|
|
|
4997
5028
|
getPosition: () => posResolved,
|
|
4998
5029
|
getMode: () => internalMode
|
|
4999
5030
|
}));
|
|
5000
|
-
const containerRef = useRef(null);
|
|
5001
|
-
const sizeRef = useRef({ w: 0, h: 0 });
|
|
5002
5031
|
useLayoutEffect(() => {
|
|
5003
5032
|
const el = containerRef.current;
|
|
5004
5033
|
if (!el) return;
|
|
5005
5034
|
const ro = new ResizeObserver(() => {
|
|
5035
|
+
var _a;
|
|
5006
5036
|
const rect2 = el.getBoundingClientRect();
|
|
5037
|
+
const o = sizeRef.current;
|
|
5007
5038
|
sizeRef.current = { w: rect2.width, h: rect2.height };
|
|
5039
|
+
if ((_a = ref.current) == null ? void 0 : _a.getPosition) {
|
|
5040
|
+
if (resizeMode === "fixFirst") {
|
|
5041
|
+
if (internalMode === "vertical" && o.h > 0) {
|
|
5042
|
+
setPosition(ref.current.getPosition() * o.h / sizeRef.current.h);
|
|
5043
|
+
} else if (o.w > 0) {
|
|
5044
|
+
setPosition(ref.current.getPosition() * o.w / sizeRef.current.w);
|
|
5045
|
+
}
|
|
5046
|
+
} else if (resizeMode === "fixSecond") {
|
|
5047
|
+
if (internalMode === "vertical" && o.h > 0) {
|
|
5048
|
+
setPosition(1 - (1 - ref.current.getPosition()) * o.h / sizeRef.current.h);
|
|
5049
|
+
} else if (o.w > 0) {
|
|
5050
|
+
setPosition(1 - (1 - ref.current.getPosition()) * o.w / sizeRef.current.w);
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5008
5054
|
});
|
|
5009
5055
|
ro.observe(el);
|
|
5010
5056
|
const rect = el.getBoundingClientRect();
|
|
5011
5057
|
sizeRef.current = { w: rect.width, h: rect.height };
|
|
5012
5058
|
return () => ro.disconnect();
|
|
5013
|
-
}, []);
|
|
5059
|
+
}, [resizeMode, internalMode]);
|
|
5014
5060
|
const startPosRef = useRef(posResolved);
|
|
5015
5061
|
const [dragging, setDragging] = useState(false);
|
|
5016
5062
|
const handleStart = () => {
|
|
@@ -5018,11 +5064,11 @@ var SplitPane = forwardRef(function SplitPane2({
|
|
|
5018
5064
|
startPosRef.current = posResolved;
|
|
5019
5065
|
};
|
|
5020
5066
|
const handleDelta = (x, y, _data) => {
|
|
5021
|
-
const { w, h } = sizeRef.current;
|
|
5067
|
+
const { w: w2, h: h2 } = sizeRef.current;
|
|
5022
5068
|
if (internalMode === "horizontal") {
|
|
5023
|
-
setPosition(startPosRef.current + x / (
|
|
5069
|
+
setPosition(startPosRef.current + x / (w2 || 1));
|
|
5024
5070
|
} else {
|
|
5025
|
-
setPosition(startPosRef.current + y / (
|
|
5071
|
+
setPosition(startPosRef.current + y / (h2 || 1));
|
|
5026
5072
|
}
|
|
5027
5073
|
};
|
|
5028
5074
|
const handleEnd = () => setDragging(false);
|
|
@@ -5030,79 +5076,113 @@ var SplitPane = forwardRef(function SplitPane2({
|
|
|
5030
5076
|
const firstChild = arr[0];
|
|
5031
5077
|
const secondChild = arr[1];
|
|
5032
5078
|
const p = posResolved;
|
|
5033
|
-
const
|
|
5079
|
+
const { w, h } = sizeRef.current;
|
|
5080
|
+
const computedPane1Style = {
|
|
5034
5081
|
position: "absolute",
|
|
5035
5082
|
top: 0,
|
|
5036
|
-
bottom: 0,
|
|
5037
5083
|
left: 0,
|
|
5038
|
-
width: `calc(${p} * (100% - ${splitterSize}px))`,
|
|
5039
|
-
overflow: "auto",
|
|
5040
|
-
...firstPaneStyle || {}
|
|
5041
|
-
} : {
|
|
5042
|
-
position: "absolute",
|
|
5043
|
-
left: 0,
|
|
5044
|
-
right: 0,
|
|
5045
|
-
top: 0,
|
|
5046
|
-
height: `calc(${p} * (100% - ${splitterSize}px))`,
|
|
5047
5084
|
overflow: "auto",
|
|
5048
5085
|
...firstPaneStyle || {}
|
|
5049
5086
|
};
|
|
5050
|
-
const
|
|
5087
|
+
const computedPane2Style = {
|
|
5051
5088
|
position: "absolute",
|
|
5052
|
-
top: 0,
|
|
5053
5089
|
bottom: 0,
|
|
5054
|
-
left: `calc(${p} * (100% - ${splitterSize}px) + ${splitterSize}px)`,
|
|
5055
5090
|
right: 0,
|
|
5056
5091
|
overflow: "auto",
|
|
5057
5092
|
...secondPaneStyle || {}
|
|
5058
|
-
} : {
|
|
5059
|
-
position: "absolute",
|
|
5060
|
-
left: 0,
|
|
5061
|
-
right: 0,
|
|
5062
|
-
top: `calc(${p} * (100% - ${splitterSize}px) + ${splitterSize}px)`,
|
|
5063
|
-
bottom: 0,
|
|
5064
|
-
overflow: "auto",
|
|
5065
|
-
...secondPaneStyle || {}
|
|
5066
5093
|
};
|
|
5067
|
-
const
|
|
5094
|
+
const computedSplitterStyle = {
|
|
5068
5095
|
background: "rgba(0,0,0,0.08)",
|
|
5069
5096
|
boxShadow: "inset 0 0 2px rgba(0,0,0,0.25)",
|
|
5070
|
-
zIndex: 10
|
|
5071
|
-
};
|
|
5072
|
-
const splitterAbsStyle = internalMode === "horizontal" ? {
|
|
5097
|
+
zIndex: 10,
|
|
5073
5098
|
position: "absolute",
|
|
5074
|
-
|
|
5075
|
-
bottom: 0,
|
|
5076
|
-
left: `calc(${p} * (100% - ${splitterSize}px))`,
|
|
5077
|
-
width: splitterSize,
|
|
5078
|
-
height: "100%",
|
|
5079
|
-
cursor: dragging ? "col-resize" : "col-resize",
|
|
5099
|
+
cursor: internalMode === "horizontal" ? "col-resize" : "row-resize",
|
|
5080
5100
|
touchAction: "none",
|
|
5081
5101
|
pointerEvents: "auto",
|
|
5082
|
-
...splitterBase,
|
|
5083
|
-
...splitterStyle || {}
|
|
5084
|
-
} : {
|
|
5085
|
-
position: "absolute",
|
|
5086
|
-
left: 0,
|
|
5087
|
-
right: 0,
|
|
5088
|
-
top: `calc(${p} * (100% - ${splitterSize}px))`,
|
|
5089
|
-
height: splitterSize,
|
|
5090
|
-
width: "100%",
|
|
5091
|
-
cursor: dragging ? "row-resize" : "row-resize",
|
|
5092
|
-
touchAction: "none",
|
|
5093
|
-
pointerEvents: "auto",
|
|
5094
|
-
...splitterBase,
|
|
5095
5102
|
...splitterStyle || {}
|
|
5096
5103
|
};
|
|
5104
|
+
if (internalMode === "horizontal") {
|
|
5105
|
+
computedPane1Style.bottom = 0;
|
|
5106
|
+
computedPane2Style.top = 0;
|
|
5107
|
+
if (resizeMode === "fixFirst") {
|
|
5108
|
+
computedPane1Style.width = p * (w - splitterSize);
|
|
5109
|
+
computedPane2Style.left = computedPane1Style.width + splitterSize;
|
|
5110
|
+
Object.assign(computedSplitterStyle, {
|
|
5111
|
+
top: 0,
|
|
5112
|
+
bottom: 0,
|
|
5113
|
+
left: computedPane1Style.width,
|
|
5114
|
+
width: splitterSize
|
|
5115
|
+
});
|
|
5116
|
+
} else if (resizeMode === "fixSecond") {
|
|
5117
|
+
computedPane2Style.width = (1 - p) * (w - splitterSize);
|
|
5118
|
+
computedPane1Style.right = computedPane2Style.width + splitterSize;
|
|
5119
|
+
Object.assign(computedSplitterStyle, {
|
|
5120
|
+
top: 0,
|
|
5121
|
+
bottom: 0,
|
|
5122
|
+
left: computedPane2Style.width,
|
|
5123
|
+
width: splitterSize
|
|
5124
|
+
});
|
|
5125
|
+
} else {
|
|
5126
|
+
computedPane1Style.width = `calc(${p} * (100% - ${splitterSize}px))`;
|
|
5127
|
+
computedPane2Style.left = `calc(${p} * (100% - ${splitterSize}px) + ${splitterSize}px)`;
|
|
5128
|
+
Object.assign(computedSplitterStyle, {
|
|
5129
|
+
top: 0,
|
|
5130
|
+
bottom: 0,
|
|
5131
|
+
left: `calc(${p} * (100% - ${splitterSize}px))`,
|
|
5132
|
+
width: splitterSize
|
|
5133
|
+
});
|
|
5134
|
+
}
|
|
5135
|
+
} else {
|
|
5136
|
+
computedPane1Style.right = 0;
|
|
5137
|
+
computedPane2Style.left = 0;
|
|
5138
|
+
if (resizeMode === "fixFirst") {
|
|
5139
|
+
computedPane1Style.height = p * (h - splitterSize);
|
|
5140
|
+
computedPane2Style.top = computedPane1Style.height + splitterSize;
|
|
5141
|
+
Object.assign(computedSplitterStyle, {
|
|
5142
|
+
left: 0,
|
|
5143
|
+
right: 0,
|
|
5144
|
+
top: computedPane1Style.height,
|
|
5145
|
+
height: splitterSize
|
|
5146
|
+
});
|
|
5147
|
+
} else if (resizeMode === "fixSecond") {
|
|
5148
|
+
computedPane2Style.height = (1 - p) * (h - splitterSize);
|
|
5149
|
+
computedPane1Style.bottom = computedPane2Style.height + splitterSize;
|
|
5150
|
+
Object.assign(computedSplitterStyle, {
|
|
5151
|
+
left: 0,
|
|
5152
|
+
right: 0,
|
|
5153
|
+
bottom: computedPane2Style.height,
|
|
5154
|
+
height: splitterSize
|
|
5155
|
+
});
|
|
5156
|
+
} else {
|
|
5157
|
+
computedPane1Style.height = `calc(${p} * (100% - ${splitterSize}px))`;
|
|
5158
|
+
computedPane2Style.top = `calc(${p} * (100% - ${splitterSize}px) + ${splitterSize}px)`;
|
|
5159
|
+
Object.assign(computedSplitterStyle, {
|
|
5160
|
+
left: 0,
|
|
5161
|
+
right: 0,
|
|
5162
|
+
top: computedPane1Style.height,
|
|
5163
|
+
height: splitterSize
|
|
5164
|
+
});
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5097
5167
|
return createComponent("div", { "ref": containerRef, "className": className, "style": {
|
|
5098
5168
|
position: "relative",
|
|
5099
5169
|
width: "100%",
|
|
5100
5170
|
height: "100%",
|
|
5101
5171
|
overflow: "hidden",
|
|
5102
5172
|
...style || {}
|
|
5103
|
-
} }, createComponent("div", { "style":
|
|
5173
|
+
} }, createComponent("div", { "style": computedPane1Style }, firstChild), createComponent("div", { "style": computedPane2Style }, secondChild), createComponent(DragHandle, { "onStart": handleStart, "onDelta": handleDelta, "onEnd": handleEnd, "style": computedSplitterStyle, "className": "splitter" }, splitterChild));
|
|
5104
5174
|
});
|
|
5105
|
-
var clamp = (v, min, max
|
|
5175
|
+
var clamp = function(v, min, max, size, splitterSize) {
|
|
5176
|
+
if (typeof min === "function") {
|
|
5177
|
+
if (size > 0) min = min(size, splitterSize);
|
|
5178
|
+
else min = 0;
|
|
5179
|
+
}
|
|
5180
|
+
if (typeof max === "function") {
|
|
5181
|
+
if (size > 0) max = max(size, splitterSize);
|
|
5182
|
+
else max = 1;
|
|
5183
|
+
}
|
|
5184
|
+
return Math.max(min, Math.min(max, v));
|
|
5185
|
+
};
|
|
5106
5186
|
|
|
5107
5187
|
// .tmp/src/vlq.js
|
|
5108
5188
|
var char_to_integer = {};
|
|
@@ -5568,7 +5648,7 @@ var transpilerConfig = {
|
|
|
5568
5648
|
};
|
|
5569
5649
|
var raiseError;
|
|
5570
5650
|
var tab = 0;
|
|
5571
|
-
var TOKENIZE_RE = /(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/
|
|
5651
|
+
var TOKENIZE_RE = /(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;
|
|
5572
5652
|
function lookAhead(f, code2, index2, ...args) {
|
|
5573
5653
|
const b2 = f(code2, index2, ...args);
|
|
5574
5654
|
if (b2) {
|
|
@@ -6433,7 +6513,7 @@ function transpileJSX(jsx2, {
|
|
|
6433
6513
|
|
|
6434
6514
|
// .tmp/src/lilact.jsx
|
|
6435
6515
|
var Lilact2 = {
|
|
6436
|
-
VERSION: "RC.
|
|
6516
|
+
VERSION: "RC.3",
|
|
6437
6517
|
// Configuration
|
|
6438
6518
|
defaultTransitionTimeout: 300,
|
|
6439
6519
|
defaultIsEqual: Object.is,
|