@venizia/ardor-react 0.1.1-2 → 0.1.1-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/README.md +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +1 -1
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.d.ts +11 -11
- package/dist/hooks/index.js +11 -11
- package/dist/hooks/redux/index.d.ts +2 -2
- package/dist/hooks/redux/index.js +2 -2
- package/dist/hooks/redux/use-app-selector.js +1 -1
- package/dist/hooks/redux/use-app-selector.js.map +1 -1
- package/dist/hooks/use-application-context.js +1 -1
- package/dist/hooks/use-artifact.d.ts +4 -7
- package/dist/hooks/use-artifact.d.ts.map +1 -1
- package/dist/hooks/use-artifact.js +11 -16
- package/dist/hooks/use-artifact.js.map +1 -1
- package/dist/hooks/use-autosave.js +1 -1
- package/dist/hooks/use-injectable.js +2 -2
- package/dist/hooks/use-injectable.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +6 -9
package/README.md
CHANGED
package/dist/common/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/common/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './application';
|
|
1
|
+
export * from './application.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/contexts/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './application';
|
|
1
|
+
export * from './application.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './redux';
|
|
2
|
-
export * from './use-application-context';
|
|
3
|
-
export * from './use-artifact';
|
|
4
|
-
export * from './use-autosave';
|
|
5
|
-
export * from './use-before-unload';
|
|
6
|
-
export * from './use-confirm';
|
|
7
|
-
export * from './use-copy-to-clipboard';
|
|
8
|
-
export * from './use-debounce';
|
|
9
|
-
export * from './use-injectable';
|
|
10
|
-
export * from './use-sizer';
|
|
11
|
-
export * from './use-window-dimensions';
|
|
1
|
+
export * from './redux/index.js';
|
|
2
|
+
export * from './use-application-context.js';
|
|
3
|
+
export * from './use-artifact.js';
|
|
4
|
+
export * from './use-autosave.js';
|
|
5
|
+
export * from './use-before-unload.js';
|
|
6
|
+
export * from './use-confirm.js';
|
|
7
|
+
export * from './use-copy-to-clipboard.js';
|
|
8
|
+
export * from './use-debounce.js';
|
|
9
|
+
export * from './use-injectable.js';
|
|
10
|
+
export * from './use-sizer.js';
|
|
11
|
+
export * from './use-window-dimensions.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './redux';
|
|
2
|
-
export * from './use-application-context';
|
|
3
|
-
export * from './use-artifact';
|
|
4
|
-
export * from './use-autosave';
|
|
5
|
-
export * from './use-before-unload';
|
|
6
|
-
export * from './use-confirm';
|
|
7
|
-
export * from './use-copy-to-clipboard';
|
|
8
|
-
export * from './use-debounce';
|
|
9
|
-
export * from './use-injectable';
|
|
10
|
-
export * from './use-sizer';
|
|
11
|
-
export * from './use-window-dimensions';
|
|
1
|
+
export * from './redux/index.js';
|
|
2
|
+
export * from './use-application-context.js';
|
|
3
|
+
export * from './use-artifact.js';
|
|
4
|
+
export * from './use-autosave.js';
|
|
5
|
+
export * from './use-before-unload.js';
|
|
6
|
+
export * from './use-confirm.js';
|
|
7
|
+
export * from './use-copy-to-clipboard.js';
|
|
8
|
+
export * from './use-debounce.js';
|
|
9
|
+
export * from './use-injectable.js';
|
|
10
|
+
export * from './use-sizer.js';
|
|
11
|
+
export * from './use-window-dimensions.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './use-app-dispatch';
|
|
2
|
-
export * from './use-app-selector';
|
|
1
|
+
export * from './use-app-dispatch.js';
|
|
2
|
+
export * from './use-app-selector.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './use-app-dispatch';
|
|
2
|
-
export * from './use-app-selector';
|
|
1
|
+
export * from './use-app-dispatch.js';
|
|
2
|
+
export * from './use-app-selector.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-selector.js","sourceRoot":"","sources":["../../../src/hooks/redux/use-app-selector.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"use-app-selector.js","sourceRoot":"","sources":["../../../src/hooks/redux/use-app-selector.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAM,EAAE;IACxC,MAAM,cAAc,GAAG,WAAW,CAAC,SAAS,EAAK,CAAC;IAElD,MAAM,uBAAuB,GAAG,CAAI,QAAyB,EAAE,EAAE;QAC/D,OAAO,cAAc,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,CAAI,QAAyB,EAAE,EAAE;QAC5D,OAAO,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEF,OAAO;QACL,cAAc;QACd,uBAAuB;QACvB,oBAAoB;KACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { getError } from '@venizia/ignis-inversion';
|
|
3
|
-
import { ApplicationContext } from '../contexts/application';
|
|
3
|
+
import { ApplicationContext } from '../contexts/application.js';
|
|
4
4
|
export const useApplicationContext = () => {
|
|
5
5
|
const rs = React.useContext(ApplicationContext);
|
|
6
6
|
if (!rs?.container) {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { type AnyType } from '@venizia/ardor-kernel';
|
|
2
2
|
import { Container, type TClass } from '@venizia/ignis-inversion';
|
|
3
|
-
import { type TUseInjectableKeys } from './use-injectable';
|
|
4
|
-
/**
|
|
5
|
-
* Resolving by class, where the class IS the type. `useService({ target: AuditService })` returns a
|
|
6
|
-
* `AuditService` with no generic written down - the target already says what it is, and repeating it
|
|
7
|
-
* is a second place to get wrong.
|
|
8
|
-
*/
|
|
3
|
+
import { type TUseInjectableKeys } from './use-injectable.js';
|
|
4
|
+
/** By class: the return type is inferred from the target. */
|
|
9
5
|
export interface IUseArtifactByTarget<T> {
|
|
10
6
|
container?: Container;
|
|
11
7
|
target: TClass<T>;
|
|
12
8
|
key?: never;
|
|
13
9
|
}
|
|
14
|
-
/**
|
|
10
|
+
/** By key: the caller supplies the type. */
|
|
15
11
|
export interface IUseArtifactByKey {
|
|
16
12
|
container?: Container;
|
|
17
13
|
key: TUseInjectableKeys;
|
|
@@ -21,4 +17,5 @@ export declare const useService: <T = AnyType>(opts: IUseArtifactByTarget<T> | I
|
|
|
21
17
|
export declare const useProvider: <T = AnyType>(opts: IUseArtifactByTarget<T> | IUseArtifactByKey) => T;
|
|
22
18
|
export declare const useComponent: <T = AnyType>(opts: IUseArtifactByTarget<T> | IUseArtifactByKey) => T;
|
|
23
19
|
export declare const useConfiguration: <T = AnyType>(opts: IUseArtifactByTarget<T> | IUseArtifactByKey) => T;
|
|
20
|
+
export declare const useRepository: <T = AnyType>(opts: IUseArtifactByTarget<T> | IUseArtifactByKey) => T;
|
|
24
21
|
//# sourceMappingURL=use-artifact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-artifact.d.ts","sourceRoot":"","sources":["../../src/hooks/use-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAqB,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAY,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAGL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAE1B
|
|
1
|
+
{"version":3,"file":"use-artifact.d.ts","sourceRoot":"","sources":["../../src/hooks/use-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAqB,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAY,KAAK,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAGL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAE1B,6DAA6D;AAC7D,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAClB,GAAG,CAAC,EAAE,KAAK,CAAC;CACb;AAED,4CAA4C;AAC5C,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,GAAG,EAAE,kBAAkB,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAgCD,eAAO,MAAM,UAAU,GAAI,CAAC,GAAG,OAAO,EAAE,MAAM,oBAAoB,CAAC,CAAC,CAAC,GAAG,iBAAiB,KAAG,CAKxF,CAAC;AAEL,eAAO,MAAM,WAAW,GAAI,CAAC,GAAG,OAAO,EAAE,MAAM,oBAAoB,CAAC,CAAC,CAAC,GAAG,iBAAiB,KAAG,CAKzF,CAAC;AAEL,eAAO,MAAM,YAAY,GAAI,CAAC,GAAG,OAAO,EAAE,MAAM,oBAAoB,CAAC,CAAC,CAAC,GAAG,iBAAiB,KAAG,CAK1F,CAAC;AAEL,eAAO,MAAM,gBAAgB,GAAI,CAAC,GAAG,OAAO,EAC1C,MAAM,oBAAoB,CAAC,CAAC,CAAC,GAAG,iBAAiB,KAChD,CAKC,CAAC;AAEL,eAAO,MAAM,aAAa,GAAI,CAAC,GAAG,OAAO,EAAE,MAAM,oBAAoB,CAAC,CAAC,CAAC,GAAG,iBAAiB,KAAG,CAK3F,CAAC"}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
1
|
import { BindingNamespaces } from '@venizia/ardor-kernel';
|
|
2
2
|
import { getError } from '@venizia/ignis-inversion';
|
|
3
|
-
import { useInjectable, useInjectableContainer, } from './use-injectable';
|
|
3
|
+
import { useInjectable, useInjectableContainer, } from './use-injectable.js';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Each takes an options object - `{ target }` or `{ key }`, never a positional class. One
|
|
8
|
-
* positional parameter reads fine until the second one arrives, and by then every caller pays.
|
|
9
|
-
*
|
|
10
|
-
* They are not aliases for `useInjectable`. Each asserts that what it resolved is bound under its
|
|
11
|
-
* own namespace, so `useService({ target: SomeProvider })` throws with both namespaces named rather
|
|
12
|
-
* than returning an object of the wrong kind. Resolving the wrong artifact kind is the mistake this
|
|
13
|
-
* catches, and an alias would not catch it.
|
|
5
|
+
* `useService`, `useRepository`, `useProvider`, `useComponent`, `useConfiguration`. Unlike
|
|
6
|
+
* `useInjectable`, a `{ target }` must be bound under the hook's namespace, or it throws.
|
|
14
7
|
*/
|
|
15
8
|
const resolveInNamespace = (opts) => {
|
|
16
9
|
const { options, namespace, hook } = opts;
|
|
17
|
-
// Same inputs as
|
|
18
|
-
// the resolution can never read two different ones.
|
|
10
|
+
// Same inputs as `useInjectable`, so the check and the resolve read one container.
|
|
19
11
|
const container = useInjectableContainer({ container: options.container });
|
|
20
|
-
// A `key`
|
|
21
|
-
// Only a `target` hides which namespace it lands in, so only that is worth checking.
|
|
12
|
+
// A `key` carries its namespace in the string; only a `target` is checked.
|
|
22
13
|
if (options.target) {
|
|
23
14
|
const key = container.getMetadataRegistry().getBindingKey({ target: options.target });
|
|
24
|
-
// `String(...)
|
|
25
|
-
// one throws at run time rather than reading as its description.
|
|
15
|
+
// `String(...)`: a key may be a symbol, which a template literal throws on.
|
|
26
16
|
const bound = key === undefined ? undefined : String(key);
|
|
27
17
|
if (bound && !bound.startsWith(`${namespace}.`)) {
|
|
28
18
|
throw getError({
|
|
@@ -52,4 +42,9 @@ export const useConfiguration = (opts) => resolveInNamespace({
|
|
|
52
42
|
namespace: BindingNamespaces.CONFIGURATION,
|
|
53
43
|
hook: 'useConfiguration',
|
|
54
44
|
});
|
|
45
|
+
export const useRepository = (opts) => resolveInNamespace({
|
|
46
|
+
options: opts,
|
|
47
|
+
namespace: BindingNamespaces.REPOSITORY,
|
|
48
|
+
hook: 'useRepository',
|
|
49
|
+
});
|
|
55
50
|
//# sourceMappingURL=use-artifact.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-artifact.js","sourceRoot":"","sources":["../../src/hooks/use-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAa,QAAQ,EAAe,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EACL,aAAa,EACb,sBAAsB,GAGvB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-artifact.js","sourceRoot":"","sources":["../../src/hooks/use-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAa,QAAQ,EAAe,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EACL,aAAa,EACb,sBAAsB,GAGvB,MAAM,kBAAkB,CAAC;AAgB1B;;;GAGG;AACH,MAAM,kBAAkB,G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MAAM,YAAY,GAAG,CAAc,IAAiD,EAAK,EAAE,CAChG,kBAAkB,CAAI;IACpB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,iBAAiB,CAAC,SAAS;IACtC,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,IAAiD,EAC9C,EAAE,CACL,kBAAkB,CAAI;IACpB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,iBAAiB,CAAC,aAAa;IAC1C,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,aAAa,GAAG,CAAc,IAAiD,EAAK,EAAE,CACjG,kBAAkB,CAAI;IACpB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,iBAAiB,CAAC,UAAU;IACvC,IAAI,EAAE,eAAe;CACtB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useDebounce } from './use-debounce';
|
|
2
|
+
import { useDebounce } from './use-debounce.js';
|
|
3
3
|
export const useAutosave = (params) => {
|
|
4
4
|
const { data, onSave, interval = 2000, enableSaveOnUnmount, disabled } = params;
|
|
5
5
|
const valueOnCleanup = React.useRef(data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { getError } from '@venizia/ignis-inversion';
|
|
3
|
-
import { ApplicationContext } from '../contexts/application';
|
|
3
|
+
import { ApplicationContext } from '../contexts/application.js';
|
|
4
4
|
/**
|
|
5
5
|
* The container an injectable hook resolves from: the one passed in, else the one the application
|
|
6
6
|
* context holds. Shared so that every hook built on `useInjectable` reads the SAME container it
|
|
@@ -31,7 +31,7 @@ export const useInjectable = (opts) => {
|
|
|
31
31
|
const resolved = container.getMetadataRegistry().getBindingKey({ target });
|
|
32
32
|
if (!resolved) {
|
|
33
33
|
throw getError({
|
|
34
|
-
message: `[useInjectable] No binding key is recorded on ${target.name}
|
|
34
|
+
message: `[useInjectable] No binding key is recorded on ${target.name} | Register it by stereotype (@service() and the rest) or by hand (service(), repository(), dataSource(), component(), bindingList()), or resolve it by { key }`,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
return container.get({ key: resolved });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-injectable.js","sourceRoot":"","sources":["../../src/hooks/use-injectable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,QAAQ,EAAe,MAAM,0BAA0B,CAAC;AAG5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAY7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAgC,EAAa,EAAE;IACpF,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,IAAI,EAAE,SAAS,IAAI,kBAAkB,CAAC,SAAS,CAAC;IAElE,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,QAAQ,CAAC;YACb,OAAO,EAAE,2DAA2D;SACrE,CAAC,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAI,IAA2B,EAAE,EAAE;IAC9D,MAAM,SAAS,GAAG,sBAAsB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAEzE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE7B,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,SAAS,CAAC,GAAG,CAAI,EAAE,GAAG,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,QAAQ,CAAC;YACb,OAAO,EAAE,+EAA+E;SACzF,CAAC,CAAC;IACL,CAAC;IA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C,CAAC;IACL,CAAC;IAED,MAAM,QAAQ,GAAG,SAAS,CAAC,mBAAmB,EAAE,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,QAAQ,CAAC;YACb,OAAO,EAAE,iDAAiD,MAAM,CAAC,IAAI,iKAAiK;SACvO,CAAC,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC,GAAG,CAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './common';
|
|
2
|
-
export * from './contexts';
|
|
3
|
-
export * from './hooks';
|
|
1
|
+
export * from './common/index.js';
|
|
2
|
+
export * from './contexts/index.js';
|
|
3
|
+
export * from './hooks/index.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './common';
|
|
2
|
-
export * from './contexts';
|
|
3
|
-
export * from './hooks';
|
|
1
|
+
export * from './common/index.js';
|
|
2
|
+
export * from './contexts/index.js';
|
|
3
|
+
export * from './hooks/index.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ardor-react",
|
|
3
|
-
"version": "0.1.1-
|
|
3
|
+
"version": "0.1.1-3",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"engines": {
|
|
34
|
-
"bun": ">=1.
|
|
34
|
+
"bun": ">=1.4"
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
37
37
|
"main": "./dist/index.js",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"size": "size-limit"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@venizia/ardor-kernel": "^0.1.1-
|
|
76
|
+
"@venizia/ardor-kernel": "^0.1.1-4",
|
|
77
77
|
"lodash": "^4.18.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@reduxjs/toolkit": ">=2.12.0",
|
|
81
|
-
"@venizia/ignis-inversion": "
|
|
81
|
+
"@venizia/ignis-inversion": "^0.2.0",
|
|
82
82
|
"react": ">=18.0",
|
|
83
83
|
"react-redux": ">=9.3.0"
|
|
84
84
|
},
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"@types/lodash": "^4.17.24",
|
|
93
93
|
"@types/react": "^19",
|
|
94
94
|
"@types/react-dom": "^19",
|
|
95
|
-
"@venizia/dev-configs": "^0.2.0
|
|
96
|
-
"@venizia/ignis-inversion": "^0.2.0
|
|
95
|
+
"@venizia/dev-configs": "^0.2.0",
|
|
96
|
+
"@venizia/ignis-inversion": "^0.2.0",
|
|
97
97
|
"eslint": "^9.36.0",
|
|
98
98
|
"prettier": "^3.8.4",
|
|
99
99
|
"react": "^19.2.7",
|
|
@@ -106,9 +106,6 @@
|
|
|
106
106
|
"peerDependenciesMeta": {
|
|
107
107
|
"@reduxjs/toolkit": {
|
|
108
108
|
"optional": true
|
|
109
|
-
},
|
|
110
|
-
"react-redux": {
|
|
111
|
-
"optional": true
|
|
112
109
|
}
|
|
113
110
|
},
|
|
114
111
|
"size-limit": [
|