lilact 0.4.0 → 0.5.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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/bin/transpile-dir.js +2 -2
  3. package/bin/transpile.js +5 -5
  4. package/dist/lilact.development.min.js +1 -1
  5. package/dist/lilact.development.min.js.LICENSE.txt +1 -1
  6. package/dist/lilact.development.min.js.map +1 -1
  7. package/dist/lilact.production.min.js +1 -1
  8. package/dist/lilact.production.min.js.map +1 -1
  9. package/docs/assets/navigation.js +1 -1
  10. package/docs/assets/search.js +1 -1
  11. package/docs/classes/accessories.ErrorBoundary.html +8 -8
  12. package/docs/classes/accessories.Suspense.html +7 -7
  13. package/docs/classes/components.Component.html +10 -10
  14. package/docs/classes/components.HTMLComponent.html +10 -10
  15. package/docs/classes/components.RootComponent.html +10 -10
  16. package/docs/functions/components.createComponent.html +1 -1
  17. package/docs/functions/components.createRoot.html +1 -1
  18. package/docs/functions/components.render.html +1 -1
  19. package/docs/functions/jsx.transpileJSX.html +3 -3
  20. package/docs/functions/misc.classNames.html +1 -1
  21. package/docs/functions/misc.deepEqual.html +1 -1
  22. package/docs/functions/misc.getComponentByPointer.html +1 -1
  23. package/docs/functions/misc.isAsync.html +1 -1
  24. package/docs/functions/misc.isClass.html +1 -1
  25. package/docs/functions/misc.isEmpty.html +1 -1
  26. package/docs/functions/misc.isError.html +1 -1
  27. package/docs/functions/misc.isThenable.html +1 -1
  28. package/docs/functions/misc.shallowEqual.html +1 -1
  29. package/docs/functions/misc.toBool.html +1 -1
  30. package/docs/functions/run.lazy.html +1 -1
  31. package/docs/functions/run.require.html +1 -1
  32. package/docs/functions/run.runScripts.html +1 -1
  33. package/docs/functions/transition.Transition.html +3 -3
  34. package/docs/index.html +1 -1
  35. package/docs/modules/misc.html +1 -1
  36. package/docs/modules/run.html +1 -1
  37. package/docs/static/demos/error-1.jsx +10 -0
  38. package/docs/static/demos/error-2.jsx +7 -0
  39. package/docs/static/demos/error-3.jsx +9 -0
  40. package/docs/static/index.html +7 -4
  41. package/docs/static/lilact.development.min.js +1 -1
  42. package/docs/static/lilact.production.min.js +1 -1
  43. package/docs/variables/misc.required_scripts.html +1 -0
  44. package/package.json +1 -1
  45. package/root/demos/error-1.jsx +10 -0
  46. package/root/demos/error-2.jsx +7 -0
  47. package/root/demos/error-3.jsx +9 -0
  48. package/root/index.html +7 -4
  49. package/root/lilact.development.min.js +1 -1
  50. package/root/lilact.production.min.js +1 -1
  51. package/src/components.jsx +14 -12
  52. package/src/errors.jsx +217 -0
  53. package/src/events.jsx +4 -14
  54. package/src/jsx.js +30 -42
  55. package/src/lilact.jsx +13 -5
  56. package/src/misc.jsx +2 -59
  57. package/src/run.jsx +22 -96
  58. package/docs/functions/run.traceError.html +0 -6
  59. /package/docs/static/demos/{boundary.jsx → error-boundary.jsx} +0 -0
  60. /package/root/demos/{boundary.jsx → error-boundary.jsx} +0 -0
package/README.md CHANGED
@@ -42,7 +42,7 @@ To ease working, it already includes a `HashRouter`, `CSSTransition`, `ErrorBoun
42
42
  that can be paused and resumed at will. `Lilact`'s `Suspense` even has a few more features
43
43
  than the standard API.
44
44
 
45
- You can see all the methods available in the documentation. And there is a list of
45
+ You can see all the available methods in the documentation. And there is a list of
46
46
  demos that can all be seen alongside their code at [Lilact Demo Examples](./static/index.html).
47
47
  Just note that the modules are separated in the documentation to improve the doc
48
48
  structure, and in practice all the methods and members are accessible via the `Lilact` object
@@ -16,7 +16,7 @@ function usage() {
16
16
  " --outDir <dir> Output directory for transpiled files (required)\n\n" +
17
17
  " --isDebug Add debug labels \n" +
18
18
  " --discardComments Discard comments \n" +
19
- " --injectTraceLabels Inject trace labels needed by Lilact only \n" +
19
+ // " --injectTraceLabels Inject trace labels needed by Lilact only \n" +
20
20
  " --factory <func> The factory function (default: createComponent)\n" +
21
21
  " -h, --help Show help\n"
22
22
  );
@@ -100,7 +100,7 @@ for (const inputPath of files) {
100
100
 
101
101
  if(isDebug) args.push("--isDebug");
102
102
  if(discardComments) args.push("--discardComments");
103
- if(injectTraceLabels) args.push("--injectTraceLabels");
103
+ // if(injectTraceLabels) args.push("--injectTraceLabels");
104
104
 
105
105
  const res = spawnSync(
106
106
  process.execPath,
package/bin/transpile.js CHANGED
@@ -45,7 +45,7 @@ function usage()
45
45
  " --out <filepath> Output filepath for transpiled files. Multiple inputs will be concatenated. If not given, each file will have a separate output with an additinoal .transpiled.js in its name.\n" +
46
46
  " --isDebug Add debug labels \n\n" +
47
47
  " --discardComments Discard comments \n\n" +
48
- " --injectTraceLabels Inject trace labels needed by Lilact only \n\n" +
48
+ // " --injectTraceLabels Inject trace labels needed by Lilact only \n\n" +
49
49
  " --factory <func> The factory function (default: createComponent)\n\n" +
50
50
  " -h, --help Show help\n\n" +
51
51
  "Example:\n" +
@@ -82,9 +82,9 @@ for (let i = 0; i < argv.length; i++) {
82
82
  else if (a === "--discardComments") {
83
83
  discardComments = true;
84
84
  }
85
- else if (a === "--injectTraceLabels") {
86
- injectTraceLabels = true;
87
- }
85
+ // else if (a === "--injectTraceLabels") {
86
+ // injectTraceLabels = true;
87
+ // }
88
88
  else if (a === "--factory") {
89
89
  factory = argv[++i];
90
90
  }
@@ -117,7 +117,7 @@ for (const entry of entries) {
117
117
  appendSourcemap: globalThis.DEBUG,
118
118
  factory,
119
119
  //mappings: [],
120
- injectTraceLabels: injectTraceLabels,
120
+ //injectTraceLabels: injectTraceLabels,
121
121
  discardComments: discardComments
122
122
  }
123
123
  );