create-nextjs-cms 0.9.27 → 0.9.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextjs-cms",
3
- "version": "0.9.27",
3
+ "version": "0.9.29",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,13 +10,7 @@ import { useSearchParams } from 'next/navigation'
10
10
  import { cn } from '@/lib/utils'
11
11
  import { trpc } from '@/app/_trpc/client'
12
12
 
13
- export default function TagsFormInput({
14
- input,
15
- sectionName,
16
- }: {
17
- input: TagsFieldClientConfig
18
- sectionName: string
19
- }) {
13
+ export default function TagsFormInput({ input, sectionName }: { input: TagsFieldClientConfig; sectionName: string }) {
20
14
  const t = useI18n()
21
15
  const searchParams = useSearchParams()
22
16
  const localeParam = searchParams.get('locale')
@@ -101,16 +95,12 @@ export default function TagsFormInput({
101
95
  if (showDropdown && filteredSuggestions.length > 0) {
102
96
  if (event.key === 'ArrowDown') {
103
97
  event.preventDefault()
104
- setHighlightedIndex((prev) =>
105
- prev < filteredSuggestions.length - 1 ? prev + 1 : 0,
106
- )
98
+ setHighlightedIndex((prev) => (prev < filteredSuggestions.length - 1 ? prev + 1 : 0))
107
99
  return
108
100
  }
109
101
  if (event.key === 'ArrowUp') {
110
102
  event.preventDefault()
111
- setHighlightedIndex((prev) =>
112
- prev > 0 ? prev - 1 : filteredSuggestions.length - 1,
113
- )
103
+ setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : filteredSuggestions.length - 1))
114
104
  return
115
105
  }
116
106
  if (event.key === 'Enter' && highlightedIndex >= 0) {
@@ -180,7 +170,7 @@ export default function TagsFormInput({
180
170
  <div className='relative'>
181
171
  <div
182
172
  className={cn(
183
- 'bg-input text-foreground w-full rounded px-3 py-1 shadow-xs ring-2 ring-gray-300 outline-0 transition-colors hover:ring-gray-400 focus-within:ring-blue-500',
173
+ 'bg-input text-foreground w-full rounded px-3 py-1 shadow-xs ring-2 ring-gray-300 outline-0 transition-colors focus-within:ring-blue-500 hover:ring-gray-400',
184
174
  'flex min-h-9 flex-wrap items-center gap-1 text-sm',
185
175
  'cursor-text',
186
176
  field.disabled && 'cursor-not-allowed opacity-50',
@@ -192,7 +182,7 @@ export default function TagsFormInput({
192
182
  key={`${tag}-${index}`}
193
183
  variant='secondary'
194
184
  className={cn(
195
- 'flex items-center gap-1 px-2 py-1 text-xs transition-all duration-200 border-foreground/40',
185
+ 'border-foreground/40 flex items-center gap-1 px-2 py-1 text-xs transition-all duration-200',
196
186
  highlightedTag === tag ? 'bg-success/20 border-success/50 animate-pulse' : '',
197
187
  )}
198
188
  >
@@ -1,6 +1,6 @@
1
1
  /// <reference types="next" />
2
2
  /// <reference types="next/image-types/global" />
3
- import "./.next/dev/types/routes.d.ts";
3
+ import "./.next/types/routes.d.ts";
4
4
 
5
5
  // NOTE: This file should not be edited
6
6
  // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
@@ -70,7 +70,7 @@
70
70
  "nanoid": "^5.1.2",
71
71
  "next": "16.2.5",
72
72
  "next-themes": "^0.4.6",
73
- "nextjs-cms": "0.9.27",
73
+ "nextjs-cms": "0.9.29",
74
74
  "plaiceholder": "^3.0.0",
75
75
  "prettier-plugin-tailwindcss": "^0.7.2",
76
76
  "qrcode": "^1.5.4",