lilact 0.28.4 → 0.28.5
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 +18 -13
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +22 -22
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +22 -22
- 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/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/index.html +0 -2
- package/docs/static/lilact.development.js +18 -13
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +22 -22
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +22 -22
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/lilact.development.js +18 -13
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +22 -22
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +22 -22
- package/package.json +1 -1
- package/src/components.jsx +21 -14
- package/src/run.jsx +1 -0
|
@@ -2549,19 +2549,23 @@ var ComponentCore = class {
|
|
|
2549
2549
|
this.outlet.splice(i2, 1, ...item);
|
|
2550
2550
|
i2--;
|
|
2551
2551
|
} else {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
core
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
core.element
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
core
|
|
2563
|
-
|
|
2552
|
+
try {
|
|
2553
|
+
const core = prepareCore(this, item);
|
|
2554
|
+
this.outlet[i2] = core;
|
|
2555
|
+
if (core[TEXT2] === void 0) {
|
|
2556
|
+
core.container = this.element ? this : this.container;
|
|
2557
|
+
core.apply(item.props);
|
|
2558
|
+
} else {
|
|
2559
|
+
if (!core.element) {
|
|
2560
|
+
core.element = document.createTextNode(item[TEXT2]);
|
|
2561
|
+
core[TEXT2] = item[TEXT2];
|
|
2562
|
+
} else if (core[TEXT2] !== item[TEXT2]) {
|
|
2563
|
+
core.element.textContent = item[TEXT2];
|
|
2564
|
+
core[TEXT2] = item[TEXT2];
|
|
2565
|
+
}
|
|
2564
2566
|
}
|
|
2567
|
+
} catch (e) {
|
|
2568
|
+
renderErrorHandler(this, e);
|
|
2565
2569
|
}
|
|
2566
2570
|
}
|
|
2567
2571
|
}
|
|
@@ -3698,7 +3702,8 @@ function createModule(path2, {
|
|
|
3698
3702
|
}
|
|
3699
3703
|
function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, {
|
|
3700
3704
|
isInline = true,
|
|
3701
|
-
isModule = true
|
|
3705
|
+
isModule = true,
|
|
3706
|
+
hotReload = true
|
|
3702
3707
|
} = {}) {
|
|
3703
3708
|
let module = required_scripts[path];
|
|
3704
3709
|
if (!module) {
|