@anthusai/papyrus 5.19.0 → 5.20.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 +3 -0
- package/amplify/functions/editorial-checks/handler.py +2 -2
- package/amplify/functions/shared/editorial-context.ts +63 -4
- package/amplify/plugins/reader-steering/config.js +111 -0
- package/amplify/plugins/reader-steering/config.ts +158 -0
- package/amplify/plugins/reader-steering/function/handler.py +544 -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 +139 -0
- package/amplify/plugins/reader-steering/papyrus.plugin.ts +162 -0
- package/amplify/plugins/reader-steering/schema.js +40 -0
- package/amplify/plugins/reader-steering/schema.ts +42 -0
- package/amplify/plugins/registry.js +2 -0
- package/amplify/plugins/registry.ts +2 -0
- package/amplify/plugins/types.ts +3 -0
- package/amplify/plugins/wire.js +1 -0
- package/amplify/plugins/wire.ts +1 -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/retired/route.ts +9 -0
- package/app/api/reader/vote/route.ts +9 -0
- package/components/publication-cyclotron-panel.tsx +6 -1
- package/components/reference-curation-controls.tsx +1 -1
- package/components/reference-cyclotron-priming.tsx +54 -15
- 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/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 +143 -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 +9 -1
- package/routes.manifest.json +56 -1
package/package.json
CHANGED
|
@@ -273,11 +273,14 @@
|
|
|
273
273
|
"./lib/publication-cyclotron": "./lib/publication-cyclotron.ts",
|
|
274
274
|
"./lib/publication-items": "./lib/publication-items.ts",
|
|
275
275
|
"./lib/rate-limit-retry": "./lib/rate-limit-retry.ts",
|
|
276
|
+
"./lib/reader-api": "./lib/reader-api.ts",
|
|
276
277
|
"./lib/reader-base-path": "./lib/reader-base-path.ts",
|
|
277
278
|
"./lib/reader-cache-lifetime": "./lib/reader-cache-lifetime.ts",
|
|
279
|
+
"./lib/reader-retirement-route": "./lib/reader-retirement-route.ts",
|
|
278
280
|
"./lib/reader-route-config": "./lib/reader-route-config.ts",
|
|
279
281
|
"./lib/reader-static-params": "./lib/reader-static-params.ts",
|
|
280
282
|
"./lib/reader-storage-url": "./lib/reader-storage-url.ts",
|
|
283
|
+
"./lib/reader-subject": "./lib/reader-subject.ts",
|
|
281
284
|
"./lib/reference-display": "./lib/reference-display.ts",
|
|
282
285
|
"./lib/reference-policy": "./lib/reference-policy.ts",
|
|
283
286
|
"./lib/reference-source-preview": "./lib/reference-source-preview.ts",
|
|
@@ -342,6 +345,11 @@
|
|
|
342
345
|
"./app/api/newsroom/curation/context/route": "./app/api/newsroom/curation/context/route.ts",
|
|
343
346
|
"./app/api/newsroom/curation/priming/route": "./app/api/newsroom/curation/priming/route.ts",
|
|
344
347
|
"./app/api/newsroom/curation/publication/route": "./app/api/newsroom/curation/publication/route.ts",
|
|
348
|
+
"./app/api/reader/handle/route": "./app/api/reader/handle/route.ts",
|
|
349
|
+
"./app/api/reader/me/route": "./app/api/reader/me/route.ts",
|
|
350
|
+
"./app/api/reader/rating/route": "./app/api/reader/rating/route.ts",
|
|
351
|
+
"./app/api/reader/retired/route": "./app/api/reader/retired/route.ts",
|
|
352
|
+
"./app/api/reader/vote/route": "./app/api/reader/vote/route.ts",
|
|
345
353
|
"./app/api/revalidate/route": "./app/api/revalidate/route.ts",
|
|
346
354
|
"./app/archive/page": "./app/archive/page.tsx",
|
|
347
355
|
"./app/articles/[slug]/page": "./app/articles/[slug]/page.tsx",
|
|
@@ -407,7 +415,7 @@
|
|
|
407
415
|
"optional": true
|
|
408
416
|
}
|
|
409
417
|
},
|
|
410
|
-
"version": "5.
|
|
418
|
+
"version": "5.20.0",
|
|
411
419
|
"dependencies": {
|
|
412
420
|
"@aws-amplify/adapter-nextjs": "^1.7.3",
|
|
413
421
|
"@aws-crypto/sha256-js": "5.2.0",
|
package/routes.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.20.0",
|
|
3
3
|
"routes": [
|
|
4
4
|
{
|
|
5
5
|
"file": "app/%5F_preview/[[...path]]/route.ts",
|
|
@@ -203,6 +203,61 @@
|
|
|
203
203
|
"runtime": "\"nodejs\""
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
|
+
{
|
|
207
|
+
"file": "app/api/reader/handle/route.ts",
|
|
208
|
+
"hasDefault": false,
|
|
209
|
+
"exports": [
|
|
210
|
+
"POST"
|
|
211
|
+
],
|
|
212
|
+
"config": {
|
|
213
|
+
"dynamic": "\"force-dynamic\"",
|
|
214
|
+
"runtime": "\"nodejs\""
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"file": "app/api/reader/me/route.ts",
|
|
219
|
+
"hasDefault": false,
|
|
220
|
+
"exports": [
|
|
221
|
+
"GET"
|
|
222
|
+
],
|
|
223
|
+
"config": {
|
|
224
|
+
"dynamic": "\"force-dynamic\"",
|
|
225
|
+
"runtime": "\"nodejs\""
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"file": "app/api/reader/rating/route.ts",
|
|
230
|
+
"hasDefault": false,
|
|
231
|
+
"exports": [
|
|
232
|
+
"POST"
|
|
233
|
+
],
|
|
234
|
+
"config": {
|
|
235
|
+
"dynamic": "\"force-dynamic\"",
|
|
236
|
+
"runtime": "\"nodejs\""
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"file": "app/api/reader/retired/route.ts",
|
|
241
|
+
"hasDefault": false,
|
|
242
|
+
"exports": [
|
|
243
|
+
"GET"
|
|
244
|
+
],
|
|
245
|
+
"config": {
|
|
246
|
+
"dynamic": "\"force-dynamic\"",
|
|
247
|
+
"runtime": "\"nodejs\""
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"file": "app/api/reader/vote/route.ts",
|
|
252
|
+
"hasDefault": false,
|
|
253
|
+
"exports": [
|
|
254
|
+
"POST"
|
|
255
|
+
],
|
|
256
|
+
"config": {
|
|
257
|
+
"dynamic": "\"force-dynamic\"",
|
|
258
|
+
"runtime": "\"nodejs\""
|
|
259
|
+
}
|
|
260
|
+
},
|
|
206
261
|
{
|
|
207
262
|
"file": "app/api/revalidate/route.ts",
|
|
208
263
|
"hasDefault": false,
|