lilact 0.26.5 → 0.26.7
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/bin/bundle.cjs +10 -27
- package/dist/lilact.development.js +1 -1
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +1 -1
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +1 -1
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +1 -1
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +1 -1
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +1 -1
- package/examples/lilact.development.js +1 -1
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +1 -1
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +1 -1
- package/package.json +1 -1
- package/src/expscan.js +1 -1
- package/src/run.jsx +0 -1
|
@@ -92,7 +92,7 @@ var er=Object.defineProperty;var xo=(e,t,n)=>t in e?er(e,t,{enumerable:!0,config
|
|
|
92
92
|
`||y[g]==="C";)g++;if(y[g]==="a"){for(g++;y[g]===" "||y[g]===`
|
|
93
93
|
`||y[g]==="C";)g++;u[d[g]]=E,g++}else u[E]=E}continue}case"*":{r++,o(),r++,o(),p.push(e.out[r]);continue}case"S":for(r=a.index+1;r<a.index+l.length;r++)e.out[r]=null;let h="";for(let y of m)h+=`const ${y} = require(${f},{requirer:module});
|
|
94
94
|
`;for(let y of p)h+=`const ${y} = require(${f},{requirer:module, checkExport: ['default']}).default;
|
|
95
|
-
`;if(Object.keys(u).length){let y="{",d="[";for(let g in u)y.length>1&&(y+=",",d+=","),g===u[g]?(y+=g,d+=`'${g}'`):(y+=g+":"+u[g],d+=`'${u[g]}'`);y+="}",d+="]",h+=`const ${y} = require(${f}, {checkExport: ${d},requirer:module})`}else h+=`require(${f},{requirer:module})
|
|
95
|
+
`;if(Object.keys(u).length){let y="{",d="[";for(let g in u)y.length>1&&(y+=",",d+=","),g===u[g]?(y+=g,d+=`'${g}'`):(y+=g+":"+u[g],d+=`'${u[g]}'`);y+="}",d+="]",h+=`const ${y} = require(${f}, {checkExport: ${d},requirer:module})`}else h.length===0&&(h+=`require(${f},{requirer:module})`);e.out[a.index].cjs=h;continue}}else{let l=a[0];if(e.out.splice(a.index,1,{type:"export",begin:c[a.index],end:c[a.index+1]}),r=a.index-1,o(-1),n[r]===".")continue;switch(r=a.index+1,o(),n[r]){case"d":e.out[r]=null,e.out[a.index].cjs="module.exports.default =";continue;case"V":{let u=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[r]=null,r++,o(),e.out[a.index].cjs=`${u} ${p} = module.exports.${p} `;continue}case"F":{let u=e.out[r];e.out[r]=null,r++,o();let p=e.out[r];e.out[a.index].cjs=`module.exports.${p} = ${u} `;continue}case"*":e.out[r]=null,r++,o(),e.out[r]=null,r++,o();let f=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`Object.assign(module.exports, require(${f},{requirer:module}))`;continue;case"I":e.out[a.index].cjs=`module.exports.${e.out[r]} = `;continue;case"J":{let u={},p=Fn(e.out[r].out,qn.bind(null,{as:"a",",":",",default:"I"}));if(Zt.lastIndex=-1,!Zt.test(p))throw"incorrect export properties definition.";let m=e.out[r].out;for(let d=1;d<p.length-1;d++){for(;p[d]===" "||p[d]===`
|
|
96
96
|
`||p[d]==="C"||p[d]===",";)d++;let g=m[d];for(d++;p[d]===" "||p[d]===`
|
|
97
97
|
`||p[d]==="C";)d++;if(p[d]==="a"){for(d++;p[d]===" "||p[d]===`
|
|
98
98
|
`||p[d]==="C";)d++;u[m[d]]=g,d++}else u[g]=g}let h="{",y="{";for(let d in u)h.length>1&&(h+=",",y+=","),d===u[d]?(h+=d,y+=d):(h+=d+":"+u[d],y+=u[d]);if(h+="}",y+="}",e.out[r]=null,r++,o(),e.out[r]==="from"){e.out[r]=null,r++,o();let d=t.substring(e.out[r].begin,e.out[r].end);e.out[r]=null,e.out[a.index].cjs=`{ const ${h} = require(${d},{requirer:module}); Object.assign(module.exports, ${y}); }`}else e.out[a.index].cjs=`Object.assign(module.exports, ${h})`;continue}}}}var D={setBlockLabels:!0,enableLabelStack:!1,injectLabels:!0,preprocessorDelimiter:"\u0294"},ge,xa=0,lo=/(\{|\}|\[|\]|\(|\)|\.\.\.|=>|\?\?=|\?\?|\?\.|===|!==|>>>|<<=|>>=|>>>=|\*\*=|\*\*|&&=|\|\|=|<=|>=|==|!=|<<|>>|\+\+|--|\+=|-=|\*=|\/=|%=|&=|\^=|\|=|=|\+|-|\*|\/|%|&|\^|\||!|~|\?|:|<|>|=|\.|,|;|\n+|[\s^\n]+)/g;function M(e,t,n,...r){let o=e(t,n,...r);return o?[o.end,o]:[n]}function Ns(code,index,container){let i=index,dels=`;=,([{}!^~&|:?*%-+/<>${D.preprocessorDelimiter}`;for(;--i>0;)if(" \r".indexOf(code[i])===-1){if(code[i]===`
|
|
@@ -10,4 +10,4 @@ would work, but it will not be wired correctly to the <code>Lilact</code> runtim
|
|
|
10
10
|
The promise must resolve to a module whose module.exports.default is a Lilact component
|
|
11
11
|
or otherwise it will be whatever the module.exports is set to.</p>
|
|
12
12
|
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">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> <a href="../classes/components.HTMLComponent.html" class="tsd-signature-type tsd-kind-class">HTMLComponent</a></h4><p>A Lilact component that should be rendered inside a <code>Suspense</code> boundary.</p>
|
|
13
|
-
<aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
13
|
+
<aside class="tsd-sources"><ul><li>Defined in run.jsx:247</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>
|
|
@@ -6,4 +6,4 @@ id and run its contents.</p>
|
|
|
6
6
|
</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">any</span></span><div class="tsd-comment tsd-typography"><p>The path to the required file. Must be either absolute path or relative to the current
|
|
7
7
|
module or document’s URL (the page/location that initiated the request).</p>
|
|
8
8
|
</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>An array representation of the children.</p>
|
|
9
|
-
<aside class="tsd-sources"><ul><li>Defined in run.jsx:
|
|
9
|
+
<aside class="tsd-sources"><ul><li>Defined in run.jsx:150</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 @@ 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:306</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>
|
|
@@ -5619,7 +5619,7 @@ function processImportExports(node3, jsx2) {
|
|
|
5619
5619
|
o += "}";
|
|
5620
5620
|
ls += "]";
|
|
5621
5621
|
cjs += `const ${o} = require(${src}, {checkExport: ${ls},requirer:module})`;
|
|
5622
|
-
} else {
|
|
5622
|
+
} else if (cjs.length === 0) {
|
|
5623
5623
|
cjs += `require(${src},{requirer:module})`;
|
|
5624
5624
|
}
|
|
5625
5625
|
node3.out[m.index].cjs = cjs;
|