@fundamental-engine/react 0.9.3 → 0.9.5
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/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -32,13 +32,13 @@ export declare function useFieldField(opts?: FieldOptions): {
|
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* The React wrapper for `bindData()` — drive a live field from React state. Records map to bodies
|
|
35
|
-
* (via `mapper`), a
|
|
35
|
+
* (via `mapper`), a Pattern frames the field, and `bindData` does the record → body diffing
|
|
36
36
|
* (added/removed records enter/decay rather than popping). Attach `containerRef` to your own host
|
|
37
37
|
* element; whenever `records` changes, the hook calls `binding.update(records)` so the field stays
|
|
38
38
|
* in step with React state — no manual mount/update wiring.
|
|
39
39
|
*
|
|
40
40
|
* ```tsx
|
|
41
|
-
* const { containerRef, inspect } = useForcesData(results, toBody, {
|
|
41
|
+
* const { containerRef, inspect } = useForcesData(results, toBody, { pattern: 'search-relevance-field' });
|
|
42
42
|
* return <div ref={containerRef} />; // inspect() → { records, bodies, relationships } | null
|
|
43
43
|
* ```
|
|
44
44
|
*
|
package/dist/index.js
CHANGED
|
@@ -100,13 +100,13 @@ export function useFieldField(opts = {}) {
|
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* The React wrapper for `bindData()` — drive a live field from React state. Records map to bodies
|
|
103
|
-
* (via `mapper`), a
|
|
103
|
+
* (via `mapper`), a Pattern frames the field, and `bindData` does the record → body diffing
|
|
104
104
|
* (added/removed records enter/decay rather than popping). Attach `containerRef` to your own host
|
|
105
105
|
* element; whenever `records` changes, the hook calls `binding.update(records)` so the field stays
|
|
106
106
|
* in step with React state — no manual mount/update wiring.
|
|
107
107
|
*
|
|
108
108
|
* ```tsx
|
|
109
|
-
* const { containerRef, inspect } = useForcesData(results, toBody, {
|
|
109
|
+
* const { containerRef, inspect } = useForcesData(results, toBody, { pattern: 'search-relevance-field' });
|
|
110
110
|
* return <div ref={containerRef} />; // inspect() → { records, bodies, relationships } | null
|
|
111
111
|
* ```
|
|
112
112
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-engine/react",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "React adapter for Fundamental — a reciprocal DOM-physics field as a <FieldField> component + useFieldField hook.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@fundamental-engine/core": "0.9.
|
|
49
|
-
"@fundamental-engine/dom": "0.9.
|
|
48
|
+
"@fundamental-engine/core": "0.9.5",
|
|
49
|
+
"@fundamental-engine/dom": "0.9.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18"
|