@motiadev/workbench 0.8.2-beta.140-131607 → 0.8.2-beta.140-799293

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 CHANGED
@@ -2,8 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import { FlowPage } from './components/flow/flow-page';
4
4
  import { FlowTabMenuItem } from './components/flow/flow-tab-menu-item';
5
- import { LogsPage } from './components/logs/logs-page';
6
- import { LogsTabLabel } from './components/logs/logs-tab-label';
7
5
  import { TracingTabLabel } from './components/observability/trace-tab-label';
8
6
  import { TracesPage } from './components/observability/traces-page';
9
7
  import { StatesTabLabel } from './components/states/state-tab-label';
@@ -33,11 +31,6 @@ const registerDefaultTabs = () => {
33
31
  tabLabel: TracingTabLabel,
34
32
  content: TracesPage,
35
33
  },
36
- {
37
- id: TAB_IDS.LOGS,
38
- tabLabel: LogsTabLabel,
39
- content: LogsPage,
40
- },
41
34
  {
42
35
  id: TAB_IDS.STATES,
43
36
  tabLabel: StatesTabLabel,
@@ -22,7 +22,7 @@ export const DeployButton = () => {
22
22
  };
23
23
  const onSelfHostedClick = () => {
24
24
  analytics.track('deploy_button_self_hosted_clicked');
25
- window.open('https://www.motia.dev/docs/concepts/deployment/self-hosted', '_blank');
25
+ window.open('https://www.motia.dev/docs/deployment-guide/self-hosted', '_blank');
26
26
  };
27
27
  return (_jsxs(_Fragment, { children: [isOpen && (_jsxs("div", { children: [_jsx("div", { className: "fixed inset-0 z-[9999] bg-black/20 backdrop-blur-sm", onClick: () => setIsOpen(false) }), _jsxs("div", { className: "driver-popover w-[600px]! fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[10000] animate-in fade-in-0 zoom-in-95", children: [_jsx("img", { src: "https://oxhhfuuoqzsaqthfairn.supabase.co/storage/v1/object/public/public-images/preview.png", alt: "Motia Cloud", className: "driver-popover-image object-cover", style: { height: 393, width: '100%' } }), _jsx("div", { className: "driver-popover-title", children: _jsx("h2", { className: "popover-title", children: "Motia Cloud is Live!" }) }), _jsx("div", { className: "driver-popover-description", children: "Deploy to production in minutes, not hours. One click gets your Motia project live with enterprise-grade reliability. Seamlessly scale, rollback instantly, and monitor everything in real-time. Your code deserves infrastructure that just works." }), _jsx("a", { href: "https://www.motia.dev/docs/concepts/deployment/motia-cloud/features", target: "_blank", className: "text-foreground text-xs font-semibold px-4 hover:underline", children: "Learn more about Motia Cloud" }), _jsx("div", { className: "driver-popover-footer flex items-center justify-end", children: _jsxs("div", { className: "driver-popover-navigation-btns flex gap-6", children: [_jsx("button", { className: "tutorial-opt-out-button text-sm! font-semibold! text-muted-foreground!", onClick: onClose, children: "Close" }), _jsx("a", { href: "https://motia.cloud?utm_source=workbench&utm_medium=referral", target: "_blank", onClick: onDeployClick, children: _jsx("button", { className: "driver-popover-next-btn", children: "Deploy!" }) })] }) })] })] })), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", className: "font-semibold text-sm dark:bg-white dark:text-black dark:hover:bg-white/90 bg-black/90 hover:bg-black/80 text-white", onClick: onDeployButtonClick, children: [_jsx(Rocket, {}), "Deploy"] }) }), _jsxs(DropdownMenuContent, { className: "bg-background text-foreground w-56", children: [_jsx(DropdownMenuItem, { className: "cursor-pointer h-10 font-semibold", onClick: onMotiaCloudClick, children: "Motia Cloud" }), _jsx(DropdownMenuItem, { className: "cursor-pointer h-10 font-semibold", onClick: onSelfHostedClick, children: "Self-Hosted (Docker)" })] })] })] }));
28
28
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LogLevelDot } from '@/components/logs/log-level-dot';
2
+ import { LevelDot } from '@motiadev/ui';
3
3
  export const TraceLogEvent = ({ event }) => {
4
- return (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(LogLevelDot, { level: event.level }), " ", event.message] }));
4
+ return (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(LevelDot, { level: event.level }), " ", event.message] }));
5
5
  };
@@ -1,7 +1,5 @@
1
1
  import { useAnalytics } from '@/lib/analytics';
2
- import { useLogListener } from '@/hooks/use-log-listener';
3
2
  export const RootMotia = ({ children }) => {
4
- useLogListener();
5
3
  useAnalytics();
6
4
  return children;
7
5
  };
@@ -7,8 +7,6 @@ type UseGlobalStore = {
7
7
  selectTraceId: (traceId?: string) => void;
8
8
  selectedStateId?: string;
9
9
  selectStateId: (stateId?: string) => void;
10
- selectedLogId?: string;
11
- selectLogId: (logId?: string) => void;
12
10
  };
13
11
  export declare const useGlobalStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<UseGlobalStore>, "setState" | "persist"> & {
14
12
  setState(partial: UseGlobalStore | Partial<UseGlobalStore> | ((state: UseGlobalStore) => UseGlobalStore | Partial<UseGlobalStore>), replace?: false | undefined): unknown;
@@ -12,8 +12,6 @@ export const useGlobalStore = create(persist((set) => ({
12
12
  selectTraceId: (traceId) => set(select(traceId, 'selectedTraceId')),
13
13
  selectedStateId: undefined,
14
14
  selectStateId: (stateId) => set(select(stateId, 'selectedStateId')),
15
- selectedLogId: undefined,
16
- selectLogId: (logId) => set(select(logId, 'selectedLogId')),
17
15
  }), {
18
16
  name: 'motia-global-storage',
19
17
  storage: createJSONStorage(() => localStorage),