@plitzi/sdk-dev-tools 0.39.1 → 0.39.2
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/CHANGELOG.md +10 -0
- package/dist/DevToolsContainer.mjs +33 -33
- package/dist/DevToolsContextProvider.mjs +1 -2
- package/dist/DevToolsRoot.mjs +2 -3
- package/dist/PageContext.mjs +1 -2
- package/dist/agentInspector/flowRuns.mjs +1 -2
- package/dist/agentInspector/inspector.mjs +1 -2
- package/dist/agentInspector/report.mjs +1 -2
- package/dist/agentInspector/useAgentInspector.mjs +1 -2
- package/dist/components/DevToolsIndicator/DevToolsIndicator.mjs +2 -3
- package/dist/components/DevToolsIndicator/index.mjs +1 -2
- package/dist/components/DevToolsIndicator/sideAt.mjs +1 -2
- package/dist/components/DevToolsOverlay/DevToolsOverlay.mjs +7 -8
- package/dist/components/DevToolsOverlay/index.mjs +1 -2
- package/dist/components/DevToolsPanel/DevToolsBody.mjs +1 -2
- package/dist/components/DevToolsPanel/DevToolsButton.mjs +1 -2
- package/dist/components/DevToolsPanel/DevToolsHeader.mjs +10 -11
- package/dist/components/DevToolsPanel/DevToolsPanel.mjs +1 -2
- package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +7 -8
- package/dist/components/DevToolsPanel/ThemeControl.mjs +2 -3
- package/dist/components/DevToolsPanel/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/ActionsViewer.mjs +8 -9
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/ActionsToolbar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/DetailShell/DetailShell.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/DetailShell/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/FlowTimeline/FlowTimeline.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/FlowTimeline/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunDetail/RunDetail.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunDetail/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunList/RunList.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunList/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunRow/RunRow.mjs +12 -13
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunRow/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/StepRow/StepRow.mjs +8 -9
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/StepRow/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/helpers.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/CacheViewer/CacheViewer.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/CacheViewer/components/CacheRow/CacheRow.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/CacheViewer/components/CacheRow/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/CacheViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.mjs +5 -6
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsAttributes/DetailsAttributes.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsAttributes/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsDefinition/DetailsDefinition.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsDefinition/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRow/DetailsRow.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRow/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRuntime/DetailsRuntime.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRuntime/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsValue/DetailsValue.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsValue/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementDetails/ElementDetails.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementDetails/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementLink/ElementLink.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementLink/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementsTree/ElementsTree.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementsTree/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeRow/TreeRow.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeRow/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeSection/TreeSection.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeSection/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/helpers/renderTree.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagSource.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagsListItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagsViewer.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.mjs +2 -3
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/helpers.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/Log.mjs +0 -1
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/Logs.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogAction/LogAction.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogAction/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.mjs +12 -12
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs +16 -17
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionNote.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNetwork/LogNetwork.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNetwork/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogRealtime/LogRealtime.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogRealtime/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.mjs +32 -32
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaAllChecksButton.mjs +4 -5
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaCheckRow.mjs +5 -6
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaChecks.mjs +7 -8
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaDivider.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaFindingItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorDetails.mjs +23 -24
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorEmpty.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorPanel.mjs +7 -8
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaProperty.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaReplayButton.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaRescanButton.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaRuleItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaToolChip.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaToolbar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaViewer.mjs +10 -11
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaVisionSelect.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXray.mjs +5 -6
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXrayBoxesRow.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXrayRow.mjs +4 -5
- package/dist/components/DevToolsPanel/tabs/QaViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunReport.mjs +12 -13
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunTaskRow.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunViewer.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/reportHelpers.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/stepRecorder.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/usePointAt.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/RunViewer/useRunSnapshot.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.mjs +8 -9
- package/dist/components/DevToolsPanel/tabs/StoreViewer/components/FreshnessMark/FreshnessMark.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/components/FreshnessMark/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/helpers/mapFunctionValues.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/helpers/renderFreshnessKey.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/helpers/renderFunctionValue.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/StoreViewer/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/TracingViewer.mjs +6 -7
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitCause/CommitCause.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitStrip/CommitStrip.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DetailSidebar/DetailSidebar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DurationLegend/DurationLegend.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/Flamegraph/FlameFrame.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/Flamegraph/Flamegraph.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotSidebar/HotspotSidebar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotsList/HotspotsList.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/MetricToggle/MetricToggle.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/RankedList/RankedList.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarShell/SidebarEmpty.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarShell/SidebarShell.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarToggle/SidebarToggle.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/TracingToolbar/TracingToolbar.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/helpers.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/index.mjs +1 -2
- package/dist/components/List/List.mjs +1 -2
- package/dist/components/List/ListItem.mjs +1 -2
- package/dist/components/List/index.mjs +5 -6
- package/dist/components/PayloadView/PayloadView.mjs +2 -3
- package/dist/components/PayloadView/index.mjs +1 -2
- package/dist/components/ResizableSidebar/ResizableSidebar.mjs +1 -2
- package/dist/components/ResizableSidebar/index.mjs +1 -2
- package/dist/freshness/describeQueryPath.mjs +1 -2
- package/dist/freshness/formatDuration.mjs +1 -2
- package/dist/freshness/rows.mjs +1 -2
- package/dist/freshness/useFreshnessByStore.mjs +1 -2
- package/dist/freshness/useSecondsClock.mjs +1 -2
- package/dist/highlight/index.mjs +1 -2
- package/dist/highlight/useHighlightElement.mjs +1 -2
- package/dist/index.mjs +3 -3
- package/dist/instanceRegistry.mjs +1 -2
- package/dist/qa/QaContext.mjs +1 -2
- package/dist/qa/QaLayer.mjs +42 -43
- package/dist/qa/checks/contrast.mjs +1 -2
- package/dist/qa/checks/dom.mjs +1 -2
- package/dist/qa/checks/headings.mjs +1 -2
- package/dist/qa/checks/images.mjs +1 -2
- package/dist/qa/checks/index.mjs +1 -2
- package/dist/qa/checks/names.mjs +1 -2
- package/dist/qa/checks/overflow.mjs +1 -2
- package/dist/qa/checks/targets.mjs +1 -2
- package/dist/qa/findings.mjs +1 -2
- package/dist/qa/inspect/colour.mjs +1 -2
- package/dist/qa/inspect/describe.mjs +1 -2
- package/dist/qa/inspect/measure.mjs +1 -2
- package/dist/qa/inspect/rules.mjs +1 -2
- package/dist/qa/overlays/QaBoxModel.mjs +1 -2
- package/dist/qa/overlays/QaContrastBadge.mjs +1 -2
- package/dist/qa/overlays/QaGrid.mjs +1 -2
- package/dist/qa/overlays/QaInspector.mjs +10 -11
- package/dist/qa/overlays/QaMeasure.mjs +1 -2
- package/dist/qa/overlays/QaSwatch.mjs +1 -2
- package/dist/qa/overlays/QaTabOrder.mjs +1 -2
- package/dist/qa/overlays/QaTooltip.mjs +1 -2
- package/dist/qa/overlays/QaViewport.mjs +1 -2
- package/dist/qa/overlays/QaXrayTags.mjs +1 -2
- package/dist/qa/qaCss.mjs +12 -13
- package/dist/qa/qaSettings.mjs +1 -2
- package/dist/qa/tabOrder.mjs +1 -2
- package/dist/qa/usePageBox.mjs +1 -2
- package/dist/qa/xray.mjs +1 -2
- package/dist/scope/helpers.mjs +1 -2
- package/dist/scope/storeSelection.mjs +1 -2
- package/dist/scope/useDevStores.mjs +1 -2
- package/dist/scope/useScope.mjs +1 -2
- package/dist/scope/useStoreState.mjs +1 -2
- package/dist/useHydrated.mjs +1 -2
- package/dist/useNarrowWindow.mjs +1 -2
- package/dist/useRegisterQueriesStore.mjs +1 -2
- package/dist/useRegisterRootStore.mjs +1 -2
- package/package.json +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @plitzi/sdk-dev-tools
|
|
2
2
|
|
|
3
|
+
## 0.39.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fad1264: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
8
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
9
|
+
- Updated dependencies [fad1264]
|
|
10
|
+
- @plitzi/sdk-schema@0.39.2
|
|
11
|
+
- @plitzi/sdk-shared@0.39.2
|
|
12
|
+
|
|
3
13
|
## 0.39.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -5,58 +5,59 @@ import r from "./DevToolsRoot.mjs";
|
|
|
5
5
|
import { useIsSelectedInstance as i } from "./instanceRegistry.mjs";
|
|
6
6
|
import a from "./PageContext.mjs";
|
|
7
7
|
import o from "./useHydrated.mjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { Suspense as
|
|
8
|
+
import s from "./useNarrowWindow.mjs";
|
|
9
|
+
import c from "./useRegisterQueriesStore.mjs";
|
|
10
|
+
import l from "./useRegisterRootStore.mjs";
|
|
11
|
+
import u from "@plitzi/plitzi-ui/ContainerShadow";
|
|
12
|
+
import d from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
13
|
+
import f from "clsx";
|
|
14
|
+
import { Suspense as p, lazy as m, useCallback as h, useRef as g, useState as ee } from "react";
|
|
15
15
|
import { DevStoreScopeContext as _ } from "@plitzi/nexus/react";
|
|
16
16
|
import { DEV_TOOLS_ATTRIBUTE as v } from "@plitzi/sdk-shared/devTools";
|
|
17
|
-
import {
|
|
17
|
+
import { ownHtml as y } from "@plitzi/sdk-shared/security";
|
|
18
|
+
import { useTheme as te } from "@plitzi/sdk-shared/theme/react";
|
|
18
19
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
|
-
var S =
|
|
21
|
-
let { resolvedTheme: F } =
|
|
20
|
+
// src/DevToolsContainer.tsx
|
|
21
|
+
var S = m(() => import("./components/DevToolsOverlay/index.mjs")), C = "horizontal", w = 0, T = ({ children: m, className: T, innerClassName: E, enabled: D = !1, instanceId: ne, renderMode: O = "default", scroll: re = "container", qa: k = !1, run: A = !1, inspector: j = !1, devToolsStyle: M = "", devToolsStyleLink: N = "", devToolsIconsLink: P = "" }) => {
|
|
22
|
+
let { resolvedTheme: F } = te(), [I, L] = d("plitzi-sdk.dev-tools.orientation", C), [R, z] = d("plitzi-sdk.dev-tools.collapsed", !0), [B, V] = d("plitzi-sdk.dev-tools.tab", "logs"), [H, U] = ee(), W = g(void 0), G = g(null);
|
|
22
23
|
W.current ||= `sdk-instance-${++w}`;
|
|
23
|
-
let K =
|
|
24
|
-
|
|
25
|
-
let
|
|
24
|
+
let K = ne || W.current, q = o(), J = s(), Y = q && !J ? I : C, X = i(K, D);
|
|
25
|
+
l(D || j), c(X, K), e(D ? X : j), t(D && X && A);
|
|
26
|
+
let ie = h((e) => L(e), [L]), ae = h((e) => {
|
|
26
27
|
e && V("logs"), U(e), z(!1);
|
|
27
|
-
}, [z, V]),
|
|
28
|
+
}, [z, V]), oe = h(() => z(!0), [z]), se = h((e) => {
|
|
28
29
|
U(void 0), V(e);
|
|
29
30
|
}, [V]);
|
|
30
|
-
if (!D) return
|
|
31
|
-
let Z =
|
|
32
|
-
className:
|
|
31
|
+
if (!D) return m;
|
|
32
|
+
let Z = re === "document" && (!q || R), Q = /* @__PURE__ */ b(S, {
|
|
33
|
+
className: f({ dark: F === "dark" }),
|
|
33
34
|
collapsed: R,
|
|
34
35
|
orientation: Y,
|
|
35
36
|
tabSelected: B,
|
|
36
37
|
logTypeFilter: H,
|
|
37
|
-
onOpen:
|
|
38
|
-
onCollapse:
|
|
39
|
-
onTabSelect:
|
|
40
|
-
onChangeOrientation:
|
|
41
|
-
qa:
|
|
38
|
+
onOpen: ae,
|
|
39
|
+
onCollapse: oe,
|
|
40
|
+
onTabSelect: se,
|
|
41
|
+
onChangeOrientation: ie,
|
|
42
|
+
qa: k,
|
|
42
43
|
run: A
|
|
43
44
|
}), $ = X && q && /* @__PURE__ */ b(r, { children: /* @__PURE__ */ b(a, {
|
|
44
45
|
value: G,
|
|
45
|
-
children: /* @__PURE__ */ b(n, { children: /* @__PURE__ */ x(
|
|
46
|
+
children: /* @__PURE__ */ b(n, { children: /* @__PURE__ */ x(p, {
|
|
46
47
|
fallback: null,
|
|
47
|
-
children: [
|
|
48
|
+
children: [O === "default" && Q, O === "shadow" && /* @__PURE__ */ b("div", {
|
|
48
49
|
style: { display: "contents" },
|
|
49
50
|
[v]: "",
|
|
50
|
-
children: /* @__PURE__ */ x(
|
|
51
|
-
P && /* @__PURE__ */ b(
|
|
52
|
-
N && /* @__PURE__ */ b(
|
|
53
|
-
/* @__PURE__ */ x(
|
|
51
|
+
children: /* @__PURE__ */ x(u, { children: [
|
|
52
|
+
P && /* @__PURE__ */ b(u.Link, { href: P }),
|
|
53
|
+
N && /* @__PURE__ */ b(u.Link, { href: N }),
|
|
54
|
+
/* @__PURE__ */ x(u.Content, { children: [/* @__PURE__ */ b("style", { dangerouslySetInnerHTML: { __html: y(M) } }), Q] })
|
|
54
55
|
] })
|
|
55
56
|
})]
|
|
56
57
|
}) })
|
|
57
58
|
}) });
|
|
58
59
|
return /* @__PURE__ */ x("div", {
|
|
59
|
-
className:
|
|
60
|
+
className: f("relative flex min-w-0 grow", {
|
|
60
61
|
"overflow-auto": !Z,
|
|
61
62
|
"flex-col": Z || Y === "horizontal",
|
|
62
63
|
"h-screen": !Z && Y === "vertical"
|
|
@@ -65,8 +66,8 @@ var S = p(() => import("./components/DevToolsOverlay/index.mjs")), C = "horizont
|
|
|
65
66
|
value: K,
|
|
66
67
|
children: /* @__PURE__ */ b("div", {
|
|
67
68
|
ref: G,
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
69
|
+
className: f("grow", { "basis-0 flex-col overflow-auto": !Z }, E),
|
|
70
|
+
children: m
|
|
70
71
|
})
|
|
71
72
|
}), Z ? /* @__PURE__ */ b("div", {
|
|
72
73
|
className: "sticky bottom-0 h-0",
|
|
@@ -74,5 +75,4 @@ var S = p(() => import("./components/DevToolsOverlay/index.mjs")), C = "horizont
|
|
|
74
75
|
}) : $]
|
|
75
76
|
});
|
|
76
77
|
};
|
|
77
|
-
//#endregion
|
|
78
78
|
export { T as default };
|
|
@@ -3,7 +3,7 @@ import { pConsole as a } from "@plitzi/sdk-shared/devTools";
|
|
|
3
3
|
import { omit as o } from "@plitzi/plitzi-ui/helpers";
|
|
4
4
|
import { DevToolsContext as s } from "@plitzi/sdk-shared/devTools/react";
|
|
5
5
|
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/DevToolsContextProvider.tsx
|
|
7
7
|
var l = ({ children: l }) => {
|
|
8
8
|
let [u, d] = i(() => a.history()), [f, p] = i(() => a.providerMethods()), m = r(!1), h = e((e, t, n, r, i) => {
|
|
9
9
|
d((a) => [...a, {
|
|
@@ -46,5 +46,4 @@ var l = ({ children: l }) => {
|
|
|
46
46
|
children: l
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
//#endregion
|
|
50
49
|
export { l as default };
|
package/dist/DevToolsRoot.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { use as e, useContext as t, useLayoutEffect as n, useRef as r } from "react";
|
|
2
2
|
import { StoreContext as i } from "@plitzi/nexus/react";
|
|
3
|
-
import { ThemeScopeContext as a } from "@plitzi/sdk-shared/theme";
|
|
3
|
+
import { ThemeScopeContext as a } from "@plitzi/sdk-shared/theme/react";
|
|
4
4
|
import { jsx as o } from "react/jsx-runtime";
|
|
5
5
|
import { ThemeContext as s } from "@plitzi/plitzi-ui/Provider";
|
|
6
6
|
import { createRoot as c } from "react-dom/client";
|
|
7
7
|
import { ComponentContext as l } from "@plitzi/sdk-shared/elements";
|
|
8
8
|
import { PluginsContext as u } from "@plitzi/sdk-shared/plugins/react";
|
|
9
|
-
|
|
9
|
+
// src/DevToolsRoot.tsx
|
|
10
10
|
var d = { display: "contents" }, f = ({ children: f }) => {
|
|
11
11
|
let p = r(null), m = r(void 0), h = r(void 0), g = t(i), _ = e(a), v = e(u), y = e(l), b = e(s);
|
|
12
12
|
return n(() => {
|
|
@@ -39,5 +39,4 @@ var d = { display: "contents" }, f = ({ children: f }) => {
|
|
|
39
39
|
style: d
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { f as default };
|
package/dist/PageContext.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord as e } from "@plitzi/sdk-shared/helpers";
|
|
2
|
-
|
|
2
|
+
// src/agentInspector/flowRuns.ts
|
|
3
3
|
var t = (e) => typeof e == "object" && "nodes" in e && "startTime" in e && "node" in e, n = (t) => {
|
|
4
4
|
if (t.status !== "success" || !e(t.result)) return;
|
|
5
5
|
let { status: n, reason: r, error: i } = t.result;
|
|
@@ -29,5 +29,4 @@ var t = (e) => typeof e == "object" && "nodes" in e && "startTime" in e && "node
|
|
|
29
29
|
steps: u
|
|
30
30
|
};
|
|
31
31
|
}, a = (e) => `[flow] ${e.trigger}${e.on ? ` on ${e.on}` : ""} → ${e.status} (${String(e.steps.length)} steps, ${String(e.ms)}ms)` + e.steps.filter((e) => e.error !== void 0).map((e) => `\n ${e.status === "refused" ? "refused" : "✗"} ${e.title} [${e.action}]: ${e.error ?? ""}`).join("");
|
|
32
|
-
//#endregion
|
|
33
32
|
export { a as flowRunLine, i as flowRunOf };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { elementReport as e, findElement as t, plain as n, recordAt as r } from "./report.mjs";
|
|
2
2
|
import { isRecord as i } from "@plitzi/sdk-shared/helpers";
|
|
3
|
-
|
|
3
|
+
// src/agentInspector/inspector.ts
|
|
4
4
|
var a = (e, t) => {
|
|
5
5
|
let n = i(e.definition) ? e.definition : {}, r = i(n.bindings) ? n.bindings : {}, a = Object.values(r).flatMap((e) => Array.isArray(e) ? e : []).find((e) => i(e) && e.to === t && e.enabled !== !1);
|
|
6
6
|
return i(a) && typeof a.source == "string" ? a.source : void 0;
|
|
@@ -62,5 +62,4 @@ var a = (e, t) => {
|
|
|
62
62
|
},
|
|
63
63
|
navigate: (e) => d(l, e) ? e : !1
|
|
64
64
|
});
|
|
65
|
-
//#endregion
|
|
66
65
|
export { p as createAgentInspector };
|
|
@@ -2,7 +2,7 @@ import { isRecord as e } from "@plitzi/sdk-shared/helpers";
|
|
|
2
2
|
import { get as t } from "@plitzi/plitzi-ui/helpers";
|
|
3
3
|
import { getBindingsDetails as n } from "@plitzi/sdk-shared/dataSource";
|
|
4
4
|
import { sightOf as r, sightText as i } from "@plitzi/sdk-shared/devTools/sight";
|
|
5
|
-
|
|
5
|
+
// src/agentInspector/report.ts
|
|
6
6
|
var a = 300, o = (e) => {
|
|
7
7
|
let t = Reflect.get(e, "innerText");
|
|
8
8
|
return typeof t == "string" ? t : e.textContent;
|
|
@@ -75,5 +75,4 @@ var a = 300, o = (e) => {
|
|
|
75
75
|
} } : {}
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
-
//#endregion
|
|
79
78
|
export { p as elementReport, d as findElement, s as plain, c as recordAt, f as resolvedBindings };
|
|
@@ -5,7 +5,7 @@ import { StoreContext as a } from "@plitzi/nexus/react";
|
|
|
5
5
|
import { pConsole as o } from "@plitzi/sdk-shared/devTools";
|
|
6
6
|
import { getDevStoresSnapshot as s } from "@plitzi/nexus";
|
|
7
7
|
import { useCommonStoreSetter as c } from "@plitzi/sdk-shared/store";
|
|
8
|
-
|
|
8
|
+
// src/agentInspector/useAgentInspector.ts
|
|
9
9
|
var l = 100, u = (u, d) => {
|
|
10
10
|
let f = r(a), p = c();
|
|
11
11
|
i(() => {
|
|
@@ -36,5 +36,4 @@ var l = 100, u = (u, d) => {
|
|
|
36
36
|
d
|
|
37
37
|
]);
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { u as default };
|
|
@@ -5,7 +5,7 @@ import { use as r, useCallback as i, useMemo as a, useRef as o, useState as s }
|
|
|
5
5
|
import { DEV_TOOLS_ATTRIBUTE as c } from "@plitzi/sdk-shared/devTools";
|
|
6
6
|
import { DevToolsContext as l } from "@plitzi/sdk-shared/devTools/react";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/DevToolsIndicator/DevToolsIndicator.tsx
|
|
9
9
|
var f = 5, p = ({ className: p, onOpen: m }) => {
|
|
10
10
|
let { logs: h } = r(l), [g, _] = t("plitzi-sdk.dev-tools.badge-side", "left"), [v, y] = s(), b = o(void 0), x = o(null), { errors: S, warnings: C } = a(() => h.reduce((e, { logType: t }) => ({
|
|
11
11
|
errors: t === "danger" ? e.errors + 1 : e.errors,
|
|
@@ -29,7 +29,7 @@ var f = 5, p = ({ className: p, onOpen: m }) => {
|
|
|
29
29
|
b.current?.dragging && n && _(e(t.clientX, n)), y(void 0);
|
|
30
30
|
}, [_]), D = i(() => {
|
|
31
31
|
let e = b.current?.dragging === !0;
|
|
32
|
-
b.current = void 0,
|
|
32
|
+
b.current = void 0, e || (S > 0 ? m("danger") : C > 0 ? m("warning") : m());
|
|
33
33
|
}, [
|
|
34
34
|
S,
|
|
35
35
|
C,
|
|
@@ -62,5 +62,4 @@ var f = 5, p = ({ className: p, onOpen: m }) => {
|
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { p as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
1
|
+
import { QaProvider as e } from "../../qa/QaContext.mjs";
|
|
2
|
+
import t from "../../qa/QaLayer.mjs";
|
|
3
|
+
import n from "../DevToolsIndicator/index.mjs";
|
|
4
4
|
import r from "../DevToolsPanel/index.mjs";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/DevToolsOverlay/DevToolsOverlay.tsx
|
|
7
7
|
var s = ({ className: s, collapsed: c, orientation: l, tabSelected: u, logTypeFilter: d, onOpen: f, onCollapse: p, onTabSelect: m, onChangeOrientation: h, qa: g, run: _ }) => {
|
|
8
|
-
let v = /* @__PURE__ */ o(i, { children: [c && /* @__PURE__ */ a(
|
|
8
|
+
let v = /* @__PURE__ */ o(i, { children: [c && /* @__PURE__ */ a(n, {
|
|
9
9
|
className: s,
|
|
10
10
|
onOpen: f
|
|
11
11
|
}), !c && /* @__PURE__ */ a(r, {
|
|
@@ -19,10 +19,9 @@ var s = ({ className: s, collapsed: c, orientation: l, tabSelected: u, logTypeFi
|
|
|
19
19
|
onTabSelect: m,
|
|
20
20
|
onChangeOrientation: h
|
|
21
21
|
})] });
|
|
22
|
-
return g ? /* @__PURE__ */ o(
|
|
22
|
+
return g ? /* @__PURE__ */ o(e, {
|
|
23
23
|
collapsed: c,
|
|
24
|
-
children: [/* @__PURE__ */ a(
|
|
24
|
+
children: [/* @__PURE__ */ a(t, {}), v]
|
|
25
25
|
}) : v;
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { s as default };
|
|
@@ -14,7 +14,7 @@ import f from "clsx";
|
|
|
14
14
|
import { use as p } from "react";
|
|
15
15
|
import { DevToolsContext as m } from "@plitzi/sdk-shared/devTools/react";
|
|
16
16
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
17
|
-
|
|
17
|
+
// src/components/DevToolsPanel/DevToolsBody.tsx
|
|
18
18
|
var _ = ({ className: _, tabSelected: v, orientation: y, logTypeFilter: b, elementSelected: x, onSelectElement: S, qa: C = !1, run: w }) => {
|
|
19
19
|
let { logs: T, clearLogs: E } = p(m);
|
|
20
20
|
return /* @__PURE__ */ h("div", {
|
|
@@ -46,5 +46,4 @@ var _ = ({ className: _, tabSelected: v, orientation: y, logTypeFilter: b, eleme
|
|
|
46
46
|
})
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
//#endregion
|
|
50
49
|
export { _ as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "clsx";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/DevToolsPanel/DevToolsButton.tsx
|
|
4
4
|
var n = ({ className: n, iconClassName: r, title: i, isSelected: a = !1, disabled: o = !1, onClick: s }) => /* @__PURE__ */ t("button", {
|
|
5
5
|
className: e("flex h-6 w-6 cursor-pointer items-center justify-center rounded transition-colors disabled:cursor-not-allowed disabled:opacity-40", {
|
|
6
6
|
"bg-violet-500/10 text-violet-600 dark:bg-violet-500/20 dark:text-violet-400": a,
|
|
@@ -11,5 +11,4 @@ var n = ({ className: n, iconClassName: r, title: i, isSelected: a = !1, disable
|
|
|
11
11
|
onClick: s,
|
|
12
12
|
children: /* @__PURE__ */ t("i", { className: e("text-xs", r) })
|
|
13
13
|
});
|
|
14
|
-
//#endregion
|
|
15
14
|
export { n as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import r from "
|
|
1
|
+
import e from "./DevToolsButton.mjs";
|
|
2
|
+
import t from "./ThemeControl.mjs";
|
|
3
|
+
import { useScopeSelector as n } from "../../scope/useScope.mjs";
|
|
4
|
+
import r from "../../useNarrowWindow.mjs";
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
import { useCallback as a, useEffect as o, useRef as s } from "react";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/DevToolsPanel/DevToolsHeader.tsx
|
|
9
9
|
var u = [
|
|
10
10
|
{
|
|
11
11
|
id: "logs",
|
|
@@ -68,14 +68,14 @@ var u = [
|
|
|
68
68
|
icon: "fa-solid fa-people-group"
|
|
69
69
|
}
|
|
70
70
|
], d = ({ tabSelected: d, orientation: f = "vertical", onChangeOrientation: p, onCollapse: m, onTabSelect: h, qa: g = !1, run: _ = !1 }) => {
|
|
71
|
-
let v = u.filter((e) => (e.id !== "qa" || g) && (e.id !== "run" || _)), y =
|
|
71
|
+
let v = u.filter((e) => (e.id !== "qa" || g) && (e.id !== "run" || _)), y = r(), b = s(null);
|
|
72
72
|
o(() => {
|
|
73
73
|
b.current?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({
|
|
74
74
|
block: "nearest",
|
|
75
75
|
inline: "nearest"
|
|
76
76
|
});
|
|
77
77
|
}, [d]);
|
|
78
|
-
let { options: x, value: S, onSelect: C } =
|
|
78
|
+
let { options: x, value: S, onSelect: C } = n(), w = a(() => {
|
|
79
79
|
p?.(f === "horizontal" ? "vertical" : "horizontal");
|
|
80
80
|
}, [f, p]), T = a((e) => () => h?.(e), [h]), E = a((e) => C(e.target.value), [C]);
|
|
81
81
|
return /* @__PURE__ */ l("div", {
|
|
@@ -113,14 +113,14 @@ var u = [
|
|
|
113
113
|
}, e.value))
|
|
114
114
|
}, e.label))
|
|
115
115
|
}),
|
|
116
|
-
/* @__PURE__ */ c(
|
|
117
|
-
/* @__PURE__ */ c(
|
|
116
|
+
/* @__PURE__ */ c(t, {}),
|
|
117
|
+
/* @__PURE__ */ c(e, {
|
|
118
118
|
iconClassName: i("fa-solid fa-table-columns", { "rotate-90": f === "vertical" }),
|
|
119
119
|
title: y ? "At the bottom while the window is under 900 px: beside it, the page would have no room" : f === "horizontal" ? "Switch to side panel" : "Switch to bottom panel",
|
|
120
120
|
disabled: y,
|
|
121
121
|
onClick: w
|
|
122
122
|
}),
|
|
123
|
-
/* @__PURE__ */ c(
|
|
123
|
+
/* @__PURE__ */ c(e, {
|
|
124
124
|
iconClassName: "fa-solid fa-xmark",
|
|
125
125
|
title: "Collapse to the indicator",
|
|
126
126
|
onClick: m
|
|
@@ -129,5 +129,4 @@ var u = [
|
|
|
129
129
|
})]
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
|
-
//#endregion
|
|
133
132
|
export { d as default };
|
|
@@ -9,7 +9,7 @@ import { DEV_TOOLS_ATTRIBUTE as u } from "@plitzi/sdk-shared/devTools";
|
|
|
9
9
|
import { useCommonStore as d } from "@plitzi/sdk-shared/store";
|
|
10
10
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
11
|
import m from "@plitzi/plitzi-ui/ContainerResizable";
|
|
12
|
-
|
|
12
|
+
// src/components/DevToolsPanel/DevToolsPanel.tsx
|
|
13
13
|
var h = "vertical", g = "horizontal", _ = ({ className: h, orientation: g = "vertical", tabSelected: _, logTypeFilter: v, onCollapse: y, onTabSelect: b, onChangeOrientation: x, qa: S = !1, run: C = !1 }) => {
|
|
14
14
|
let [w, T] = i("plitzi-sdk.dev-tools.size", {
|
|
15
15
|
width: 500,
|
|
@@ -61,5 +61,4 @@ var h = "vertical", g = "horizontal", _ = ({ className: h, orientation: g = "ver
|
|
|
61
61
|
})
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { g as ORIENTATION_HORIZONTAL, h as ORIENTATION_VERTICAL, _ as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
1
|
+
import e from "./DevToolsButton.mjs";
|
|
2
|
+
import t from "../../highlight/index.mjs";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { useCallback as r, useEffect as i, useMemo as a, useState as o } from "react";
|
|
5
5
|
import { elementOf as s } from "@plitzi/sdk-shared/helpers";
|
|
6
6
|
import { throttle as c } from "@plitzi/plitzi-ui/helpers";
|
|
7
7
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/DevToolsPanel/DevToolsSubHeader.tsx
|
|
9
9
|
var d = ({ className: d, elementSelected: f, currentPageId: p, onSelectElement: m }) => {
|
|
10
10
|
let [h, g] = o(!1), _ = r((e) => {
|
|
11
11
|
let { id: t } = e?.dataset ?? {};
|
|
@@ -21,7 +21,7 @@ var d = ({ className: d, elementSelected: f, currentPageId: p, onSelectElement:
|
|
|
21
21
|
}, [p, m]), C = r(() => {
|
|
22
22
|
g(!1), m("");
|
|
23
23
|
}, [m]);
|
|
24
|
-
return
|
|
24
|
+
return t(f), i(() => {
|
|
25
25
|
if (!h || typeof document > "u") return;
|
|
26
26
|
let e = document.getElementsByClassName("plitzi-sdk")[0];
|
|
27
27
|
if (e) return e.addEventListener("click", b), e.addEventListener("mousemove", y), () => {
|
|
@@ -35,18 +35,18 @@ var d = ({ className: d, elementSelected: f, currentPageId: p, onSelectElement:
|
|
|
35
35
|
className: n("flex shrink-0 items-center justify-between gap-2 border-b border-zinc-200 bg-zinc-50 px-2 py-1 dark:border-zinc-700 dark:bg-zinc-800", d),
|
|
36
36
|
children: [/* @__PURE__ */ u("div", {
|
|
37
37
|
className: "flex gap-1",
|
|
38
|
-
children: [/* @__PURE__ */ l(
|
|
38
|
+
children: [/* @__PURE__ */ l(e, {
|
|
39
39
|
iconClassName: "fa-regular fa-hand-pointer",
|
|
40
40
|
title: "Select an element in the page to inspect it",
|
|
41
41
|
onClick: x,
|
|
42
42
|
isSelected: h
|
|
43
|
-
}), /* @__PURE__ */ l(
|
|
43
|
+
}), /* @__PURE__ */ l(e, {
|
|
44
44
|
iconClassName: "fa-regular fa-file",
|
|
45
45
|
title: "Current Page",
|
|
46
46
|
onClick: S,
|
|
47
47
|
isSelected: f === p
|
|
48
48
|
})]
|
|
49
|
-
}), /* @__PURE__ */ l(
|
|
49
|
+
}), /* @__PURE__ */ l(e, {
|
|
50
50
|
iconClassName: "fa-solid fa-ban",
|
|
51
51
|
onClick: C,
|
|
52
52
|
title: "Clear",
|
|
@@ -54,5 +54,4 @@ var d = ({ className: d, elementSelected: f, currentPageId: p, onSelectElement:
|
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
export { d as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "./DevToolsButton.mjs";
|
|
2
2
|
import { useCallback as t } from "react";
|
|
3
|
-
import { useTheme as n } from "@plitzi/sdk-shared/theme";
|
|
3
|
+
import { useTheme as n } from "@plitzi/sdk-shared/theme/react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/DevToolsPanel/ThemeControl.tsx
|
|
6
6
|
var i = {
|
|
7
7
|
system: "light",
|
|
8
8
|
light: "dark",
|
|
@@ -23,5 +23,4 @@ var i = {
|
|
|
23
23
|
onClick: l
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { s as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import e, { ORIENTATION_HORIZONTAL as t, ORIENTATION_VERTICAL as n } from "./DevToolsPanel.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/DevToolsPanel/index.ts
|
|
3
3
|
var r = e;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { t as ORIENTATION_HORIZONTAL, n as ORIENTATION_VERTICAL, r as default };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import e from "./components/ActionsToolbar/index.mjs";
|
|
2
2
|
import t from "./components/DetailShell/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import a from "./
|
|
3
|
+
import n from "./components/RunDetail/index.mjs";
|
|
4
|
+
import r from "./components/RunList/index.mjs";
|
|
5
|
+
import { filterRuns as i, isLive as a } from "./helpers.mjs";
|
|
6
6
|
import o from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
7
7
|
import { useCallback as s, useMemo as c, useState as l } from "react";
|
|
8
8
|
import { cancelActionRun as u, useActionRuns as d, useCommonStore as f } from "@plitzi/sdk-shared/store";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/ActionsViewer.tsx
|
|
11
11
|
var h = "This page is served without a Plitzi server: every action step is inert", g = () => {
|
|
12
|
-
let { runs: g, clear: _ } = d(), [v] = f("actions.endpoint"), [y, b] = o("plitzi-sdk.dev-tools.actions.filter", "all"), [x, S] = l(""), [C, w] = l(), [T, E] = l(), D = c(() =>
|
|
12
|
+
let { runs: g, clear: _ } = d(), [v] = f("actions.endpoint"), [y, b] = o("plitzi-sdk.dev-tools.actions.filter", "all"), [x, S] = l(""), [C, w] = l(), [T, E] = l(), D = c(() => i(g, y, x), [
|
|
13
13
|
g,
|
|
14
14
|
y,
|
|
15
15
|
x
|
|
16
|
-
]), O = c(() => g.filter(
|
|
16
|
+
]), O = c(() => g.filter(a).length, [g]), k = c(() => g.find((e) => e.id === C), [g, C]), A = s((e) => {
|
|
17
17
|
w((t) => t === e ? void 0 : e), E(void 0);
|
|
18
18
|
}, []), j = s((e) => {
|
|
19
19
|
E((t) => t === e ? void 0 : e);
|
|
@@ -38,13 +38,13 @@ var h = "This page is served without a Plitzi server: every action step is inert
|
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ m("div", {
|
|
40
40
|
className: "flex min-h-0 grow",
|
|
41
|
-
children: [/* @__PURE__ */ p(
|
|
41
|
+
children: [/* @__PURE__ */ p(r, {
|
|
42
42
|
runs: D,
|
|
43
43
|
total: g.length,
|
|
44
44
|
selectedRunId: C,
|
|
45
45
|
onSelect: A,
|
|
46
46
|
onCancel: M
|
|
47
|
-
}), k !== void 0 && /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(
|
|
47
|
+
}), k !== void 0 && /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(n, {
|
|
48
48
|
run: k,
|
|
49
49
|
selectedStepId: T,
|
|
50
50
|
onSelectStep: j
|
|
@@ -53,5 +53,4 @@ var h = "This page is served without a Plitzi server: every action step is inert
|
|
|
53
53
|
]
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
export { g as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "clsx";
|
|
2
2
|
import { useCallback as t } from "react";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/ActionsToolbar.tsx
|
|
5
5
|
var i = [
|
|
6
6
|
{
|
|
7
7
|
id: "all",
|
|
@@ -64,5 +64,4 @@ var i = [
|
|
|
64
64
|
]
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
//#endregion
|
|
68
67
|
export { a as default };
|
package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import e from "./ActionsToolbar.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/index.ts
|
|
3
3
|
var t = e;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { t as default };
|
package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/DetailShell/DetailShell.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../../../../../ResizableSidebar/index.mjs";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/components/DetailShell/DetailShell.tsx
|
|
4
4
|
var n = ({ children: n }) => /* @__PURE__ */ t(e, {
|
|
5
5
|
storageKey: "plitzi-sdk.dev-tools.actions.detail-width",
|
|
6
6
|
minWidth: 200,
|
|
@@ -8,5 +8,4 @@ var n = ({ children: n }) => /* @__PURE__ */ t(e, {
|
|
|
8
8
|
defaultWidth: 280,
|
|
9
9
|
children: n
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { n as default };
|
package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/FlowTimeline/FlowTimeline.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { stepBars as e } from "../../helpers.mjs";
|
|
|
2
2
|
import t from "../StepRow/index.mjs";
|
|
3
3
|
import { useMemo as n } from "react";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/components/FlowTimeline/FlowTimeline.tsx
|
|
6
6
|
var a = ({ steps: a, selectedStepId: o, onSelectStep: s }) => {
|
|
7
7
|
let c = n(() => e(a), [a]), l = c.filter((e) => e.step.phase === "flow"), u = c.filter((e) => e.step.phase === "undo");
|
|
8
8
|
return /* @__PURE__ */ i("div", {
|
|
@@ -25,5 +25,4 @@ var a = ({ steps: a, selectedStepId: o, onSelectStep: s }) => {
|
|
|
25
25
|
]
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
//#endregion
|
|
29
28
|
export { a as default };
|
|
@@ -4,7 +4,7 @@ import l from "../FlowTimeline/index.mjs";
|
|
|
4
4
|
import u from "clsx";
|
|
5
5
|
import { useMemo as d } from "react";
|
|
6
6
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/DevToolsPanel/tabs/ActionsViewer/components/RunDetail/RunDetail.tsx
|
|
8
8
|
var h = {
|
|
9
9
|
info: "bg-violet-500/15 text-violet-600 dark:text-violet-400",
|
|
10
10
|
success: "bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",
|
|
@@ -136,5 +136,4 @@ var h = {
|
|
|
136
136
|
})] })
|
|
137
137
|
] });
|
|
138
138
|
};
|
|
139
|
-
//#endregion
|
|
140
139
|
export { y as default };
|