msw-dev-tool 1.1.7 → 1.1.8
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/cjs/index.js
CHANGED
@@ -27960,13 +27960,14 @@ const useUiControlStore = zustand.create((set) => ({
|
|
27960
27960
|
const HttpControl = () => {
|
27961
27961
|
const table = useFlattenHandlersTable();
|
27962
27962
|
const { setDebuggerHandler } = useUiControlStore();
|
27963
|
+
const currentHandler = useUiControlStore((state) => state.currentHandler);
|
27963
27964
|
return (React.createElement(p$3, { style: { flex: 3, overflowY: "auto" }, direction: "column", gap: "4" },
|
27964
27965
|
React.createElement(r$8, { as: "h2", size: "5" }, "Handlers"),
|
27965
27966
|
React.createElement(m, { onDragStart: (e) => e.stopPropagation(), style: { userSelect: "text" } },
|
27966
27967
|
React.createElement(d, null, table.getHeaderGroups().map((headerGroup) => (React.createElement(P, { key: headerGroup.id }, headerGroup.headers.map((header) => (React.createElement(f$1, { key: header.id }, header.isPlaceholder
|
27967
27968
|
? null
|
27968
27969
|
: flexRender(header.column.columnDef.header, header.getContext())))))))),
|
27969
|
-
React.createElement(b, null, table.getRowModel().rows.map((row) => (React.createElement(P, { key: row.id, align: "center", className:
|
27970
|
+
React.createElement(b, null, table.getRowModel().rows.map((row) => (React.createElement(P, { key: row.id, align: "center", className: `msw-dt-http-control-row ${row.original.handler === currentHandler && "msw-dt-current-row"}`, onClick: () => {
|
27970
27971
|
setDebuggerHandler(row.original.handler);
|
27971
27972
|
} }, row.getVisibleCells().map((cell) => (React.createElement(T, { key: cell.id }, flexRender(cell.column.columnDef.cell, cell.getContext())))))))))));
|
27972
27973
|
};
|