@keystatic/templates-nextjs 0.0.0-20241129011107

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 ADDED
@@ -0,0 +1,480 @@
1
+ # @keystatic/templates-nextjs
2
+
3
+ ## 0.0.0-20241129011107
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1367](https://github.com/Thinkmill/keystatic/pull/1367) [`d19397a`](https://github.com/Thinkmill/keystatic/commit/d19397aba012fd16854dc4713d820c3e8b3295ec) Thanks [@emmatown](https://github.com/emmatown)! - Add npm publishing provenance
8
+
9
+ - Updated dependencies [[`d19397a`](https://github.com/Thinkmill/keystatic/commit/d19397aba012fd16854dc4713d820c3e8b3295ec)]:
10
+ - @keystatic/core@0.0.0-20241129011107
11
+ - @keystatic/next@0.0.0-20241129011107
12
+
13
+ ## 0.0.55
14
+
15
+ ### Patch Changes
16
+
17
+ - 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)]:
18
+ - @keystatic/core@0.5.42
19
+ - @keystatic/next@5.0.1
20
+
21
+ ## 0.0.54
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`02a7441`](https://github.com/Thinkmill/keystatic/commit/02a7441ed722bf93f32f236cc90521549a5e0a9f)]:
26
+ - @keystatic/core@0.5.41
27
+ - @keystatic/next@5.0.1
28
+
29
+ ## 0.0.53
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [[`6d0a8c3`](https://github.com/Thinkmill/keystatic/commit/6d0a8c3a43d0e641629bc12c582fa6744c699763)]:
34
+ - @keystatic/core@0.5.40
35
+ - @keystatic/next@5.0.1
36
+
37
+ ## 0.0.52
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [[`dccad1a`](https://github.com/Thinkmill/keystatic/commit/dccad1ac9913a7d31415150cb12e4f80b192c5a5)]:
42
+ - @keystatic/core@0.5.39
43
+ - @keystatic/next@5.0.1
44
+
45
+ ## 0.0.51
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [[`c8d3865`](https://github.com/Thinkmill/keystatic/commit/c8d3865154a35253cfa552abf30b0da497fb1059)]:
50
+ - @keystatic/core@0.5.38
51
+ - @keystatic/next@5.0.1
52
+
53
+ ## 0.0.50
54
+
55
+ ### Patch Changes
56
+
57
+ - Updated dependencies [[`6d7fae2`](https://github.com/Thinkmill/keystatic/commit/6d7fae2c51a3ecd5b543993f145fda1dbea8f0f0)]:
58
+ - @keystatic/core@0.5.37
59
+ - @keystatic/next@5.0.1
60
+
61
+ ## 0.0.49
62
+
63
+ ### Patch Changes
64
+
65
+ - 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)]:
66
+ - @keystatic/core@0.5.36
67
+ - @keystatic/next@5.0.1
68
+
69
+ ## 0.0.48
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [[`98bd2da`](https://github.com/Thinkmill/keystatic/commit/98bd2da2d4a09f15a018552f866439a18f066f95)]:
74
+ - @keystatic/core@0.5.35
75
+ - @keystatic/next@5.0.1
76
+
77
+ ## 0.0.47
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [[`4fc1e6b`](https://github.com/Thinkmill/keystatic/commit/4fc1e6b324ec6afee5ca0266fedb9eaf9ae8846f)]:
82
+ - @keystatic/core@0.5.34
83
+ - @keystatic/next@5.0.1
84
+
85
+ ## 0.0.46
86
+
87
+ ### Patch Changes
88
+
89
+ - 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)]:
90
+ - @keystatic/core@0.5.33
91
+ - @keystatic/next@5.0.1
92
+
93
+ ## 0.0.45
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [[`768595d`](https://github.com/Thinkmill/keystatic/commit/768595d936cd9c1b22a10914db779aa1175c34e1)]:
98
+ - @keystatic/core@0.5.32
99
+ - @keystatic/next@5.0.1
100
+
101
+ ## 0.0.44
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [[`0c1ed9b`](https://github.com/Thinkmill/keystatic/commit/0c1ed9b54f3e83a59b9cb24efdf2c19244dd2bd5)]:
106
+ - @keystatic/core@0.5.31
107
+ - @keystatic/next@5.0.1
108
+
109
+ ## 0.0.43
110
+
111
+ ### Patch Changes
112
+
113
+ - 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)]:
114
+ - @keystatic/core@0.5.30
115
+ - @keystatic/next@5.0.1
116
+
117
+ ## 0.0.42
118
+
119
+ ### Patch Changes
120
+
121
+ - Updated dependencies [[`cd289e1`](https://github.com/Thinkmill/keystatic/commit/cd289e1099ff56f6185dce5ace01e0e52adc7010), [`9605f85`](https://github.com/Thinkmill/keystatic/commit/9605f8528b377722a2be516f33ae40d682557ade)]:
122
+ - @keystatic/core@0.5.29
123
+ - @keystatic/next@5.0.1
124
+
125
+ ## 0.0.41
126
+
127
+ ### Patch Changes
128
+
129
+ - 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)]:
130
+ - @keystatic/core@0.5.28
131
+ - @keystatic/next@5.0.1
132
+
133
+ ## 0.0.40
134
+
135
+ ### Patch Changes
136
+
137
+ - [#1217](https://github.com/Thinkmill/keystatic/pull/1217) [`68d9896`](https://github.com/Thinkmill/keystatic/commit/68d989614bc4bdc1c8b56a11756f6718007c6893) Thanks [@emmatown](https://github.com/emmatown)! - Update TypeScript
138
+
139
+ - Updated dependencies [[`f2e3258`](https://github.com/Thinkmill/keystatic/commit/f2e325807002c50a71e70927e9b89b0ba6192368), [`824760e`](https://github.com/Thinkmill/keystatic/commit/824760e3f39cbd5866a8670785126905f9d9e95e)]:
140
+ - @keystatic/core@0.5.27
141
+ - @keystatic/next@5.0.1
142
+
143
+ ## 0.0.39
144
+
145
+ ### Patch Changes
146
+
147
+ - Updated dependencies [[`54f98af`](https://github.com/Thinkmill/keystatic/commit/54f98afee374733e71314e98dfaabd53a74d081f), [`dff4c8c`](https://github.com/Thinkmill/keystatic/commit/dff4c8cb7fe0a17771070f37fbf423c3993c74c7)]:
148
+ - @keystatic/core@0.5.26
149
+ - @keystatic/next@5.0.1
150
+
151
+ ## 0.0.38
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [[`4e2449f`](https://github.com/Thinkmill/keystatic/commit/4e2449f18fecee95095a67e695972f8ea37f2d41), [`d3c99d7`](https://github.com/Thinkmill/keystatic/commit/d3c99d7c22f2688ec7c514289b134f9575180b18)]:
156
+ - @keystatic/core@0.5.25
157
+ - @keystatic/next@5.0.1
158
+
159
+ ## 0.0.37
160
+
161
+ ### Patch Changes
162
+
163
+ - Updated dependencies [[`68d02c3`](https://github.com/Thinkmill/keystatic/commit/68d02c313e9e646e41a2eb9912e911755b3a7895), [`1138fe6`](https://github.com/Thinkmill/keystatic/commit/1138fe60ba5d97f5c5ce06be5840d841f4748df7)]:
164
+ - @keystatic/core@0.5.24
165
+ - @keystatic/next@5.0.1
166
+
167
+ ## 0.0.36
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [[`41679be`](https://github.com/Thinkmill/keystatic/commit/41679be39197a81453475fc6796489ac7d2d69cf), [`aa1d092`](https://github.com/Thinkmill/keystatic/commit/aa1d0924238419344780e7611eb7fdc797c57be8)]:
172
+ - @keystatic/core@0.5.23
173
+ - @keystatic/next@5.0.1
174
+
175
+ ## 0.0.35
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [[`69d429a`](https://github.com/Thinkmill/keystatic/commit/69d429a67b2777fd8cfd236ce6ceaad4d1975e07)]:
180
+ - @keystatic/core@0.5.22
181
+ - @keystatic/next@5.0.1
182
+
183
+ ## 0.0.34
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [[`b22630f`](https://github.com/Thinkmill/keystatic/commit/b22630ffb657cd8f1409a1feec925ec051b831dd)]:
188
+ - @keystatic/core@0.5.21
189
+ - @keystatic/next@5.0.1
190
+
191
+ ## 0.0.33
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [[`a588cb2`](https://github.com/Thinkmill/keystatic/commit/a588cb2fedf7e9a813d5f7818a94f4f8df2310d5), [`34dee8c`](https://github.com/Thinkmill/keystatic/commit/34dee8cd8829d2a8c3d91949fd96dcee9d9749d0)]:
196
+ - @keystatic/core@0.5.20
197
+ - @keystatic/next@5.0.1
198
+
199
+ ## 0.0.32
200
+
201
+ ### Patch Changes
202
+
203
+ - 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)]:
204
+ - @keystatic/core@0.5.19
205
+ - @keystatic/next@5.0.1
206
+
207
+ ## 0.0.31
208
+
209
+ ### Patch Changes
210
+
211
+ - [#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`
212
+
213
+ - Updated dependencies [[`86bd966`](https://github.com/Thinkmill/keystatic/commit/86bd966ff35981185030ce0850b8041e8a2dc5bb), [`dc7e028`](https://github.com/Thinkmill/keystatic/commit/dc7e0287b1cd1e6b4d09e3b39d390054b60fe130)]:
214
+ - @keystatic/core@0.5.18
215
+ - @keystatic/next@5.0.1
216
+
217
+ ## 0.0.30
218
+
219
+ ### Patch Changes
220
+
221
+ - 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)]:
222
+ - @keystatic/next@5.0.1
223
+ - @keystatic/core@0.5.17
224
+
225
+ ## 0.0.29
226
+
227
+ ### Patch Changes
228
+
229
+ - Updated dependencies [[`21394c6`](https://github.com/Thinkmill/keystatic/commit/21394c65a8d507d4355cf71641690464c05d7ec8)]:
230
+ - @keystatic/core@0.5.16
231
+ - @keystatic/next@5.0.0
232
+
233
+ ## 0.0.28
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [[`d3aa1f2`](https://github.com/Thinkmill/keystatic/commit/d3aa1f2386bd690936662d98724eb385564a26cd), [`aa13ea9`](https://github.com/Thinkmill/keystatic/commit/aa13ea917ce2611266c0008197cfea4c1427724c)]:
238
+ - @keystatic/core@0.5.15
239
+ - @keystatic/next@5.0.0
240
+
241
+ ## 0.0.27
242
+
243
+ ### Patch Changes
244
+
245
+ - 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)]:
246
+ - @keystatic/core@0.5.14
247
+ - @keystatic/next@5.0.0
248
+
249
+ ## 0.0.26
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [[`b509e87`](https://github.com/Thinkmill/keystatic/commit/b509e8794b8e4676feb6e1f0982ddb80cc5376df), [`31286c0`](https://github.com/Thinkmill/keystatic/commit/31286c0e3ff0bd591853fdab70f7f797dad316f5)]:
254
+ - @keystatic/core@0.5.13
255
+ - @keystatic/next@5.0.0
256
+
257
+ ## 0.0.25
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [a2d56566]
262
+ - Updated dependencies [603d85be]
263
+ - Updated dependencies [d37a5422]
264
+ - Updated dependencies [2c818862]
265
+ - Updated dependencies [5f11dcd2]
266
+ - Updated dependencies [d860d675]
267
+ - Updated dependencies [319c0dba]
268
+ - Updated dependencies [ce1696f6]
269
+ - Updated dependencies [a703043c]
270
+ - Updated dependencies [d20e1ad6]
271
+ - Updated dependencies [e819d5f2]
272
+ - @keystatic/core@0.5.12
273
+ - @keystatic/next@5.0.0
274
+
275
+ ## 0.0.24
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [dbb9d3cb]
280
+ - @keystatic/core@0.5.11
281
+ - @keystatic/next@5.0.0
282
+
283
+ ## 0.0.23
284
+
285
+ ### Patch Changes
286
+
287
+ - Updated dependencies [e1ebbdae]
288
+ - @keystatic/core@0.5.10
289
+ - @keystatic/next@5.0.0
290
+
291
+ ## 0.0.22
292
+
293
+ ### Patch Changes
294
+
295
+ - Updated dependencies [847b9163]
296
+ - @keystatic/core@0.5.9
297
+ - @keystatic/next@5.0.0
298
+
299
+ ## 0.0.21
300
+
301
+ ### Patch Changes
302
+
303
+ - Updated dependencies [4d1cee00]
304
+ - @keystatic/core@0.5.8
305
+ - @keystatic/next@5.0.0
306
+
307
+ ## 0.0.20
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies [c519f119]
312
+ - @keystatic/core@0.5.7
313
+ - @keystatic/next@5.0.0
314
+
315
+ ## 0.0.19
316
+
317
+ ### Patch Changes
318
+
319
+ - Updated dependencies [c619ef2e]
320
+ - @keystatic/core@0.5.6
321
+ - @keystatic/next@5.0.0
322
+
323
+ ## 0.0.18
324
+
325
+ ### Patch Changes
326
+
327
+ - Updated dependencies [8ad803c5]
328
+ - @keystatic/core@0.5.0
329
+ - @keystatic/next@5.0.0
330
+
331
+ ## 0.0.17
332
+
333
+ ### Patch Changes
334
+
335
+ - Updated dependencies [e3947052]
336
+ - Updated dependencies [ee3f2038]
337
+ - @keystatic/core@0.4.0
338
+ - @keystatic/next@4.0.0
339
+
340
+ ## 0.0.16
341
+
342
+ ### Patch Changes
343
+
344
+ - f4aaa8e3: Updates to support Keystatic switching to a ESM-only build
345
+ - Updated dependencies [0b2432ed]
346
+ - Updated dependencies [f4aaa8e3]
347
+ - @keystatic/core@0.3.0
348
+ - @keystatic/next@3.0.0
349
+
350
+ ## 0.0.15
351
+
352
+ ### Patch Changes
353
+
354
+ - Updated dependencies [b768f147]
355
+ - Updated dependencies [32d22480]
356
+ - @keystatic/next@2.0.0
357
+ - @keystatic/core@0.2.0
358
+
359
+ ## 0.0.14
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [03f0543c]
364
+ - Updated dependencies [c24dc631]
365
+ - Updated dependencies [6895c566]
366
+ - Updated dependencies [7310a672]
367
+ - Updated dependencies [c5407cce]
368
+ - Updated dependencies [ca6774b8]
369
+ - Updated dependencies [1f96ff27]
370
+ - Updated dependencies [03f0543c]
371
+ - Updated dependencies [7767c69a]
372
+ - @keystatic/core@0.1.0
373
+ - @keystatic/next@1.0.0
374
+
375
+ ## 0.0.13
376
+
377
+ ### Patch Changes
378
+
379
+ - Updated dependencies [c43d7045]
380
+ - Updated dependencies [21395048]
381
+ - @keystatic/core@0.0.116
382
+
383
+ ## 0.0.12
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies [ad46c9dd]
388
+ - Updated dependencies [47102969]
389
+ - @keystatic/core@0.0.115
390
+
391
+ ## 0.0.11
392
+
393
+ ### Patch Changes
394
+
395
+ - Updated dependencies [6b4c476c]
396
+ - Updated dependencies [f9f09616]
397
+ - @keystatic/core@0.0.114
398
+
399
+ ## 0.0.10
400
+
401
+ ### Patch Changes
402
+
403
+ - Updated dependencies [07c63bab]
404
+ - Updated dependencies [062ccf49]
405
+ - @keystatic/core@0.0.113
406
+
407
+ ## 0.0.9
408
+
409
+ ### Patch Changes
410
+
411
+ - Updated dependencies [efc83c9c]
412
+ - @keystatic/core@0.0.112
413
+
414
+ ## 0.0.8
415
+
416
+ ### Patch Changes
417
+
418
+ - Updated dependencies [bf6a27bb]
419
+ - @keystatic/core@0.0.111
420
+
421
+ ## 0.0.7
422
+
423
+ ### Patch Changes
424
+
425
+ - Updated dependencies [e667fb9c]
426
+ - Updated dependencies [aec6359b]
427
+ - Updated dependencies [e0c4c37e]
428
+ - Updated dependencies [781884f9]
429
+ - Updated dependencies [cafe3695]
430
+ - @keystatic/core@0.0.110
431
+
432
+ ## 0.0.6
433
+
434
+ ### Patch Changes
435
+
436
+ - Updated dependencies [4e595627]
437
+ - Updated dependencies [477b4e96]
438
+ - Updated dependencies [b832e495]
439
+ - Updated dependencies [b6f4fb12]
440
+ - Updated dependencies [68e3be7c]
441
+ - @keystatic/core@0.0.109
442
+
443
+ ## 0.0.5
444
+
445
+ ### Patch Changes
446
+
447
+ - Updated dependencies [bbbca74f]
448
+ - Updated dependencies [944dbe67]
449
+ - Updated dependencies [91857b9b]
450
+ - Updated dependencies [0bafd9f1]
451
+ - Updated dependencies [9f16e062]
452
+ - @keystatic/core@0.0.108
453
+
454
+ ## 0.0.4
455
+
456
+ ### Patch Changes
457
+
458
+ - 12905059: Moved API routes from pages to app directory.
459
+
460
+ ## 0.0.3
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies [0327f443]
465
+ - @keystatic/next@0.0.11
466
+
467
+ ## 0.0.2
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [0016a2b0]
472
+ - Updated dependencies [cd2d22d7]
473
+ - @keystatic/core@0.0.107
474
+ - @keystatic/next@0.0.10
475
+
476
+ ## 0.0.1
477
+
478
+ ### Patch Changes
479
+
480
+ - 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,38 @@
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({ params }: { params: { slug: string } }) {
8
+ const { slug } = params;
9
+
10
+ const post = await reader.collections.posts.read(slug);
11
+
12
+ if (!post) return <div>Post not found!</div>;
13
+
14
+ const { node } = await post.content();
15
+
16
+ const errors = Markdoc.validate(node, markdocConfig);
17
+ if (errors.length) {
18
+ console.error(errors);
19
+ throw new Error('Invalid content');
20
+ }
21
+
22
+ const renderable = Markdoc.transform(node, markdocConfig);
23
+
24
+ return (
25
+ <div>
26
+ <h1>{post.title}</h1>
27
+ {Markdoc.renderers.react(renderable, React)}
28
+ </div>
29
+ );
30
+ }
31
+
32
+ export async function generateStaticParams() {
33
+ const slugs = await reader.collections.posts.list();
34
+
35
+ return slugs.map(slug => ({
36
+ slug,
37
+ }));
38
+ }
@@ -0,0 +1,6 @@
1
+ import { makeRouteHandler } from '@keystatic/next/route-handler';
2
+ import keystaticConfig from '../../../../keystatic.config';
3
+
4
+ export const { POST, GET } = makeRouteHandler({
5
+ config: keystaticConfig,
6
+ });
@@ -0,0 +1,3 @@
1
+ export default function Page() {
2
+ return null;
3
+ }
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+
3
+ import { makePage } from '@keystatic/next/ui/app';
4
+ import config from '../../keystatic.config';
5
+
6
+ export default makePage(config);
@@ -0,0 +1,5 @@
1
+ import KeystaticApp from './keystatic';
2
+
3
+ export default function RootLayout() {
4
+ return <KeystaticApp />;
5
+ }
package/app/layout.tsx ADDED
@@ -0,0 +1,11 @@
1
+ export default function RootLayout({
2
+ children,
3
+ }: {
4
+ children: React.ReactNode;
5
+ }) {
6
+ return (
7
+ <html lang="en">
8
+ <body>{children}</body>
9
+ </html>
10
+ );
11
+ }
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
@@ -0,0 +1,4 @@
1
+ import { createReader } from '@keystatic/core/reader';
2
+ import keystaticConfig from '../keystatic.config';
3
+
4
+ export const reader = createReader(process.cwd(), keystaticConfig);
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 '@keystatic/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": "@keystatic/templates-nextjs",
3
+ "version": "0.0.0-20241129011107",
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": "^14.1.3",
13
+ "react": "^18.2.0",
14
+ "react-dom": "^18.2.0",
15
+ "@keystatic/core": "^0.0.0-20241129011107",
16
+ "@keystatic/next": "^0.0.0-20241129011107"
17
+ },
18
+ "devDependencies": {
19
+ "@types/react": "^18.2.8",
20
+ "typescript": "^5.5.3"
21
+ },
22
+ "scripts": {
23
+ "build": "next build",
24
+ "dev": "next dev",
25
+ "start": "next start"
26
+ }
27
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: First post
3
+ ---
4
+ First!
5
+
6
+ You can edit this page in the [Admin UI](/keystatic/collection/posts/item/first-post), or directly in your IDE at `./posts/first-post.mdoc`.
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
+ }