ui-ingredients 0.0.56 → 0.0.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,8 +34,7 @@ export function createCombobox(props) {
34
34
  getRootNode: environment?.getRootNode,
35
35
  collection,
36
36
  }));
37
- /* FIXME: pass controlled context */
38
- const [state, send] = useMachine(combobox.machine(context));
37
+ const [state, send] = useMachine(combobox.machine(context), { context });
39
38
  return reflect(() => {
40
39
  const o = combobox.connect(state, send, normalizeProps);
41
40
  return {
@@ -34,8 +34,7 @@ export function createSelect(props) {
34
34
  getRootNode: environment?.getRootNode,
35
35
  collection,
36
36
  }));
37
- /* FIXME: pass controlled context */
38
- const [state, send] = useMachine(select.machine(context));
37
+ const [state, send] = useMachine(select.machine(context), { context });
39
38
  return reflect(() => {
40
39
  const o = select.connect(state, send, normalizeProps);
41
40
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.56",
4
+ "version": "0.0.57",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",