@motiadev/workbench 0.7.2-beta.135-745094 → 0.7.3-beta.135

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.
Files changed (55) hide show
  1. package/dist/src/App.js +2 -2
  2. package/dist/src/components/endpoints/endpoint-badge.d.ts +10 -0
  3. package/dist/src/components/endpoints/endpoint-badge.js +22 -0
  4. package/dist/src/components/endpoints/endpoint-body-panel.d.ts +13 -0
  5. package/dist/src/components/endpoints/endpoint-body-panel.js +16 -0
  6. package/dist/src/components/endpoints/endpoint-call.d.ts +7 -0
  7. package/dist/src/components/endpoints/endpoint-call.js +58 -0
  8. package/dist/src/components/endpoints/endpoint-description.d.ts +7 -0
  9. package/dist/src/components/endpoints/endpoint-description.js +13 -0
  10. package/dist/src/components/endpoints/endpoint-path-params-panel.d.ts +8 -0
  11. package/dist/src/components/endpoints/endpoint-path-params-panel.js +17 -0
  12. package/dist/src/components/endpoints/endpoint-query-params-panel.d.ts +8 -0
  13. package/dist/src/components/endpoints/endpoint-query-params-panel.js +16 -0
  14. package/dist/src/components/endpoints/endpoint-response-schema.d.ts +10 -0
  15. package/dist/src/components/endpoints/endpoint-response-schema.js +17 -0
  16. package/dist/src/components/endpoints/endpoint-response.d.ts +8 -0
  17. package/dist/src/components/endpoints/endpoint-response.js +50 -0
  18. package/dist/src/components/endpoints/endpoint-side-panel.d.ts +8 -0
  19. package/dist/src/components/endpoints/endpoint-side-panel.js +25 -0
  20. package/dist/src/components/endpoints/endpoints-page.d.ts +1 -0
  21. package/dist/src/components/endpoints/endpoints-page.js +14 -0
  22. package/dist/src/components/endpoints/hooks/use-get-endpoints.d.ts +2 -0
  23. package/dist/src/components/endpoints/hooks/use-get-endpoints.js +8 -0
  24. package/dist/src/components/endpoints/hooks/use-json-schema-to-json.d.ts +4 -0
  25. package/dist/src/components/endpoints/hooks/use-json-schema-to-json.js +11 -0
  26. package/dist/src/components/endpoints/hooks/use-path-params.d.ts +1 -0
  27. package/dist/src/components/endpoints/hooks/use-path-params.js +4 -0
  28. package/dist/src/components/endpoints/hooks/use-state-stream.d.ts +7 -0
  29. package/dist/src/components/endpoints/hooks/use-state-stream.js +11 -0
  30. package/dist/src/components/endpoints/hooks/utils.d.ts +1 -0
  31. package/dist/src/components/endpoints/hooks/utils.js +29 -0
  32. package/dist/src/components/endpoints/response-body.d.ts +7 -0
  33. package/dist/src/components/endpoints/response-body.js +6 -0
  34. package/dist/src/components/flow/base-edge.js +1 -1
  35. package/dist/src/components/logs/log-detail.js +1 -1
  36. package/dist/src/components/observability/trace-item/trace-item-detail.js +2 -1
  37. package/dist/src/components/observability/trace-item/trace-item.js +1 -1
  38. package/dist/src/components/observability/traces-groups.js +1 -1
  39. package/dist/src/components/sidebar/sidebar.d.ts +8 -0
  40. package/dist/src/components/sidebar/sidebar.js +39 -0
  41. package/dist/src/components/states/state-editor.js +1 -1
  42. package/dist/src/components/states/state-sidebar.js +1 -1
  43. package/dist/src/components/ui/table.js +1 -1
  44. package/dist/src/components/ui/theme-toggle.js +1 -1
  45. package/dist/src/index.css +6 -10
  46. package/dist/src/lib/utils.d.ts +2 -0
  47. package/dist/src/lib/utils.js +5 -0
  48. package/dist/src/publicComponents/base-node/feature-card.js +1 -1
  49. package/dist/src/publicComponents/base-node/node-header.js +1 -1
  50. package/dist/src/publicComponents/base-node/node-sidebar.js +1 -1
  51. package/dist/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/tsconfig.node.tsbuildinfo +1 -1
  53. package/package.json +3 -4
  54. /package/dist/src/components/{ui → endpoints}/json-editor.d.ts +0 -0
  55. /package/dist/src/components/{ui → endpoints}/json-editor.js +0 -0
@@ -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 '@motiadev/ui';
3
+ import { cn } from '@/lib/utils';
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 '@motiadev/ui';
4
+ import { cn } from '@/lib/utils';
5
5
  import { useEffect } from 'react';
6
6
  export const ThemeToggle = () => {
7
7
  const theme = useThemeStore((state) => state.theme);
@@ -1,7 +1,5 @@
1
- @import '@motiadev/plugin-endpoint/styles.css';
2
- @import '@motiadev/ui/styles.css';
3
- @import '@motiadev/ui/globals.css';
4
-
1
+ @import "@motiadev/ui/styles.css";
2
+ @import "@motiadev/ui/globals.css";
5
3
  @import 'tw-animate-css';
6
4
  @config "../tailwind.config.js";
7
5
 
@@ -15,12 +13,12 @@
15
13
  }
16
14
 
17
15
  .json-view {
18
- background: rgba(0, 0, 0, 0.1);
16
+ background:rgba(0, 0, 0, 0.1);
19
17
  }
20
18
 
21
19
  .dark {
22
20
  .react-flow__panel {
23
- background: var(--background);
21
+ background: var(--background)
24
22
  }
25
23
  .json-view {
26
24
  background: rgba(0, 0, 0, 0.8);
@@ -47,12 +45,10 @@
47
45
  font-weight: 500;
48
46
  }
49
47
 
50
- .json-view--pair,
51
- .json-view--property,
52
- .json-view > span {
48
+ .json-view--pair, .json-view--property, .json-view > span {
53
49
  line-height: 24px;
54
50
  }
55
51
 
56
52
  .json-view--property {
57
53
  font-weight: 600;
58
- }
54
+ }
@@ -1,2 +1,4 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
1
3
  export declare const formatDuration: (duration?: number) => string;
2
4
  export declare const formatTimestamp: (time: number) => string;
@@ -1,3 +1,8 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
1
6
  export const formatDuration = (duration) => {
2
7
  if (!duration)
3
8
  return 'N/A';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@motiadev/ui';
2
+ import { cn } from '@/lib/utils';
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 '@motiadev/ui';
2
+ import { cn } from '@/lib/utils';
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 '@motiadev/ui';
2
+ import { Sidebar } from '@/components/sidebar/sidebar';
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, }) => {