@venizia/ardor-react 0.4.7-3 → 0.4.7-4
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/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-element-size.d.ts +17 -0
- package/dist/hooks/use-element-size.d.ts.map +1 -0
- package/dist/hooks/use-element-size.js +52 -0
- package/dist/hooks/use-element-size.js.map +1 -0
- package/dist/hooks/use-stored-state.d.ts +21 -0
- package/dist/hooks/use-stored-state.d.ts.map +1 -0
- package/dist/hooks/use-stored-state.js +54 -0
- package/dist/hooks/use-stored-state.js.map +1 -0
- package/package.json +4 -4
package/dist/hooks/index.d.ts
CHANGED
|
@@ -6,7 +6,9 @@ export * from './use-before-unload.js';
|
|
|
6
6
|
export * from './use-confirm.js';
|
|
7
7
|
export * from './use-copy-to-clipboard.js';
|
|
8
8
|
export * from './use-debounce.js';
|
|
9
|
+
export * from './use-element-size.js';
|
|
9
10
|
export * from './use-injectable.js';
|
|
10
11
|
export * from './use-sizer.js';
|
|
12
|
+
export * from './use-stored-state.js';
|
|
11
13
|
export * from './use-window-dimensions.js';
|
|
12
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -6,7 +6,9 @@ export * from './use-before-unload.js';
|
|
|
6
6
|
export * from './use-confirm.js';
|
|
7
7
|
export * from './use-copy-to-clipboard.js';
|
|
8
8
|
export * from './use-debounce.js';
|
|
9
|
+
export * from './use-element-size.js';
|
|
9
10
|
export * from './use-injectable.js';
|
|
10
11
|
export * from './use-sizer.js';
|
|
12
|
+
export * from './use-stored-state.js';
|
|
11
13
|
export * from './use-window-dimensions.js';
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IUseElementSizeOptions {
|
|
3
|
+
ref: React.RefObject<Element | null>;
|
|
4
|
+
/** @default 'content-box' */
|
|
5
|
+
box?: 'content-box' | 'border-box';
|
|
6
|
+
}
|
|
7
|
+
export interface IUseElementSizeReturn {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The size of `ref.current`, kept up to date by a `ResizeObserver` with one state update per
|
|
13
|
+
* animation frame. The element is read when the effect runs: it follows a new `ref` or `box`, not a
|
|
14
|
+
* `ref.current` that is replaced later. A new `ref` or `box` starts again from 0 by 0. Pass a stable `ref`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useElementSize: (opts: IUseElementSizeOptions) => IUseElementSizeReturn;
|
|
17
|
+
//# sourceMappingURL=use-element-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-element-size.d.ts","sourceRoot":"","sources":["../../src/hooks/use-element-size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACrC,6BAA6B;IAC7B,GAAG,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CACpC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAgBD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,sBAAsB,KAAG,qBA8C7D,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const ZERO_SIZE = { width: 0, height: 0 };
|
|
3
|
+
const readSize = (opts) => {
|
|
4
|
+
const { entry, box } = opts;
|
|
5
|
+
const border = box === 'border-box' ? entry.borderBoxSize?.[0] : undefined;
|
|
6
|
+
return border
|
|
7
|
+
? { width: border.inlineSize, height: border.blockSize }
|
|
8
|
+
: { width: entry.contentRect.width, height: entry.contentRect.height };
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The size of `ref.current`, kept up to date by a `ResizeObserver` with one state update per
|
|
12
|
+
* animation frame. The element is read when the effect runs: it follows a new `ref` or `box`, not a
|
|
13
|
+
* `ref.current` that is replaced later. A new `ref` or `box` starts again from 0 by 0. Pass a stable `ref`.
|
|
14
|
+
*/
|
|
15
|
+
export const useElementSize = (opts) => {
|
|
16
|
+
const { ref, box = 'content-box' } = opts;
|
|
17
|
+
const [size, setSize] = React.useState(ZERO_SIZE);
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
setSize((current) => current === ZERO_SIZE || (current.width === 0 && current.height === 0) ? current : ZERO_SIZE);
|
|
20
|
+
const element = ref.current;
|
|
21
|
+
if (!element) {
|
|
22
|
+
return () => { };
|
|
23
|
+
}
|
|
24
|
+
let frame;
|
|
25
|
+
let latest;
|
|
26
|
+
const observer = new ResizeObserver((entries) => {
|
|
27
|
+
latest = entries[entries.length - 1];
|
|
28
|
+
if (frame !== undefined) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
frame = requestAnimationFrame(() => {
|
|
32
|
+
frame = undefined;
|
|
33
|
+
if (!latest) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const next = readSize({ entry: latest, box });
|
|
37
|
+
setSize((current) => {
|
|
38
|
+
return current.width === next.width && current.height === next.height ? current : next;
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
observer.observe(element, { box });
|
|
43
|
+
return () => {
|
|
44
|
+
observer.disconnect();
|
|
45
|
+
if (frame !== undefined) {
|
|
46
|
+
cancelAnimationFrame(frame);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, [ref, box]);
|
|
50
|
+
return size;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=use-element-size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-element-size.js","sourceRoot":"","sources":["../../src/hooks/use-element-size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,SAAS,GAA0B,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAEjE,MAAM,QAAQ,GAAG,CAAC,IAGjB,EAAyB,EAAE;IAC1B,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,MAAM,GAAG,GAAG,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE3E,OAAO,MAAM;QACX,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE;QACxD,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;AAC3E,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAA4B,EAAyB,EAAE;IACpF,MAAM,EAAE,GAAG,EAAE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,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QAEnC,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,UAAU,EAAE,CAAC;YACtB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAEf,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type IStorageCodec, type TStorageArea } from '@venizia/ardor-kernel';
|
|
2
|
+
export interface IUseStoredStateOptions<TValue> {
|
|
3
|
+
key: string;
|
|
4
|
+
defaultValue: TValue;
|
|
5
|
+
/** @default 'local' */
|
|
6
|
+
storage?: TStorageArea;
|
|
7
|
+
/** @default JSON */
|
|
8
|
+
codec?: IStorageCodec<TValue>;
|
|
9
|
+
}
|
|
10
|
+
export interface IUseStoredStateReturn<TValue> {
|
|
11
|
+
value: TValue;
|
|
12
|
+
setValue: (next: TValue | ((current: TValue) => TValue)) => void;
|
|
13
|
+
remove: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A value kept in `localStorage` or `sessionStorage`, in step with other hooks on the key, with code
|
|
17
|
+
* that writes through `BrowserStorage`, and with other tabs. Pass a stable `codec` and `defaultValue`.
|
|
18
|
+
* A write or a removal that the storage refuses is kept in this hook until the storage next changes.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useStoredState: <TValue>(opts: IUseStoredStateOptions<TValue>) => IUseStoredStateReturn<TValue>;
|
|
21
|
+
//# sourceMappingURL=use-stored-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-stored-state.d.ts","sourceRoot":"","sources":["../../src/hooks/use-stored-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9F,MAAM,WAAW,sBAAsB,CAAC,MAAM;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,oBAAoB;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,qBAAqB,CAAC,MAAM;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC;IACjE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AA0BD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,EACnC,MAAM,sBAAsB,CAAC,MAAM,CAAC,KACnC,qBAAqB,CAAC,MAAM,CAuD9B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BrowserStorage } from '@venizia/ardor-kernel';
|
|
3
|
+
/** Reads the stored text as it is, `null` when there is none. */
|
|
4
|
+
const RAW_TEXT = {
|
|
5
|
+
encode: (text) => text ?? '',
|
|
6
|
+
decode: (text) => text,
|
|
7
|
+
};
|
|
8
|
+
const isUpdater = (next) => typeof next === 'function';
|
|
9
|
+
/**
|
|
10
|
+
* A value kept in `localStorage` or `sessionStorage`, in step with other hooks on the key, with code
|
|
11
|
+
* that writes through `BrowserStorage`, and with other tabs. Pass a stable `codec` and `defaultValue`.
|
|
12
|
+
* A write or a removal that the storage refuses is kept in this hook until the storage next changes.
|
|
13
|
+
*/
|
|
14
|
+
export const useStoredState = (opts) => {
|
|
15
|
+
const { key, defaultValue, storage, codec } = opts;
|
|
16
|
+
const decoded = React.useRef(undefined);
|
|
17
|
+
const [kept, setKept] = React.useState();
|
|
18
|
+
const subscribe = React.useCallback((listener) => {
|
|
19
|
+
return BrowserStorage.subscribe({
|
|
20
|
+
key,
|
|
21
|
+
storage,
|
|
22
|
+
listener: () => {
|
|
23
|
+
setKept(undefined);
|
|
24
|
+
listener();
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}, [key, storage]);
|
|
28
|
+
const getSnapshot = React.useCallback(() => {
|
|
29
|
+
const text = BrowserStorage.get({ key, storage, fallback: null, codec: RAW_TEXT });
|
|
30
|
+
if (text === null) {
|
|
31
|
+
return defaultValue;
|
|
32
|
+
}
|
|
33
|
+
const hit = decoded.current;
|
|
34
|
+
if (hit?.text === text && hit.key === key && hit.storage === storage && hit.codec === codec) {
|
|
35
|
+
return hit.value;
|
|
36
|
+
}
|
|
37
|
+
const value = BrowserStorage.get({ key, fallback: defaultValue, storage, codec });
|
|
38
|
+
decoded.current = { key, storage, codec, text, value };
|
|
39
|
+
return value;
|
|
40
|
+
}, [key, storage, codec, defaultValue]);
|
|
41
|
+
const stored = React.useSyncExternalStore(subscribe, getSnapshot, () => defaultValue);
|
|
42
|
+
const value = kept?.key === key && kept.storage === storage ? kept.value : stored;
|
|
43
|
+
const setValue = React.useCallback((next) => {
|
|
44
|
+
const resolved = isUpdater(next) ? next(value) : next;
|
|
45
|
+
const isStored = BrowserStorage.set({ key, value: resolved, storage, codec });
|
|
46
|
+
setKept(isStored ? undefined : { key, storage, value: resolved });
|
|
47
|
+
}, [key, storage, codec, value]);
|
|
48
|
+
const remove = React.useCallback(() => {
|
|
49
|
+
const isRemoved = BrowserStorage.remove({ key, storage });
|
|
50
|
+
setKept(isRemoved ? undefined : { key, storage, value: defaultValue });
|
|
51
|
+
}, [key, storage, defaultValue]);
|
|
52
|
+
return { value, setValue, remove };
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=use-stored-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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AE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QAE9E,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC,EACD,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAC7B,CAAC;IAEF,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACpC,MAAM,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAE1D,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;IACzE,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;IAEjC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACrC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ardor-react",
|
|
3
|
-
"version": "0.4.7-
|
|
3
|
+
"version": "0.4.7-4",
|
|
4
4
|
"description": "ARDOR React bindings - the application context, the injectable and logger hooks that read it, typed Redux hook factories, and the framework-agnostic UI hooks (debounce, autosave, confirm, clipboard, sizer, window dimensions). No react-admin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ardor",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prepublishOnly": "make rebuild"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@venizia/ardor-kernel": "0.4.7-
|
|
61
|
+
"@venizia/ardor-kernel": "0.4.7-4",
|
|
62
62
|
"lodash": "^4.18.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"@types/react": "^19",
|
|
72
72
|
"@venizia/dev-configs": "^0.4.7-5",
|
|
73
73
|
"@venizia/ignis-filter": "^0.4.6-2",
|
|
74
|
-
"@venizia/ignis-helpers": "^0.4.7-
|
|
74
|
+
"@venizia/ignis-helpers": "^0.4.7-6",
|
|
75
75
|
"@venizia/ignis-inversion": "^0.4.6-2",
|
|
76
|
-
"@venizia/ignis-kernel": "^0.4.7-
|
|
76
|
+
"@venizia/ignis-kernel": "^0.4.7-6",
|
|
77
77
|
"eslint": "^10.13.0",
|
|
78
78
|
"oxlint": "1.89.0",
|
|
79
79
|
"oxlint-tsgolint": "7.0.2004",
|