lilact 0.27.1 → 0.27.3

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 (79) hide show
  1. package/dist/lilact.development.js +413 -308
  2. package/dist/lilact.development.js.map +4 -4
  3. package/dist/lilact.development.min.js +59 -59
  4. package/dist/lilact.development.min.js.map +4 -4
  5. package/dist/lilact.production.min.js +58 -58
  6. package/docs/classes/accessories.ErrorBoundary.html +3 -3
  7. package/docs/classes/accessories.Suspense.html +2 -2
  8. package/docs/classes/components.Component.html +3 -3
  9. package/docs/classes/components.HTMLComponent.html +4 -4
  10. package/docs/classes/components.RootComponent.html +5 -5
  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/hooks.startTransition.html +1 -1
  18. package/docs/functions/hooks.useActionState.html +1 -1
  19. package/docs/functions/hooks.useDebugValue.html +1 -1
  20. package/docs/functions/hooks.useDeferredValue.html +1 -1
  21. package/docs/functions/hooks.useEffect.html +1 -1
  22. package/docs/functions/hooks.useId.html +1 -1
  23. package/docs/functions/hooks.useImperativeHandle.html +1 -1
  24. package/docs/functions/hooks.useInsertionEffect.html +1 -1
  25. package/docs/functions/hooks.useLayoutEffect.html +1 -1
  26. package/docs/functions/hooks.useLocalStorage.html +1 -1
  27. package/docs/functions/hooks.useMemo.html +1 -1
  28. package/docs/functions/hooks.useReducer.html +1 -1
  29. package/docs/functions/hooks.useRef.html +1 -1
  30. package/docs/functions/hooks.useTransition.html +1 -1
  31. package/docs/functions/misc.Fragment.html +2 -2
  32. package/docs/functions/misc.Portal.html +2 -2
  33. package/docs/functions/misc.deepEqual.html +1 -1
  34. package/docs/functions/misc.findDOMNode.html +1 -1
  35. package/docs/functions/misc.forwardRef.html +1 -1
  36. package/docs/functions/misc.getComponentByPointer.html +1 -1
  37. package/docs/functions/misc.isAsync.html +1 -1
  38. package/docs/functions/misc.isClass.html +1 -1
  39. package/docs/functions/misc.isEmpty.html +1 -1
  40. package/docs/functions/misc.isError.html +1 -1
  41. package/docs/functions/misc.isThenable.html +1 -1
  42. package/docs/functions/misc.shallowEqual.html +1 -1
  43. package/docs/functions/misc.toBool.html +1 -1
  44. package/docs/functions/run.lazy.html +1 -1
  45. package/docs/functions/run.require.html +1 -1
  46. package/docs/functions/run.run.html +1 -1
  47. package/docs/functions/run.runScripts.html +1 -1
  48. package/docs/functions/timers.animationFramePromise.html +1 -1
  49. package/docs/functions/timers.clearInterval.html +1 -1
  50. package/docs/functions/timers.grabTimers.html +1 -1
  51. package/docs/functions/timers.releaseTimers.html +1 -1
  52. package/docs/functions/timers.timeoutPromise.html +14 -14
  53. package/docs/static/index.html +1 -1
  54. package/docs/static/lilact.development.js +413 -308
  55. package/docs/static/lilact.development.js.map +4 -4
  56. package/docs/static/lilact.development.min.js +59 -59
  57. package/docs/static/lilact.development.min.js.map +4 -4
  58. package/docs/static/lilact.production.min.js +58 -58
  59. package/docs/variables/components.cloneElement.html +1 -1
  60. package/docs/variables/misc.Children.html +10 -10
  61. package/docs/variables/misc.isValidElement.html +1 -1
  62. package/docs/variables/run.required_scripts.html +1 -1
  63. package/examples/index.html +1 -1
  64. package/examples/lilact.development.js +413 -308
  65. package/examples/lilact.development.js.map +4 -4
  66. package/examples/lilact.development.min.js +59 -59
  67. package/examples/lilact.development.min.js.map +4 -4
  68. package/examples/lilact.production.min.js +58 -58
  69. package/package.json +1 -1
  70. package/src/accessories.jsx +1 -1
  71. package/src/components.jsx +27 -16
  72. package/src/errors.jsx +310 -310
  73. package/src/expscan.js +2 -2
  74. package/src/hooks.jsx +52 -56
  75. package/src/lilact.jsx +7 -1
  76. package/src/misc.jsx +46 -18
  77. package/src/run.jsx +405 -290
  78. package/src/timers.jsx +2 -0
  79. package/src/transition.jsx +1 -1
package/src/timers.jsx CHANGED
@@ -230,6 +230,7 @@ export function setInterval(callback, interval, ...args)
230
230
  export function clearTimeout(id)
231
231
  {
232
232
  if(all_timers[id]) all_timers[id][CLEARED] = true;
233
+ else _clearTimeout(id);
233
234
  }
234
235
 
235
236
  /**
@@ -240,6 +241,7 @@ export function clearTimeout(id)
240
241
  export function clearInterval(id)
241
242
  {
242
243
  if(all_timers[id]) all_timers[id][CLEARED] = true;
244
+ else _clearInterval(id);
243
245
  }
244
246
 
245
247
  /**
@@ -29,7 +29,7 @@
29
29
  */
30
30
  import Lilact from './lilact.jsx';
31
31
 
32
- import { setTimeout, clearTimeout } from "./timers.jsx"
32
+ //import { setTimeout, clearTimeout } from "./timers.jsx"
33
33
  import { Children } from "./misc.jsx"
34
34
  import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "./hooks.jsx"
35
35