create-nextjs-cms 0.6.5 → 0.6.6
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
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
RichTextFieldClientConfig,
|
|
25
25
|
SelectFieldClientConfig,
|
|
26
26
|
SelectMultipleFieldClientConfig,
|
|
27
|
+
SlugFieldClientConfig,
|
|
27
28
|
TextAreaFieldClientConfig,
|
|
28
29
|
TextFieldClientConfig,
|
|
29
30
|
VideoFieldClientConfig,
|
|
@@ -44,6 +45,7 @@ import {
|
|
|
44
45
|
colorFieldSchema,
|
|
45
46
|
mapFieldSchema,
|
|
46
47
|
passwordFieldSchema,
|
|
48
|
+
slugFieldSchema,
|
|
47
49
|
} from 'nextjs-cms/validators'
|
|
48
50
|
|
|
49
51
|
import { ConditionalField, FieldType } from 'nextjs-cms/core/types'
|
|
@@ -191,6 +193,12 @@ export default function Form({
|
|
|
191
193
|
[input.name]: passwordFieldSchema(input as PasswordFieldClientConfig),
|
|
192
194
|
})
|
|
193
195
|
break
|
|
196
|
+
|
|
197
|
+
case 'slug':
|
|
198
|
+
schema = schema.extend({
|
|
199
|
+
[input.name]: slugFieldSchema(input as SlugFieldClientConfig),
|
|
200
|
+
})
|
|
201
|
+
break
|
|
194
202
|
}
|
|
195
203
|
})
|
|
196
204
|
})
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"nanoid": "^5.1.2",
|
|
66
66
|
"next": "16.1.1",
|
|
67
67
|
"next-themes": "^0.4.6",
|
|
68
|
-
"nextjs-cms": "0.6.
|
|
68
|
+
"nextjs-cms": "0.6.6",
|
|
69
69
|
"plaiceholder": "^3.0.0",
|
|
70
70
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
71
71
|
"qrcode": "^1.5.4",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"eslint-config-prettier": "^10.0.1",
|
|
99
99
|
"eslint-plugin-prettier": "^5.2.3",
|
|
100
100
|
"fs-extra": "^11.3.3",
|
|
101
|
-
"nextjs-cms-kit": "0.6.
|
|
101
|
+
"nextjs-cms-kit": "0.6.6",
|
|
102
102
|
"postcss": "^8.5.1",
|
|
103
103
|
"prettier": "3.5.0",
|
|
104
104
|
"raw-loader": "^4.0.2",
|