Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class TableElement extends LitElement {
// throwing the error.

// throw new Error(
// `${WA_CONSOLE_PREFIX} Number of cells in the table header does not match the number of cells in one or more of the table rows. In order to render a table there needs to be the same number of columns in the table header and all of the table rows.`,
// `${CONSOLE_PREFIX} Number of cells in the table header does not match the number of cells in one or more of the table rows. In order to render a table there needs to be the same number of columns in the table header and all of the table rows.`,
// );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function Input(props: InputProps, ref: Ref<InputFunctions>) {
type: BusEventType.STOP_STREAMING,
});
// Also cancel the current message request to abort the signal
await serviceManager.messageService.cancelCurrentMessageRequest();
await serviceManager.messageOutboundService.cancelCurrentMessageRequest();
textAreaRef.current.takeFocus();
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function LauncherContainer() {

const onDoToggle = useCallback(() => {
// Otherwise try to open the main window on launcher click.
return serviceManager.actions.changeView(ViewType.MAIN_WINDOW, {
return serviceManager.viewStateService.changeView(ViewType.MAIN_WINDOW, {
mainWindowOpenReason: MainWindowOpenReason.DEFAULT_LAUNCHER,
});
}, [serviceManager.actions]);
}, [serviceManager.viewStateService]);

useEffectDidUpdate(() => {
// If the main window is closed, and the launcher is visible, then we should request focus on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ class MainWindow
const { serviceManager } = this.props;

// Fire the view:change and window:close events. If the view change is canceled then the main window will stay open.
await serviceManager.actions.changeView(ViewType.LAUNCHER, {
await serviceManager.viewStateService.changeView(ViewType.LAUNCHER, {
mainWindowCloseReason: MainWindowCloseReason.DEFAULT_MINIMIZE,
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useServiceManager } from "../../../hooks/useServiceManager";
import { selectInputState } from "../../../store/selectors";
import { HasRequestFocus } from "../../../../types/utilities/HasRequestFocus";
import { LocalMessageItem } from "../../../../types/messaging/LocalMessageItem";
import { WA_CONSOLE_PREFIX } from "../../../utils/constants";
import { CONSOLE_PREFIX } from "../../../utils/constants";
import { createMessageRequestForButtonItemOption } from "../../../utils/messageUtils";
import { consoleError } from "../../../utils/miscUtils";
import actions from "../../../store/actions";
Expand Down Expand Up @@ -72,7 +72,7 @@ function ButtonItemPostBackComponent({
);
} else {
consoleError(
`${WA_CONSOLE_PREFIX} post_back button with label "${messageItem.label}" has no input message to send.`,
`${CONSOLE_PREFIX} post_back button with label "${messageItem.label}" has no input message to send.`,
);
}
}, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function UserDefinedResponse(props: UserDefinedResponseProps) {
// The element that was previously created that we'll attach to this React component. The custom code should
// already have attached its own element to this element that contains the custom rendering for the message.
const userDefinedRegistryItem =
serviceManager.actions.getOrCreateUserDefinedElement(props.localMessageID);
serviceManager.userDefinedResponseService.getOrCreateUserDefinedElement(
props.localMessageID,
);

useCallbackOnChange(streamingState?.chunks, doAutoScroll);

Expand Down
Loading