File tree Expand file tree Collapse file tree 11 files changed +12
-11
lines changed
Expand file tree Collapse file tree 11 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 11import { store } from "@/lib/store" ;
22import { type ContribPoint } from "@/lib/types/model/extension" ;
33import { type CallbackRequest } from "@/lib/types/model/callback" ;
4- import { type ComponentChangeEvent } from "@/lib/types/model /event" ;
4+ import { type ComponentChangeEvent } from "@/lib/types/state /event" ;
55import { getInputValues } from "@/lib/actions/helpers/getInputValues" ;
66import { applyStateChangeRequests } from "@/lib/actions/helpers/applyStateChangeRequests" ;
77import { invokeCallbacks } from "@/lib/actions/helpers/invokeCallbacks" ;
@@ -64,6 +64,7 @@ function getCallbackRequests(
6464 equalObjPaths ( input . property , changeEvent . property ) ,
6565 ) ;
6666 if ( inputIndex >= 0 ) {
67+ // Collect triggered callback
6768 callbackRequests . push ( {
6869 contribPoint,
6970 contribIndex,
Original file line number Diff line number Diff line change 11import MuiBox from "@mui/material/Box" ;
22
33import { type BoxState } from "@/lib/types/state/component" ;
4- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
4+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
55import { ComponentChildren } from "./ComponentChildren" ;
66
77export interface BoxProps extends Omit < BoxState , "type" > {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { type MouseEvent } from "react";
22import MuiButton from "@mui/material/Button" ;
33
44import { type ButtonState } from "@/lib/types/state/component" ;
5- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
5+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
66
77export interface ButtonProps extends Omit < ButtonState , "type" > {
88 onChange : ComponentChangeHandler ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import MuiFormControl from "@mui/material/FormControl";
44import MuiFormControlLabel from "@mui/material/FormControlLabel" ;
55
66import { type CheckboxState } from "@/lib/types/state/component" ;
7- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
7+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
88
99export interface CheckboxProps extends Omit < CheckboxState , "type" > {
1010 onChange : ComponentChangeHandler ;
Original file line number Diff line number Diff line change 11import { type ComponentState } from "@/lib/types/state/component" ;
2- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
2+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
33import { Button , type ButtonProps } from "./Button" ;
44import { Box , type BoxProps } from "./Box" ;
55import { Checkbox , type CheckboxProps } from "./Checkbox" ;
Original file line number Diff line number Diff line change 1- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
1+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
22import { type ComponentState } from "@/lib/types/state/component" ;
33import { Component } from "./Component" ;
44
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import MenuItem from "@mui/material/MenuItem";
44import Select , { type SelectChangeEvent } from "@mui/material/Select" ;
55
66import { type DropdownState } from "@/lib/types/state/component" ;
7- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
7+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
88
99export interface DropdownProps extends Omit < DropdownState , "type" > {
1010 onChange : ComponentChangeHandler ;
Original file line number Diff line number Diff line change 11import { VegaLite } from "react-vega" ;
22
33import { type PlotState } from "@/lib/types/state/component" ;
4- import { type ComponentChangeHandler } from "@/lib/types/model /event" ;
4+ import { type ComponentChangeHandler } from "@/lib/types/state /event" ;
55
66export interface PlotProps extends Omit < PlotState , "type" > {
77 onChange : ComponentChangeHandler ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export { type ComponentState } from "@/lib/types/state/component";
55export {
66 type ComponentChangeEvent ,
77 type ComponentChangeHandler ,
8- } from "@/lib/types/model /event" ;
8+ } from "@/lib/types/state /event" ;
99// Actions (store changes)
1010export { initializeContributions } from "@/lib/actions/initializeContributions" ;
1111export { handleComponentChange } from "@/lib/actions/handleComponentChange" ;
Original file line number Diff line number Diff line change 1- import type { Input , Output } from "@/lib/types/model /channel" ;
1+ import type { Input , Output } from ". /channel" ;
22
33export interface Callback {
44 function : CbFunction ;
@@ -62,7 +62,7 @@ export interface CallbackRef {
6262export interface InputRef {
6363 /**
6464 * The index of the input of a callback.
65- * Used to store the input that triggered the callback.
65+ * Records the input that triggered the callback.
6666 */
6767 inputIndex : number ;
6868}
You can’t perform that action at this time.
0 commit comments