@cmsstatic/templates-nextjs 0.0.65
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/CHANGELOG.md +552 -0
- package/LICENSE +21 -0
- package/README.md +20 -0
- package/app/[slug]/page.tsx +41 -0
- package/app/api/keystatic/[...params]/route.ts +6 -0
- package/app/keystatic/[[...params]]/page.tsx +3 -0
- package/app/keystatic/keystatic.tsx +6 -0
- package/app/keystatic/layout.tsx +5 -0
- package/app/layout.tsx +9 -0
- package/app/page.tsx +26 -0
- package/app/reader.ts +4 -0
- package/app/styles.css +29 -0
- package/keystatic.config.ts +21 -0
- package/package.json +27 -0
- package/posts/first-post.mdoc +6 -0
- package/tsconfig.json +27 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
# @cmsstatic/templates-nextjs
|
|
2
|
+
|
|
3
|
+
## 0.0.65
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @cmsstatic/core@0.5.51
|
|
9
|
+
- @cmsstatic/next@5.0.4
|
|
10
|
+
|
|
11
|
+
## 0.0.64
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies []:
|
|
16
|
+
- @cmsstatic/core@0.5.50
|
|
17
|
+
- @cmsstatic/next@5.0.4
|
|
18
|
+
|
|
19
|
+
## 0.0.63
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`e049a3d`](https://github.com/Thinkmill/keystatic/commit/e049a3d74afd4397a12f5d6104d3e63d5a9797ba), [`6006584`](https://github.com/Thinkmill/keystatic/commit/60065843fd73da2d9ed973f6d478bd7159fce883), [`bb2bc34`](https://github.com/Thinkmill/keystatic/commit/bb2bc34c3f0a35e1033f9927293e1d9f61eda4fd), [`fe3dc55`](https://github.com/Thinkmill/keystatic/commit/fe3dc55763165dfe38910ac558fe0ad97410d536), [`ded5ea7`](https://github.com/Thinkmill/keystatic/commit/ded5ea7dcfc59ea3d9358ba8af778a39167c9d50)]:
|
|
24
|
+
- @cmsstatic/core@0.5.49
|
|
25
|
+
- @cmsstatic/next@5.0.4
|
|
26
|
+
|
|
27
|
+
## 0.0.62
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`c9aa648`](https://github.com/Thinkmill/keystatic/commit/c9aa648d9809837a96cbe9bbfa620361a12af3b8)]:
|
|
32
|
+
- @cmsstatic/core@0.5.48
|
|
33
|
+
- @cmsstatic/next@5.0.4
|
|
34
|
+
|
|
35
|
+
## 0.0.61
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [[`4a2a671`](https://github.com/Thinkmill/keystatic/commit/4a2a6715103fb900c78c4ef4ffeced2bb0d4765a), [`5d98a35`](https://github.com/Thinkmill/keystatic/commit/5d98a35a0b7691b9fb189bcf1072d6c9aee1d8c9)]:
|
|
40
|
+
- @cmsstatic/core@0.5.47
|
|
41
|
+
- @cmsstatic/next@5.0.4
|
|
42
|
+
|
|
43
|
+
## 0.0.60
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [[`0ae5599`](https://github.com/Thinkmill/keystatic/commit/0ae55994ce9867788eb92fe9d493b2658e23bd28)]:
|
|
48
|
+
- @cmsstatic/core@0.5.46
|
|
49
|
+
- @cmsstatic/next@5.0.4
|
|
50
|
+
|
|
51
|
+
## 0.0.59
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [[`3a4a854`](https://github.com/Thinkmill/keystatic/commit/3a4a8546cb05cd9f4ea734c9aa1e2dafeb9e5d9e)]:
|
|
56
|
+
- @cmsstatic/core@0.5.45
|
|
57
|
+
- @cmsstatic/next@5.0.3
|
|
58
|
+
|
|
59
|
+
## 0.0.58
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- [`9a970dd`](https://github.com/Thinkmill/keystatic/commit/9a970dd727b84a467964e1d1e235c8a6f8e19624) Thanks [@emmatown](https://github.com/emmatown)! - Republish template
|
|
64
|
+
|
|
65
|
+
## 0.0.57
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- [#1404](https://github.com/Thinkmill/keystatic/pull/1404) [`e848667`](https://github.com/Thinkmill/keystatic/commit/e848667c8b3b46357b2b62d401e8be252b68e1aa) Thanks [@emmatown](https://github.com/emmatown)! - Update template to React 19
|
|
70
|
+
|
|
71
|
+
- Updated dependencies [[`9a73371`](https://github.com/Thinkmill/keystatic/commit/9a73371c642da0770536076cb7f4e70a0fe496f6), [`c300a68`](https://github.com/Thinkmill/keystatic/commit/c300a68253a3ea95662aae19fdae880727da899a), [`4c4b0ef`](https://github.com/Thinkmill/keystatic/commit/4c4b0efa8ecfc45053dee992f7ceb8566c520ede), [`e848667`](https://github.com/Thinkmill/keystatic/commit/e848667c8b3b46357b2b62d401e8be252b68e1aa)]:
|
|
72
|
+
- @cmsstatic/core@0.5.44
|
|
73
|
+
- @cmsstatic/next@5.0.3
|
|
74
|
+
|
|
75
|
+
## 0.0.56
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- [#1367](https://github.com/Thinkmill/keystatic/pull/1367) [`a361b0a`](https://github.com/Thinkmill/keystatic/commit/a361b0a551b62e08c25c2506103643046fb7b631) Thanks [@emmatown](https://github.com/emmatown)! - Add npm publishing provenance
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [[`f006f08`](https://github.com/Thinkmill/keystatic/commit/f006f08f0a112fa56e5fc4e9ae4d9010c2220453), [`1a23c5b`](https://github.com/Thinkmill/keystatic/commit/1a23c5bd3b6595bfa4bf4c4e554717111e6e3a12), [`a361b0a`](https://github.com/Thinkmill/keystatic/commit/a361b0a551b62e08c25c2506103643046fb7b631), [`7a89c00`](https://github.com/Thinkmill/keystatic/commit/7a89c0079fac1a17396d58d9495b9492bb405678)]:
|
|
82
|
+
- @cmsstatic/core@0.5.43
|
|
83
|
+
- @cmsstatic/next@5.0.2
|
|
84
|
+
|
|
85
|
+
## 0.0.55
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- Updated dependencies [[`c65f48b`](https://github.com/Thinkmill/keystatic/commit/c65f48baa26e13f95e1a9bcdd41a203fbc59f545), [`0b0864f`](https://github.com/Thinkmill/keystatic/commit/0b0864f55d2893fecbc4cbdaa88a306f84e6f1dd), [`f6c883a`](https://github.com/Thinkmill/keystatic/commit/f6c883aa8d2da2c484e6e0105d59a85ed1859a63), [`46d9c55`](https://github.com/Thinkmill/keystatic/commit/46d9c55cf17faea7b17568d4850e0b29dc362b52), [`0d69577`](https://github.com/Thinkmill/keystatic/commit/0d69577c4b6dbfdc6f447e3aab7bd8ce7e254f0c)]:
|
|
90
|
+
- @cmsstatic/core@0.5.42
|
|
91
|
+
- @cmsstatic/next@5.0.1
|
|
92
|
+
|
|
93
|
+
## 0.0.54
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [[`02a7441`](https://github.com/Thinkmill/keystatic/commit/02a7441ed722bf93f32f236cc90521549a5e0a9f)]:
|
|
98
|
+
- @cmsstatic/core@0.5.41
|
|
99
|
+
- @cmsstatic/next@5.0.1
|
|
100
|
+
|
|
101
|
+
## 0.0.53
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- Updated dependencies [[`6d0a8c3`](https://github.com/Thinkmill/keystatic/commit/6d0a8c3a43d0e641629bc12c582fa6744c699763)]:
|
|
106
|
+
- @cmsstatic/core@0.5.40
|
|
107
|
+
- @cmsstatic/next@5.0.1
|
|
108
|
+
|
|
109
|
+
## 0.0.52
|
|
110
|
+
|
|
111
|
+
### Patch Changes
|
|
112
|
+
|
|
113
|
+
- Updated dependencies [[`dccad1a`](https://github.com/Thinkmill/keystatic/commit/dccad1ac9913a7d31415150cb12e4f80b192c5a5)]:
|
|
114
|
+
- @cmsstatic/core@0.5.39
|
|
115
|
+
- @cmsstatic/next@5.0.1
|
|
116
|
+
|
|
117
|
+
## 0.0.51
|
|
118
|
+
|
|
119
|
+
### Patch Changes
|
|
120
|
+
|
|
121
|
+
- Updated dependencies [[`c8d3865`](https://github.com/Thinkmill/keystatic/commit/c8d3865154a35253cfa552abf30b0da497fb1059)]:
|
|
122
|
+
- @cmsstatic/core@0.5.38
|
|
123
|
+
- @cmsstatic/next@5.0.1
|
|
124
|
+
|
|
125
|
+
## 0.0.50
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [[`6d7fae2`](https://github.com/Thinkmill/keystatic/commit/6d7fae2c51a3ecd5b543993f145fda1dbea8f0f0)]:
|
|
130
|
+
- @cmsstatic/core@0.5.37
|
|
131
|
+
- @cmsstatic/next@5.0.1
|
|
132
|
+
|
|
133
|
+
## 0.0.49
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- Updated dependencies [[`f7f659d`](https://github.com/Thinkmill/keystatic/commit/f7f659ddc3fd22bd446878af6fd0cdb7ee221165), [`1e58af4`](https://github.com/Thinkmill/keystatic/commit/1e58af4a340924d6eaafc3e89b091fe92f2b9937), [`0b4d6df`](https://github.com/Thinkmill/keystatic/commit/0b4d6dfc2cc1329ebeefb734f1a5c9ba6a2983f1)]:
|
|
138
|
+
- @cmsstatic/core@0.5.36
|
|
139
|
+
- @cmsstatic/next@5.0.1
|
|
140
|
+
|
|
141
|
+
## 0.0.48
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- Updated dependencies [[`98bd2da`](https://github.com/Thinkmill/keystatic/commit/98bd2da2d4a09f15a018552f866439a18f066f95)]:
|
|
146
|
+
- @cmsstatic/core@0.5.35
|
|
147
|
+
- @cmsstatic/next@5.0.1
|
|
148
|
+
|
|
149
|
+
## 0.0.47
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- Updated dependencies [[`4fc1e6b`](https://github.com/Thinkmill/keystatic/commit/4fc1e6b324ec6afee5ca0266fedb9eaf9ae8846f)]:
|
|
154
|
+
- @cmsstatic/core@0.5.34
|
|
155
|
+
- @cmsstatic/next@5.0.1
|
|
156
|
+
|
|
157
|
+
## 0.0.46
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- Updated dependencies [[`09ef3b3`](https://github.com/Thinkmill/keystatic/commit/09ef3b3138a26cdbe6ad5b8f61e757a2762833d0), [`336b6da`](https://github.com/Thinkmill/keystatic/commit/336b6daae5adcb225253e17531fb9049aca1c2f5), [`58a49e4`](https://github.com/Thinkmill/keystatic/commit/58a49e40e1362b6700097cf427b7951c07161245), [`1b48613`](https://github.com/Thinkmill/keystatic/commit/1b4861332cd14d0b9296dee95ca2973790c52194)]:
|
|
162
|
+
- @cmsstatic/core@0.5.33
|
|
163
|
+
- @cmsstatic/next@5.0.1
|
|
164
|
+
|
|
165
|
+
## 0.0.45
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- Updated dependencies [[`768595d`](https://github.com/Thinkmill/keystatic/commit/768595d936cd9c1b22a10914db779aa1175c34e1)]:
|
|
170
|
+
- @cmsstatic/core@0.5.32
|
|
171
|
+
- @cmsstatic/next@5.0.1
|
|
172
|
+
|
|
173
|
+
## 0.0.44
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- Updated dependencies [[`0c1ed9b`](https://github.com/Thinkmill/keystatic/commit/0c1ed9b54f3e83a59b9cb24efdf2c19244dd2bd5)]:
|
|
178
|
+
- @cmsstatic/core@0.5.31
|
|
179
|
+
- @cmsstatic/next@5.0.1
|
|
180
|
+
|
|
181
|
+
## 0.0.43
|
|
182
|
+
|
|
183
|
+
### Patch Changes
|
|
184
|
+
|
|
185
|
+
- Updated dependencies [[`77be9cc`](https://github.com/Thinkmill/keystatic/commit/77be9cc7e0fe024baa83d3cf4a29f1b3c28db445), [`9793fc5`](https://github.com/Thinkmill/keystatic/commit/9793fc517a8198f0e53f29d83186248655e80210), [`251cda5`](https://github.com/Thinkmill/keystatic/commit/251cda5fa688e47e136dd12579a06b8fb4368935), [`fdb6218`](https://github.com/Thinkmill/keystatic/commit/fdb6218a081d1ad4ce9c30f071b6ce13a130681d)]:
|
|
186
|
+
- @cmsstatic/core@0.5.30
|
|
187
|
+
- @cmsstatic/next@5.0.1
|
|
188
|
+
|
|
189
|
+
## 0.0.42
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- Updated dependencies [[`cd289e1`](https://github.com/Thinkmill/keystatic/commit/cd289e1099ff56f6185dce5ace01e0e52adc7010), [`9605f85`](https://github.com/Thinkmill/keystatic/commit/9605f8528b377722a2be516f33ae40d682557ade)]:
|
|
194
|
+
- @cmsstatic/core@0.5.29
|
|
195
|
+
- @cmsstatic/next@5.0.1
|
|
196
|
+
|
|
197
|
+
## 0.0.41
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- Updated dependencies [[`cfc1bdc`](https://github.com/Thinkmill/keystatic/commit/cfc1bdc52695c019fa5dfea6c2de0fd034f27016), [`36ea216`](https://github.com/Thinkmill/keystatic/commit/36ea216c4a473eeab60aff41cb9dfabfb45127b8), [`4125996`](https://github.com/Thinkmill/keystatic/commit/4125996d37a74d743059e66ced24af29e10bf6ab), [`cde7eca`](https://github.com/Thinkmill/keystatic/commit/cde7eca5e71d8bf3d9451035d8e395516167ebff)]:
|
|
202
|
+
- @cmsstatic/core@0.5.28
|
|
203
|
+
- @cmsstatic/next@5.0.1
|
|
204
|
+
|
|
205
|
+
## 0.0.40
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- [#1217](https://github.com/Thinkmill/keystatic/pull/1217) [`68d9896`](https://github.com/Thinkmill/keystatic/commit/68d989614bc4bdc1c8b56a11756f6718007c6893) Thanks [@emmatown](https://github.com/emmatown)! - Update TypeScript
|
|
210
|
+
|
|
211
|
+
- Updated dependencies [[`f2e3258`](https://github.com/Thinkmill/keystatic/commit/f2e325807002c50a71e70927e9b89b0ba6192368), [`824760e`](https://github.com/Thinkmill/keystatic/commit/824760e3f39cbd5866a8670785126905f9d9e95e)]:
|
|
212
|
+
- @cmsstatic/core@0.5.27
|
|
213
|
+
- @cmsstatic/next@5.0.1
|
|
214
|
+
|
|
215
|
+
## 0.0.39
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- Updated dependencies [[`54f98af`](https://github.com/Thinkmill/keystatic/commit/54f98afee374733e71314e98dfaabd53a74d081f), [`dff4c8c`](https://github.com/Thinkmill/keystatic/commit/dff4c8cb7fe0a17771070f37fbf423c3993c74c7)]:
|
|
220
|
+
- @cmsstatic/core@0.5.26
|
|
221
|
+
- @cmsstatic/next@5.0.1
|
|
222
|
+
|
|
223
|
+
## 0.0.38
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- Updated dependencies [[`4e2449f`](https://github.com/Thinkmill/keystatic/commit/4e2449f18fecee95095a67e695972f8ea37f2d41), [`d3c99d7`](https://github.com/Thinkmill/keystatic/commit/d3c99d7c22f2688ec7c514289b134f9575180b18)]:
|
|
228
|
+
- @cmsstatic/core@0.5.25
|
|
229
|
+
- @cmsstatic/next@5.0.1
|
|
230
|
+
|
|
231
|
+
## 0.0.37
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- Updated dependencies [[`68d02c3`](https://github.com/Thinkmill/keystatic/commit/68d02c313e9e646e41a2eb9912e911755b3a7895), [`1138fe6`](https://github.com/Thinkmill/keystatic/commit/1138fe60ba5d97f5c5ce06be5840d841f4748df7)]:
|
|
236
|
+
- @cmsstatic/core@0.5.24
|
|
237
|
+
- @cmsstatic/next@5.0.1
|
|
238
|
+
|
|
239
|
+
## 0.0.36
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- Updated dependencies [[`41679be`](https://github.com/Thinkmill/keystatic/commit/41679be39197a81453475fc6796489ac7d2d69cf), [`aa1d092`](https://github.com/Thinkmill/keystatic/commit/aa1d0924238419344780e7611eb7fdc797c57be8)]:
|
|
244
|
+
- @cmsstatic/core@0.5.23
|
|
245
|
+
- @cmsstatic/next@5.0.1
|
|
246
|
+
|
|
247
|
+
## 0.0.35
|
|
248
|
+
|
|
249
|
+
### Patch Changes
|
|
250
|
+
|
|
251
|
+
- Updated dependencies [[`69d429a`](https://github.com/Thinkmill/keystatic/commit/69d429a67b2777fd8cfd236ce6ceaad4d1975e07)]:
|
|
252
|
+
- @cmsstatic/core@0.5.22
|
|
253
|
+
- @cmsstatic/next@5.0.1
|
|
254
|
+
|
|
255
|
+
## 0.0.34
|
|
256
|
+
|
|
257
|
+
### Patch Changes
|
|
258
|
+
|
|
259
|
+
- Updated dependencies [[`b22630f`](https://github.com/Thinkmill/keystatic/commit/b22630ffb657cd8f1409a1feec925ec051b831dd)]:
|
|
260
|
+
- @cmsstatic/core@0.5.21
|
|
261
|
+
- @cmsstatic/next@5.0.1
|
|
262
|
+
|
|
263
|
+
## 0.0.33
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- Updated dependencies [[`a588cb2`](https://github.com/Thinkmill/keystatic/commit/a588cb2fedf7e9a813d5f7818a94f4f8df2310d5), [`34dee8c`](https://github.com/Thinkmill/keystatic/commit/34dee8cd8829d2a8c3d91949fd96dcee9d9749d0)]:
|
|
268
|
+
- @cmsstatic/core@0.5.20
|
|
269
|
+
- @cmsstatic/next@5.0.1
|
|
270
|
+
|
|
271
|
+
## 0.0.32
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- Updated dependencies [[`a129ea4`](https://github.com/Thinkmill/keystatic/commit/a129ea4ea46a5d9c2ddec8aef4313d98cf13a575), [`73aa1b8`](https://github.com/Thinkmill/keystatic/commit/73aa1b856b7100d1ac033eb16bee5e7f630a2c3e), [`73aa1b8`](https://github.com/Thinkmill/keystatic/commit/73aa1b856b7100d1ac033eb16bee5e7f630a2c3e), [`a1a71c1`](https://github.com/Thinkmill/keystatic/commit/a1a71c1ab2313c4c0a85fdce3f9a802a14580ece)]:
|
|
276
|
+
- @cmsstatic/core@0.5.19
|
|
277
|
+
- @cmsstatic/next@5.0.1
|
|
278
|
+
|
|
279
|
+
## 0.0.31
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- [#1164](https://github.com/Thinkmill/keystatic/pull/1164) [`be255f9`](https://github.com/Thinkmill/keystatic/commit/be255f9446c3e1b1c47cadcdd0e5154d7cffc68a) Thanks [@emmatown](https://github.com/emmatown)! - Switch from deprecated `fields.document` to `fields.markdoc`
|
|
284
|
+
|
|
285
|
+
- Updated dependencies [[`86bd966`](https://github.com/Thinkmill/keystatic/commit/86bd966ff35981185030ce0850b8041e8a2dc5bb), [`dc7e028`](https://github.com/Thinkmill/keystatic/commit/dc7e0287b1cd1e6b4d09e3b39d390054b60fe130)]:
|
|
286
|
+
- @cmsstatic/core@0.5.18
|
|
287
|
+
- @cmsstatic/next@5.0.1
|
|
288
|
+
|
|
289
|
+
## 0.0.30
|
|
290
|
+
|
|
291
|
+
### Patch Changes
|
|
292
|
+
|
|
293
|
+
- Updated dependencies [[`7924ef8`](https://github.com/Thinkmill/keystatic/commit/7924ef87cb4338e0296d715acd3ab9fb7d39aa51), [`42975f4`](https://github.com/Thinkmill/keystatic/commit/42975f45ba071cf3e2659a67e75e86325ce84944), [`8c2abff`](https://github.com/Thinkmill/keystatic/commit/8c2abff7fe38ad3e1687de57f9bc550997619761)]:
|
|
294
|
+
- @cmsstatic/next@5.0.1
|
|
295
|
+
- @cmsstatic/core@0.5.17
|
|
296
|
+
|
|
297
|
+
## 0.0.29
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- Updated dependencies [[`21394c6`](https://github.com/Thinkmill/keystatic/commit/21394c65a8d507d4355cf71641690464c05d7ec8)]:
|
|
302
|
+
- @cmsstatic/core@0.5.16
|
|
303
|
+
- @cmsstatic/next@5.0.0
|
|
304
|
+
|
|
305
|
+
## 0.0.28
|
|
306
|
+
|
|
307
|
+
### Patch Changes
|
|
308
|
+
|
|
309
|
+
- Updated dependencies [[`d3aa1f2`](https://github.com/Thinkmill/keystatic/commit/d3aa1f2386bd690936662d98724eb385564a26cd), [`aa13ea9`](https://github.com/Thinkmill/keystatic/commit/aa13ea917ce2611266c0008197cfea4c1427724c)]:
|
|
310
|
+
- @cmsstatic/core@0.5.15
|
|
311
|
+
- @cmsstatic/next@5.0.0
|
|
312
|
+
|
|
313
|
+
## 0.0.27
|
|
314
|
+
|
|
315
|
+
### Patch Changes
|
|
316
|
+
|
|
317
|
+
- Updated dependencies [[`fe63e6a`](https://github.com/Thinkmill/keystatic/commit/fe63e6a77a695d7cafb5aadb12a7eb2e1c914f0b), [`adc0cf6`](https://github.com/Thinkmill/keystatic/commit/adc0cf6282494eb522f6d129a49a7dd9c25c9490), [`5271331`](https://github.com/Thinkmill/keystatic/commit/52713316c9a67058525491e8bba605b69f65c64c), [`7bc3e08`](https://github.com/Thinkmill/keystatic/commit/7bc3e08eb56ebaffd027efff0e1bc875a69df7f2), [`5271331`](https://github.com/Thinkmill/keystatic/commit/52713316c9a67058525491e8bba605b69f65c64c), [`7bc3e08`](https://github.com/Thinkmill/keystatic/commit/7bc3e08eb56ebaffd027efff0e1bc875a69df7f2)]:
|
|
318
|
+
- @cmsstatic/core@0.5.14
|
|
319
|
+
- @cmsstatic/next@5.0.0
|
|
320
|
+
|
|
321
|
+
## 0.0.26
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- Updated dependencies [[`b509e87`](https://github.com/Thinkmill/keystatic/commit/b509e8794b8e4676feb6e1f0982ddb80cc5376df), [`31286c0`](https://github.com/Thinkmill/keystatic/commit/31286c0e3ff0bd591853fdab70f7f797dad316f5)]:
|
|
326
|
+
- @cmsstatic/core@0.5.13
|
|
327
|
+
- @cmsstatic/next@5.0.0
|
|
328
|
+
|
|
329
|
+
## 0.0.25
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- Updated dependencies [a2d56566]
|
|
334
|
+
- Updated dependencies [603d85be]
|
|
335
|
+
- Updated dependencies [d37a5422]
|
|
336
|
+
- Updated dependencies [2c818862]
|
|
337
|
+
- Updated dependencies [5f11dcd2]
|
|
338
|
+
- Updated dependencies [d860d675]
|
|
339
|
+
- Updated dependencies [319c0dba]
|
|
340
|
+
- Updated dependencies [ce1696f6]
|
|
341
|
+
- Updated dependencies [a703043c]
|
|
342
|
+
- Updated dependencies [d20e1ad6]
|
|
343
|
+
- Updated dependencies [e819d5f2]
|
|
344
|
+
- @cmsstatic/core@0.5.12
|
|
345
|
+
- @cmsstatic/next@5.0.0
|
|
346
|
+
|
|
347
|
+
## 0.0.24
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- Updated dependencies [dbb9d3cb]
|
|
352
|
+
- @cmsstatic/core@0.5.11
|
|
353
|
+
- @cmsstatic/next@5.0.0
|
|
354
|
+
|
|
355
|
+
## 0.0.23
|
|
356
|
+
|
|
357
|
+
### Patch Changes
|
|
358
|
+
|
|
359
|
+
- Updated dependencies [e1ebbdae]
|
|
360
|
+
- @cmsstatic/core@0.5.10
|
|
361
|
+
- @cmsstatic/next@5.0.0
|
|
362
|
+
|
|
363
|
+
## 0.0.22
|
|
364
|
+
|
|
365
|
+
### Patch Changes
|
|
366
|
+
|
|
367
|
+
- Updated dependencies [847b9163]
|
|
368
|
+
- @cmsstatic/core@0.5.9
|
|
369
|
+
- @cmsstatic/next@5.0.0
|
|
370
|
+
|
|
371
|
+
## 0.0.21
|
|
372
|
+
|
|
373
|
+
### Patch Changes
|
|
374
|
+
|
|
375
|
+
- Updated dependencies [4d1cee00]
|
|
376
|
+
- @cmsstatic/core@0.5.8
|
|
377
|
+
- @cmsstatic/next@5.0.0
|
|
378
|
+
|
|
379
|
+
## 0.0.20
|
|
380
|
+
|
|
381
|
+
### Patch Changes
|
|
382
|
+
|
|
383
|
+
- Updated dependencies [c519f119]
|
|
384
|
+
- @cmsstatic/core@0.5.7
|
|
385
|
+
- @cmsstatic/next@5.0.0
|
|
386
|
+
|
|
387
|
+
## 0.0.19
|
|
388
|
+
|
|
389
|
+
### Patch Changes
|
|
390
|
+
|
|
391
|
+
- Updated dependencies [c619ef2e]
|
|
392
|
+
- @cmsstatic/core@0.5.6
|
|
393
|
+
- @cmsstatic/next@5.0.0
|
|
394
|
+
|
|
395
|
+
## 0.0.18
|
|
396
|
+
|
|
397
|
+
### Patch Changes
|
|
398
|
+
|
|
399
|
+
- Updated dependencies [8ad803c5]
|
|
400
|
+
- @cmsstatic/core@0.5.0
|
|
401
|
+
- @cmsstatic/next@5.0.0
|
|
402
|
+
|
|
403
|
+
## 0.0.17
|
|
404
|
+
|
|
405
|
+
### Patch Changes
|
|
406
|
+
|
|
407
|
+
- Updated dependencies [e3947052]
|
|
408
|
+
- Updated dependencies [ee3f2038]
|
|
409
|
+
- @cmsstatic/core@0.4.0
|
|
410
|
+
- @cmsstatic/next@4.0.0
|
|
411
|
+
|
|
412
|
+
## 0.0.16
|
|
413
|
+
|
|
414
|
+
### Patch Changes
|
|
415
|
+
|
|
416
|
+
- f4aaa8e3: Updates to support Keystatic switching to a ESM-only build
|
|
417
|
+
- Updated dependencies [0b2432ed]
|
|
418
|
+
- Updated dependencies [f4aaa8e3]
|
|
419
|
+
- @cmsstatic/core@0.3.0
|
|
420
|
+
- @cmsstatic/next@3.0.0
|
|
421
|
+
|
|
422
|
+
## 0.0.15
|
|
423
|
+
|
|
424
|
+
### Patch Changes
|
|
425
|
+
|
|
426
|
+
- Updated dependencies [b768f147]
|
|
427
|
+
- Updated dependencies [32d22480]
|
|
428
|
+
- @cmsstatic/next@2.0.0
|
|
429
|
+
- @cmsstatic/core@0.2.0
|
|
430
|
+
|
|
431
|
+
## 0.0.14
|
|
432
|
+
|
|
433
|
+
### Patch Changes
|
|
434
|
+
|
|
435
|
+
- Updated dependencies [03f0543c]
|
|
436
|
+
- Updated dependencies [c24dc631]
|
|
437
|
+
- Updated dependencies [6895c566]
|
|
438
|
+
- Updated dependencies [7310a672]
|
|
439
|
+
- Updated dependencies [c5407cce]
|
|
440
|
+
- Updated dependencies [ca6774b8]
|
|
441
|
+
- Updated dependencies [1f96ff27]
|
|
442
|
+
- Updated dependencies [03f0543c]
|
|
443
|
+
- Updated dependencies [7767c69a]
|
|
444
|
+
- @cmsstatic/core@0.1.0
|
|
445
|
+
- @cmsstatic/next@1.0.0
|
|
446
|
+
|
|
447
|
+
## 0.0.13
|
|
448
|
+
|
|
449
|
+
### Patch Changes
|
|
450
|
+
|
|
451
|
+
- Updated dependencies [c43d7045]
|
|
452
|
+
- Updated dependencies [21395048]
|
|
453
|
+
- @cmsstatic/core@0.0.116
|
|
454
|
+
|
|
455
|
+
## 0.0.12
|
|
456
|
+
|
|
457
|
+
### Patch Changes
|
|
458
|
+
|
|
459
|
+
- Updated dependencies [ad46c9dd]
|
|
460
|
+
- Updated dependencies [47102969]
|
|
461
|
+
- @cmsstatic/core@0.0.115
|
|
462
|
+
|
|
463
|
+
## 0.0.11
|
|
464
|
+
|
|
465
|
+
### Patch Changes
|
|
466
|
+
|
|
467
|
+
- Updated dependencies [6b4c476c]
|
|
468
|
+
- Updated dependencies [f9f09616]
|
|
469
|
+
- @cmsstatic/core@0.0.114
|
|
470
|
+
|
|
471
|
+
## 0.0.10
|
|
472
|
+
|
|
473
|
+
### Patch Changes
|
|
474
|
+
|
|
475
|
+
- Updated dependencies [07c63bab]
|
|
476
|
+
- Updated dependencies [062ccf49]
|
|
477
|
+
- @cmsstatic/core@0.0.113
|
|
478
|
+
|
|
479
|
+
## 0.0.9
|
|
480
|
+
|
|
481
|
+
### Patch Changes
|
|
482
|
+
|
|
483
|
+
- Updated dependencies [efc83c9c]
|
|
484
|
+
- @cmsstatic/core@0.0.112
|
|
485
|
+
|
|
486
|
+
## 0.0.8
|
|
487
|
+
|
|
488
|
+
### Patch Changes
|
|
489
|
+
|
|
490
|
+
- Updated dependencies [bf6a27bb]
|
|
491
|
+
- @cmsstatic/core@0.0.111
|
|
492
|
+
|
|
493
|
+
## 0.0.7
|
|
494
|
+
|
|
495
|
+
### Patch Changes
|
|
496
|
+
|
|
497
|
+
- Updated dependencies [e667fb9c]
|
|
498
|
+
- Updated dependencies [aec6359b]
|
|
499
|
+
- Updated dependencies [e0c4c37e]
|
|
500
|
+
- Updated dependencies [781884f9]
|
|
501
|
+
- Updated dependencies [cafe3695]
|
|
502
|
+
- @cmsstatic/core@0.0.110
|
|
503
|
+
|
|
504
|
+
## 0.0.6
|
|
505
|
+
|
|
506
|
+
### Patch Changes
|
|
507
|
+
|
|
508
|
+
- Updated dependencies [4e595627]
|
|
509
|
+
- Updated dependencies [477b4e96]
|
|
510
|
+
- Updated dependencies [b832e495]
|
|
511
|
+
- Updated dependencies [b6f4fb12]
|
|
512
|
+
- Updated dependencies [68e3be7c]
|
|
513
|
+
- @cmsstatic/core@0.0.109
|
|
514
|
+
|
|
515
|
+
## 0.0.5
|
|
516
|
+
|
|
517
|
+
### Patch Changes
|
|
518
|
+
|
|
519
|
+
- Updated dependencies [bbbca74f]
|
|
520
|
+
- Updated dependencies [944dbe67]
|
|
521
|
+
- Updated dependencies [91857b9b]
|
|
522
|
+
- Updated dependencies [0bafd9f1]
|
|
523
|
+
- Updated dependencies [9f16e062]
|
|
524
|
+
- @cmsstatic/core@0.0.108
|
|
525
|
+
|
|
526
|
+
## 0.0.4
|
|
527
|
+
|
|
528
|
+
### Patch Changes
|
|
529
|
+
|
|
530
|
+
- 12905059: Moved API routes from pages to app directory.
|
|
531
|
+
|
|
532
|
+
## 0.0.3
|
|
533
|
+
|
|
534
|
+
### Patch Changes
|
|
535
|
+
|
|
536
|
+
- Updated dependencies [0327f443]
|
|
537
|
+
- @cmsstatic/next@0.0.11
|
|
538
|
+
|
|
539
|
+
## 0.0.2
|
|
540
|
+
|
|
541
|
+
### Patch Changes
|
|
542
|
+
|
|
543
|
+
- Updated dependencies [0016a2b0]
|
|
544
|
+
- Updated dependencies [cd2d22d7]
|
|
545
|
+
- @cmsstatic/core@0.0.107
|
|
546
|
+
- @cmsstatic/next@0.0.10
|
|
547
|
+
|
|
548
|
+
## 0.0.1
|
|
549
|
+
|
|
550
|
+
### Patch Changes
|
|
551
|
+
|
|
552
|
+
- 818a4c14: Initial release of the NextJS template package.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Thinkmill Labs Pty Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Keystatic in Next.js
|
|
2
|
+
|
|
3
|
+
This template shows how you can use Keystatic in a Next.js site that utilises
|
|
4
|
+
the `app` directory.
|
|
5
|
+
|
|
6
|
+
To setup:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
To run:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
npm run dev
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Admin UI: [http://127.0.0.1:3000/keystatic](http://127.0.0.1:3000/keystatic)
|
|
19
|
+
|
|
20
|
+
Homepage: [http://localhost:3000](http://localhost:3000)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import '../styles.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Markdoc from '@markdoc/markdoc';
|
|
4
|
+
import { reader } from '../reader';
|
|
5
|
+
import { markdocConfig } from '../../keystatic.config';
|
|
6
|
+
|
|
7
|
+
export default async function Post(props: {
|
|
8
|
+
params: Promise<{ slug: string }>;
|
|
9
|
+
}) {
|
|
10
|
+
const params = await props.params;
|
|
11
|
+
const { slug } = params;
|
|
12
|
+
|
|
13
|
+
const post = await reader.collections.posts.read(slug);
|
|
14
|
+
|
|
15
|
+
if (!post) return <div>Post not found!</div>;
|
|
16
|
+
|
|
17
|
+
const { node } = await post.content();
|
|
18
|
+
|
|
19
|
+
const errors = Markdoc.validate(node, markdocConfig);
|
|
20
|
+
if (errors.length) {
|
|
21
|
+
console.error(errors);
|
|
22
|
+
throw new Error('Invalid content');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const renderable = Markdoc.transform(node, markdocConfig);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div>
|
|
29
|
+
<h1>{post.title}</h1>
|
|
30
|
+
{Markdoc.renderers.react(renderable, React)}
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export async function generateStaticParams() {
|
|
36
|
+
const slugs = await reader.collections.posts.list();
|
|
37
|
+
|
|
38
|
+
return slugs.map(slug => ({
|
|
39
|
+
slug,
|
|
40
|
+
}));
|
|
41
|
+
}
|
package/app/layout.tsx
ADDED
package/app/page.tsx
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Link from 'next/link';
|
|
2
|
+
import { reader } from './reader';
|
|
3
|
+
import './styles.css';
|
|
4
|
+
|
|
5
|
+
export default async function Homepage() {
|
|
6
|
+
const posts = await reader.collections.posts.all();
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div>
|
|
10
|
+
<h1>Keystatic ⚡️</h1>
|
|
11
|
+
<p>This homepage shows how to load a collection from the reader API.</p>
|
|
12
|
+
<p>
|
|
13
|
+
<a href="/keystatic">Click here to visit the Admin UI</a>, or the link
|
|
14
|
+
below to view a post in the collection.
|
|
15
|
+
</p>
|
|
16
|
+
<h2>Posts</h2>
|
|
17
|
+
<ul>
|
|
18
|
+
{posts.map(post => (
|
|
19
|
+
<li key={post.slug}>
|
|
20
|
+
<Link href={`/${post.slug}`}>{post.entry.title}</Link>
|
|
21
|
+
</li>
|
|
22
|
+
))}
|
|
23
|
+
</ul>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
package/app/reader.ts
ADDED
package/app/styles.css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
html {
|
|
2
|
+
max-width: 70ch;
|
|
3
|
+
padding: 3rem 1rem;
|
|
4
|
+
margin: auto;
|
|
5
|
+
line-height: 1.75;
|
|
6
|
+
font-size: 1.25rem;
|
|
7
|
+
font-family: sans-serif;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h1,
|
|
11
|
+
h2,
|
|
12
|
+
h3,
|
|
13
|
+
h4,
|
|
14
|
+
h5,
|
|
15
|
+
h6 {
|
|
16
|
+
margin: 1rem 0 1rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
p,
|
|
20
|
+
ul,
|
|
21
|
+
ol {
|
|
22
|
+
margin-bottom: 1rem;
|
|
23
|
+
color: #1d1d1d;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
img {
|
|
27
|
+
height: auto;
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { config, collection, fields } from '@cmsstatic/core';
|
|
2
|
+
|
|
3
|
+
export const markdocConfig = fields.markdoc.createMarkdocConfig({});
|
|
4
|
+
|
|
5
|
+
export default config({
|
|
6
|
+
storage: {
|
|
7
|
+
kind: 'local',
|
|
8
|
+
},
|
|
9
|
+
collections: {
|
|
10
|
+
posts: collection({
|
|
11
|
+
label: 'Posts',
|
|
12
|
+
slugField: 'title',
|
|
13
|
+
path: 'posts/*',
|
|
14
|
+
format: { contentField: 'content' },
|
|
15
|
+
schema: {
|
|
16
|
+
title: fields.slug({ name: { label: 'Title' } }),
|
|
17
|
+
content: fields.markdoc({ label: 'Content' }),
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
},
|
|
21
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cmsstatic/templates-nextjs",
|
|
3
|
+
"version": "0.0.65",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Thinkmill/keystatic/",
|
|
8
|
+
"directory": "templates/nextjs"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@markdoc/markdoc": "^0.4.0",
|
|
12
|
+
"next": "~15.1.10",
|
|
13
|
+
"react": "^19.0.0",
|
|
14
|
+
"react-dom": "^19.0.0",
|
|
15
|
+
"@cmsstatic/core": "^0.5.51",
|
|
16
|
+
"@cmsstatic/next": "^5.0.4"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/react": "^19.0.8",
|
|
20
|
+
"typescript": "^5.5.3"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "next build",
|
|
24
|
+
"dev": "next dev",
|
|
25
|
+
"start": "next start"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": false,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"incremental": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"downlevelIteration": true,
|
|
17
|
+
"jsx": "preserve",
|
|
18
|
+
"plugins": [
|
|
19
|
+
{
|
|
20
|
+
"name": "next"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"strictNullChecks": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
|
|
26
|
+
"exclude": ["node_modules"]
|
|
27
|
+
}
|