@motiadev/workbench 0.0.6 → 0.0.7

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 (191) hide show
  1. package/dist/README.md +50 -0
  2. package/dist/index.d.ts +0 -1
  3. package/dist/middleware.d.ts +2 -2
  4. package/dist/middleware.js +10 -12
  5. package/dist/src/components/app-sidebar.d.ts +0 -1
  6. package/dist/src/components/app-sidebar.js +5 -6
  7. package/dist/src/components/log-console.d.ts +0 -1
  8. package/dist/src/components/log-level-badge.d.ts +0 -1
  9. package/dist/src/components/ui/badge.d.ts +1 -2
  10. package/dist/src/components/ui/button.d.ts +1 -2
  11. package/dist/src/components/ui/collapsible.d.ts +0 -1
  12. package/dist/src/components/ui/dialog.d.ts +0 -1
  13. package/dist/src/components/ui/input.d.ts +0 -1
  14. package/dist/src/components/ui/label.d.ts +0 -1
  15. package/dist/src/components/ui/select.d.ts +0 -1
  16. package/dist/src/components/ui/separator.d.ts +0 -1
  17. package/dist/src/components/ui/sheet.d.ts +1 -2
  18. package/dist/src/components/ui/sidebar.d.ts +0 -1
  19. package/dist/src/components/ui/skeleton.d.ts +0 -1
  20. package/dist/src/components/ui/switch.d.ts +0 -1
  21. package/dist/src/components/ui/table.d.ts +0 -1
  22. package/dist/src/components/ui/textarea.d.ts +0 -1
  23. package/dist/src/components/ui/tooltip.d.ts +0 -1
  24. package/dist/src/hooks/use-list-flows.d.ts +0 -1
  25. package/dist/src/hooks/use-log-listener.d.ts +0 -1
  26. package/dist/src/hooks/use-mobile.d.ts +0 -1
  27. package/dist/src/lib/utils.d.ts +0 -1
  28. package/dist/src/main.d.ts +0 -8
  29. package/dist/src/main.js +6 -7
  30. package/dist/src/publicComponents/api-node.d.ts +0 -1
  31. package/dist/src/publicComponents/base-handle.d.ts +0 -1
  32. package/dist/src/publicComponents/base-node.d.ts +0 -1
  33. package/dist/src/publicComponents/emits.d.ts +0 -1
  34. package/dist/src/publicComponents/event-node.d.ts +0 -1
  35. package/dist/src/publicComponents/node-props.d.ts +0 -1
  36. package/dist/src/publicComponents/noop-node.d.ts +0 -1
  37. package/dist/src/publicComponents/subscribe.d.ts +0 -1
  38. package/dist/src/route-wrapper.d.ts +0 -1
  39. package/dist/src/routes/flow.d.ts +1 -0
  40. package/dist/src/routes/flow.js +16 -0
  41. package/dist/src/routes/index.d.ts +1 -2
  42. package/dist/src/routes/index.js +2 -6
  43. package/dist/src/stores/use-logs.d.ts +0 -1
  44. package/dist/src/views/flow/arrow-head.d.ts +0 -1
  45. package/dist/src/views/flow/base-edge.d.ts +0 -1
  46. package/dist/src/views/flow/flow-loader.d.ts +0 -1
  47. package/dist/src/views/flow/flow-view.d.ts +0 -1
  48. package/dist/src/views/flow/hooks/use-get-flow-state.d.ts +0 -1
  49. package/dist/src/views/flow/hooks/use-organize-nodes.d.ts +0 -1
  50. package/dist/src/views/flow/legend.d.ts +0 -1
  51. package/dist/src/views/flow/node-organizer.d.ts +0 -1
  52. package/dist/src/views/flow/nodes/api-flow-node.d.ts +0 -1
  53. package/dist/src/views/flow/nodes/event-flow-node.d.ts +0 -1
  54. package/dist/src/views/flow/nodes/json-schema-form.d.ts +0 -1
  55. package/dist/src/views/flow/nodes/language-indicator.d.ts +0 -1
  56. package/dist/src/views/flow/nodes/nodes.types.d.ts +0 -1
  57. package/dist/src/views/flow/nodes/noop-flow-node.d.ts +0 -1
  58. package/dist/tailwind.config.d.ts +0 -1
  59. package/dist/vite.config.d.ts +1 -10
  60. package/dist/vite.config.js +4 -5
  61. package/package.json +3 -3
  62. package/components.json +0 -21
  63. package/dist/index.d.ts.map +0 -1
  64. package/dist/middleware.d.ts.map +0 -1
  65. package/dist/src/components/app-sidebar.d.ts.map +0 -1
  66. package/dist/src/components/log-console.d.ts.map +0 -1
  67. package/dist/src/components/log-level-badge.d.ts.map +0 -1
  68. package/dist/src/components/ui/badge.d.ts.map +0 -1
  69. package/dist/src/components/ui/button.d.ts.map +0 -1
  70. package/dist/src/components/ui/collapsible.d.ts.map +0 -1
  71. package/dist/src/components/ui/dialog.d.ts.map +0 -1
  72. package/dist/src/components/ui/input.d.ts.map +0 -1
  73. package/dist/src/components/ui/label.d.ts.map +0 -1
  74. package/dist/src/components/ui/select.d.ts.map +0 -1
  75. package/dist/src/components/ui/separator.d.ts.map +0 -1
  76. package/dist/src/components/ui/sheet.d.ts.map +0 -1
  77. package/dist/src/components/ui/sidebar.d.ts.map +0 -1
  78. package/dist/src/components/ui/skeleton.d.ts.map +0 -1
  79. package/dist/src/components/ui/switch.d.ts.map +0 -1
  80. package/dist/src/components/ui/table.d.ts.map +0 -1
  81. package/dist/src/components/ui/textarea.d.ts.map +0 -1
  82. package/dist/src/components/ui/tooltip.d.ts.map +0 -1
  83. package/dist/src/hooks/use-list-flows.d.ts.map +0 -1
  84. package/dist/src/hooks/use-log-listener.d.ts.map +0 -1
  85. package/dist/src/hooks/use-mobile.d.ts.map +0 -1
  86. package/dist/src/lib/utils.d.ts.map +0 -1
  87. package/dist/src/main.d.ts.map +0 -1
  88. package/dist/src/publicComponents/api-node.d.ts.map +0 -1
  89. package/dist/src/publicComponents/base-handle.d.ts.map +0 -1
  90. package/dist/src/publicComponents/base-node.d.ts.map +0 -1
  91. package/dist/src/publicComponents/emits.d.ts.map +0 -1
  92. package/dist/src/publicComponents/event-node.d.ts.map +0 -1
  93. package/dist/src/publicComponents/node-props.d.ts.map +0 -1
  94. package/dist/src/publicComponents/noop-node.d.ts.map +0 -1
  95. package/dist/src/publicComponents/subscribe.d.ts.map +0 -1
  96. package/dist/src/route-wrapper.d.ts.map +0 -1
  97. package/dist/src/routeTree.gen.d.ts +0 -53
  98. package/dist/src/routeTree.gen.d.ts.map +0 -1
  99. package/dist/src/routeTree.gen.js +0 -45
  100. package/dist/src/routes/__root.d.ts +0 -2
  101. package/dist/src/routes/__root.d.ts.map +0 -1
  102. package/dist/src/routes/__root.js +0 -15
  103. package/dist/src/routes/flow/$id.d.ts +0 -4
  104. package/dist/src/routes/flow/$id.d.ts.map +0 -1
  105. package/dist/src/routes/flow/$id.js +0 -15
  106. package/dist/src/routes/index.d.ts.map +0 -1
  107. package/dist/src/stores/use-logs.d.ts.map +0 -1
  108. package/dist/src/views/flow/arrow-head.d.ts.map +0 -1
  109. package/dist/src/views/flow/base-edge.d.ts.map +0 -1
  110. package/dist/src/views/flow/flow-loader.d.ts.map +0 -1
  111. package/dist/src/views/flow/flow-view.d.ts.map +0 -1
  112. package/dist/src/views/flow/hooks/use-get-flow-state.d.ts.map +0 -1
  113. package/dist/src/views/flow/hooks/use-organize-nodes.d.ts.map +0 -1
  114. package/dist/src/views/flow/legend.d.ts.map +0 -1
  115. package/dist/src/views/flow/node-organizer.d.ts.map +0 -1
  116. package/dist/src/views/flow/nodes/api-flow-node.d.ts.map +0 -1
  117. package/dist/src/views/flow/nodes/event-flow-node.d.ts.map +0 -1
  118. package/dist/src/views/flow/nodes/json-schema-form.d.ts.map +0 -1
  119. package/dist/src/views/flow/nodes/language-indicator.d.ts.map +0 -1
  120. package/dist/src/views/flow/nodes/nodes.types.d.ts.map +0 -1
  121. package/dist/src/views/flow/nodes/noop-flow-node.d.ts.map +0 -1
  122. package/dist/tailwind.config.d.ts.map +0 -1
  123. package/dist/tsconfig.app.tsbuildinfo +0 -1
  124. package/dist/tsconfig.node.tsbuildinfo +0 -1
  125. package/dist/vite.config.d.ts.map +0 -1
  126. package/eslint.config.js +0 -28
  127. package/index.html +0 -19
  128. package/index.tsx +0 -10
  129. package/middleware.ts +0 -48
  130. package/postcss.config.js +0 -6
  131. package/src/assets/.empty +0 -0
  132. package/src/components/app-sidebar.tsx +0 -55
  133. package/src/components/log-console.tsx +0 -76
  134. package/src/components/log-level-badge.tsx +0 -12
  135. package/src/components/ui/badge.tsx +0 -31
  136. package/src/components/ui/button.tsx +0 -47
  137. package/src/components/ui/collapsible.tsx +0 -9
  138. package/src/components/ui/dialog.tsx +0 -120
  139. package/src/components/ui/input.tsx +0 -21
  140. package/src/components/ui/label.tsx +0 -26
  141. package/src/components/ui/select.tsx +0 -157
  142. package/src/components/ui/separator.tsx +0 -22
  143. package/src/components/ui/sheet.tsx +0 -106
  144. package/src/components/ui/sidebar.tsx +0 -637
  145. package/src/components/ui/skeleton.tsx +0 -7
  146. package/src/components/ui/switch.tsx +0 -27
  147. package/src/components/ui/table.tsx +0 -76
  148. package/src/components/ui/textarea.tsx +0 -22
  149. package/src/components/ui/tooltip.tsx +0 -32
  150. package/src/hooks/use-list-flows.tsx +0 -20
  151. package/src/hooks/use-log-listener.tsx +0 -32
  152. package/src/hooks/use-mobile.tsx +0 -19
  153. package/src/lib/utils.ts +0 -6
  154. package/src/main.tsx +0 -28
  155. package/src/publicComponents/api-node.tsx +0 -28
  156. package/src/publicComponents/base-handle.tsx +0 -43
  157. package/src/publicComponents/base-node.tsx +0 -57
  158. package/src/publicComponents/emits.tsx +0 -22
  159. package/src/publicComponents/event-node.tsx +0 -36
  160. package/src/publicComponents/node-props.tsx +0 -15
  161. package/src/publicComponents/noop-node.tsx +0 -21
  162. package/src/publicComponents/subscribe.tsx +0 -19
  163. package/src/route-wrapper.tsx +0 -9
  164. package/src/routeTree.gen.ts +0 -109
  165. package/src/routes/__root.tsx +0 -26
  166. package/src/routes/flow/$id.tsx +0 -21
  167. package/src/routes/index.tsx +0 -13
  168. package/src/stores/use-logs.ts +0 -22
  169. package/src/views/flow/arrow-head.tsx +0 -13
  170. package/src/views/flow/base-edge.tsx +0 -31
  171. package/src/views/flow/flow-loader.tsx +0 -3
  172. package/src/views/flow/flow-view.tsx +0 -72
  173. package/src/views/flow/hooks/use-get-flow-state.tsx +0 -93
  174. package/src/views/flow/hooks/use-organize-nodes.ts +0 -60
  175. package/src/views/flow/legend.tsx +0 -96
  176. package/src/views/flow/node-organizer.tsx +0 -70
  177. package/src/views/flow/nodes/api-flow-node.tsx +0 -6
  178. package/src/views/flow/nodes/event-flow-node.tsx +0 -6
  179. package/src/views/flow/nodes/json-schema-form.tsx +0 -110
  180. package/src/views/flow/nodes/language-indicator.tsx +0 -74
  181. package/src/views/flow/nodes/nodes.types.ts +0 -36
  182. package/src/views/flow/nodes/noop-flow-node.tsx +0 -6
  183. package/src/vite-env.d.ts +0 -1
  184. package/tailwind.config.ts +0 -75
  185. package/tsconfig.app.json +0 -32
  186. package/tsconfig.json +0 -14
  187. package/tsconfig.node.json +0 -32
  188. package/tsconfig.node.tsbuildinfo +0 -1
  189. package/vite.config.ts +0 -14
  190. /package/{public → dist/public}/.empty +0 -0
  191. /package/{src → dist/src}/index.css +0 -0
@@ -1,106 +0,0 @@
1
- import * as React from 'react'
2
- import * as SheetPrimitive from '@radix-ui/react-dialog'
3
- import { cva, type VariantProps } from 'class-variance-authority'
4
- import { X } from 'lucide-react'
5
- import { cn } from '@/lib/utils'
6
-
7
- const Sheet = SheetPrimitive.Root
8
-
9
- const SheetTrigger = SheetPrimitive.Trigger
10
-
11
- const SheetClose = SheetPrimitive.Close
12
-
13
- const SheetPortal = SheetPrimitive.Portal
14
-
15
- const SheetOverlay = React.forwardRef<
16
- React.ElementRef<typeof SheetPrimitive.Overlay>,
17
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
18
- >(({ className, ...props }, ref) => (
19
- <SheetPrimitive.Overlay
20
- className={cn(
21
- 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
22
- className,
23
- )}
24
- {...props}
25
- ref={ref}
26
- />
27
- ))
28
- SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
29
-
30
- const sheetVariants = cva(
31
- 'fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out',
32
- {
33
- variants: {
34
- side: {
35
- top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
36
- bottom:
37
- 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
38
- left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',
39
- right:
40
- 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',
41
- },
42
- },
43
- defaultVariants: {
44
- side: 'right',
45
- },
46
- },
47
- )
48
-
49
- interface SheetContentProps
50
- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
51
- VariantProps<typeof sheetVariants> {}
52
-
53
- const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(
54
- ({ side = 'right', className, children, ...props }, ref) => (
55
- <SheetPortal>
56
- <SheetOverlay />
57
- <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>
58
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
59
- <X className="h-4 w-4" />
60
- <span className="sr-only">Close</span>
61
- </SheetPrimitive.Close>
62
- {children}
63
- </SheetPrimitive.Content>
64
- </SheetPortal>
65
- ),
66
- )
67
- SheetContent.displayName = SheetPrimitive.Content.displayName
68
-
69
- const SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
70
- <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />
71
- )
72
- SheetHeader.displayName = 'SheetHeader'
73
-
74
- const SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
75
- <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />
76
- )
77
- SheetFooter.displayName = 'SheetFooter'
78
-
79
- const SheetTitle = React.forwardRef<
80
- React.ElementRef<typeof SheetPrimitive.Title>,
81
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
82
- >(({ className, ...props }, ref) => (
83
- <SheetPrimitive.Title ref={ref} className={cn('text-lg font-semibold text-foreground', className)} {...props} />
84
- ))
85
- SheetTitle.displayName = SheetPrimitive.Title.displayName
86
-
87
- const SheetDescription = React.forwardRef<
88
- React.ElementRef<typeof SheetPrimitive.Description>,
89
- React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
90
- >(({ className, ...props }, ref) => (
91
- <SheetPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
92
- ))
93
- SheetDescription.displayName = SheetPrimitive.Description.displayName
94
-
95
- export {
96
- Sheet,
97
- SheetPortal,
98
- SheetOverlay,
99
- SheetTrigger,
100
- SheetClose,
101
- SheetContent,
102
- SheetHeader,
103
- SheetFooter,
104
- SheetTitle,
105
- SheetDescription,
106
- }