@anthusai/papyrus 5.19.1 → 5.21.0
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/amplify/data/resource.js +1 -0
- package/amplify/data/resource.ts +1 -0
- package/amplify/data/schema.js +1 -0
- package/amplify/data/schema.ts +1 -0
- package/amplify/functions/assignment-action/data-access.js +2 -0
- package/amplify/functions/assignment-action/data-access.ts +2 -0
- package/amplify/functions/assignment-action/handler.ts +1 -1
- package/amplify/functions/content-actions/handler.py +20 -2
- package/amplify/functions/shared/editorial-context.ts +63 -4
- package/amplify/plugins/newsletter/config.js +195 -0
- package/amplify/plugins/newsletter/config.ts +240 -0
- package/amplify/plugins/newsletter/function/handler.py +6 -0
- package/amplify/plugins/newsletter/function/requirements.txt +5 -0
- package/amplify/plugins/newsletter/ops/handler.py +12 -0
- package/amplify/plugins/newsletter/ops/resource.js +27 -0
- package/amplify/plugins/newsletter/ops/resource.ts +37 -0
- package/amplify/plugins/newsletter/papyrus.plugin.js +260 -0
- package/amplify/plugins/newsletter/papyrus.plugin.ts +308 -0
- package/amplify/plugins/newsletter/schema.js +56 -0
- package/amplify/plugins/newsletter/schema.ts +61 -0
- package/amplify/plugins/newsletter/secure-string-parameter.js +107 -0
- package/amplify/plugins/newsletter/secure-string-parameter.ts +120 -0
- package/amplify/plugins/newsletter/sending.js +140 -0
- package/amplify/plugins/newsletter/sending.ts +186 -0
- package/amplify/plugins/reader-steering/config.js +162 -0
- package/amplify/plugins/reader-steering/config.ts +248 -0
- package/amplify/plugins/reader-steering/function/ai_moderation.py +230 -0
- package/amplify/plugins/reader-steering/function/handler.py +1363 -0
- package/amplify/plugins/reader-steering/function/moderation-prompt.md +27 -0
- package/amplify/plugins/reader-steering/function/moderation.py +316 -0
- package/amplify/plugins/reader-steering/function/resource.js +27 -0
- package/amplify/plugins/reader-steering/function/resource.ts +35 -0
- package/amplify/plugins/reader-steering/papyrus.plugin.js +175 -0
- package/amplify/plugins/reader-steering/papyrus.plugin.ts +201 -0
- package/amplify/plugins/reader-steering/schema.js +140 -0
- package/amplify/plugins/reader-steering/schema.ts +142 -0
- package/amplify/plugins/registry.js +4 -0
- package/amplify/plugins/registry.ts +4 -0
- package/amplify/plugins/types.ts +5 -0
- package/amplify/plugins/wire.js +1 -0
- package/amplify/plugins/wire.ts +1 -0
- package/app/api/newsletter/confirm/route.ts +13 -0
- package/app/api/newsletter/preferences/route.ts +13 -0
- package/app/api/newsletter/subscribe/route.ts +9 -0
- package/app/api/newsletter/unsubscribe/route.ts +13 -0
- package/app/api/reader/comment/delete/route.ts +9 -0
- package/app/api/reader/comment/edit/route.ts +9 -0
- package/app/api/reader/comment/route.ts +9 -0
- package/app/api/reader/handle/route.ts +9 -0
- package/app/api/reader/me/route.ts +9 -0
- package/app/api/reader/rating/route.ts +9 -0
- package/app/api/reader/report/route.ts +9 -0
- package/app/api/reader/retired/route.ts +9 -0
- package/app/api/reader/submit/route.ts +9 -0
- package/app/api/reader/vote/route.ts +9 -0
- package/components/moderation-panel.tsx +248 -0
- package/components/newsletter-panel.tsx +474 -0
- package/components/newsletter-sections.tsx +163 -0
- package/components/newsroom-organizer.css +14 -0
- package/components/reference-cyclotron-priming.tsx +54 -15
- package/components/topic-steering-workspace.tsx +42 -5
- package/infra/amplify-app-shell.js +15 -1
- package/infra/amplify-app-shell.ts +17 -1
- package/infra/site-config.js +12 -2
- package/infra/site-config.ts +19 -2
- package/lib/editorial-checks.ts +6 -2
- package/lib/newsletter-api.ts +391 -0
- package/lib/newsletter-client.ts +46 -0
- package/lib/newsletter-fixture.ts +184 -0
- package/lib/newsletter-model.ts +202 -0
- package/lib/newsletter-pages.ts +264 -0
- package/lib/prospectus-session.ts +1 -0
- package/lib/prospectus-sign-in-routes.ts +2 -2
- package/lib/prospectus-site-identity.ts +24 -1
- package/lib/reader-api.ts +145 -0
- package/lib/reader-moderation.ts +220 -0
- package/lib/reader-retirement-route.ts +89 -0
- package/lib/reader-subject.md +29 -0
- package/lib/reader-subject.ts +53 -0
- package/package.json +27 -1
- package/routes.manifest.json +158 -1
package/routes.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.21.0",
|
|
3
3
|
"routes": [
|
|
4
4
|
{
|
|
5
5
|
"file": "app/%5F_preview/[[...path]]/route.ts",
|
|
@@ -170,6 +170,53 @@
|
|
|
170
170
|
"dynamic": "\"force-dynamic\""
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"file": "app/api/newsletter/confirm/route.ts",
|
|
175
|
+
"hasDefault": false,
|
|
176
|
+
"exports": [
|
|
177
|
+
"GET",
|
|
178
|
+
"POST"
|
|
179
|
+
],
|
|
180
|
+
"config": {
|
|
181
|
+
"dynamic": "\"force-dynamic\"",
|
|
182
|
+
"runtime": "\"nodejs\""
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"file": "app/api/newsletter/preferences/route.ts",
|
|
187
|
+
"hasDefault": false,
|
|
188
|
+
"exports": [
|
|
189
|
+
"GET",
|
|
190
|
+
"POST"
|
|
191
|
+
],
|
|
192
|
+
"config": {
|
|
193
|
+
"dynamic": "\"force-dynamic\"",
|
|
194
|
+
"runtime": "\"nodejs\""
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"file": "app/api/newsletter/subscribe/route.ts",
|
|
199
|
+
"hasDefault": false,
|
|
200
|
+
"exports": [
|
|
201
|
+
"POST"
|
|
202
|
+
],
|
|
203
|
+
"config": {
|
|
204
|
+
"dynamic": "\"force-dynamic\"",
|
|
205
|
+
"runtime": "\"nodejs\""
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"file": "app/api/newsletter/unsubscribe/route.ts",
|
|
210
|
+
"hasDefault": false,
|
|
211
|
+
"exports": [
|
|
212
|
+
"GET",
|
|
213
|
+
"POST"
|
|
214
|
+
],
|
|
215
|
+
"config": {
|
|
216
|
+
"dynamic": "\"force-dynamic\"",
|
|
217
|
+
"runtime": "\"nodejs\""
|
|
218
|
+
}
|
|
219
|
+
},
|
|
173
220
|
{
|
|
174
221
|
"file": "app/api/newsroom/curation/context/route.ts",
|
|
175
222
|
"hasDefault": false,
|
|
@@ -203,6 +250,116 @@
|
|
|
203
250
|
"runtime": "\"nodejs\""
|
|
204
251
|
}
|
|
205
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"file": "app/api/reader/comment/delete/route.ts",
|
|
255
|
+
"hasDefault": false,
|
|
256
|
+
"exports": [
|
|
257
|
+
"POST"
|
|
258
|
+
],
|
|
259
|
+
"config": {
|
|
260
|
+
"dynamic": "\"force-dynamic\"",
|
|
261
|
+
"runtime": "\"nodejs\""
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"file": "app/api/reader/comment/edit/route.ts",
|
|
266
|
+
"hasDefault": false,
|
|
267
|
+
"exports": [
|
|
268
|
+
"POST"
|
|
269
|
+
],
|
|
270
|
+
"config": {
|
|
271
|
+
"dynamic": "\"force-dynamic\"",
|
|
272
|
+
"runtime": "\"nodejs\""
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"file": "app/api/reader/comment/route.ts",
|
|
277
|
+
"hasDefault": false,
|
|
278
|
+
"exports": [
|
|
279
|
+
"POST"
|
|
280
|
+
],
|
|
281
|
+
"config": {
|
|
282
|
+
"dynamic": "\"force-dynamic\"",
|
|
283
|
+
"runtime": "\"nodejs\""
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"file": "app/api/reader/handle/route.ts",
|
|
288
|
+
"hasDefault": false,
|
|
289
|
+
"exports": [
|
|
290
|
+
"POST"
|
|
291
|
+
],
|
|
292
|
+
"config": {
|
|
293
|
+
"dynamic": "\"force-dynamic\"",
|
|
294
|
+
"runtime": "\"nodejs\""
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"file": "app/api/reader/me/route.ts",
|
|
299
|
+
"hasDefault": false,
|
|
300
|
+
"exports": [
|
|
301
|
+
"GET"
|
|
302
|
+
],
|
|
303
|
+
"config": {
|
|
304
|
+
"dynamic": "\"force-dynamic\"",
|
|
305
|
+
"runtime": "\"nodejs\""
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"file": "app/api/reader/rating/route.ts",
|
|
310
|
+
"hasDefault": false,
|
|
311
|
+
"exports": [
|
|
312
|
+
"POST"
|
|
313
|
+
],
|
|
314
|
+
"config": {
|
|
315
|
+
"dynamic": "\"force-dynamic\"",
|
|
316
|
+
"runtime": "\"nodejs\""
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"file": "app/api/reader/report/route.ts",
|
|
321
|
+
"hasDefault": false,
|
|
322
|
+
"exports": [
|
|
323
|
+
"POST"
|
|
324
|
+
],
|
|
325
|
+
"config": {
|
|
326
|
+
"dynamic": "\"force-dynamic\"",
|
|
327
|
+
"runtime": "\"nodejs\""
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"file": "app/api/reader/retired/route.ts",
|
|
332
|
+
"hasDefault": false,
|
|
333
|
+
"exports": [
|
|
334
|
+
"GET"
|
|
335
|
+
],
|
|
336
|
+
"config": {
|
|
337
|
+
"dynamic": "\"force-dynamic\"",
|
|
338
|
+
"runtime": "\"nodejs\""
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"file": "app/api/reader/submit/route.ts",
|
|
343
|
+
"hasDefault": false,
|
|
344
|
+
"exports": [
|
|
345
|
+
"POST"
|
|
346
|
+
],
|
|
347
|
+
"config": {
|
|
348
|
+
"dynamic": "\"force-dynamic\"",
|
|
349
|
+
"runtime": "\"nodejs\""
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"file": "app/api/reader/vote/route.ts",
|
|
354
|
+
"hasDefault": false,
|
|
355
|
+
"exports": [
|
|
356
|
+
"POST"
|
|
357
|
+
],
|
|
358
|
+
"config": {
|
|
359
|
+
"dynamic": "\"force-dynamic\"",
|
|
360
|
+
"runtime": "\"nodejs\""
|
|
361
|
+
}
|
|
362
|
+
},
|
|
206
363
|
{
|
|
207
364
|
"file": "app/api/revalidate/route.ts",
|
|
208
365
|
"hasDefault": false,
|