myoperator-mcp 0.2.334 → 0.2.335
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/index.js +48 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4670,6 +4670,25 @@ const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
|
4670
4670
|
|
|
4671
4671
|
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
4672
4672
|
|
|
4673
|
+
const renderDropdownMenuItemChildren = (children: React.ReactNode) =>
|
|
4674
|
+
React.Children.toArray(children).map((child, index) => {
|
|
4675
|
+
if (React.isValidElement(child)) {
|
|
4676
|
+
return child;
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
const content = typeof child === "string" ? child.trim() : child;
|
|
4680
|
+
if (content === "") return null;
|
|
4681
|
+
|
|
4682
|
+
return (
|
|
4683
|
+
<span
|
|
4684
|
+
key={index}
|
|
4685
|
+
className="min-w-0 flex-1 whitespace-normal break-words leading-normal"
|
|
4686
|
+
>
|
|
4687
|
+
{content}
|
|
4688
|
+
</span>
|
|
4689
|
+
);
|
|
4690
|
+
});
|
|
4691
|
+
|
|
4673
4692
|
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }: React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
4674
4693
|
inset?: boolean;
|
|
4675
4694
|
}, ref: React.Ref<React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>>) => (
|
|
@@ -4693,7 +4712,7 @@ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }: React.
|
|
|
4693
4712
|
<DropdownMenuPrimitive.SubContent
|
|
4694
4713
|
ref={ref}
|
|
4695
4714
|
className={cn(
|
|
4696
|
-
"z-[9999] max-h-[min(20rem,var(--radix-dropdown-menu-content-available-height))] min-w-[8rem] overflow-y-auto overscroll-contain rounded-md border border-solid border-semantic-border-layout bg-semantic-bg-primary p-1 text-semantic-text-primary shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4715
|
+
"z-[9999] max-h-[min(20rem,var(--radix-dropdown-menu-content-available-height))] max-w-[min(20rem,var(--radix-dropdown-menu-content-available-width))] min-w-[8rem] overflow-x-hidden overflow-y-auto overscroll-contain rounded-md border border-solid border-semantic-border-layout bg-semantic-bg-primary p-1 text-semantic-text-primary shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4697
4716
|
className
|
|
4698
4717
|
)}
|
|
4699
4718
|
{...props}
|
|
@@ -4708,7 +4727,7 @@ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
4708
4727
|
ref={ref}
|
|
4709
4728
|
sideOffset={sideOffset}
|
|
4710
4729
|
className={cn(
|
|
4711
|
-
"z-[9999] max-h-[min(20rem,var(--radix-dropdown-menu-content-available-height))] min-w-[8rem] overflow-y-auto overscroll-contain rounded-md border border-solid border-semantic-border-layout bg-semantic-bg-primary p-1 text-semantic-text-primary shadow-md",
|
|
4730
|
+
"z-[9999] max-h-[min(20rem,var(--radix-dropdown-menu-content-available-height))] max-w-[min(20rem,var(--radix-dropdown-menu-content-available-width))] min-w-[8rem] overflow-x-hidden overflow-y-auto overscroll-contain rounded-md border border-solid border-semantic-border-layout bg-semantic-bg-primary p-1 text-semantic-text-primary shadow-md",
|
|
4712
4731
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4713
4732
|
className
|
|
4714
4733
|
)}
|
|
@@ -4728,19 +4747,23 @@ const DropdownMenuItem = React.forwardRef(({ className, inset, children, descrip
|
|
|
4728
4747
|
<DropdownMenuPrimitive.Item
|
|
4729
4748
|
ref={ref}
|
|
4730
4749
|
className={cn(
|
|
4731
|
-
"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4750
|
+
"relative flex min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:shrink-0",
|
|
4732
4751
|
inset && "pl-8",
|
|
4733
4752
|
className
|
|
4734
4753
|
)}
|
|
4735
4754
|
{...props}
|
|
4736
4755
|
>
|
|
4737
4756
|
{description ? (
|
|
4738
|
-
<div className="flex flex-1 flex-col">
|
|
4739
|
-
<span>
|
|
4740
|
-
|
|
4757
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
4758
|
+
<span className="min-w-0 whitespace-normal break-words leading-normal">
|
|
4759
|
+
{renderDropdownMenuItemChildren(children)}
|
|
4760
|
+
</span>
|
|
4761
|
+
<span className="min-w-0 whitespace-normal break-words text-xs text-semantic-text-muted">
|
|
4762
|
+
{description}
|
|
4763
|
+
</span>
|
|
4741
4764
|
</div>
|
|
4742
4765
|
) : (
|
|
4743
|
-
children
|
|
4766
|
+
renderDropdownMenuItemChildren(children)
|
|
4744
4767
|
)}
|
|
4745
4768
|
{suffix && (
|
|
4746
4769
|
<span className="ml-auto text-xs text-semantic-text-muted shrink-0 pl-2">{suffix}</span>
|
|
@@ -4758,7 +4781,7 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
4758
4781
|
<DropdownMenuPrimitive.CheckboxItem
|
|
4759
4782
|
ref={ref}
|
|
4760
4783
|
className={cn(
|
|
4761
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-2 pl-8 pr-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4784
|
+
"relative flex min-w-0 cursor-pointer select-none items-center rounded-sm py-2 pl-8 pr-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4762
4785
|
className
|
|
4763
4786
|
)}
|
|
4764
4787
|
checked={checked}
|
|
@@ -4770,12 +4793,16 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
4770
4793
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
4771
4794
|
</span>
|
|
4772
4795
|
{description ? (
|
|
4773
|
-
<div className="flex flex-1 flex-col">
|
|
4774
|
-
<span>
|
|
4775
|
-
|
|
4796
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
4797
|
+
<span className="min-w-0 whitespace-normal break-words leading-normal">
|
|
4798
|
+
{renderDropdownMenuItemChildren(children)}
|
|
4799
|
+
</span>
|
|
4800
|
+
<span className="min-w-0 whitespace-normal break-words text-xs text-semantic-text-muted">
|
|
4801
|
+
{description}
|
|
4802
|
+
</span>
|
|
4776
4803
|
</div>
|
|
4777
4804
|
) : (
|
|
4778
|
-
children
|
|
4805
|
+
renderDropdownMenuItemChildren(children)
|
|
4779
4806
|
)}
|
|
4780
4807
|
{suffix && (
|
|
4781
4808
|
<span className="ml-auto text-xs text-semantic-text-muted shrink-0 pl-2">{suffix}</span>
|
|
@@ -4794,7 +4821,7 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, descripti
|
|
|
4794
4821
|
<DropdownMenuPrimitive.RadioItem
|
|
4795
4822
|
ref={ref}
|
|
4796
4823
|
className={cn(
|
|
4797
|
-
"relative flex cursor-pointer select-none items-center rounded-sm py-2 pl-8 pr-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4824
|
+
"relative flex min-w-0 cursor-pointer select-none items-center rounded-sm py-2 pl-8 pr-2 text-sm text-semantic-text-secondary outline-none transition-colors focus:bg-semantic-bg-ui focus:text-semantic-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
4798
4825
|
className
|
|
4799
4826
|
)}
|
|
4800
4827
|
{...props}
|
|
@@ -4805,12 +4832,16 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, descripti
|
|
|
4805
4832
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
4806
4833
|
</span>
|
|
4807
4834
|
{description ? (
|
|
4808
|
-
<div className="flex flex-1 flex-col">
|
|
4809
|
-
<span>
|
|
4810
|
-
|
|
4835
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
4836
|
+
<span className="min-w-0 whitespace-normal break-words leading-normal">
|
|
4837
|
+
{renderDropdownMenuItemChildren(children)}
|
|
4838
|
+
</span>
|
|
4839
|
+
<span className="min-w-0 whitespace-normal break-words text-xs text-semantic-text-muted">
|
|
4840
|
+
{description}
|
|
4841
|
+
</span>
|
|
4811
4842
|
</div>
|
|
4812
4843
|
) : (
|
|
4813
|
-
children
|
|
4844
|
+
renderDropdownMenuItemChildren(children)
|
|
4814
4845
|
)}
|
|
4815
4846
|
{suffix && (
|
|
4816
4847
|
<span className="ml-auto text-xs text-semantic-text-muted shrink-0 pl-2">{suffix}</span>
|
package/package.json
CHANGED