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.
Files changed (35) hide show
  1. package/dist/lilact.development.js +18 -13
  2. package/dist/lilact.development.js.map +2 -2
  3. package/dist/lilact.development.min.js +22 -22
  4. package/dist/lilact.development.min.js.map +2 -2
  5. package/dist/lilact.production.min.js +22 -22
  6. package/docs/classes/accessories.ErrorBoundary.html +8 -8
  7. package/docs/classes/accessories.Suspense.html +7 -7
  8. package/docs/classes/components.Component.html +11 -11
  9. package/docs/classes/components.HTMLComponent.html +11 -11
  10. package/docs/classes/components.RootComponent.html +11 -11
  11. package/docs/functions/components.cloneComponent.html +1 -1
  12. package/docs/functions/components.createComponent.html +1 -1
  13. package/docs/functions/components.createPortal.html +1 -1
  14. package/docs/functions/components.createRoot.html +1 -1
  15. package/docs/functions/components.memo.html +1 -1
  16. package/docs/functions/components.render.html +1 -1
  17. package/docs/functions/run.lazy.html +1 -1
  18. package/docs/functions/run.require.html +1 -1
  19. package/docs/functions/run.run.html +1 -1
  20. package/docs/functions/run.runScripts.html +1 -1
  21. package/docs/static/index.html +0 -2
  22. package/docs/static/lilact.development.js +18 -13
  23. package/docs/static/lilact.development.js.map +2 -2
  24. package/docs/static/lilact.development.min.js +22 -22
  25. package/docs/static/lilact.development.min.js.map +2 -2
  26. package/docs/static/lilact.production.min.js +22 -22
  27. package/docs/variables/components.cloneElement.html +1 -1
  28. package/examples/lilact.development.js +18 -13
  29. package/examples/lilact.development.js.map +2 -2
  30. package/examples/lilact.development.min.js +22 -22
  31. package/examples/lilact.development.min.js.map +2 -2
  32. package/examples/lilact.production.min.js +22 -22
  33. package/package.json +1 -1
  34. package/src/components.jsx +21 -14
  35. 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
- const core = prepareCore(this, item);
2553
- this.outlet[i2] = core;
2554
- if (core[TEXT2] === void 0) {
2555
- core.container = this.element ? this : this.container;
2556
- core.apply(item.props);
2557
- } else {
2558
- if (!core.element) {
2559
- core.element = document.createTextNode(item[TEXT2]);
2560
- core[TEXT2] = item[TEXT2];
2561
- } else if (core[TEXT2] !== item[TEXT2]) {
2562
- core.element.textContent = item[TEXT2];
2563
- core[TEXT2] = item[TEXT2];
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) {