@nice-code/action 0.14.0 → 0.16.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/README.md +582 -582
- package/build/{ActionDevtoolsCore-CCRLYASa.d.cts → ActionDevtoolsCore-B3JwSaRH.d.cts} +3 -3
- package/build/{ActionDevtoolsCore-9PsnscvK.mjs → ActionDevtoolsCore-BcItqP-C.mjs} +7 -7
- package/build/ActionDevtoolsCore-BcItqP-C.mjs.map +1 -0
- package/build/{ActionDevtoolsCore-CYGD2o6C.d.mts → ActionDevtoolsCore-C4TDUY7-.d.mts} +3 -3
- package/build/{ActionDevtoolsCore-DtgXwPBZ.cjs → ActionDevtoolsCore-Cb_QR44N.cjs} +7 -7
- package/build/ActionDevtoolsCore-Cb_QR44N.cjs.map +1 -0
- package/build/{ActionPayload.types-BN-rXFBK.d.cts → ActionPayload.types-CO_hXlBc.d.cts} +1452 -941
- package/build/{ActionPayload.types-D28ELKXC.d.mts → ActionPayload.types-fieMKAgt.d.mts} +1452 -941
- package/build/devtools/browser/index.cjs +5 -5
- package/build/devtools/browser/index.cjs.map +1 -1
- package/build/devtools/browser/index.d.cts +1 -1
- package/build/devtools/browser/index.d.mts +1 -1
- package/build/devtools/browser/index.mjs +5 -5
- package/build/devtools/browser/index.mjs.map +1 -1
- package/build/devtools/server/index.cjs +1 -1
- package/build/devtools/server/index.cjs.map +1 -1
- package/build/devtools/server/index.d.cts +1 -1
- package/build/devtools/server/index.d.mts +1 -1
- package/build/devtools/server/index.mjs +1 -1
- package/build/devtools/server/index.mjs.map +1 -1
- package/build/index.cjs +2733 -1963
- package/build/index.cjs.map +1 -1
- package/build/index.d.cts +2 -2
- package/build/index.d.mts +2 -2
- package/build/index.mjs +2706 -1950
- package/build/index.mjs.map +1 -1
- package/build/react-query/index.cjs.map +1 -1
- package/build/react-query/index.d.cts +1 -1
- package/build/react-query/index.d.mts +1 -1
- package/build/react-query/index.mjs.map +1 -1
- package/package.json +4 -4
- package/build/ActionDevtoolsCore-9PsnscvK.mjs.map +0 -1
- package/build/ActionDevtoolsCore-DtgXwPBZ.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-
|
|
1
|
+
import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-B3JwSaRH.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/devtools/browser/NiceActionDevtools.d.ts
|
|
4
4
|
interface INiceActionDevtoolsProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-
|
|
1
|
+
import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-C4TDUY7-.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/devtools/browser/NiceActionDevtools.d.ts
|
|
4
4
|
interface INiceActionDevtoolsProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-
|
|
1
|
+
import { t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-BcItqP-C.mjs";
|
|
2
2
|
import { createTypedWebLocalStorage } from "@nice-code/util";
|
|
3
3
|
import { Fragment, useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4289,7 +4289,7 @@ function DomainChip({ compact = false, subtle = false, domain, allDomains, size
|
|
|
4289
4289
|
//#endregion
|
|
4290
4290
|
//#region src/devtools/browser/components/HandlerChips.tsx
|
|
4291
4291
|
function getExternalLabel(hop) {
|
|
4292
|
-
if (hop.handlerType !== "
|
|
4292
|
+
if (hop.handlerType !== "peer") return null;
|
|
4293
4293
|
return hop.handlerClient != null ? `${hop.transport ?? "ext"} → ${hop.handlerClient.envId}` : `→ ${hop.transport ?? "ext"}`;
|
|
4294
4294
|
}
|
|
4295
4295
|
/**
|
|
@@ -4304,7 +4304,7 @@ function getTransportTooltip(hop) {
|
|
|
4304
4304
|
* grouped child-dispatch chip that accumulates several transports for the same runtime).
|
|
4305
4305
|
*/
|
|
4306
4306
|
function getTransportTooltipForHops(hops) {
|
|
4307
|
-
const lines = hops.filter((hop) => hop.handlerType === "
|
|
4307
|
+
const lines = hops.filter((hop) => hop.handlerType === "peer").map((hop) => ({
|
|
4308
4308
|
summary: hop.transportSummary,
|
|
4309
4309
|
url: hop.transportUrl
|
|
4310
4310
|
})).filter((line) => line.summary != null || line.url != null);
|
|
@@ -5037,7 +5037,7 @@ function ActionDetailPanel({ entry, parent, childEntries, onSelectEntry }) {
|
|
|
5037
5037
|
const result = [];
|
|
5038
5038
|
for (const child of childEntries) {
|
|
5039
5039
|
const firstHop = child.meta.routing[0];
|
|
5040
|
-
if (firstHop == null || firstHop.handlerType !== "
|
|
5040
|
+
if (firstHop == null || firstHop.handlerType !== "peer") continue;
|
|
5041
5041
|
const key = `${firstHop.handlerClient?.envId ?? ""}:${firstHop.transport ?? ""}`;
|
|
5042
5042
|
if (seen.has(key)) continue;
|
|
5043
5043
|
seen.add(key);
|
|
@@ -5340,7 +5340,7 @@ function ActionEntryRow({ entry, isSelected, onClick, isLatest = false, latestTi
|
|
|
5340
5340
|
const timestamp = formatTimestamp(entry.startTime);
|
|
5341
5341
|
const hasGroup = groupEntries != null && groupEntries.length > 1;
|
|
5342
5342
|
const inboundOrigin = getInboundOrigin(entry);
|
|
5343
|
-
const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "
|
|
5343
|
+
const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "peer") ?? [];
|
|
5344
5344
|
const nonIoBreakReasons = breakReasons?.filter((r) => r !== "new_input" && r !== "new_output") ?? [];
|
|
5345
5345
|
const hasBottomError = entry.error != null || entry.abortReason != null;
|
|
5346
5346
|
const hasBottomContent = externalChildEntries.length > 0 || nonIoBreakReasons.length > 0;
|