@motiadev/workbench 0.7.2-beta.135-685562 → 0.7.2-beta.135-604391
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/src/App.js +2 -2
- package/dist/src/components/flow/base-edge.js +1 -1
- package/dist/src/components/logs/log-detail.js +1 -1
- package/dist/src/components/observability/trace-item/trace-item-detail.js +1 -2
- package/dist/src/components/observability/trace-item/trace-item.js +1 -1
- package/dist/src/components/observability/traces-groups.js +1 -1
- package/dist/src/components/states/state-editor.js +1 -1
- package/dist/src/components/states/state-sidebar.js +1 -1
- package/dist/src/components/ui/table.js +1 -1
- package/dist/src/components/ui/theme-toggle.js +1 -1
- package/dist/src/index.css +10 -6
- package/dist/src/lib/utils.d.ts +0 -2
- package/dist/src/lib/utils.js +0 -5
- package/dist/src/publicComponents/base-node/feature-card.js +1 -1
- package/dist/src/publicComponents/base-node/node-header.js +1 -1
- package/dist/src/publicComponents/base-node/node-sidebar.js +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/dist/src/components/endpoints/endpoint-badge.d.ts +0 -10
- package/dist/src/components/endpoints/endpoint-badge.js +0 -22
- package/dist/src/components/endpoints/endpoint-body-panel.d.ts +0 -13
- package/dist/src/components/endpoints/endpoint-body-panel.js +0 -16
- package/dist/src/components/endpoints/endpoint-call.d.ts +0 -7
- package/dist/src/components/endpoints/endpoint-call.js +0 -58
- package/dist/src/components/endpoints/endpoint-description.d.ts +0 -7
- package/dist/src/components/endpoints/endpoint-description.js +0 -13
- package/dist/src/components/endpoints/endpoint-path-params-panel.d.ts +0 -8
- package/dist/src/components/endpoints/endpoint-path-params-panel.js +0 -17
- package/dist/src/components/endpoints/endpoint-query-params-panel.d.ts +0 -8
- package/dist/src/components/endpoints/endpoint-query-params-panel.js +0 -16
- package/dist/src/components/endpoints/endpoint-response-schema.d.ts +0 -10
- package/dist/src/components/endpoints/endpoint-response-schema.js +0 -17
- package/dist/src/components/endpoints/endpoint-response.d.ts +0 -8
- package/dist/src/components/endpoints/endpoint-response.js +0 -50
- package/dist/src/components/endpoints/endpoint-side-panel.d.ts +0 -8
- package/dist/src/components/endpoints/endpoint-side-panel.js +0 -25
- package/dist/src/components/endpoints/endpoints-page.d.ts +0 -1
- package/dist/src/components/endpoints/endpoints-page.js +0 -14
- package/dist/src/components/endpoints/hooks/use-get-endpoints.d.ts +0 -2
- package/dist/src/components/endpoints/hooks/use-get-endpoints.js +0 -8
- package/dist/src/components/endpoints/hooks/use-json-schema-to-json.d.ts +0 -4
- package/dist/src/components/endpoints/hooks/use-json-schema-to-json.js +0 -11
- package/dist/src/components/endpoints/hooks/use-path-params.d.ts +0 -1
- package/dist/src/components/endpoints/hooks/use-path-params.js +0 -4
- package/dist/src/components/endpoints/hooks/use-state-stream.d.ts +0 -7
- package/dist/src/components/endpoints/hooks/use-state-stream.js +0 -11
- package/dist/src/components/endpoints/hooks/utils.d.ts +0 -1
- package/dist/src/components/endpoints/hooks/utils.js +0 -29
- package/dist/src/components/endpoints/response-body.d.ts +0 -7
- package/dist/src/components/endpoints/response-body.js +0 -6
- package/dist/src/components/sidebar/sidebar.d.ts +0 -8
- package/dist/src/components/sidebar/sidebar.js +0 -39
- /package/dist/src/components/{endpoints → ui}/json-editor.d.ts +0 -0
- /package/dist/src/components/{endpoints → ui}/json-editor.js +0 -0
package/dist/src/App.js
CHANGED
|
@@ -4,15 +4,15 @@ import { analytics } from '@/lib/analytics';
|
|
|
4
4
|
import { ReactFlowProvider } from '@xyflow/react';
|
|
5
5
|
import { File, GanttChart, Link2, LogsIcon } from 'lucide-react';
|
|
6
6
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
|
-
import { EndpointsPage } from './components/endpoints/endpoints-page';
|
|
8
7
|
import { FlowPage } from './components/flow/flow-page';
|
|
9
8
|
import { FlowTabMenuItem } from './components/flow/flow-tab-menu-item';
|
|
10
9
|
import { Header } from './components/header/header';
|
|
11
10
|
import { LogsPage } from './components/logs/logs-page';
|
|
12
11
|
import { TracesPage } from './components/observability/traces-page';
|
|
13
|
-
import { APP_SIDEBAR_CONTAINER_ID } from '
|
|
12
|
+
import { APP_SIDEBAR_CONTAINER_ID } from '@motiadev/ui';
|
|
14
13
|
import { StatesPage } from './components/states/states-page';
|
|
15
14
|
import { useTabsStore } from './stores/use-tabs-store';
|
|
15
|
+
import { EndpointsPage } from '@motiadev/plugin-endpoint';
|
|
16
16
|
var TabLocation;
|
|
17
17
|
(function (TabLocation) {
|
|
18
18
|
TabLocation["TOP"] = "top";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BaseEdge as BaseReactFlowEdge, EdgeLabelRenderer, getSmoothStepPath } from '@xyflow/react';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
|
-
import { cn } from '
|
|
4
|
+
import { cn } from '@motiadev/ui';
|
|
5
5
|
const labelVariants = cva('absolute pointer-events-all text-cs border p-1 px-2', {
|
|
6
6
|
variants: {
|
|
7
7
|
color: {
|
|
@@ -5,7 +5,7 @@ import ReactJson from 'react18-json-view';
|
|
|
5
5
|
import 'react18-json-view/src/dark.css';
|
|
6
6
|
import 'react18-json-view/src/style.css';
|
|
7
7
|
import { LogLevelDot } from './log-level-dot';
|
|
8
|
-
import { Sidebar } from '
|
|
8
|
+
import { Sidebar } from '@motiadev/ui';
|
|
9
9
|
import { X } from 'lucide-react';
|
|
10
10
|
const defaultProps = ['id', 'msg', 'time', 'level', 'step', 'flows', 'traceId'];
|
|
11
11
|
export const LogDetail = ({ log, onClose }) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Sidebar } from '
|
|
3
|
-
import { Badge } from '@motiadev/ui';
|
|
2
|
+
import { Sidebar, Badge } from '@motiadev/ui';
|
|
4
3
|
import { formatDuration } from '@/lib/utils';
|
|
5
4
|
import { X } from 'lucide-react';
|
|
6
5
|
import { memo } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@motiadev/ui';
|
|
3
3
|
export const TraceItem = ({ trace, group, groupEndTime, onExpand }) => {
|
|
4
4
|
return (_jsxs("div", { className: "flex hover:bg-muted-foreground/10 relative cursor-pointer", onClick: () => onExpand(trace.id), "data-testid": "trace-timeline-item", children: [_jsx("div", { className: "flex items-center min-w-[200px] max-w-[200px] h-[32px] max-h-[32px] py-4 px-2 text-sm font-semibold text-foreground truncate sticky left-0 bg-card z-9", children: trace.name }), _jsx("div", { className: "flex w-full flex-row items-center hover:bg-muted/50 rounded-md", children: _jsx("div", { className: "relative w-full h-[32px] flex items-center", children: _jsx("div", { className: cn('h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200', {
|
|
5
5
|
'bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]': trace.status === 'running',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@motiadev/ui';
|
|
3
3
|
import { formatDistanceToNow } from 'date-fns';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { TraceStatusBadge } from './trace-status';
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Button } from '@motiadev/ui';
|
|
3
3
|
import { AlertCircle, Check, Loader2, Save } from 'lucide-react';
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
|
-
import { JsonEditor } from '../
|
|
5
|
+
import { JsonEditor } from '../ui/json-editor';
|
|
6
6
|
export const StateEditor = ({ state }) => {
|
|
7
7
|
const [isRequestLoading, setIsRequestLoading] = useState(false);
|
|
8
8
|
const [isValid, setIsValid] = useState(true);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Sidebar } from '
|
|
2
|
+
import { Sidebar } from '@motiadev/ui';
|
|
3
3
|
import { X } from 'lucide-react';
|
|
4
4
|
import { StateDetails } from './state-details';
|
|
5
5
|
import { StateEditor } from './state-editor';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { cn } from '
|
|
3
|
+
import { cn } from '@motiadev/ui';
|
|
4
4
|
const Table = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", { ref: ref, className: cn('w-full caption-bottom text-sm', className), ...props }) })));
|
|
5
5
|
Table.displayName = 'Table';
|
|
6
6
|
const TableHeader = React.forwardRef(({ className, ...props }, ref) => _jsx("thead", { ref: ref, className: cn('[&_tr]:border-b', className), ...props }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Moon, Sun } from 'lucide-react';
|
|
3
3
|
import { useThemeStore } from '@/stores/use-theme-store';
|
|
4
|
-
import { cn } from '
|
|
4
|
+
import { cn } from '@motiadev/ui';
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
export const ThemeToggle = () => {
|
|
7
7
|
const theme = useThemeStore((state) => state.theme);
|
package/dist/src/index.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '@motiadev/plugin-endpoint/styles.css';
|
|
2
|
+
@import '@motiadev/ui/styles.css';
|
|
3
|
+
@import '@motiadev/ui/globals.css';
|
|
4
|
+
|
|
3
5
|
@import 'tw-animate-css';
|
|
4
6
|
@config "../tailwind.config.js";
|
|
5
7
|
|
|
@@ -13,12 +15,12 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.json-view {
|
|
16
|
-
background:rgba(0, 0, 0, 0.1);
|
|
18
|
+
background: rgba(0, 0, 0, 0.1);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.dark {
|
|
20
22
|
.react-flow__panel {
|
|
21
|
-
background: var(--background)
|
|
23
|
+
background: var(--background);
|
|
22
24
|
}
|
|
23
25
|
.json-view {
|
|
24
26
|
background: rgba(0, 0, 0, 0.8);
|
|
@@ -45,10 +47,12 @@
|
|
|
45
47
|
font-weight: 500;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
.json-view--pair,
|
|
50
|
+
.json-view--pair,
|
|
51
|
+
.json-view--property,
|
|
52
|
+
.json-view > span {
|
|
49
53
|
line-height: 24px;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
.json-view--property {
|
|
53
57
|
font-weight: 600;
|
|
54
|
-
}
|
|
58
|
+
}
|
package/dist/src/lib/utils.d.ts
CHANGED
package/dist/src/lib/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@motiadev/ui';
|
|
3
3
|
export const FeatureCard = ({ feature, highlighted, onClick, onHover }) => {
|
|
4
4
|
return (_jsxs("div", { "data-feature-id": feature.id, className: cn('p-4 rounded-lg bg-card shadow-sm cursor-pointer hover:bg-card/50 border-2 border-transparent', highlighted && 'border-2 border-accent-1000 bg-accent-100'), onClick: onClick, onMouseEnter: onHover, children: [_jsx("div", { className: "text-md font-semibold text-foreground leading-tight whitespace-nowrap mb-2", children: feature.title }), _jsx("div", { className: "text-sm font-medium text-muted-foreground leading-tight", children: feature.description }), feature.link && (_jsx("div", { className: "text-sm font-medium text-muted-foreground leading-tight", children: _jsx("a", { href: feature.link, children: "Learn more" }) }))] }));
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@motiadev/ui';
|
|
3
3
|
import { cva } from 'class-variance-authority';
|
|
4
4
|
import { CalendarClock, CircleOff, Link2, Waypoints } from 'lucide-react';
|
|
5
5
|
const baseIcon = cva('rounded-md p-2', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Sidebar } from '
|
|
2
|
+
import { Sidebar } from '@motiadev/ui';
|
|
3
3
|
import { X } from 'lucide-react';
|
|
4
4
|
import { CodeDisplay } from './code-display';
|
|
5
5
|
export const NodeSidebar = ({ content, title, subtitle, language, isOpen, onClose, features, }) => {
|