@anthusai/papyrus 5.43.0-next.3 → 5.43.0-next.31
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 +6 -0
- package/amplify/data/resource.ts +7 -0
- package/amplify/data/schema.js +6 -0
- package/amplify/data/schema.ts +7 -0
- package/amplify/functions/category-action/handler.ts +2 -1
- package/amplify/functions/content-actions/handler.py +8 -0
- package/amplify/functions/content-actions/requirements.txt +1 -0
- package/amplify/functions/content-actions/resource.js +1 -1
- package/amplify/functions/content-actions/resource.ts +1 -1
- package/amplify/functions/model-attachment-upload/handler.ts +1 -0
- package/amplify/functions/monitoring-view/schema.js +16 -0
- package/amplify/functions/monitoring-view/schema.ts +16 -0
- package/amplify/functions/procedure-action/handler.ts +2 -10
- package/amplify/functions/proposal-actions/proposals.py +20 -3
- package/amplify/plugins/reader-steering/function/handler.py +1 -3
- package/amplify/plugins/reader-steering/function/moderation.py +19 -0
- package/app/api/newsroom/source-frameable/route.ts +12 -0
- package/app/api/newsroom/source-icon/route.ts +20 -0
- package/app/newsroom/[section]/[...selection]/page.tsx +2 -0
- package/app/newsroom/[section]/page.tsx +1 -0
- package/bin/papyrus-app.mjs +12 -1
- package/bin/papyrus-infra.mjs +21 -1
- package/components/dev-sandbox-editor-sign-in.tsx +2 -2
- package/components/markdown-context.tsx +412 -0
- package/components/monitoring-overview-view.tsx +143 -21
- package/components/monitoring-panel.tsx +64 -4
- package/components/needs-me-bodies.tsx +301 -0
- package/components/needs-me-detail.tsx +24 -0
- package/components/needs-me-feed.tsx +600 -0
- package/components/needs-me-reference-detail.tsx +75 -0
- package/components/needs-me-shared.tsx +48 -0
- package/components/news-desk-client-provider.tsx +24 -3
- package/components/news-desk-page.tsx +2 -1
- package/components/news-desk-taxonomy-client.ts +2 -1
- package/components/newsroom-access-gate.tsx +13 -20
- package/components/newsroom-client-shell.tsx +2 -1
- package/components/newsroom-ops-overview.tsx +88 -73
- package/components/newsroom-ops-shell.tsx +8 -28
- package/components/newsroom-organizer.css +92 -3
- package/components/newsroom-references-view.tsx +315 -156
- package/components/notification-cards.tsx +369 -0
- package/components/notification-center.tsx +376 -213
- package/components/papyrus-console-shell.tsx +2 -1
- package/components/proposals-panel.tsx +21 -24
- package/components/proposals-view.tsx +4 -2
- package/components/reader-auth-control.tsx +3 -1
- package/components/reference-capture-client.ts +138 -0
- package/components/reference-capture-panel.tsx +268 -0
- package/components/reference-feed.tsx +507 -0
- package/components/reference-review-card.tsx +142 -151
- package/components/reference-source-preview.tsx +27 -5
- package/components/references-page-loading.tsx +61 -0
- package/components/references-prefetch.ts +52 -0
- package/components/review-rating-grid.tsx +190 -0
- package/components/topic-steering-workspace.tsx +47 -437
- package/components/ui/auto-grow-textarea.tsx +18 -0
- package/components/use-media-query.ts +16 -0
- package/components/use-reference-preview-attachments.ts +101 -0
- package/components/use-reference-ratings.ts +188 -0
- package/infra/amplify-app-shell.js +18 -2
- package/infra/amplify-app-shell.ts +18 -2
- package/infra/chat-stack.js +222 -0
- package/infra/chat-stack.ts +250 -0
- package/infra/chat.test.js +142 -0
- package/infra/chat.test.ts +151 -0
- package/infra/index.js +1 -0
- package/infra/site-config.js +58 -1
- package/infra/site-config.ts +78 -1
- package/lib/category-repository.ts +6 -1
- package/lib/content-actions-client.ts +20 -0
- package/lib/local-preview-feed-fixture.ts +63 -0
- package/lib/local-preview-synthetic-rejects.ts +41 -0
- package/lib/monitoring-client.ts +29 -2
- package/lib/monitoring-overview.ts +52 -1
- package/lib/monitoring-paging.ts +58 -0
- package/lib/needs-me-items.ts +289 -0
- package/lib/needs-me-ranking.ts +315 -0
- package/lib/newsroom-chat-identity.ts +2 -1
- package/lib/newsroom-index-filters.ts +18 -0
- package/lib/newsroom-nav.ts +1 -1
- package/lib/newsroom-organizer-nav.ts +2 -1
- package/lib/newsroom-references.ts +25 -1
- package/lib/notification-feed.ts +212 -0
- package/lib/proposals-client.ts +29 -0
- package/lib/reader-subject.ts +3 -2
- package/lib/reference-capture.ts +294 -0
- package/lib/reference-feed-cache.ts +170 -0
- package/lib/reference-feed-ranking.ts +235 -0
- package/lib/reference-preview.ts +112 -0
- package/lib/review-client.ts +71 -5
- package/lib/review-drafts.ts +277 -0
- package/lib/review-fixture.ts +56 -2
- package/lib/review-requests.ts +89 -24
- package/lib/site-brand.ts +2 -0
- package/lib/source-frameable.ts +77 -0
- package/lib/source-icon.ts +104 -0
- package/lib/staff-groups.ts +23 -0
- package/lib/staging-gate.ts +2 -2
- package/package.json +35 -2
- package/routes.manifest.json +23 -1
- package/components/newsroom-overview-skeleton.tsx +0 -25
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { fetchPublic } from "./source-frameable";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A source's own icon, fetched on the server. Guessing `/favicon.ico` from the browser fails often: some sites serve a fully
|
|
5
|
+
* transparent placeholder there, and others refuse requests from another site. The page's own `<link rel="icon">` tags name
|
|
6
|
+
* the icon the site actually uses, so the newsroom reads those first and passes the image through.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const MAX_HTML_BYTES = 256 * 1024;
|
|
10
|
+
const MAX_ICON_BYTES = 256 * 1024;
|
|
11
|
+
/** A bare 16x16 ICO is about 200 bytes; at that size it is often an empty placeholder, so the guessed path must beat it. */
|
|
12
|
+
const MIN_GUESSED_ICON_BYTES = 300;
|
|
13
|
+
|
|
14
|
+
export type SourceIcon = { body: ArrayBuffer; contentType: string };
|
|
15
|
+
|
|
16
|
+
/** A bare host name such as `www.brookings.edu`: letters, digits, hyphens and dots only. */
|
|
17
|
+
export function isHostName(host: string): boolean {
|
|
18
|
+
return host.length <= 253 && /^(?=.*[a-z])[a-z0-9-]+(\.[a-z0-9-]+)+$/i.test(host);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function attribute(tag: string, name: string): string | null {
|
|
22
|
+
const match = tag.match(new RegExp(`\\s${name}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`, "i"));
|
|
23
|
+
return match ? (match[1] ?? match[2] ?? match[3] ?? "") : null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The icons a page declares, best first: touch icons, then the largest declared size. Mask icons are single-colour stencils and are skipped. */
|
|
27
|
+
export function iconCandidates(html: string, base: string): string[] {
|
|
28
|
+
const found: { href: string; score: number }[] = [];
|
|
29
|
+
for (const tag of html.match(/<link\b[^>]*>/gi) ?? []) {
|
|
30
|
+
const rel = (attribute(tag, "rel") ?? "").toLowerCase().split(/\s+/);
|
|
31
|
+
if (!rel.some((word) => word === "icon" || word === "apple-touch-icon" || word === "apple-touch-icon-precomposed")) continue;
|
|
32
|
+
const href = attribute(tag, "href");
|
|
33
|
+
if (!href) continue;
|
|
34
|
+
let absolute: string;
|
|
35
|
+
try { absolute = new URL(href, base).toString(); } catch { continue; }
|
|
36
|
+
const size = Math.max(0, ...(attribute(tag, "sizes") ?? "").split(/\s+/).map((s) => Number.parseInt(s, 10)).filter(Number.isFinite));
|
|
37
|
+
const touch = rel.some((word) => word.startsWith("apple-touch-icon"));
|
|
38
|
+
found.push({ href: absolute, score: (touch ? 10_000 : 0) + (size || (touch ? 180 : 16)) });
|
|
39
|
+
}
|
|
40
|
+
return [...new Set(found.sort((a, b) => b.score - a.score).map(({ href }) => href))];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async function readLimited(response: Response, limit: number): Promise<ArrayBuffer | null> {
|
|
44
|
+
const declared = Number(response.headers.get("content-length"));
|
|
45
|
+
if (declared > limit) { void response.body?.cancel(); return null; }
|
|
46
|
+
const body = await response.arrayBuffer().catch(() => null);
|
|
47
|
+
return body && body.byteLength <= limit ? body : null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** The first `limit` bytes of a page: icons are declared in its head, and some home pages run to a megabyte. */
|
|
51
|
+
async function readPrefix(response: Response, limit: number): Promise<string> {
|
|
52
|
+
const reader = response.body?.getReader();
|
|
53
|
+
if (!reader) return "";
|
|
54
|
+
const chunks: Uint8Array[] = [];
|
|
55
|
+
let total = 0;
|
|
56
|
+
try {
|
|
57
|
+
while (total < limit) {
|
|
58
|
+
const { done, value } = await reader.read();
|
|
59
|
+
if (done) break;
|
|
60
|
+
chunks.push(value);
|
|
61
|
+
total += value.byteLength;
|
|
62
|
+
}
|
|
63
|
+
} catch {
|
|
64
|
+
// keep what arrived
|
|
65
|
+
} finally {
|
|
66
|
+
void reader.cancel().catch(() => undefined);
|
|
67
|
+
}
|
|
68
|
+
const bytes = new Uint8Array(Math.min(total, limit));
|
|
69
|
+
let offset = 0;
|
|
70
|
+
for (const chunk of chunks) {
|
|
71
|
+
const part = chunk.subarray(0, bytes.length - offset);
|
|
72
|
+
bytes.set(part, offset);
|
|
73
|
+
offset += part.byteLength;
|
|
74
|
+
if (offset >= bytes.length) break;
|
|
75
|
+
}
|
|
76
|
+
return new TextDecoder().decode(bytes);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async function fetchIcon(url: string, minBytes: number): Promise<SourceIcon | null> {
|
|
80
|
+
const response = await fetchPublic(url, { accept: "image/*" });
|
|
81
|
+
if (!response) return null;
|
|
82
|
+
const contentType = (response.headers.get("content-type") ?? "").split(";")[0].trim().toLowerCase();
|
|
83
|
+
if (!response.ok || !contentType.startsWith("image/")) { void response.body?.cancel(); return null; }
|
|
84
|
+
const body = await readLimited(response, MAX_ICON_BYTES);
|
|
85
|
+
return body && body.byteLength >= minBytes ? { body, contentType } : null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** The host's best declared icon, else its `/favicon.ico` when that is more than a placeholder, else null. */
|
|
89
|
+
export async function fetchSourceIcon(host: string): Promise<SourceIcon | null> {
|
|
90
|
+
if (!isHostName(host)) return null;
|
|
91
|
+
const home = `https://${host}/`;
|
|
92
|
+
const page = await fetchPublic(home, { accept: "text/html" });
|
|
93
|
+
let candidates: string[] = [];
|
|
94
|
+
if (page?.ok && (page.headers.get("content-type") ?? "").includes("html")) {
|
|
95
|
+
candidates = iconCandidates(await readPrefix(page, MAX_HTML_BYTES), page.url || home);
|
|
96
|
+
} else {
|
|
97
|
+
void page?.body?.cancel();
|
|
98
|
+
}
|
|
99
|
+
for (const candidate of candidates.slice(0, 4)) {
|
|
100
|
+
const icon = await fetchIcon(candidate, 1);
|
|
101
|
+
if (icon) return icon;
|
|
102
|
+
}
|
|
103
|
+
return fetchIcon(new URL("/favicon.ico", home).toString(), MIN_GUESSED_ICON_BYTES);
|
|
104
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who counts as newsroom staff. `admin` has every editor right: a site owner who is in `admin` but not `editor` can do
|
|
3
|
+
* everything an editor can. Every editor check in the browser and in the Lambdas reads this one list.
|
|
4
|
+
*/
|
|
5
|
+
export const STAFF_GROUPS = ["editor", "admin"] as const;
|
|
6
|
+
|
|
7
|
+
/** True when any group is `editor` or `admin`. */
|
|
8
|
+
export function hasEditorRights(groups: Iterable<unknown> | null | undefined): boolean {
|
|
9
|
+
if (!groups) return false;
|
|
10
|
+
for (const group of groups) {
|
|
11
|
+
if (typeof group === "string" && (STAFF_GROUPS as readonly string[]).includes(group.trim().toLowerCase())) return true;
|
|
12
|
+
}
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Cognito groups from a `cognito:groups` claim, which arrives as an array, a JSON array, a bracketed list
|
|
18
|
+
* (`[admin Google_123]`), or a comma or space separated string depending on who forwarded it.
|
|
19
|
+
*/
|
|
20
|
+
export function claimGroups(value: unknown): string[] {
|
|
21
|
+
const raw = Array.isArray(value) ? value.map((entry) => String(entry)) : typeof value === "string" ? value.split(/[\s,]+/) : [];
|
|
22
|
+
return raw.map((entry) => entry.trim().replace(/^["'[\](){}]+|["'[\](){}]+$/g, "")).filter(Boolean);
|
|
23
|
+
}
|
package/lib/staging-gate.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { NextRequest, NextResponse } from "next/server";
|
|
2
2
|
import { fetchAuthSession } from "aws-amplify/auth/server";
|
|
3
3
|
import { getAmplifyServerRuntime } from "./amplify-server-runtime";
|
|
4
|
+
import { hasEditorRights } from "./staff-groups";
|
|
4
5
|
|
|
5
6
|
export type StagingAccess = "anonymous" | "forbidden" | "ok";
|
|
6
7
|
|
|
7
|
-
const STAGING_ALLOWED_GROUPS = ["editor", "admin"];
|
|
8
8
|
|
|
9
9
|
export function groupsFromIdTokenPayload(payload: Record<string, unknown> | undefined): string[] {
|
|
10
10
|
const raw = payload?.["cognito:groups"];
|
|
@@ -15,7 +15,7 @@ export function groupsFromIdTokenPayload(payload: Record<string, unknown> | unde
|
|
|
15
15
|
|
|
16
16
|
export function accessForGroups(groups: string[] | null): StagingAccess {
|
|
17
17
|
if (groups === null) return "anonymous";
|
|
18
|
-
return groups
|
|
18
|
+
return hasEditorRights(groups) ? "ok" : "forbidden";
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export async function getStagingAccess(request: NextRequest, response: NextResponse): Promise<StagingAccess> {
|
package/package.json
CHANGED
|
@@ -86,11 +86,17 @@
|
|
|
86
86
|
"./components/editorial-findings-panel": "./components/editorial-findings-panel.tsx",
|
|
87
87
|
"./components/editorial-preview-popover": "./components/editorial-preview-popover.tsx",
|
|
88
88
|
"./components/item-stream-view": "./components/item-stream-view.tsx",
|
|
89
|
+
"./components/markdown-context": "./components/markdown-context.tsx",
|
|
89
90
|
"./components/markus-body-editor": "./components/markus-body-editor.tsx",
|
|
90
91
|
"./components/markus-ir-preview": "./components/markus-ir-preview.tsx",
|
|
91
92
|
"./components/moderation-panel": "./components/moderation-panel.tsx",
|
|
92
93
|
"./components/monitoring-overview-view": "./components/monitoring-overview-view.tsx",
|
|
93
94
|
"./components/monitoring-panel": "./components/monitoring-panel.tsx",
|
|
95
|
+
"./components/needs-me-bodies": "./components/needs-me-bodies.tsx",
|
|
96
|
+
"./components/needs-me-detail": "./components/needs-me-detail.tsx",
|
|
97
|
+
"./components/needs-me-feed": "./components/needs-me-feed.tsx",
|
|
98
|
+
"./components/needs-me-reference-detail": "./components/needs-me-reference-detail.tsx",
|
|
99
|
+
"./components/needs-me-shared": "./components/needs-me-shared.tsx",
|
|
94
100
|
"./components/news-desk-client-provider": "./components/news-desk-client-provider.tsx",
|
|
95
101
|
"./components/news-desk-page": "./components/news-desk-page.tsx",
|
|
96
102
|
"./components/news-desk-taxonomy-client": "./components/news-desk-taxonomy-client.ts",
|
|
@@ -109,7 +115,6 @@
|
|
|
109
115
|
"./components/newsroom-mobile-navigation": "./components/newsroom-mobile-navigation.tsx",
|
|
110
116
|
"./components/newsroom-ops-overview": "./components/newsroom-ops-overview.tsx",
|
|
111
117
|
"./components/newsroom-ops-shell": "./components/newsroom-ops-shell.tsx",
|
|
112
|
-
"./components/newsroom-overview-skeleton": "./components/newsroom-overview-skeleton.tsx",
|
|
113
118
|
"./components/newsroom-references-view": "./components/newsroom-references-view.tsx",
|
|
114
119
|
"./components/newsroom-theme-fonts/broadsheet-green": "./components/newsroom-theme-fonts/broadsheet-green.tsx",
|
|
115
120
|
"./components/newsroom-theme-fonts/newspaper-gothic": "./components/newsroom-theme-fonts/newspaper-gothic.tsx",
|
|
@@ -117,6 +122,7 @@
|
|
|
117
122
|
"./components/newsroom-theme-fonts/refined-newsprint": "./components/newsroom-theme-fonts/refined-newsprint.tsx",
|
|
118
123
|
"./components/newsroom-theme": "./components/newsroom-theme.tsx",
|
|
119
124
|
"./components/newsroom-topics-view": "./components/newsroom-topics-view.tsx",
|
|
125
|
+
"./components/notification-cards": "./components/notification-cards.tsx",
|
|
120
126
|
"./components/notification-center": "./components/notification-center.tsx",
|
|
121
127
|
"./components/papyrus-console-conversation": "./components/papyrus-console-conversation.tsx",
|
|
122
128
|
"./components/papyrus-console-frame": "./components/papyrus-console-frame.tsx",
|
|
@@ -136,22 +142,29 @@
|
|
|
136
142
|
"./components/reader-settings": "./components/reader-settings.ts",
|
|
137
143
|
"./components/reader-theme-control": "./components/reader-theme-control.tsx",
|
|
138
144
|
"./components/reference-add-entry": "./components/reference-add-entry.tsx",
|
|
145
|
+
"./components/reference-capture-client": "./components/reference-capture-client.ts",
|
|
146
|
+
"./components/reference-capture-panel": "./components/reference-capture-panel.tsx",
|
|
139
147
|
"./components/reference-curation-controls": "./components/reference-curation-controls.tsx",
|
|
140
148
|
"./components/reference-cyclotron-priming": "./components/reference-cyclotron-priming.tsx",
|
|
141
149
|
"./components/reference-cyclotron-status": "./components/reference-cyclotron-status.tsx",
|
|
142
150
|
"./components/reference-cyclotron-suggestion": "./components/reference-cyclotron-suggestion.tsx",
|
|
151
|
+
"./components/reference-feed": "./components/reference-feed.tsx",
|
|
143
152
|
"./components/reference-live-agreement": "./components/reference-live-agreement.tsx",
|
|
144
153
|
"./components/reference-priming": "./components/reference-priming.tsx",
|
|
145
154
|
"./components/reference-relevance-review": "./components/reference-relevance-review.tsx",
|
|
146
155
|
"./components/reference-review-card": "./components/reference-review-card.tsx",
|
|
147
156
|
"./components/reference-section-suggestion": "./components/reference-section-suggestion.tsx",
|
|
148
157
|
"./components/reference-source-preview": "./components/reference-source-preview.tsx",
|
|
158
|
+
"./components/references-page-loading": "./components/references-page-loading.tsx",
|
|
159
|
+
"./components/references-prefetch": "./components/references-prefetch.ts",
|
|
160
|
+
"./components/review-rating-grid": "./components/review-rating-grid.tsx",
|
|
149
161
|
"./components/settings-page": "./components/settings-page.tsx",
|
|
150
162
|
"./components/signup-entries-panel": "./components/signup-entries-panel.tsx",
|
|
151
163
|
"./components/staging-banner": "./components/staging-banner.tsx",
|
|
152
164
|
"./components/story-reporting-trail-client": "./components/story-reporting-trail-client.ts",
|
|
153
165
|
"./components/story-reporting-trail": "./components/story-reporting-trail.tsx",
|
|
154
166
|
"./components/topic-steering-workspace": "./components/topic-steering-workspace.tsx",
|
|
167
|
+
"./components/ui/auto-grow-textarea": "./components/ui/auto-grow-textarea.tsx",
|
|
155
168
|
"./components/ui/badge": "./components/ui/badge.tsx",
|
|
156
169
|
"./components/ui/button-group": "./components/ui/button-group.tsx",
|
|
157
170
|
"./components/ui/button": "./components/ui/button.tsx",
|
|
@@ -174,8 +187,11 @@
|
|
|
174
187
|
"./components/use-brand-fonts-ready": "./components/use-brand-fonts-ready.ts",
|
|
175
188
|
"./components/use-console-visibility": "./components/use-console-visibility.ts",
|
|
176
189
|
"./components/use-editorial-checks": "./components/use-editorial-checks.ts",
|
|
190
|
+
"./components/use-media-query": "./components/use-media-query.ts",
|
|
177
191
|
"./components/use-near-viewport": "./components/use-near-viewport.ts",
|
|
178
192
|
"./components/use-paged-content-item-versions": "./components/use-paged-content-item-versions.ts",
|
|
193
|
+
"./components/use-reference-preview-attachments": "./components/use-reference-preview-attachments.ts",
|
|
194
|
+
"./components/use-reference-ratings": "./components/use-reference-ratings.ts",
|
|
179
195
|
"./components/use-resolved-papyrus-theme": "./components/use-resolved-papyrus-theme.ts",
|
|
180
196
|
"./components/use-rhythm-overlay": "./components/use-rhythm-overlay.ts",
|
|
181
197
|
"./components/wiki-concepts-view": "./components/wiki-concepts-view.tsx",
|
|
@@ -240,8 +256,10 @@
|
|
|
240
256
|
"./lib/layout-scenarios": "./lib/layout-scenarios.ts",
|
|
241
257
|
"./lib/layout-types": "./lib/layout-types.ts",
|
|
242
258
|
"./lib/layout-warnings": "./lib/layout-warnings.ts",
|
|
259
|
+
"./lib/local-preview-feed-fixture": "./lib/local-preview-feed-fixture.ts",
|
|
243
260
|
"./lib/local-preview-section-fixtures": "./lib/local-preview-section-fixtures.ts",
|
|
244
261
|
"./lib/local-preview-seed": "./lib/local-preview-seed.ts",
|
|
262
|
+
"./lib/local-preview-synthetic-rejects": "./lib/local-preview-synthetic-rejects.ts",
|
|
245
263
|
"./lib/local-preview-tenant": "./lib/local-preview-tenant.ts",
|
|
246
264
|
"./lib/local-preview": "./lib/local-preview.ts",
|
|
247
265
|
"./lib/markus-body": "./lib/markus-body.ts",
|
|
@@ -252,6 +270,9 @@
|
|
|
252
270
|
"./lib/monitoring-client": "./lib/monitoring-client.ts",
|
|
253
271
|
"./lib/monitoring-overview-fixture": "./lib/monitoring-overview-fixture.ts",
|
|
254
272
|
"./lib/monitoring-overview": "./lib/monitoring-overview.ts",
|
|
273
|
+
"./lib/monitoring-paging": "./lib/monitoring-paging.ts",
|
|
274
|
+
"./lib/needs-me-items": "./lib/needs-me-items.ts",
|
|
275
|
+
"./lib/needs-me-ranking": "./lib/needs-me-ranking.ts",
|
|
255
276
|
"./lib/news-desk-session": "./lib/news-desk-session.ts",
|
|
256
277
|
"./lib/newsletter-api": "./lib/newsletter-api.ts",
|
|
257
278
|
"./lib/newsletter-client": "./lib/newsletter-client.ts",
|
|
@@ -281,6 +302,7 @@
|
|
|
281
302
|
"./lib/newsroom-section-routing": "./lib/newsroom-section-routing.ts",
|
|
282
303
|
"./lib/newsroom-sections": "./lib/newsroom-sections.ts",
|
|
283
304
|
"./lib/newsroom-topics": "./lib/newsroom-topics.ts",
|
|
305
|
+
"./lib/notification-feed": "./lib/notification-feed.ts",
|
|
284
306
|
"./lib/oauth-redirect-priority": "./lib/oauth-redirect-priority.ts",
|
|
285
307
|
"./lib/papyrus-chat-admission": "./lib/papyrus-chat-admission.ts",
|
|
286
308
|
"./lib/papyrus-hosted-chat": "./lib/papyrus-hosted-chat.ts",
|
|
@@ -293,6 +315,7 @@
|
|
|
293
315
|
"./lib/pretext-layout": "./lib/pretext-layout.ts",
|
|
294
316
|
"./lib/priming-proof-report": "./lib/priming-proof-report.ts",
|
|
295
317
|
"./lib/proposals-admin": "./lib/proposals-admin.ts",
|
|
318
|
+
"./lib/proposals-client": "./lib/proposals-client.ts",
|
|
296
319
|
"./lib/prospectus-account-client": "./lib/prospectus-account-client.ts",
|
|
297
320
|
"./lib/prospectus-publication-access": "./lib/prospectus-publication-access.ts",
|
|
298
321
|
"./lib/prospectus-session": "./lib/prospectus-session.ts",
|
|
@@ -312,8 +335,12 @@
|
|
|
312
335
|
"./lib/reader-static-params": "./lib/reader-static-params.ts",
|
|
313
336
|
"./lib/reader-storage-url": "./lib/reader-storage-url.ts",
|
|
314
337
|
"./lib/reader-subject": "./lib/reader-subject.ts",
|
|
338
|
+
"./lib/reference-capture": "./lib/reference-capture.ts",
|
|
315
339
|
"./lib/reference-display": "./lib/reference-display.ts",
|
|
340
|
+
"./lib/reference-feed-cache": "./lib/reference-feed-cache.ts",
|
|
341
|
+
"./lib/reference-feed-ranking": "./lib/reference-feed-ranking.ts",
|
|
316
342
|
"./lib/reference-policy": "./lib/reference-policy.ts",
|
|
343
|
+
"./lib/reference-preview": "./lib/reference-preview.ts",
|
|
317
344
|
"./lib/reference-review-details": "./lib/reference-review-details.ts",
|
|
318
345
|
"./lib/reference-review-request": "./lib/reference-review-request.ts",
|
|
319
346
|
"./lib/reference-source-preview": "./lib/reference-source-preview.ts",
|
|
@@ -325,6 +352,7 @@
|
|
|
325
352
|
"./lib/revalidate-prewarm": "./lib/revalidate-prewarm.ts",
|
|
326
353
|
"./lib/revalidate-secret": "./lib/revalidate-secret.ts",
|
|
327
354
|
"./lib/review-client": "./lib/review-client.ts",
|
|
355
|
+
"./lib/review-drafts": "./lib/review-drafts.ts",
|
|
328
356
|
"./lib/review-fixture": "./lib/review-fixture.ts",
|
|
329
357
|
"./lib/review-requests": "./lib/review-requests.ts",
|
|
330
358
|
"./lib/robots-policy": "./lib/robots-policy.ts",
|
|
@@ -341,6 +369,9 @@
|
|
|
341
369
|
"./lib/site-renderer": "./lib/site-renderer.ts",
|
|
342
370
|
"./lib/site-section-suggestions": "./lib/site-section-suggestions.ts",
|
|
343
371
|
"./lib/site-stack": "./lib/site-stack.ts",
|
|
372
|
+
"./lib/source-frameable": "./lib/source-frameable.ts",
|
|
373
|
+
"./lib/source-icon": "./lib/source-icon.ts",
|
|
374
|
+
"./lib/staff-groups": "./lib/staff-groups.ts",
|
|
344
375
|
"./lib/staging-gate": "./lib/staging-gate.ts",
|
|
345
376
|
"./lib/staging-gated-path": "./lib/staging-gated-path.ts",
|
|
346
377
|
"./lib/staging-preview-object": "./lib/staging-preview-object.ts",
|
|
@@ -391,6 +422,8 @@
|
|
|
391
422
|
"./app/api/newsroom/curation/context/route": "./app/api/newsroom/curation/context/route.ts",
|
|
392
423
|
"./app/api/newsroom/curation/priming/route": "./app/api/newsroom/curation/priming/route.ts",
|
|
393
424
|
"./app/api/newsroom/curation/publication/route": "./app/api/newsroom/curation/publication/route.ts",
|
|
425
|
+
"./app/api/newsroom/source-frameable/route": "./app/api/newsroom/source-frameable/route.ts",
|
|
426
|
+
"./app/api/newsroom/source-icon/route": "./app/api/newsroom/source-icon/route.ts",
|
|
394
427
|
"./app/api/reader/comment/delete/route": "./app/api/reader/comment/delete/route.ts",
|
|
395
428
|
"./app/api/reader/comment/edit/route": "./app/api/reader/comment/edit/route.ts",
|
|
396
429
|
"./app/api/reader/comment/route": "./app/api/reader/comment/route.ts",
|
|
@@ -467,7 +500,7 @@
|
|
|
467
500
|
"optional": true
|
|
468
501
|
}
|
|
469
502
|
},
|
|
470
|
-
"version": "5.43.0-next.
|
|
503
|
+
"version": "5.43.0-next.31",
|
|
471
504
|
"dependencies": {
|
|
472
505
|
"@aws-amplify/adapter-nextjs": "^1.7.3",
|
|
473
506
|
"@aws-crypto/sha256-js": "5.2.0",
|
package/routes.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.43.0-next.
|
|
2
|
+
"version": "5.43.0-next.31",
|
|
3
3
|
"routes": [
|
|
4
4
|
{
|
|
5
5
|
"file": "app/%5F_preview/[[...path]]/route.ts",
|
|
@@ -285,6 +285,28 @@
|
|
|
285
285
|
"runtime": "\"nodejs\""
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
|
+
{
|
|
289
|
+
"file": "app/api/newsroom/source-frameable/route.ts",
|
|
290
|
+
"hasDefault": false,
|
|
291
|
+
"exports": [
|
|
292
|
+
"GET"
|
|
293
|
+
],
|
|
294
|
+
"config": {
|
|
295
|
+
"dynamic": "\"force-dynamic\"",
|
|
296
|
+
"runtime": "\"nodejs\""
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"file": "app/api/newsroom/source-icon/route.ts",
|
|
301
|
+
"hasDefault": false,
|
|
302
|
+
"exports": [
|
|
303
|
+
"GET"
|
|
304
|
+
],
|
|
305
|
+
"config": {
|
|
306
|
+
"dynamic": "\"force-dynamic\"",
|
|
307
|
+
"runtime": "\"nodejs\""
|
|
308
|
+
}
|
|
309
|
+
},
|
|
288
310
|
{
|
|
289
311
|
"file": "app/api/reader/comment/delete/route.ts",
|
|
290
312
|
"hasDefault": false,
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
|
|
5
|
-
/** Placeholder geometry for the overview while private records or access are unresolved. */
|
|
6
|
-
export function NewsroomOverviewSkeleton() {
|
|
7
|
-
return (
|
|
8
|
-
<div aria-label="Loading newsroom overview" className="space-y-8 font-sans" data-newsroom-overview-skeleton role="status">
|
|
9
|
-
<section className="newsroom-overview-feed-frame space-y-4 overflow-hidden rounded-xl border bg-card p-4" aria-label="Notification Center">
|
|
10
|
-
<div className="h-6 w-48 rounded bg-muted" />
|
|
11
|
-
<div className="h-4 w-3/4 max-w-xl rounded bg-muted" />
|
|
12
|
-
<div className="h-4 w-2/3 max-w-lg rounded bg-muted" />
|
|
13
|
-
<div className="grid gap-3 sm:grid-cols-2">
|
|
14
|
-
{Array.from({ length: 4 }, (_, index) => <div className="h-28 rounded-xl border bg-card p-4" key={index}>
|
|
15
|
-
<div className="h-4 w-2/3 rounded bg-muted" /><div className="mt-4 h-3 w-1/2 rounded bg-muted" />
|
|
16
|
-
</div>)}
|
|
17
|
-
</div>
|
|
18
|
-
</section>
|
|
19
|
-
<section aria-label="Needs attention" className="space-y-3">
|
|
20
|
-
<div className="h-4 w-32 rounded bg-muted" />
|
|
21
|
-
<div className="h-16 rounded-xl border bg-card p-4"><div className="h-4 w-1/2 rounded bg-muted" /><div className="mt-2 h-3 w-1/3 rounded bg-muted" /></div>
|
|
22
|
-
</section>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
}
|