lilact 0.28.0 → 0.28.1
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/bin/bundle.cjs +2 -2
- package/dist/lilact.development.js +300 -274
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +35 -33
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +35 -33
- package/docs/classes/accessories.ErrorBoundary.html +6 -6
- package/docs/classes/accessories.Suspense.html +3 -3
- package/docs/functions/accessories.DragHandle.html +1 -1
- package/docs/functions/accessories.Spinner.html +1 -1
- package/docs/functions/errors.scanBlockLabels.html +1 -1
- package/docs/functions/timers.animationFramePromise.html +3 -3
- package/docs/functions/timers.clearInterval.html +5 -3
- package/docs/functions/timers.clearTimeout.html +5 -3
- package/docs/functions/timers.grabTimers.html +4 -3
- package/docs/functions/timers.pauseTimers.html +5 -2
- package/docs/functions/timers.releaseTimers.html +4 -2
- package/docs/functions/timers.resetTimers.html +4 -2
- package/docs/functions/timers.resumeTimers.html +4 -2
- package/docs/functions/timers.setInterval.html +8 -6
- package/docs/functions/timers.setTimeout.html +8 -6
- package/docs/functions/timers.timeoutPromise.html +8 -149
- package/docs/static/demos/error-nested-1.jsx +11 -0
- package/docs/static/demos/error-nested-2.jsx +12 -0
- package/docs/static/demos/error-nested-3.jsx +12 -0
- package/docs/static/demos/error-nested-4.jsx +12 -0
- package/docs/static/demos/error-nested-5.jsx +12 -0
- package/docs/static/index.html +44 -38
- package/docs/static/lilact.development.js +300 -274
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +35 -33
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +35 -33
- package/docs/variables/accessories.SplitPane.html +1 -1
- package/docs/variables/errors.blocks_info.html +1 -1
- package/docs/variables/errors.error.html +1 -1
- package/examples/demos/error-nested-1.jsx +11 -0
- package/examples/demos/error-nested-2.jsx +12 -0
- package/examples/demos/error-nested-3.jsx +12 -0
- package/examples/demos/error-nested-4.jsx +12 -0
- package/examples/demos/error-nested-5.jsx +12 -0
- package/examples/index.html +44 -38
- package/examples/lilact.development.js +300 -274
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +35 -33
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +35 -33
- package/package.json +1 -1
- package/scripts/build.mjs +1 -1
- package/src/accessories.jsx +1 -4
- package/src/components.jsx +4 -4
- package/src/errors.jsx +5 -3
- package/src/lilact.jsx +4 -4
- package/src/timers.jsx +377 -207
package/package.json
CHANGED
package/scripts/build.mjs
CHANGED
package/src/accessories.jsx
CHANGED
|
@@ -32,10 +32,7 @@
|
|
|
32
32
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState, useImperativeHandle, useCallback } from "./hooks.jsx";
|
|
33
33
|
import { Children, forwardRef, isThenable } from "./misc.jsx";
|
|
34
34
|
|
|
35
|
-
//import {setTimeout, clearTimeout} from "./timers.jsx"
|
|
36
35
|
import {Component} from "./components.jsx"
|
|
37
|
-
import {emotion} from "./lilact.jsx"
|
|
38
|
-
const {css,cx} = emotion;
|
|
39
36
|
|
|
40
37
|
/**
|
|
41
38
|
* A CSS-only loading spinner component.
|
|
@@ -375,7 +372,7 @@ export function DragHandle({
|
|
|
375
372
|
role="button"
|
|
376
373
|
tabIndex={0}
|
|
377
374
|
style={{ ...style, touchAction: "none" }}
|
|
378
|
-
className={
|
|
375
|
+
className={`${className} ${isDragging?"dragging":""}`}
|
|
379
376
|
onPointerDown={onPointerDown}
|
|
380
377
|
onPointerMove={onPointerMove}
|
|
381
378
|
onPointerUp={onPointerUp}
|
package/src/components.jsx
CHANGED
|
@@ -420,10 +420,10 @@ if(DEBUG) {
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
else if(this.entity==="select") {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
423
|
+
if(typeof(patch.value)==='string') {
|
|
424
|
+
if(patch.value!==this.element.value) {
|
|
425
|
+
this.element.value=patch.value;
|
|
426
|
+
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
else if(this.entity==="option") {
|
package/src/errors.jsx
CHANGED
|
@@ -301,8 +301,9 @@ export function globalErrorHandler(eventOrError) {
|
|
|
301
301
|
);
|
|
302
302
|
|
|
303
303
|
const className = css(`
|
|
304
|
-
background:
|
|
305
|
-
|
|
304
|
+
background: #fff;
|
|
305
|
+
text-shadow: 0 0 3px #fff;
|
|
306
|
+
-backdrop-filter: blur(20px);
|
|
306
307
|
border: 1px solid rgba(255,255,255,.25);
|
|
307
308
|
border-radius: 5px;
|
|
308
309
|
box-shadow: 0 10px 30px rgba(0,0,0,.35);
|
|
@@ -315,10 +316,11 @@ export function globalErrorHandler(eventOrError) {
|
|
|
315
316
|
}
|
|
316
317
|
|
|
317
318
|
code {
|
|
318
|
-
|
|
319
|
+
background: #0001;
|
|
319
320
|
overflow: auto;
|
|
320
321
|
padding: 10px;
|
|
321
322
|
display: block;
|
|
323
|
+
border-radius: 3px;
|
|
322
324
|
}
|
|
323
325
|
`);
|
|
324
326
|
|
package/src/lilact.jsx
CHANGED
|
@@ -126,10 +126,10 @@ export const Lilact =
|
|
|
126
126
|
redux,
|
|
127
127
|
emotion,
|
|
128
128
|
|
|
129
|
-
_setTimeout:
|
|
130
|
-
_setInterval:
|
|
131
|
-
_clearTimeout:
|
|
132
|
-
_clearInterval:
|
|
129
|
+
_setTimeout: globalThis.setTimeout.bind(globalThis),
|
|
130
|
+
_setInterval: globalThis.setInterval.bind(globalThis),
|
|
131
|
+
_clearTimeout: globalThis.clearTimeout.bind(globalThis),
|
|
132
|
+
_clearInterval: globalThis.clearInterval.bind(globalThis),
|
|
133
133
|
|
|
134
134
|
}
|
|
135
135
|
|