@almadar/ui 4.24.0 → 4.26.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/dist/avl/index.cjs +1457 -4340
- package/dist/avl/index.js +384 -3267
- package/dist/components/index.cjs +1105 -1135
- package/dist/components/index.js +207 -237
- package/dist/context/UISlotContext.d.ts +2 -2
- package/dist/hooks/useUISlots.d.ts +65 -7
- package/dist/providers/index.cjs +1036 -3878
- package/dist/providers/index.js +304 -3146
- package/dist/runtime/fn-form-lambda.d.ts +4 -3
- package/dist/runtime/index.cjs +1090 -3987
- package/dist/runtime/index.js +326 -3223
- package/package.json +6 -2
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
import type { EntityRow, RenderItemLambda } from "@almadar/core";
|
|
13
|
-
|
|
13
|
+
import type { SlotProps, SlotPropValue } from "../hooks/useUISlots";
|
|
14
|
+
export declare function isFnFormLambda(value: SlotPropValue): value is RenderItemLambda;
|
|
14
15
|
/**
|
|
15
16
|
* Walk a pattern body replacing every `@<argName>.path` string with the
|
|
16
17
|
* value at `path` of `arg`. Mirrors the compiler's inline substitution
|
|
17
18
|
* for `renderItem` lambda bodies.
|
|
18
19
|
*/
|
|
19
|
-
export declare function resolveLambdaBindings(body:
|
|
20
|
+
export declare function resolveLambdaBindings(body: SlotPropValue, argName: string, arg: EntityRow): SlotPropValue;
|
|
20
21
|
/**
|
|
21
22
|
* Walk a pattern's props (and recursively their nested children),
|
|
22
23
|
* converting every fn-form lambda value into a React render-prop
|
|
23
24
|
* function. Pure on inputs without lambdas: returns the props object
|
|
24
25
|
* unchanged by reference.
|
|
25
26
|
*/
|
|
26
|
-
export declare function convertFnFormLambdasInProps(props:
|
|
27
|
+
export declare function convertFnFormLambdasInProps(props: SlotProps): SlotProps;
|