@btst/plugin-search 0.0.0-stage → 1.0.0-beta.2
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/LICENSE.md +17 -0
- package/dist/api/index.cjs +17 -0
- package/dist/api/index.d.cts +62 -0
- package/dist/api/index.d.mts +62 -0
- package/dist/api/index.d.ts +62 -0
- package/dist/api/index.mjs +4 -0
- package/dist/api/operations.cjs +127 -0
- package/dist/api/operations.mjs +125 -0
- package/dist/api/plugin.cjs +23 -0
- package/dist/api/plugin.mjs +21 -0
- package/dist/client/components/index.cjs +11 -0
- package/dist/client/components/index.d.cts +35 -0
- package/dist/client/components/index.d.mts +35 -0
- package/dist/client/components/index.d.ts +35 -0
- package/dist/client/components/index.mjs +3 -0
- package/dist/client/components/pages/search-page.cjs +39 -0
- package/dist/client/components/pages/search-page.internal.cjs +100 -0
- package/dist/client/components/pages/search-page.internal.mjs +98 -0
- package/dist/client/components/pages/search-page.mjs +37 -0
- package/dist/client/components/search-dialog.cjs +148 -0
- package/dist/client/components/search-dialog.mjs +145 -0
- package/dist/client/components/search-results.cjs +100 -0
- package/dist/client/components/search-results.mjs +96 -0
- package/dist/client/components/source-filter.cjs +31 -0
- package/dist/client/components/source-filter.mjs +29 -0
- package/dist/client/constants.cjs +5 -0
- package/dist/client/constants.mjs +3 -0
- package/dist/client/hooks/index.cjs +10 -0
- package/dist/client/hooks/index.d.cts +340 -0
- package/dist/client/hooks/index.d.mts +340 -0
- package/dist/client/hooks/index.d.ts +340 -0
- package/dist/client/hooks/index.mjs +3 -0
- package/dist/client/hooks/use-search-state.cjs +36 -0
- package/dist/client/hooks/use-search-state.mjs +34 -0
- package/dist/client/hooks/use-search.cjs +44 -0
- package/dist/client/hooks/use-search.mjs +42 -0
- package/dist/client/index.cjs +7 -0
- package/dist/client/index.d.cts +55 -0
- package/dist/client/index.d.mts +55 -0
- package/dist/client/index.d.ts +55 -0
- package/dist/client/index.mjs +1 -0
- package/dist/client/plugin.cjs +76 -0
- package/dist/client/plugin.mjs +74 -0
- package/dist/client/search-state.cjs +20 -0
- package/dist/client/search-state.mjs +17 -0
- package/dist/permissions.cjs +12 -0
- package/dist/permissions.d.cts +12 -0
- package/dist/permissions.d.mts +12 -0
- package/dist/permissions.d.ts +12 -0
- package/dist/permissions.mjs +10 -0
- package/dist/providers.cjs +122 -0
- package/dist/providers.d.cts +82 -0
- package/dist/providers.d.mts +82 -0
- package/dist/providers.d.ts +82 -0
- package/dist/providers.mjs +116 -0
- package/dist/query-keys.cjs +35 -0
- package/dist/query-keys.d.cts +71 -0
- package/dist/query-keys.d.mts +71 -0
- package/dist/query-keys.d.ts +71 -0
- package/dist/query-keys.mjs +32 -0
- package/dist/schemas.cjs +23 -0
- package/dist/schemas.d.cts +14 -0
- package/dist/schemas.d.mts +14 -0
- package/dist/schemas.d.ts +14 -0
- package/dist/schemas.mjs +17 -0
- package/dist/shared/plugin-search.5GvThkZW.d.cts +20 -0
- package/dist/shared/plugin-search.5GvThkZW.d.mts +20 -0
- package/dist/shared/plugin-search.5GvThkZW.d.ts +20 -0
- package/dist/style.css +2 -0
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +53 -0
- package/dist/types.d.mts +53 -0
- package/dist/types.d.ts +53 -0
- package/dist/types.mjs +1 -0
- package/dist/ui/src/components/button.cjs +56 -0
- package/dist/ui/src/components/button.mjs +53 -0
- package/dist/ui/src/components/command.cjs +88 -0
- package/dist/ui/src/components/command.mjs +83 -0
- package/dist/ui/src/components/dialog.cjs +127 -0
- package/dist/ui/src/components/dialog.mjs +105 -0
- package/dist/ui/src/components/input.cjs +23 -0
- package/dist/ui/src/components/input.mjs +21 -0
- package/dist/ui/src/lib/utils.cjs +10 -0
- package/dist/ui/src/lib/utils.mjs +8 -0
- package/package.json +181 -3
- package/README.md +0 -3
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Command as Command$1 } from 'cmdk';
|
|
4
|
+
import { SearchIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '../lib/utils.mjs';
|
|
6
|
+
import '@radix-ui/react-dialog';
|
|
7
|
+
|
|
8
|
+
function Command({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
Command$1,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "command",
|
|
16
|
+
className: cn(
|
|
17
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
18
|
+
className
|
|
19
|
+
),
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function CommandInput({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsxs(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "command-input-wrapper",
|
|
32
|
+
className: "pointer-events-auto flex h-9 items-center gap-2 border-b px-3",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
Command$1.Input,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "command-input",
|
|
39
|
+
className: cn(
|
|
40
|
+
"pointer-events-auto placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
41
|
+
className
|
|
42
|
+
),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function CommandList({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}) {
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
Command$1.List,
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "command-list",
|
|
58
|
+
className: cn(
|
|
59
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function CommandItem({
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
Command$1.Item,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "command-item",
|
|
74
|
+
className: cn(
|
|
75
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground pointer-events-auto relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled='true']:pointer-events-none data-[disabled='true']:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
76
|
+
className
|
|
77
|
+
),
|
|
78
|
+
...props
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { Command, CommandInput, CommandItem, CommandList };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
const DialogPrimitive = require('@radix-ui/react-dialog');
|
|
6
|
+
const lucideReact = require('lucide-react');
|
|
7
|
+
const utils = require('../lib/utils.cjs');
|
|
8
|
+
|
|
9
|
+
function _interopNamespaceCompat(e) {
|
|
10
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
11
|
+
const n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
n[k] = e[k];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
n.default = e;
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const DialogPrimitive__namespace = /*#__PURE__*/_interopNamespaceCompat(DialogPrimitive);
|
|
22
|
+
|
|
23
|
+
function Dialog({
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "dialog", ...props });
|
|
27
|
+
}
|
|
28
|
+
function DialogPortal({
|
|
29
|
+
...props
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "dialog-portal", ...props });
|
|
32
|
+
}
|
|
33
|
+
function DialogOverlay({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
+
DialogPrimitive__namespace.Overlay,
|
|
39
|
+
{
|
|
40
|
+
"data-slot": "dialog-overlay",
|
|
41
|
+
className: utils.cn(
|
|
42
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
43
|
+
className
|
|
44
|
+
),
|
|
45
|
+
...props
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function DialogContent({
|
|
50
|
+
className,
|
|
51
|
+
children,
|
|
52
|
+
showCloseButton = true,
|
|
53
|
+
...props
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
58
|
+
DialogPrimitive__namespace.Content,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "dialog-content",
|
|
61
|
+
className: utils.cn(
|
|
62
|
+
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
...props,
|
|
66
|
+
children: [
|
|
67
|
+
children,
|
|
68
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
69
|
+
DialogPrimitive__namespace.Close,
|
|
70
|
+
{
|
|
71
|
+
"data-slot": "dialog-close",
|
|
72
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {}),
|
|
75
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
84
|
+
function DialogHeader({ className, ...props }) {
|
|
85
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
"data-slot": "dialog-header",
|
|
89
|
+
className: utils.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
90
|
+
...props
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function DialogTitle({
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
+
DialogPrimitive__namespace.Title,
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "dialog-title",
|
|
102
|
+
className: utils.cn("text-lg leading-none font-semibold", className),
|
|
103
|
+
...props
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function DialogDescription({
|
|
108
|
+
className,
|
|
109
|
+
...props
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
+
DialogPrimitive__namespace.Description,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "dialog-description",
|
|
115
|
+
className: utils.cn("text-muted-foreground text-sm", className),
|
|
116
|
+
...props
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
exports.Dialog = Dialog;
|
|
122
|
+
exports.DialogContent = DialogContent;
|
|
123
|
+
exports.DialogDescription = DialogDescription;
|
|
124
|
+
exports.DialogHeader = DialogHeader;
|
|
125
|
+
exports.DialogOverlay = DialogOverlay;
|
|
126
|
+
exports.DialogPortal = DialogPortal;
|
|
127
|
+
exports.DialogTitle = DialogTitle;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import { XIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '../lib/utils.mjs';
|
|
6
|
+
|
|
7
|
+
function Dialog({
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
11
|
+
}
|
|
12
|
+
function DialogPortal({
|
|
13
|
+
...props
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
16
|
+
}
|
|
17
|
+
function DialogOverlay({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
DialogPrimitive.Overlay,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "dialog-overlay",
|
|
25
|
+
className: cn(
|
|
26
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
27
|
+
className
|
|
28
|
+
),
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function DialogContent({
|
|
34
|
+
className,
|
|
35
|
+
children,
|
|
36
|
+
showCloseButton = true,
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
40
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
41
|
+
/* @__PURE__ */ jsxs(
|
|
42
|
+
DialogPrimitive.Content,
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "dialog-content",
|
|
45
|
+
className: cn(
|
|
46
|
+
"bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children: [
|
|
51
|
+
children,
|
|
52
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
53
|
+
DialogPrimitive.Close,
|
|
54
|
+
{
|
|
55
|
+
"data-slot": "dialog-close",
|
|
56
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsx(XIcon, {}),
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
function DialogHeader({ className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsx(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
"data-slot": "dialog-header",
|
|
73
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
74
|
+
...props
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
function DialogTitle({
|
|
79
|
+
className,
|
|
80
|
+
...props
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsx(
|
|
83
|
+
DialogPrimitive.Title,
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "dialog-title",
|
|
86
|
+
className: cn("text-lg leading-none font-semibold", className),
|
|
87
|
+
...props
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function DialogDescription({
|
|
92
|
+
className,
|
|
93
|
+
...props
|
|
94
|
+
}) {
|
|
95
|
+
return /* @__PURE__ */ jsx(
|
|
96
|
+
DialogPrimitive.Description,
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "dialog-description",
|
|
99
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { Dialog, DialogContent, DialogDescription, DialogHeader, DialogOverlay, DialogPortal, DialogTitle };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
const utils = require('../lib/utils.cjs');
|
|
5
|
+
|
|
6
|
+
function Input({ className, type, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
"input",
|
|
9
|
+
{
|
|
10
|
+
type,
|
|
11
|
+
"data-slot": "input",
|
|
12
|
+
className: utils.cn(
|
|
13
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
14
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
15
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.Input = Input;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { cn } from '../lib/utils.mjs';
|
|
3
|
+
|
|
4
|
+
function Input({ className, type, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
type,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: cn(
|
|
11
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
|
+
className
|
|
15
|
+
),
|
|
16
|
+
...props
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { Input };
|
package/package.json
CHANGED
|
@@ -1,6 +1,184 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btst/plugin-search",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/better-stack-ai/better-stack.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
18
|
+
],
|
|
19
|
+
"description": "Authorized cross-plugin discovery and shared search UI for BTST.",
|
|
20
|
+
"exports": {
|
|
21
|
+
"./api": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/api/index.d.ts",
|
|
24
|
+
"default": "./dist/api/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/api/index.d.cts",
|
|
28
|
+
"default": "./dist/api/index.cjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/client/index.d.ts",
|
|
34
|
+
"default": "./dist/client/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/client/index.d.cts",
|
|
38
|
+
"default": "./dist/client/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"./client/hooks": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/client/hooks/index.d.ts",
|
|
44
|
+
"default": "./dist/client/hooks/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/client/hooks/index.d.cts",
|
|
48
|
+
"default": "./dist/client/hooks/index.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"./client/components": {
|
|
52
|
+
"import": {
|
|
53
|
+
"types": "./dist/client/components/index.d.ts",
|
|
54
|
+
"default": "./dist/client/components/index.mjs"
|
|
55
|
+
},
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/client/components/index.d.cts",
|
|
58
|
+
"default": "./dist/client/components/index.cjs"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"./query-keys": {
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/query-keys.d.ts",
|
|
64
|
+
"default": "./dist/query-keys.mjs"
|
|
65
|
+
},
|
|
66
|
+
"require": {
|
|
67
|
+
"types": "./dist/query-keys.d.cts",
|
|
68
|
+
"default": "./dist/query-keys.cjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"./permissions": {
|
|
72
|
+
"import": {
|
|
73
|
+
"types": "./dist/permissions.d.ts",
|
|
74
|
+
"default": "./dist/permissions.mjs"
|
|
75
|
+
},
|
|
76
|
+
"require": {
|
|
77
|
+
"types": "./dist/permissions.d.cts",
|
|
78
|
+
"default": "./dist/permissions.cjs"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"./types": {
|
|
82
|
+
"import": {
|
|
83
|
+
"types": "./dist/types.d.ts",
|
|
84
|
+
"default": "./dist/types.mjs"
|
|
85
|
+
},
|
|
86
|
+
"require": {
|
|
87
|
+
"types": "./dist/types.d.cts",
|
|
88
|
+
"default": "./dist/types.cjs"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"./css": "./dist/style.css",
|
|
92
|
+
"./providers": {
|
|
93
|
+
"import": {
|
|
94
|
+
"types": "./dist/providers.d.ts",
|
|
95
|
+
"default": "./dist/providers.mjs"
|
|
96
|
+
},
|
|
97
|
+
"require": {
|
|
98
|
+
"types": "./dist/providers.d.cts",
|
|
99
|
+
"default": "./dist/providers.cjs"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"./schemas": {
|
|
103
|
+
"import": {
|
|
104
|
+
"types": "./dist/schemas.d.ts",
|
|
105
|
+
"default": "./dist/schemas.mjs"
|
|
106
|
+
},
|
|
107
|
+
"require": {
|
|
108
|
+
"types": "./dist/schemas.d.cts",
|
|
109
|
+
"default": "./dist/schemas.cjs"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"typesVersions": {
|
|
114
|
+
"*": {
|
|
115
|
+
"api": [
|
|
116
|
+
"./dist/api/index.d.ts"
|
|
117
|
+
],
|
|
118
|
+
"client": [
|
|
119
|
+
"./dist/client/index.d.ts"
|
|
120
|
+
],
|
|
121
|
+
"client/hooks": [
|
|
122
|
+
"./dist/client/hooks/index.d.ts"
|
|
123
|
+
],
|
|
124
|
+
"client/components": [
|
|
125
|
+
"./dist/client/components/index.d.ts"
|
|
126
|
+
],
|
|
127
|
+
"query-keys": [
|
|
128
|
+
"./dist/query-keys.d.ts"
|
|
129
|
+
],
|
|
130
|
+
"permissions": [
|
|
131
|
+
"./dist/permissions.d.ts"
|
|
132
|
+
],
|
|
133
|
+
"types": [
|
|
134
|
+
"./dist/types.d.ts"
|
|
135
|
+
],
|
|
136
|
+
"providers": [
|
|
137
|
+
"./dist/providers.d.ts"
|
|
138
|
+
],
|
|
139
|
+
"schemas": [
|
|
140
|
+
"./dist/schemas.d.ts"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"dependencies": {
|
|
145
|
+
"@btst/db": "3.0.1",
|
|
146
|
+
"better-call": "1.4.4",
|
|
147
|
+
"zod": "^4.2.1",
|
|
148
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
149
|
+
"class-variance-authority": "^0.7.1",
|
|
150
|
+
"clsx": "^2.1.1",
|
|
151
|
+
"tailwind-merge": "^3.3.1",
|
|
152
|
+
"@radix-ui/react-dialog": "^1.3.1",
|
|
153
|
+
"lucide-react": "^1.63.0",
|
|
154
|
+
"cmdk": "^1.1.1"
|
|
155
|
+
},
|
|
156
|
+
"peerDependencies": {
|
|
157
|
+
"@btst/stack": ">=6.2.0-beta.1 <6.2.0",
|
|
158
|
+
"@btst/yar": ">=1.3.2",
|
|
159
|
+
"@tanstack/react-query": "^5.0.0",
|
|
160
|
+
"react": ">=19.2.6",
|
|
161
|
+
"react-dom": ">=19.2.6"
|
|
162
|
+
},
|
|
163
|
+
"devDependencies": {
|
|
164
|
+
"@btst/yar": "1.3.2",
|
|
165
|
+
"@tanstack/react-query": "5.105.0",
|
|
166
|
+
"@types/react": "^19.3.0",
|
|
167
|
+
"@types/react-dom": "^19.3.0",
|
|
168
|
+
"react": "^19.3.1",
|
|
169
|
+
"react-dom": "^19.3.1",
|
|
170
|
+
"typescript": "^5.6.3",
|
|
171
|
+
"unbuild": "3.6.1",
|
|
172
|
+
"vitest": "^4.1.12",
|
|
173
|
+
"@btst/adapter-memory": "3.0.1",
|
|
174
|
+
"jsdom": "^28.1.0",
|
|
175
|
+
"@btst/stack": "6.2.0-beta.1",
|
|
176
|
+
"@workspace/ui": "0.0.0"
|
|
177
|
+
},
|
|
178
|
+
"gitHead": "657bc1fff550f456c13c9de9caaa87c7978c0f33",
|
|
179
|
+
"scripts": {
|
|
180
|
+
"build": "unbuild --clean",
|
|
181
|
+
"typecheck": "tsc --project tsconfig.json",
|
|
182
|
+
"test": "vitest run"
|
|
183
|
+
}
|
|
6
184
|
}
|
package/README.md
DELETED