@anthusai/papyrus 1.2.0 → 1.4.0-next.1

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.
Files changed (37) hide show
  1. package/amplify/functions/model-attachment-upload/handler.ts +1 -0
  2. package/app/newsroom/[section]/page.tsx +6 -0
  3. package/app/newsroom/articles/page.tsx +3 -0
  4. package/components/news-desk-client-provider.tsx +17 -2
  5. package/components/news-desk-taxonomy-client.ts +133 -2
  6. package/components/newspaper.tsx +4 -4
  7. package/components/newsroom-board-view.tsx +74 -50
  8. package/components/newsroom-client-shell.tsx +8 -1
  9. package/components/newsroom-organizer-shell.tsx +12 -7
  10. package/components/newsroom-organizer.css +4 -3
  11. package/components/newsroom-references-view.tsx +18 -0
  12. package/components/reference-cyclotron-priming.tsx +85 -0
  13. package/components/topic-steering-workspace.tsx +35 -1
  14. package/lib/article-flow.ts +95 -0
  15. package/lib/article-frame-solver.ts +519 -0
  16. package/lib/chrome-text.ts +504 -0
  17. package/lib/content-item-lifecycle.ts +25 -26
  18. package/lib/front-mosaic.ts +1132 -0
  19. package/lib/furniture.ts +385 -0
  20. package/lib/labels.ts +37 -0
  21. package/lib/layout-config.ts +237 -0
  22. package/lib/layout-plan.ts +37 -9
  23. package/lib/layout-scenarios.ts +21 -11
  24. package/lib/layout-types.ts +457 -0
  25. package/lib/local-preview-seed.ts +97 -0
  26. package/lib/local-preview.ts +3 -0
  27. package/lib/newspaper-layout.ts +17 -3410
  28. package/lib/newsroom-board.ts +63 -62
  29. package/lib/newsroom-organizer-nav.ts +3 -4
  30. package/lib/pretext-layout.ts +22 -0
  31. package/lib/relevance-status.ts +73 -0
  32. package/lib/site-brand.ts +15 -1
  33. package/lib/text-columns.ts +251 -0
  34. package/package.json +13 -2
  35. package/renderers/pretext/presentation-shell.tsx +1 -1
  36. package/routes.manifest.json +1 -9
  37. package/app/newsroom/work/page.tsx +0 -10
package/package.json CHANGED
@@ -105,6 +105,7 @@
105
105
  "./components/reader-settings": "./components/reader-settings.ts",
106
106
  "./components/reader-theme-control": "./components/reader-theme-control.tsx",
107
107
  "./components/reference-curation-controls": "./components/reference-curation-controls.tsx",
108
+ "./components/reference-cyclotron-priming": "./components/reference-cyclotron-priming.tsx",
108
109
  "./components/reference-cyclotron-status": "./components/reference-cyclotron-status.tsx",
109
110
  "./components/reference-priming": "./components/reference-priming.tsx",
110
111
  "./components/reference-relevance-review": "./components/reference-relevance-review.tsx",
@@ -142,6 +143,8 @@
142
143
  "./lib/approved-priming-proof-reports": "./lib/approved-priming-proof-reports.ts",
143
144
  "./lib/archive-data": "./lib/archive-data.ts",
144
145
  "./lib/archive-types": "./lib/archive-types.ts",
146
+ "./lib/article-flow": "./lib/article-flow.ts",
147
+ "./lib/article-frame-solver": "./lib/article-frame-solver.ts",
145
148
  "./lib/articles": "./lib/articles.ts",
146
149
  "./lib/blog-feature-solver": "./lib/blog-feature-solver.ts",
147
150
  "./lib/blog-rhythm": "./lib/blog-rhythm.ts",
@@ -150,6 +153,7 @@
150
153
  "./lib/cached-content-repository": "./lib/cached-content-repository.ts",
151
154
  "./lib/category-dashboard": "./lib/category-dashboard.ts",
152
155
  "./lib/category-repository": "./lib/category-repository.ts",
156
+ "./lib/chrome-text": "./lib/chrome-text.ts",
153
157
  "./lib/console-chat-client": "./lib/console-chat-client.ts",
154
158
  "./lib/console-web-context": "./lib/console-web-context.ts",
155
159
  "./lib/content-actions-client": "./lib/content-actions-client.ts",
@@ -168,10 +172,17 @@
168
172
  "./lib/edition-sections": "./lib/edition-sections.ts",
169
173
  "./lib/empty-edition-layout-plan": "./lib/empty-edition-layout-plan.ts",
170
174
  "./lib/excerpts": "./lib/excerpts.ts",
175
+ "./lib/front-mosaic": "./lib/front-mosaic.ts",
176
+ "./lib/furniture": "./lib/furniture.ts",
171
177
  "./lib/graphql-content-repository": "./lib/graphql-content-repository.ts",
172
178
  "./lib/image-url": "./lib/image-url.ts",
179
+ "./lib/labels": "./lib/labels.ts",
180
+ "./lib/layout-config": "./lib/layout-config.ts",
173
181
  "./lib/layout-plan": "./lib/layout-plan.ts",
174
182
  "./lib/layout-scenarios": "./lib/layout-scenarios.ts",
183
+ "./lib/layout-types": "./lib/layout-types.ts",
184
+ "./lib/local-preview-seed": "./lib/local-preview-seed.ts",
185
+ "./lib/local-preview": "./lib/local-preview.ts",
175
186
  "./lib/markus-body": "./lib/markus-body.ts",
176
187
  "./lib/markus-ir": "./lib/markus-ir.ts",
177
188
  "./lib/markus-projection": "./lib/markus-projection.ts",
@@ -245,6 +256,7 @@
245
256
  "./lib/staging-gated-path": "./lib/staging-gated-path.ts",
246
257
  "./lib/staging-preview-object": "./lib/staging-preview-object.ts",
247
258
  "./lib/test-editor-override": "./lib/test-editor-override.ts",
259
+ "./lib/text-columns": "./lib/text-columns.ts",
248
260
  "./lib/themed-image": "./lib/themed-image.ts",
249
261
  "./lib/utils": "./lib/utils.ts",
250
262
  "./lib/video-loading": "./lib/video-loading.ts",
@@ -289,7 +301,6 @@
289
301
  "./app/newsroom/page": "./app/newsroom/page.tsx",
290
302
  "./app/newsroom/sections/[sectionId]/page": "./app/newsroom/sections/[sectionId]/page.tsx",
291
303
  "./app/newsroom/settings/page": "./app/newsroom/settings/page.tsx",
292
- "./app/newsroom/work/page": "./app/newsroom/work/page.tsx",
293
304
  "./app/page": "./app/page.tsx",
294
305
  "./app/robots": "./app/robots.ts",
295
306
  "./app/settings/page": "./app/settings/page.tsx"
@@ -339,7 +350,7 @@
339
350
  "optional": true
340
351
  }
341
352
  },
342
- "version": "1.2.0",
353
+ "version": "1.4.0-next.1",
343
354
  "dependencies": {
344
355
  "@aws-amplify/adapter-nextjs": "^1.7.3",
345
356
  "@aws-crypto/sha256-js": "5.2.0",
@@ -288,7 +288,7 @@ function PresentationItem({
288
288
  const lines = useMemo(() => {
289
289
  if (!maxWidth || !text.trim()) return [];
290
290
  return layoutAllTextLines({
291
- prepared: prepareWithSegments(text, `${textStyle.fontSize}px ${textStyle.fontFamily}`),
291
+ prepared: prepareWithSegments(text, `${textStyle.fontSize}px ${textStyle.fontFamily}`, { whiteSpace: "pre-wrap" }),
292
292
  maxWidth,
293
293
  ...textStyle,
294
294
  });
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.4.0-next.1",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",
@@ -274,14 +274,6 @@
274
274
  "dynamic": "\"force-dynamic\""
275
275
  }
276
276
  },
277
- {
278
- "file": "app/newsroom/work/page.tsx",
279
- "hasDefault": true,
280
- "exports": [],
281
- "config": {
282
- "dynamic": "\"force-dynamic\""
283
- }
284
- },
285
277
  {
286
278
  "file": "app/page.tsx",
287
279
  "reader": true,
@@ -1,10 +0,0 @@
1
- import { notFound } from "next/navigation";
2
- import { resolveActiveSiteBrand } from "../../../lib/site-brand-tenant";
3
- import { NewsroomBoardView } from "../../../components/newsroom-board-view";
4
-
5
- export const dynamic = "force-dynamic";
6
-
7
- export default function NewsroomWorkPage() {
8
- if (resolveActiveSiteBrand().newsroomLayout !== "organizer") notFound();
9
- return <NewsroomBoardView />;
10
- }