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.
- package/dist/lilact.development.js +413 -308
- package/dist/lilact.development.js.map +4 -4
- package/dist/lilact.development.min.js +59 -59
- package/dist/lilact.development.min.js.map +4 -4
- package/dist/lilact.production.min.js +58 -58
- package/docs/classes/accessories.ErrorBoundary.html +3 -3
- package/docs/classes/accessories.Suspense.html +2 -2
- package/docs/classes/components.Component.html +3 -3
- package/docs/classes/components.HTMLComponent.html +4 -4
- package/docs/classes/components.RootComponent.html +5 -5
- 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/hooks.startTransition.html +1 -1
- package/docs/functions/hooks.useActionState.html +1 -1
- package/docs/functions/hooks.useDebugValue.html +1 -1
- package/docs/functions/hooks.useDeferredValue.html +1 -1
- package/docs/functions/hooks.useEffect.html +1 -1
- package/docs/functions/hooks.useId.html +1 -1
- package/docs/functions/hooks.useImperativeHandle.html +1 -1
- package/docs/functions/hooks.useInsertionEffect.html +1 -1
- package/docs/functions/hooks.useLayoutEffect.html +1 -1
- package/docs/functions/hooks.useLocalStorage.html +1 -1
- package/docs/functions/hooks.useMemo.html +1 -1
- package/docs/functions/hooks.useReducer.html +1 -1
- package/docs/functions/hooks.useRef.html +1 -1
- package/docs/functions/hooks.useTransition.html +1 -1
- package/docs/functions/misc.Fragment.html +2 -2
- package/docs/functions/misc.Portal.html +2 -2
- package/docs/functions/misc.deepEqual.html +1 -1
- package/docs/functions/misc.findDOMNode.html +1 -1
- package/docs/functions/misc.forwardRef.html +1 -1
- package/docs/functions/misc.getComponentByPointer.html +1 -1
- package/docs/functions/misc.isAsync.html +1 -1
- package/docs/functions/misc.isClass.html +1 -1
- package/docs/functions/misc.isEmpty.html +1 -1
- package/docs/functions/misc.isError.html +1 -1
- package/docs/functions/misc.isThenable.html +1 -1
- package/docs/functions/misc.shallowEqual.html +1 -1
- package/docs/functions/misc.toBool.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/functions/timers.animationFramePromise.html +1 -1
- package/docs/functions/timers.clearInterval.html +1 -1
- package/docs/functions/timers.grabTimers.html +1 -1
- package/docs/functions/timers.releaseTimers.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +14 -14
- package/docs/static/index.html +1 -1
- package/docs/static/lilact.development.js +413 -308
- package/docs/static/lilact.development.js.map +4 -4
- package/docs/static/lilact.development.min.js +59 -59
- package/docs/static/lilact.development.min.js.map +4 -4
- package/docs/static/lilact.production.min.js +58 -58
- package/docs/variables/components.cloneElement.html +1 -1
- package/docs/variables/misc.Children.html +10 -10
- package/docs/variables/misc.isValidElement.html +1 -1
- package/docs/variables/run.required_scripts.html +1 -1
- package/examples/index.html +1 -1
- package/examples/lilact.development.js +413 -308
- package/examples/lilact.development.js.map +4 -4
- package/examples/lilact.development.min.js +59 -59
- package/examples/lilact.development.min.js.map +4 -4
- package/examples/lilact.production.min.js +58 -58
- package/package.json +1 -1
- package/src/accessories.jsx +1 -1
- package/src/components.jsx +27 -16
- package/src/errors.jsx +310 -310
- package/src/expscan.js +2 -2
- package/src/hooks.jsx +52 -56
- package/src/lilact.jsx +7 -1
- package/src/misc.jsx +46 -18
- package/src/run.jsx +405 -290
- package/src/timers.jsx +2 -0
- 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
|
/**
|
package/src/transition.jsx
CHANGED
|
@@ -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
|
|