@ixfx/ui 0.43.0 → 0.44.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.
- package/bundle/index.d.ts +22 -18
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +1 -1
- package/bundle/index.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/rx/browser-resize.d.ts +6 -1
- package/dist/src/rx/browser-resize.d.ts.map +1 -1
- package/dist/src/rx/browser-resize.js +2 -1
- package/package.json +7 -7
package/dist/src/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as
|
1
|
+
export * as RxUi from './rx/index.js';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC"}
|
package/dist/src/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * as
|
1
|
+
export * as RxUi from './rx/index.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Interval } from "@ixfx/core";
|
2
|
+
import * as Rx from "@ixfx/rx";
|
2
3
|
/**
|
3
4
|
* Observe when element resizes. Specify `interval` to debounce, uses 100ms by default.
|
4
5
|
*
|
@@ -12,10 +13,14 @@ import type { Interval } from "@ixfx/core";
|
|
12
13
|
* @param interval Tiemout before event gets triggered
|
13
14
|
* @returns
|
14
15
|
*/
|
15
|
-
export declare const browserResizeObservable: (elem: Readonly<Element>, interval?: Interval) =>
|
16
|
+
export declare const browserResizeObservable: (elem: Readonly<Element>, interval?: Interval) => Rx.Reactive<ResizeObserverEntry[]>;
|
16
17
|
/**
|
17
18
|
* Returns an Reactive for window resize. Default 100ms debounce.
|
18
19
|
* @param elapsed
|
19
20
|
* @returns
|
20
21
|
*/
|
22
|
+
export declare const windowResize: (elapsed?: Interval) => Rx.Reactive<{
|
23
|
+
innerWidth: number;
|
24
|
+
innerHeight: number;
|
25
|
+
}>;
|
21
26
|
//# sourceMappingURL=browser-resize.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"browser-resize.d.ts","sourceRoot":"","sources":["../../../src/rx/browser-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"browser-resize.d.ts","sourceRoot":"","sources":["../../../src/rx/browser-resize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,QAAQ,CAAC,OAAO,CAAC,EACvB,WAAW,QAAQ,uCAqBpB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,QAAQ;gBAA4B,MAAM;iBAAe,MAAM;EAAoG,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { observable } from "@ixfx/rx/from";
|
2
2
|
import { debounce } from "@ixfx/rx/op/debounce";
|
3
|
+
import * as Rx from "@ixfx/rx";
|
3
4
|
/**
|
4
5
|
* Observe when element resizes. Specify `interval` to debounce, uses 100ms by default.
|
5
6
|
*
|
@@ -37,4 +38,4 @@ export const browserResizeObservable = (elem, interval) => {
|
|
37
38
|
* @param elapsed
|
38
39
|
* @returns
|
39
40
|
*/
|
40
|
-
|
41
|
+
export const windowResize = (elapsed) => debounce({ elapsed: elapsed ?? 100 })(Rx.From.event(window, `resize`, { innerWidth: 0, innerHeight: 0 }));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ixfx/ui",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.44.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"sideEffects": false,
|
@@ -9,13 +9,13 @@
|
|
9
9
|
"bundle/"
|
10
10
|
],
|
11
11
|
"dependencies": {
|
12
|
-
"@ixfx/core": "^0.
|
13
|
-
"@ixfx/
|
14
|
-
"@ixfx/
|
15
|
-
"@ixfx/
|
16
|
-
"@ixfx/rx": "^0.
|
12
|
+
"@ixfx/core": "^0.47.0",
|
13
|
+
"@ixfx/collections": "^0.46.2",
|
14
|
+
"@ixfx/dom": "^0.43.0",
|
15
|
+
"@ixfx/geometry": "^0.42.1",
|
16
|
+
"@ixfx/rx": "^0.43.1",
|
17
17
|
"@ixfx/numbers": "^0.42.1",
|
18
|
-
"@ixfx/visual": "^0.
|
18
|
+
"@ixfx/visual": "^0.46.0"
|
19
19
|
},
|
20
20
|
"exports": {
|
21
21
|
".": {
|