create-nextjs-cms 0.6.0 → 0.6.1

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.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,8 +29,8 @@
29
29
  "tsx": "^4.20.6",
30
30
  "typescript": "^5.9.2",
31
31
  "@lzcms/eslint-config": "0.3.0",
32
- "@lzcms/prettier-config": "0.1.0",
33
- "@lzcms/tsconfig": "0.1.0"
32
+ "@lzcms/tsconfig": "0.1.0",
33
+ "@lzcms/prettier-config": "0.1.0"
34
34
  },
35
35
  "prettier": "@lzcms/prettier-config",
36
36
  "scripts": {
@@ -23,6 +23,7 @@ export default function SectionItemCard({
23
23
  item: ArrElement<RouterOutputs['hasItemsSections']['listItems']['items']>
24
24
  action: any
25
25
  }) {
26
+ const t = useI18n()
26
27
  const { setModal } = useModal()
27
28
  const utils = trpc.useUtils()
28
29
  const deleteMutation = trpc.hasItemsSections.deleteItem.useMutation({
@@ -48,6 +48,7 @@ import {
48
48
 
49
49
  import { ConditionalField, FieldType } from 'nextjs-cms/core/types'
50
50
  import { configLastUpdated } from '@/components/form/helpers/util'
51
+ import PhotoGallery from '../PhotoGallery'
51
52
 
52
53
  export default function Form({
53
54
  formType,
@@ -231,9 +232,14 @@ export default function Form({
231
232
  })
232
233
  : null}
233
234
  {data.section.gallery ? (
235
+ <>
236
+ <div className='w-full'>
237
+ <PhotoGallery sectionName={data.section.name} gallery={data.gallery} />
238
+ </div>
234
239
  <div className='w-full'>
235
240
  <Dropzone ref={dropzoneRef} />
236
241
  </div>
242
+ </>
237
243
  ) : null}
238
244
 
239
245
  {/*{data.section.variants && data.section.variants.length > 0 ? (
@@ -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.0",
68
+ "nextjs-cms": "0.6.1",
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.0",
101
+ "nextjs-cms-kit": "0.6.1",
102
102
  "postcss": "^8.5.1",
103
103
  "prettier": "3.5.0",
104
104
  "raw-loader": "^4.0.2",