@fundamental-engine/react 0.9.4 → 0.10.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/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 recipe frames the field, and `bindData` does the record → body diffing
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, { recipe: 'search-relevance-field' });
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 recipe frames the field, and `bindData` does the record → body diffing
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, { recipe: 'search-relevance-field' });
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.4",
3
+ "version": "0.10.0",
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.4",
49
- "@fundamental-engine/dom": "0.9.4"
48
+ "@fundamental-engine/core": "0.10.0",
49
+ "@fundamental-engine/dom": "0.10.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=18"