betterstart-cli 0.0.111 → 0.0.113
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/assets/adapters/next/templates/init/components/shared/media/media-url-importer.tsx +1 -1
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-slash-menu.ts +5 -3
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-source-mode.tsx +8 -2
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor-table-add-controls.ts +3 -1
- package/dist/assets/adapters/next/templates/init/hooks/content-editor/use-content-editor.ts +7 -3
- package/dist/assets/adapters/next/templates/init/hooks/use-upload.ts +7 -5
- package/dist/assets/adapters/next/templates/init/pages/profile/profile-form.tsx +3 -3
- package/dist/assets/adapters/next/templates/init/pages/settings/webhooks/webhook-endpoint-dialog.tsx +2 -2
- package/dist/cli.js +315 -357
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/shared-assets/react-admin/ui/command.tsx +0 -180
package/package.json
CHANGED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import * as React from 'react'
|
|
4
|
-
import {
|
|
5
|
-
Dialog,
|
|
6
|
-
DialogContent,
|
|
7
|
-
DialogDescription,
|
|
8
|
-
DialogHeader,
|
|
9
|
-
DialogTitle
|
|
10
|
-
} from '@admin/components/ui/dialog'
|
|
11
|
-
import { InputGroup, InputGroupAddon } from '@admin/components/ui/input-group'
|
|
12
|
-
import { cn } from '@admin/utils/shared/cn'
|
|
13
|
-
import { Command as CommandPrimitive } from 'cmdk'
|
|
14
|
-
import { CheckIcon, SearchIcon } from 'lucide-react'
|
|
15
|
-
|
|
16
|
-
function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {
|
|
17
|
-
return (
|
|
18
|
-
<CommandPrimitive
|
|
19
|
-
data-slot="command"
|
|
20
|
-
className={cn(
|
|
21
|
-
'flex size-full flex-col overflow-hidden rounded-4xl bg-popover p-1 text-popover-foreground',
|
|
22
|
-
className
|
|
23
|
-
)}
|
|
24
|
-
{...props}
|
|
25
|
-
/>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function CommandDialog({
|
|
30
|
-
title = 'Command Palette',
|
|
31
|
-
description = 'Search for a command to run...',
|
|
32
|
-
children,
|
|
33
|
-
className,
|
|
34
|
-
showCloseButton = false,
|
|
35
|
-
...props
|
|
36
|
-
}: Omit<React.ComponentProps<typeof Dialog>, 'children'> & {
|
|
37
|
-
title?: string
|
|
38
|
-
description?: string
|
|
39
|
-
className?: string
|
|
40
|
-
showCloseButton?: boolean
|
|
41
|
-
children: React.ReactNode
|
|
42
|
-
}) {
|
|
43
|
-
return (
|
|
44
|
-
<Dialog {...props}>
|
|
45
|
-
<DialogHeader className="sr-only">
|
|
46
|
-
<DialogTitle>{title}</DialogTitle>
|
|
47
|
-
<DialogDescription>{description}</DialogDescription>
|
|
48
|
-
</DialogHeader>
|
|
49
|
-
<DialogContent
|
|
50
|
-
className={cn('top-1/3 translate-y-0 overflow-hidden rounded-4xl! p-0', className)}
|
|
51
|
-
showCloseButton={showCloseButton}
|
|
52
|
-
>
|
|
53
|
-
{children}
|
|
54
|
-
</DialogContent>
|
|
55
|
-
</Dialog>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function CommandInput({
|
|
60
|
-
className,
|
|
61
|
-
...props
|
|
62
|
-
}: React.ComponentProps<typeof CommandPrimitive.Input>) {
|
|
63
|
-
return (
|
|
64
|
-
<div data-slot="command-input-wrapper" className="p-1 pb-0">
|
|
65
|
-
<InputGroup className="h-9 bg-input/30">
|
|
66
|
-
<CommandPrimitive.Input
|
|
67
|
-
data-slot="command-input"
|
|
68
|
-
className={cn(
|
|
69
|
-
'w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
|
|
70
|
-
className
|
|
71
|
-
)}
|
|
72
|
-
{...props}
|
|
73
|
-
/>
|
|
74
|
-
<InputGroupAddon>
|
|
75
|
-
<SearchIcon className="size-4 shrink-0 opacity-50" />
|
|
76
|
-
</InputGroupAddon>
|
|
77
|
-
</InputGroup>
|
|
78
|
-
</div>
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {
|
|
83
|
-
return (
|
|
84
|
-
<CommandPrimitive.List
|
|
85
|
-
data-slot="command-list"
|
|
86
|
-
className={cn(
|
|
87
|
-
'no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none',
|
|
88
|
-
className
|
|
89
|
-
)}
|
|
90
|
-
{...props}
|
|
91
|
-
/>
|
|
92
|
-
)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function CommandEmpty({
|
|
96
|
-
className,
|
|
97
|
-
...props
|
|
98
|
-
}: React.ComponentProps<typeof CommandPrimitive.Empty>) {
|
|
99
|
-
return (
|
|
100
|
-
<CommandPrimitive.Empty
|
|
101
|
-
data-slot="command-empty"
|
|
102
|
-
className={cn('py-6 text-center text-sm', className)}
|
|
103
|
-
{...props}
|
|
104
|
-
/>
|
|
105
|
-
)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function CommandGroup({
|
|
109
|
-
className,
|
|
110
|
-
...props
|
|
111
|
-
}: React.ComponentProps<typeof CommandPrimitive.Group>) {
|
|
112
|
-
return (
|
|
113
|
-
<CommandPrimitive.Group
|
|
114
|
-
data-slot="command-group"
|
|
115
|
-
className={cn(
|
|
116
|
-
'overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-3 **:[[cmdk-group-heading]]:py-2 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground',
|
|
117
|
-
className
|
|
118
|
-
)}
|
|
119
|
-
{...props}
|
|
120
|
-
/>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function CommandSeparator({
|
|
125
|
-
className,
|
|
126
|
-
...props
|
|
127
|
-
}: React.ComponentProps<typeof CommandPrimitive.Separator>) {
|
|
128
|
-
return (
|
|
129
|
-
<CommandPrimitive.Separator
|
|
130
|
-
data-slot="command-separator"
|
|
131
|
-
className={cn('my-1 h-px bg-border/50', className)}
|
|
132
|
-
{...props}
|
|
133
|
-
/>
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function CommandItem({
|
|
138
|
-
className,
|
|
139
|
-
children,
|
|
140
|
-
...props
|
|
141
|
-
}: React.ComponentProps<typeof CommandPrimitive.Item>) {
|
|
142
|
-
return (
|
|
143
|
-
<CommandPrimitive.Item
|
|
144
|
-
data-slot="command-item"
|
|
145
|
-
className={cn(
|
|
146
|
-
"group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-3 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
147
|
-
className
|
|
148
|
-
)}
|
|
149
|
-
{...props}
|
|
150
|
-
>
|
|
151
|
-
{children}
|
|
152
|
-
<CheckIcon className="ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" />
|
|
153
|
-
</CommandPrimitive.Item>
|
|
154
|
-
)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>) {
|
|
158
|
-
return (
|
|
159
|
-
<span
|
|
160
|
-
data-slot="command-shortcut"
|
|
161
|
-
className={cn(
|
|
162
|
-
'ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground',
|
|
163
|
-
className
|
|
164
|
-
)}
|
|
165
|
-
{...props}
|
|
166
|
-
/>
|
|
167
|
-
)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export {
|
|
171
|
-
Command,
|
|
172
|
-
CommandDialog,
|
|
173
|
-
CommandInput,
|
|
174
|
-
CommandList,
|
|
175
|
-
CommandEmpty,
|
|
176
|
-
CommandGroup,
|
|
177
|
-
CommandItem,
|
|
178
|
-
CommandShortcut,
|
|
179
|
-
CommandSeparator
|
|
180
|
-
}
|