@anthusai/papyrus 5.110.0 → 5.112.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 (92) hide show
  1. package/amplify/auth/resource.js +3 -0
  2. package/amplify/auth/resource.ts +3 -0
  3. package/amplify/auth/tenant-session-claims.js +27 -0
  4. package/amplify/auth/tenant-session-claims.ts +31 -0
  5. package/amplify/cost-attribution.js +12 -0
  6. package/amplify/cost-attribution.ts +12 -0
  7. package/amplify/data/resource.js +79 -0
  8. package/amplify/data/resource.ts +82 -0
  9. package/amplify/data/schema.js +82 -1
  10. package/amplify/data/schema.ts +85 -1
  11. package/amplify/functions/assignment-action/handler.ts +14 -9
  12. package/amplify/functions/automation-view/wire.js +2 -1
  13. package/amplify/functions/automation-view/wire.ts +2 -1
  14. package/amplify/functions/category-action/handler.ts +24 -18
  15. package/amplify/functions/category-action/message-hashtags.js +2 -1
  16. package/amplify/functions/category-action/message-hashtags.ts +2 -1
  17. package/amplify/functions/category-action/reference-links.js +3 -2
  18. package/amplify/functions/category-action/reference-links.ts +3 -2
  19. package/amplify/functions/console-chat-responder/resource.js +2 -1
  20. package/amplify/functions/console-chat-responder/resource.ts +2 -1
  21. package/amplify/functions/content-actions/handler.py +54 -22
  22. package/amplify/functions/content-actions/resource.js +4 -0
  23. package/amplify/functions/content-actions/resource.ts +5 -0
  24. package/amplify/functions/editorial-checks/handler.py +5 -1
  25. package/amplify/functions/editorial-checks/schema.js +10 -2
  26. package/amplify/functions/editorial-checks/schema.ts +10 -2
  27. package/amplify/functions/editorial-checks/wire.js +2 -1
  28. package/amplify/functions/editorial-checks/wire.ts +2 -1
  29. package/amplify/functions/image-service/wire.js +2 -1
  30. package/amplify/functions/image-service/wire.ts +2 -1
  31. package/amplify/functions/monitoring-view/wire.js +2 -1
  32. package/amplify/functions/monitoring-view/wire.ts +2 -1
  33. package/amplify/functions/newsroom-summary/handler.ts +16 -12
  34. package/amplify/functions/shared/tenant-context.js +98 -0
  35. package/amplify/functions/shared/tenant-context.ts +33 -0
  36. package/amplify/functions/shared/tenant-scoped-client.ts +80 -0
  37. package/amplify/functions/tenant-claims/claims.ts +90 -0
  38. package/amplify/functions/tenant-claims/environment.js +7 -0
  39. package/amplify/functions/tenant-claims/environment.ts +7 -0
  40. package/amplify/functions/tenant-claims/handler.ts +56 -0
  41. package/amplify/functions/tenant-claims/resource.js +12 -0
  42. package/amplify/functions/tenant-claims/resource.ts +13 -0
  43. package/amplify/plugins/newsletter/sending.js +2 -1
  44. package/amplify/plugins/newsletter/sending.ts +2 -1
  45. package/amplify/plugins/notifications/papyrus.plugin.js +2 -1
  46. package/amplify/plugins/notifications/papyrus.plugin.ts +2 -1
  47. package/amplify/plugins/reader-steering/schema.js +15 -3
  48. package/amplify/plugins/reader-steering/schema.ts +15 -3
  49. package/amplify/plugins/signup/papyrus.plugin.js +2 -1
  50. package/amplify/plugins/signup/papyrus.plugin.ts +2 -1
  51. package/amplify/plugins/signup/schema.js +1 -0
  52. package/amplify/plugins/signup/schema.ts +1 -0
  53. package/amplify/shared-stack/alarms.js +53 -0
  54. package/amplify/shared-stack/alarms.ts +109 -0
  55. package/amplify/shared-stack/define.js +15 -0
  56. package/amplify/shared-stack/define.ts +17 -0
  57. package/amplify/shared-stack/deny.js +27 -0
  58. package/amplify/shared-stack/deny.ts +28 -0
  59. package/amplify/shared-stack/inline-policy.js +53 -0
  60. package/amplify/shared-stack/inline-policy.ts +65 -0
  61. package/amplify/shared-stack/isolation.js +161 -0
  62. package/amplify/shared-stack/isolation.ts +204 -0
  63. package/amplify/shared-stack/names.js +95 -0
  64. package/amplify/shared-stack/names.ts +133 -0
  65. package/amplify/shared-stack/settings.js +70 -0
  66. package/amplify/shared-stack/settings.ts +95 -0
  67. package/amplify/site-api-access.js +13 -0
  68. package/amplify/site-api-access.ts +14 -0
  69. package/amplify/site-backend-config.js +7 -1
  70. package/amplify/site-backend-config.ts +8 -2
  71. package/amplify/site-backend.js +65 -13
  72. package/amplify/site-backend.ts +75 -19
  73. package/components/news-desk-taxonomy-client.ts +5 -0
  74. package/components/newsroom-article-editor.tsx +7 -3
  75. package/components/newsroom-board-view.tsx +4 -2
  76. package/components/newsroom-organizer.css +2 -2
  77. package/components/use-newsroom-desk-sections.ts +31 -0
  78. package/infra/amplify-app-shell.js +4 -1
  79. package/infra/amplify-app-shell.ts +4 -1
  80. package/infra/build-specs.js +4 -1
  81. package/infra/build-specs.ts +5 -1
  82. package/infra/cost-tags.test.js +1 -1
  83. package/infra/cost-tags.test.ts +1 -1
  84. package/infra/shared-stack-deny.js +80 -0
  85. package/infra/shared-stack-deny.test.js +56 -0
  86. package/infra/shared-stack-deny.test.ts +66 -0
  87. package/infra/shared-stack-deny.ts +86 -0
  88. package/lib/newsroom-sections.ts +14 -0
  89. package/lib/tenant-keys.js +16 -0
  90. package/lib/tenant-keys.ts +19 -0
  91. package/package.json +2 -1
  92. package/routes.manifest.json +1 -1
@@ -21,6 +21,7 @@ import {
21
21
  type NativeBoardIssue,
22
22
  } from "../lib/newsroom-board";
23
23
  import type { AssignmentRecord } from "../lib/category-repository";
24
+ import { useNewsroomDeskSections } from "./use-newsroom-desk-sections";
24
25
  import { newsroomDeskOptions } from "../lib/newsroom-sections";
25
26
  import { getContentItemName, getContentItemStageDefinitions, SITE_BRAND } from "../lib/site-brand";
26
27
  import { getNewsroomNavHref } from "../lib/newsroom-nav";
@@ -63,6 +64,7 @@ export type NewsroomBoardSubject = "contentItem" | "assignment" | "desk";
63
64
  /** Read-only board of one record kind over authenticated CMS records; existing workspaces own every mutation. */
64
65
  export function NewsroomBoardView({ subject, deskId }: { subject: NewsroomBoardSubject; deskId?: string }) {
65
66
  const session = useOptionalNewsDeskClient();
67
+ const { sections: deskSections } = useNewsroomDeskSections();
66
68
  const allowed = canReadNewsroomBoard(session?.shell.phase);
67
69
  const [lowMotion, setLowMotion] = useState(false);
68
70
  const [assignmentBoardIssues, setAssignmentBoardIssues] = useState<NativeBoardIssue[]>([]);
@@ -149,9 +151,9 @@ export function NewsroomBoardView({ subject, deskId }: { subject: NewsroomBoardS
149
151
  const loadMoreWhenColumnIsNearItsEnd = (columnKey: string) => {
150
152
  if (showsContentItems && columnKey.startsWith(contentItemColumnKeyPrefix)) pagedContentItems.loadMoreForStage(columnKey.slice(contentItemColumnKeyPrefix.length));
151
153
  };
152
- const deskTitle = session?.shell.dashboard?.newsroomSections?.find(section => section.id === deskId)?.title ?? deskId ?? "Desk";
154
+ const deskTitle = deskSections.find(section => section.id === deskId)?.title ?? deskId ?? "Desk";
153
155
  const pageTitle = subject === "contentItem" ? getContentItemName().plural : subject === "desk" ? deskTitle : "Assignments";
154
- const deskOptions = useMemo(() => newsroomDeskOptions(session?.shell.dashboard?.newsroomSections ?? []), [session?.shell.dashboard?.newsroomSections]);
156
+ const deskOptions = useMemo(() => newsroomDeskOptions(deskSections), [deskSections]);
155
157
  const changeAssignmentDesk = async (record: AssignmentRecord, deskId: string | null) => {
156
158
  await saveNewsroomAssignmentDesk(record.id, deskId);
157
159
  const moved = { ...record, sectionId: deskId, sectionKey: deskId };
@@ -78,10 +78,10 @@ body:has(.newsroom-organizer)>[data-staging-banner]{flex-shrink:0}
78
78
  .newsroom-embedded-article :is([data-newsroom-article-preview],[data-skeleton-preview]){min-height:min(28rem,55dvh)}
79
79
  /* The loading skeleton is the loaded editor's size block for block: the toolbar wraps onto more rows as the panel narrows (a container query,
80
80
  because the panel's width, not the window's, decides), and the three fields stack when it is narrow. */
81
- [data-skeleton-schedule]{height:92px}[data-skeleton-toolbar]{height:44px}[data-skeleton-stars]{height:59px}[data-skeleton-fields]{height:254px}[data-skeleton-preview]{height:min(28rem,55dvh)}
81
+ [data-skeleton-schedule]{height:92px}[data-skeleton-toolbar]{height:44px}[data-skeleton-stars]{height:59px}[data-skeleton-fields]{height:262px}[data-skeleton-preview]{height:min(28rem,55dvh)}
82
82
  /* The headline image block is one fixed height in every state (loading, none, processing, missing, loaded), and the skeleton reserves it. */
83
83
  [data-story-headline-frame],[data-skeleton-headline]{height:11rem}
84
- @container (max-width:719px){[data-skeleton-toolbar]{height:80px}[data-skeleton-fields]{height:274px}[data-skeleton-schedule]{height:113px}}
84
+ @container (max-width:719px){[data-skeleton-toolbar]{height:80px}[data-skeleton-fields]{height:282px}[data-skeleton-schedule]{height:113px}}
85
85
  @container (max-width:399px){[data-skeleton-toolbar]{height:116px}[data-skeleton-schedule]{height:134px}}
86
86
  .organizer-board-body .kb-issue-detail a:not(.organizer-header-button){display:block;min-height:44px;text-decoration:underline;padding:12px 0}
87
87
  .organizer-menu{height:min(85dvh,760px);max-height:85dvh;display:flex;flex-direction:column;padding:16px;border-radius:24px 24px 0 0;gap:20px}
@@ -0,0 +1,31 @@
1
+ "use client";
2
+
3
+ import { useEffect, useState } from "react";
4
+ import type { NewsroomSectionRecord } from "../lib/category-repository";
5
+ import { loadEditorNewsroomSections } from "./news-desk-taxonomy-client";
6
+ import { useOptionalNewsDeskClient } from "./news-desk-client-provider";
7
+
8
+ /**
9
+ * The site's Sections for a picker. The shell dashboard is only a summary and carries none, so when it has none this reads them
10
+ * once, with the signed-in session, as the Sections page does. Reading fails soft: the picker then shows the Story's own value.
11
+ */
12
+ export function useNewsroomDeskSections(): { sections: NewsroomSectionRecord[]; loading: boolean; error: string | null } {
13
+ const session = useOptionalNewsDeskClient();
14
+ const shellSections = session?.shell.dashboard?.newsroomSections ?? [];
15
+ const signedIn = session?.shell.auth.status === "signedIn" && Boolean(session.shell.dashboard);
16
+ const [loaded, setLoaded] = useState<NewsroomSectionRecord[] | null>(null);
17
+ const [error, setError] = useState<string | null>(null);
18
+ const needsLoad = shellSections.length === 0 && signedIn;
19
+
20
+ useEffect(() => {
21
+ if (!needsLoad) return;
22
+ let cancelled = false;
23
+ loadEditorNewsroomSections()
24
+ .then((rows) => { if (!cancelled) { setLoaded(rows); setError(null); } })
25
+ .catch((reason: unknown) => { if (!cancelled) setError(reason instanceof Error ? reason.message : "Could not load the sections."); });
26
+ return () => { cancelled = true; };
27
+ }, [needsLoad]);
28
+
29
+ if (shellSections.length > 0) return { sections: shellSections, loading: false, error: null };
30
+ return { sections: loaded ?? [], loading: needsLoad && loaded === null && error === null, error };
31
+ }
@@ -7,6 +7,7 @@ import { parseCloudEmail } from "./cloud-email-config.js";
7
7
  import { GITHUB_OIDC_PROVIDER_HOST } from "./github-oidc-provider.js";
8
8
  import { cmsProductionBuildSpec, cmsStagingBuildSpec, readerBuildSpec } from "./build-specs.js";
9
9
  import { applySiteCostTags } from "./cost-attribution.js";
10
+ import { addSharedStackDeny } from "./shared-stack-deny.js";
10
11
  import { PROSPECTUS_PAPYRUS_SITE_ROUTES, hasCmsApp, hasReceiptGate, resolveGithubStatusTokenParameterName, isStagingEnabled, resolveRedirectSubDomainPrefix, resolveCmsHostName, resolveSiteOrigin, githubOidcSubjects, resolveGithubRepository, resolveProspectusAccountsEndpoint, resolveProspectusSessionSealingParameterName, resolveReaderPollSecretParameterName, resolveRevalidateSecretParameterName, resolveStackName, resolveStagingDomainName, resolveChatStackName, chatExportName, CHAT_EXPORTED_RESOURCES, CHAT_ENVIRONMENT_NAMES, CHAT_PRIVATE_ASSISTANT_ID, CHAT_PRIVATE_ASSISTANT_NAME, resolveStoragePreviewPrefix } from "./site-config.js";
11
12
  function environmentVariables(variables) {
12
13
  return Object.entries(variables).map(([name, value]) => ({ name, value }));
@@ -101,8 +102,10 @@ function addCiReceiptGate(scope, config, buildServiceRole) {
101
102
  export class AmplifyAppShellStack extends Stack {
102
103
  cmsAppId;
103
104
  readerAppId;
104
- constructor(scope, id, config, props) {
105
+ constructor(scope, id, config, props, options = {}) {
105
106
  super(scope, id, props);
107
+ // Every role of a dedicated site denies the shared tier's resources (PPY-daf673); no resource is added.
108
+ addSharedStackDeny(this, options.sharedStackDeny);
106
109
  // Prospectus cost accounting: every resource carries the site's owner Account, app papyrus and the site ID.
107
110
  // On unless site.json says costAccounting false. These stacks are small; the backend's tags go in waves.
108
111
  if (config.costAccounting)
@@ -8,6 +8,7 @@ import { parseCloudEmail } from "./cloud-email-config";
8
8
  import { GITHUB_OIDC_PROVIDER_HOST } from "./github-oidc-provider";
9
9
  import { cmsProductionBuildSpec, cmsStagingBuildSpec, readerBuildSpec } from "./build-specs";
10
10
  import { applySiteCostTags } from "./cost-attribution";
11
+ import { addSharedStackDeny } from "./shared-stack-deny";
11
12
  import { AmplifyAppShellSiteConfig, PROSPECTUS_PAPYRUS_SITE_ROUTES, ReaderCustomHeaderRule, hasCmsApp, hasReceiptGate, resolveGithubStatusTokenParameterName, isStagingEnabled, resolveRedirectSubDomainPrefix, resolveCmsHostName, resolveSiteOrigin, githubOidcSubjects, resolveGithubRepository, resolveProspectusAccountsEndpoint, resolveProspectusSessionSealingParameterName, resolveReaderPollSecretParameterName, resolveRevalidateSecretParameterName, resolveStackName, resolveStagingDomainName, resolveChatStackName, chatExportName, CHAT_EXPORTED_RESOURCES, CHAT_ENVIRONMENT_NAMES, CHAT_PRIVATE_ASSISTANT_ID, CHAT_PRIVATE_ASSISTANT_NAME, resolveStoragePreviewPrefix } from "./site-config";
12
13
 
13
14
  function environmentVariables(variables: Record<string, string>): amplify.CfnBranch.EnvironmentVariableProperty[] {
@@ -107,8 +108,10 @@ export class AmplifyAppShellStack extends Stack {
107
108
  public readonly cmsAppId?: string;
108
109
  public readonly readerAppId?: string;
109
110
 
110
- constructor(scope: Construct, id: string, config: AmplifyAppShellSiteConfig, props?: StackProps) {
111
+ constructor(scope: Construct, id: string, config: AmplifyAppShellSiteConfig, props?: StackProps, options: { sharedStackDeny?: boolean } = {}) {
111
112
  super(scope, id, props);
113
+ // Every role of a dedicated site denies the shared tier's resources (PPY-daf673); no resource is added.
114
+ addSharedStackDeny(this, options.sharedStackDeny);
112
115
  // Prospectus cost accounting: every resource carries the site's owner Account, app papyrus and the site ID.
113
116
  // On unless site.json says costAccounting false. These stacks are small; the backend's tags go in waves.
114
117
  if (config.costAccounting) applySiteCostTags(this, config.siteId);
@@ -15,6 +15,9 @@ function commandLines(commands, indent) {
15
15
  const NPM_CLEAN_INSTALL = "npm ci --cache .npm --prefer-offline";
16
16
  const FRONTEND_ENVIRONMENT_CAPTURE = "env | grep -e '^PAPYRUS_' -e '^SITE_ENV=' -e '^NEXT_PUBLIC_' >> .env.production";
17
17
  const CHECKOUT_AS_PAPYRUS_ROOT = "PAPYRUS_ROOT=\"$PWD\"";
18
+ /** The staging export reads drafts as the Amplify build role, so it declares the operator lane; the CLI's default is a signed-in person (PPY-5f119a).
19
+ * The environment form, not `papyrus --auth iam`, so the line works with every engine version a site may pin. */
20
+ const BUILD_ROLE_LANE = "PAPYRUS_GRAPHQL_AUTH=iam";
18
21
  const RUNTIME_OUTPUTS_COPY = "cp amplify_outputs.json .next/amplify_outputs.json";
19
22
  function pythonProvisioningCommands(config) {
20
23
  return [
@@ -99,7 +102,7 @@ export function cmsStagingBuildSpec(config) {
99
102
  const cachePaths = [".next/cache/**/*", ".npm/**/*"];
100
103
  const preview = config.frontend === "markus-static" ? stagingPreviewFor(config) : undefined;
101
104
  if (preview !== undefined) {
102
- preBuild.push(...pythonProvisioningCommands(config), `${CHECKOUT_AS_PAPYRUS_ROOT} papyrus ops content export-published --drafts --out content-export --clean`, preview.buildCommand, `${CHECKOUT_AS_PAPYRUS_ROOT} papyrus ops content upload-preview --dir ${preview.baseDirectory} --prefix ${resolveStoragePreviewPrefix(config)}`);
105
+ preBuild.push(...pythonProvisioningCommands(config), `${CHECKOUT_AS_PAPYRUS_ROOT} ${BUILD_ROLE_LANE} papyrus ops content export-published --drafts --out content-export --clean`, preview.buildCommand, `${CHECKOUT_AS_PAPYRUS_ROOT} papyrus ops content upload-preview --dir ${preview.baseDirectory} --prefix ${resolveStoragePreviewPrefix(config)}`);
103
106
  cachePaths.push(".uv-cache/**/*");
104
107
  }
105
108
  return [
@@ -24,6 +24,10 @@ const FRONTEND_ENVIRONMENT_CAPTURE =
24
24
 
25
25
  const CHECKOUT_AS_PAPYRUS_ROOT = "PAPYRUS_ROOT=\"$PWD\"";
26
26
 
27
+ /** The staging export reads drafts as the Amplify build role, so it declares the operator lane; the CLI's default is a signed-in person (PPY-5f119a).
28
+ * The environment form, not `papyrus --auth iam`, so the line works with every engine version a site may pin. */
29
+ const BUILD_ROLE_LANE = "PAPYRUS_GRAPHQL_AUTH=iam";
30
+
27
31
  const RUNTIME_OUTPUTS_COPY = "cp amplify_outputs.json .next/amplify_outputs.json";
28
32
 
29
33
  function pythonProvisioningCommands(config: AmplifyAppShellSiteConfig): string[] {
@@ -137,7 +141,7 @@ export function cmsStagingBuildSpec(config: AmplifyAppShellSiteConfig): string {
137
141
  if (preview !== undefined) {
138
142
  preBuild.push(
139
143
  ...pythonProvisioningCommands(config),
140
- `${CHECKOUT_AS_PAPYRUS_ROOT} papyrus ops content export-published --drafts --out content-export --clean`,
144
+ `${CHECKOUT_AS_PAPYRUS_ROOT} ${BUILD_ROLE_LANE} papyrus ops content export-published --drafts --out content-export --clean`,
141
145
  preview.buildCommand,
142
146
  `${CHECKOUT_AS_PAPYRUS_ROOT} papyrus ops content upload-preview --dir ${preview.baseDirectory} --prefix ${resolveStoragePreviewPrefix(config)}`,
143
147
  );
@@ -30,7 +30,7 @@ for (const name of names) {
30
30
  assert.equal(readSite(name).costAccounting, true, name);
31
31
  const offSite = readSite(name, false);
32
32
  const offTemplate = Template.fromStack(new AmplifyAppShellStack(new App(), `Off-${name}`, offSite, { env })).toJSON();
33
- assert.ok(!JSON.stringify(offTemplate).includes("anthus:"), `${name}: no anthus: tag with costAccounting false`);
33
+ assert.ok(!JSON.stringify(offTemplate).replaceAll("aws:ResourceTag/anthus:deployment", "").includes("anthus:"), `${name}: no anthus: tag with costAccounting false`);
34
34
  if (offSite.chat?.enabled) {
35
35
  const offChat = Template.fromStack(new PapyrusChatStack(new App(), { config: offSite, env, lambdaAssetDirectory: chatLambdas })).toJSON();
36
36
  assert.ok(!JSON.stringify(offChat).includes("anthus:"), `${name}: no anthus: tag on the chat stack with costAccounting false`);
@@ -34,7 +34,7 @@ for (const name of names) {
34
34
  assert.equal(readSite(name).costAccounting, true, name);
35
35
  const offSite = readSite(name, false);
36
36
  const offTemplate = Template.fromStack(new AmplifyAppShellStack(new App(), `Off-${name}`, offSite, { env })).toJSON();
37
- assert.ok(!JSON.stringify(offTemplate).includes("anthus:"), `${name}: no anthus: tag with costAccounting false`);
37
+ assert.ok(!JSON.stringify(offTemplate).replaceAll("aws:ResourceTag/anthus:deployment", "").includes("anthus:"), `${name}: no anthus: tag with costAccounting false`);
38
38
  if (offSite.chat?.enabled) {
39
39
  const offChat = Template.fromStack(new PapyrusChatStack(new App(), { config: offSite, env, lambdaAssetDirectory: chatLambdas })).toJSON();
40
40
  assert.ok(!JSON.stringify(offChat).includes("anthus:"), `${name}: no anthus: tag on the chat stack with costAccounting false`);
@@ -0,0 +1,80 @@
1
+ import { Aspects, CfnResource, Lazy, Stack, Token } from "aws-cdk-lib";
2
+ import { CfnRole } from "aws-cdk-lib/aws-iam";
3
+ /**
4
+ * The deny every dedicated site's role carries on the shared tier's resources (PPY-daf673; docs/shared-stack.md; the design note's
5
+ * "Isolation inside an existing account", layer 3). This package ships on its own, so it keeps a copy of
6
+ * `amplify/shared-stack/names.ts`; scripts/test-shared-stack.ts fails when the two statements differ.
7
+ *
8
+ * An inline policy is added to each role, so the stack gains no resource.
9
+ */
10
+ export const SHARED_DENY_POLICY_NAME = "papyrus-deny-shared-stack";
11
+ const SHARED_FAMILY_PREFIX = "papyrus-shared-";
12
+ const SHARED_DEPLOYMENT_VALUES = ["shared-prod", "shared-staging"];
13
+ export function sharedStackDenyStatements() {
14
+ return [
15
+ {
16
+ Sid: "DenyTaggedSharedStackResources",
17
+ Effect: "Deny",
18
+ Action: ["*"],
19
+ Resource: ["*"],
20
+ Condition: { StringEquals: { "aws:ResourceTag/anthus:deployment": [...SHARED_DEPLOYMENT_VALUES] } },
21
+ },
22
+ {
23
+ Sid: "DenyNamedSharedStackResources",
24
+ Effect: "Deny",
25
+ Action: ["*"],
26
+ Resource: [
27
+ `arn:aws:cloudformation:*:*:stack/${SHARED_FAMILY_PREFIX}*`,
28
+ `arn:aws:s3:::${SHARED_FAMILY_PREFIX}*`,
29
+ `arn:aws:s3:::${SHARED_FAMILY_PREFIX}*/*`,
30
+ `arn:aws:lambda:*:*:function:${SHARED_FAMILY_PREFIX}*`,
31
+ `arn:aws:logs:*:*:log-group:/aws/lambda/${SHARED_FAMILY_PREFIX}*`,
32
+ `arn:aws:logs:*:*:log-group:/aws/lambda/${SHARED_FAMILY_PREFIX}*:*`,
33
+ `arn:aws:iam::*:role/${SHARED_FAMILY_PREFIX}*`,
34
+ `arn:aws:iam::*:policy/${SHARED_FAMILY_PREFIX}*`,
35
+ `arn:aws:ssm:*:*:parameter/papyrus/shared/*`,
36
+ `arn:aws:sns:*:*:${SHARED_FAMILY_PREFIX}*`,
37
+ `arn:aws:sqs:*:*:${SHARED_FAMILY_PREFIX}*`,
38
+ `arn:aws:cloudwatch:*:*:alarm:${SHARED_FAMILY_PREFIX}*`,
39
+ `arn:aws:kms:*:*:alias/${SHARED_FAMILY_PREFIX}*`,
40
+ ],
41
+ },
42
+ {
43
+ Sid: "DenySharedStackKeys",
44
+ Effect: "Deny",
45
+ Action: ["kms:*"],
46
+ Resource: ["*"],
47
+ Condition: { "ForAnyValue:StringLike": { "kms:ResourceAliases": `alias/${SHARED_FAMILY_PREFIX}*` } },
48
+ },
49
+ ];
50
+ }
51
+ export const sharedStackDenyPolicyDocument = () => ({ Version: "2012-10-17", Statement: sharedStackDenyStatements() });
52
+ class SharedStackDeny {
53
+ visit(node) {
54
+ if (!CfnResource.isCfnResource(node) || node.cfnResourceType !== "AWS::IAM::Role")
55
+ return;
56
+ if (node instanceof CfnRole) {
57
+ const existing = node.policies;
58
+ if (existing !== undefined && (Token.isUnresolved(existing) || !Array.isArray(existing))) {
59
+ throw new Error(`Cannot add the ${SHARED_DENY_POLICY_NAME} policy to role ${node.node.path}: its Policies is not a plain list.`);
60
+ }
61
+ node.policies = [...(existing ?? []), { policyName: SHARED_DENY_POLICY_NAME, policyDocument: sharedStackDenyPolicyDocument() }];
62
+ return;
63
+ }
64
+ // A raw role (a custom resource provider's): extend its list when the template is written.
65
+ const previous = node.cfnProperties.Policies;
66
+ node.addPropertyOverride("Policies", Lazy.any({
67
+ produce: () => {
68
+ const resolved = Stack.of(node).resolve(previous) ?? [];
69
+ if (!Array.isArray(resolved))
70
+ throw new Error(`Cannot add the ${SHARED_DENY_POLICY_NAME} policy to role ${node.node.path}: its Policies is not a list.`);
71
+ return [...resolved, { PolicyName: SHARED_DENY_POLICY_NAME, PolicyDocument: sharedStackDenyPolicyDocument() }];
72
+ },
73
+ }));
74
+ }
75
+ }
76
+ /** Adds the deny to every role of `stack`, unless `enabled` is false (only the synth test that proves the deny is the whole difference passes false). */
77
+ export function addSharedStackDeny(stack, enabled = true) {
78
+ if (enabled)
79
+ Aspects.of(stack).add(new SharedStackDeny());
80
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Every dedicated site's app shell carries the shared-stack deny and differs from the shell without it by that policy alone
3
+ * (features_backend/shared-stack-bootstrap.feature). Run by scripts/test-infra-shared-stack-deny.ts, in this package's own harness style.
4
+ *
5
+ * node --import tsx infra/amplify-app-shell/lib/shared-stack-deny.test.ts asserts
6
+ * node --import tsx infra/amplify-app-shell/lib/shared-stack-deny.test.ts --json prints the facts as JSON
7
+ */
8
+ import fs from "node:fs";
9
+ import assert from "node:assert/strict";
10
+ import path from "node:path";
11
+ import { App } from "aws-cdk-lib";
12
+ import { Template } from "aws-cdk-lib/assertions";
13
+ // The backend's copy lives outside this package's rootDir, so it is read at run time.
14
+ const { sharedStackDenyPolicyDocument: backendDeny, SHARED_DENY_POLICY_NAME } = require("../../../amplify/shared-stack/names");
15
+ import { AmplifyAppShellStack } from "./amplify-app-shell.js";
16
+ import { sharedStackDenyPolicyDocument as shellDeny } from "./shared-stack-deny.js";
17
+ import { parseSiteConfig } from "./site-config.js";
18
+ export function appShellDenyFacts(example = "shipped") {
19
+ const examples = path.resolve(__dirname, "../examples");
20
+ const site = parseSiteConfig(JSON.parse(fs.readFileSync(path.join(examples, `${example}.site.json`), "utf8")));
21
+ const env = { account: "111122223333", region: "us-east-1" };
22
+ // The same construct id in both, because a custom resource provider's description carries it.
23
+ const plain = Template.fromStack(new AmplifyAppShellStack(new App(), "Shell", site, { env }, { sharedStackDeny: false })).toJSON();
24
+ const withDeny = Template.fromStack(new AmplifyAppShellStack(new App(), "Shell", site, { env })).toJSON();
25
+ const roles = Object.values(withDeny.Resources).filter((resource) => resource.Type === "AWS::IAM::Role");
26
+ const denies = (role) => (role.Properties.Policies ?? []).filter((policy) => policy.PolicyName === SHARED_DENY_POLICY_NAME);
27
+ const stripped = JSON.parse(JSON.stringify(withDeny));
28
+ for (const resource of Object.values(stripped.Resources)) {
29
+ if (resource.Type !== "AWS::IAM::Role")
30
+ continue;
31
+ resource.Properties.Policies = (resource.Properties.Policies ?? []).filter((policy) => policy.PolicyName !== SHARED_DENY_POLICY_NAME);
32
+ if (resource.Properties.Policies.length === 0)
33
+ delete resource.Properties.Policies;
34
+ }
35
+ return {
36
+ roles: roles.length,
37
+ rolesWithTheDeny: roles.filter((role) => denies(role).length === 1).length,
38
+ sameResources: JSON.stringify(Object.keys(withDeny.Resources)) === JSON.stringify(Object.keys(plain.Resources)),
39
+ onlyDifferenceIsTheDeny: JSON.stringify(stripped) === JSON.stringify(plain),
40
+ denyEqualsTheBackendsDeny: roles.every((role) => JSON.stringify(denies(role)[0]?.PolicyDocument) === JSON.stringify(backendDeny())) && JSON.stringify(shellDeny()) === JSON.stringify(backendDeny()),
41
+ };
42
+ }
43
+ if (process.argv.includes("--json")) {
44
+ console.log(JSON.stringify(appShellDenyFacts()));
45
+ }
46
+ else {
47
+ const names = fs.readdirSync(path.resolve(__dirname, "../examples")).filter((file) => file.endsWith(".site.json")).map((file) => file.replace(".site.json", ""));
48
+ for (const name of names) {
49
+ const facts = appShellDenyFacts(name);
50
+ assert.ok(facts.roles >= 1 && facts.rolesWithTheDeny === facts.roles, `${name}: every role carries the deny`);
51
+ assert.ok(facts.sameResources, `${name}: the shell gains no resource`);
52
+ assert.ok(facts.onlyDifferenceIsTheDeny, `${name}: the shell differs only by the deny`);
53
+ assert.ok(facts.denyEqualsTheBackendsDeny, `${name}: the deny is the backend's deny`);
54
+ }
55
+ console.log(`shared stack deny: ${names.length} app shells ok`);
56
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Every dedicated site's app shell carries the shared-stack deny and differs from the shell without it by that policy alone
3
+ * (features_backend/shared-stack-bootstrap.feature). Run by scripts/test-infra-shared-stack-deny.ts, in this package's own harness style.
4
+ *
5
+ * node --import tsx infra/amplify-app-shell/lib/shared-stack-deny.test.ts asserts
6
+ * node --import tsx infra/amplify-app-shell/lib/shared-stack-deny.test.ts --json prints the facts as JSON
7
+ */
8
+ import fs from "node:fs";
9
+ import assert from "node:assert/strict";
10
+ import path from "node:path";
11
+ import { App } from "aws-cdk-lib";
12
+ import { Template } from "aws-cdk-lib/assertions";
13
+ // The backend's copy lives outside this package's rootDir, so it is read at run time.
14
+ const { sharedStackDenyPolicyDocument: backendDeny, SHARED_DENY_POLICY_NAME } = require("../../../amplify/shared-stack/names") as {
15
+ sharedStackDenyPolicyDocument: () => unknown;
16
+ SHARED_DENY_POLICY_NAME: string;
17
+ };
18
+ import { AmplifyAppShellStack } from "./amplify-app-shell";
19
+ import { sharedStackDenyPolicyDocument as shellDeny } from "./shared-stack-deny";
20
+ import { parseSiteConfig } from "./site-config";
21
+
22
+ export type AppShellDenyFacts = {
23
+ roles: number;
24
+ rolesWithTheDeny: number;
25
+ sameResources: boolean;
26
+ onlyDifferenceIsTheDeny: boolean;
27
+ denyEqualsTheBackendsDeny: boolean;
28
+ };
29
+
30
+ export function appShellDenyFacts(example = "shipped"): AppShellDenyFacts {
31
+ const examples = path.resolve(__dirname, "../examples");
32
+ const site = parseSiteConfig(JSON.parse(fs.readFileSync(path.join(examples, `${example}.site.json`), "utf8")));
33
+ const env = { account: "111122223333", region: "us-east-1" };
34
+ // The same construct id in both, because a custom resource provider's description carries it.
35
+ const plain = Template.fromStack(new AmplifyAppShellStack(new App(), "Shell", site, { env }, { sharedStackDeny: false })).toJSON();
36
+ const withDeny = Template.fromStack(new AmplifyAppShellStack(new App(), "Shell", site, { env })).toJSON();
37
+ const roles = Object.values<any>(withDeny.Resources).filter((resource) => resource.Type === "AWS::IAM::Role");
38
+ const denies = (role: any) => (role.Properties.Policies ?? []).filter((policy: any) => policy.PolicyName === SHARED_DENY_POLICY_NAME);
39
+ const stripped = JSON.parse(JSON.stringify(withDeny));
40
+ for (const resource of Object.values<any>(stripped.Resources)) {
41
+ if (resource.Type !== "AWS::IAM::Role") continue;
42
+ resource.Properties.Policies = (resource.Properties.Policies ?? []).filter((policy: any) => policy.PolicyName !== SHARED_DENY_POLICY_NAME);
43
+ if (resource.Properties.Policies.length === 0) delete resource.Properties.Policies;
44
+ }
45
+ return {
46
+ roles: roles.length,
47
+ rolesWithTheDeny: roles.filter((role) => denies(role).length === 1).length,
48
+ sameResources: JSON.stringify(Object.keys(withDeny.Resources)) === JSON.stringify(Object.keys(plain.Resources)),
49
+ onlyDifferenceIsTheDeny: JSON.stringify(stripped) === JSON.stringify(plain),
50
+ denyEqualsTheBackendsDeny: roles.every((role) => JSON.stringify(denies(role)[0]?.PolicyDocument) === JSON.stringify(backendDeny())) && JSON.stringify(shellDeny()) === JSON.stringify(backendDeny()),
51
+ };
52
+ }
53
+
54
+ if (process.argv.includes("--json")) {
55
+ console.log(JSON.stringify(appShellDenyFacts()));
56
+ } else {
57
+ const names = fs.readdirSync(path.resolve(__dirname, "../examples")).filter((file) => file.endsWith(".site.json")).map((file) => file.replace(".site.json", ""));
58
+ for (const name of names) {
59
+ const facts = appShellDenyFacts(name);
60
+ assert.ok(facts.roles >= 1 && facts.rolesWithTheDeny === facts.roles, `${name}: every role carries the deny`);
61
+ assert.ok(facts.sameResources, `${name}: the shell gains no resource`);
62
+ assert.ok(facts.onlyDifferenceIsTheDeny, `${name}: the shell differs only by the deny`);
63
+ assert.ok(facts.denyEqualsTheBackendsDeny, `${name}: the deny is the backend's deny`);
64
+ }
65
+ console.log(`shared stack deny: ${names.length} app shells ok`);
66
+ }
@@ -0,0 +1,86 @@
1
+ import { Aspects, CfnResource, Lazy, Stack, Token, type IAspect } from "aws-cdk-lib";
2
+ import { CfnRole } from "aws-cdk-lib/aws-iam";
3
+ import type { IConstruct } from "constructs";
4
+
5
+ /**
6
+ * The deny every dedicated site's role carries on the shared tier's resources (PPY-daf673; docs/shared-stack.md; the design note's
7
+ * "Isolation inside an existing account", layer 3). This package ships on its own, so it keeps a copy of
8
+ * `amplify/shared-stack/names.ts`; scripts/test-shared-stack.ts fails when the two statements differ.
9
+ *
10
+ * An inline policy is added to each role, so the stack gains no resource.
11
+ */
12
+ export const SHARED_DENY_POLICY_NAME = "papyrus-deny-shared-stack";
13
+ const SHARED_FAMILY_PREFIX = "papyrus-shared-";
14
+ const SHARED_DEPLOYMENT_VALUES = ["shared-prod", "shared-staging"];
15
+
16
+ export function sharedStackDenyStatements() {
17
+ return [
18
+ {
19
+ Sid: "DenyTaggedSharedStackResources",
20
+ Effect: "Deny",
21
+ Action: ["*"],
22
+ Resource: ["*"],
23
+ Condition: { StringEquals: { "aws:ResourceTag/anthus:deployment": [...SHARED_DEPLOYMENT_VALUES] } },
24
+ },
25
+ {
26
+ Sid: "DenyNamedSharedStackResources",
27
+ Effect: "Deny",
28
+ Action: ["*"],
29
+ Resource: [
30
+ `arn:aws:cloudformation:*:*:stack/${SHARED_FAMILY_PREFIX}*`,
31
+ `arn:aws:s3:::${SHARED_FAMILY_PREFIX}*`,
32
+ `arn:aws:s3:::${SHARED_FAMILY_PREFIX}*/*`,
33
+ `arn:aws:lambda:*:*:function:${SHARED_FAMILY_PREFIX}*`,
34
+ `arn:aws:logs:*:*:log-group:/aws/lambda/${SHARED_FAMILY_PREFIX}*`,
35
+ `arn:aws:logs:*:*:log-group:/aws/lambda/${SHARED_FAMILY_PREFIX}*:*`,
36
+ `arn:aws:iam::*:role/${SHARED_FAMILY_PREFIX}*`,
37
+ `arn:aws:iam::*:policy/${SHARED_FAMILY_PREFIX}*`,
38
+ `arn:aws:ssm:*:*:parameter/papyrus/shared/*`,
39
+ `arn:aws:sns:*:*:${SHARED_FAMILY_PREFIX}*`,
40
+ `arn:aws:sqs:*:*:${SHARED_FAMILY_PREFIX}*`,
41
+ `arn:aws:cloudwatch:*:*:alarm:${SHARED_FAMILY_PREFIX}*`,
42
+ `arn:aws:kms:*:*:alias/${SHARED_FAMILY_PREFIX}*`,
43
+ ],
44
+ },
45
+ {
46
+ Sid: "DenySharedStackKeys",
47
+ Effect: "Deny",
48
+ Action: ["kms:*"],
49
+ Resource: ["*"],
50
+ Condition: { "ForAnyValue:StringLike": { "kms:ResourceAliases": `alias/${SHARED_FAMILY_PREFIX}*` } },
51
+ },
52
+ ];
53
+ }
54
+
55
+ export const sharedStackDenyPolicyDocument = () => ({ Version: "2012-10-17", Statement: sharedStackDenyStatements() });
56
+
57
+ class SharedStackDeny implements IAspect {
58
+ visit(node: IConstruct): void {
59
+ if (!CfnResource.isCfnResource(node) || node.cfnResourceType !== "AWS::IAM::Role") return;
60
+ if (node instanceof CfnRole) {
61
+ const existing = node.policies;
62
+ if (existing !== undefined && (Token.isUnresolved(existing) || !Array.isArray(existing))) {
63
+ throw new Error(`Cannot add the ${SHARED_DENY_POLICY_NAME} policy to role ${node.node.path}: its Policies is not a plain list.`);
64
+ }
65
+ node.policies = [...(existing ?? []), { policyName: SHARED_DENY_POLICY_NAME, policyDocument: sharedStackDenyPolicyDocument() }];
66
+ return;
67
+ }
68
+ // A raw role (a custom resource provider's): extend its list when the template is written.
69
+ const previous = (node as unknown as { cfnProperties: Record<string, unknown> }).cfnProperties.Policies;
70
+ node.addPropertyOverride(
71
+ "Policies",
72
+ Lazy.any({
73
+ produce: () => {
74
+ const resolved = Stack.of(node).resolve(previous) ?? [];
75
+ if (!Array.isArray(resolved)) throw new Error(`Cannot add the ${SHARED_DENY_POLICY_NAME} policy to role ${node.node.path}: its Policies is not a list.`);
76
+ return [...resolved, { PolicyName: SHARED_DENY_POLICY_NAME, PolicyDocument: sharedStackDenyPolicyDocument() }];
77
+ },
78
+ }),
79
+ );
80
+ }
81
+ }
82
+
83
+ /** Adds the deny to every role of `stack`, unless `enabled` is false (only the synth test that proves the deny is the whole difference passes false). */
84
+ export function addSharedStackDeny(stack: Stack, enabled = true): void {
85
+ if (enabled) Aspects.of(stack).add(new SharedStackDeny());
86
+ }
@@ -39,3 +39,17 @@ export function newsroomDeskKind(section: NewsroomSectionRecord): NewsroomDeskKi
39
39
  export function newsroomDeskOptions(sections: NewsroomSectionRecord[]): NewsroomDeskOption[] {
40
40
  return sortNewsroomSections(sections).filter(isEnabledNewsroomSection).map(section => ({ value: section.id, label: section.title, kind: newsroomDeskKind(section) }));
41
41
  }
42
+
43
+ /**
44
+ * The options of a Section picker: the site's enabled desks, plus the Story's own current value when the list does not hold it
45
+ * (a disabled or renamed section), so the picker always shows what the Story has and never reads as "No section" for a set value.
46
+ */
47
+ export function newsroomDeskPickerOptions(sections: NewsroomSectionRecord[], current: string | null | undefined): NewsroomDeskOption[] {
48
+ const options = newsroomDeskOptions(sections);
49
+ const value = (current ?? "").trim();
50
+ if (!value || options.some(option => option.value === value)) return options;
51
+ const known = sections.find(section => section.id === value);
52
+ // A value the site no longer lists has no title to show, so the picker shows the stored id itself.
53
+ const label = known ? known.title : value;
54
+ return [...options, { value, label, kind: known ? newsroomDeskKind(known) : "core" }];
55
+ }
@@ -4,6 +4,22 @@ export const TENANCY_MODE_ENVIRONMENT_VARIABLE = "PAPYRUS_TENANCY_MODE";
4
4
  export function isSharedStack(environment = process.env) {
5
5
  return environment[TENANCY_MODE_ENVIRONMENT_VARIABLE]?.trim().toLowerCase() === "shared";
6
6
  }
7
+ /** Models whose rows carry a `tenantId` and tenant-shaped keys (twin of TENANT_MODELS in src/papyrus_content/tenancy.py; scripts/test-function-tenant-context.ts checks both against the schema). */
8
+ export const TENANT_MODELS = new Set([
9
+ "Item", "PublishedItem", "MediaAsset", "PublishedMediaAsset", "NewsroomSection",
10
+ ]);
11
+ /** Models that carry an optional `tenantId` and nothing else tenant-shaped (twin of TENANT_FIELD_MODELS in tenancy.py). */
12
+ export const TENANT_FIELD_MODELS = new Set([
13
+ "UserRoleAssignment", "Assignment", "AssignmentEvent", "ProcedureDefinition", "ProcedureVersion", "ProcedureRun",
14
+ "Automation", "ReviewRequest", "ReviewReadMark", "StoryVariation", "ReviewRecipientRule", "KnowledgeCorpus",
15
+ "KnowledgeImportRun", "KnowledgeRawPayload", "CurationDelegationRecord", "KnowledgeArtifact", "CategorySet", "Category",
16
+ "CategoryKeyword", "LexicalSteeringRule", "SteeringProposal", "SteeringDecision", "Reference", "ReferenceAttachment",
17
+ "SemanticNode", "Message", "MessageThread", "ModelAttachment", "SemanticRelationType", "SemanticRelation", "Tag", "ItemTag",
18
+ "Edition", "EditionItem", "PublishedEdition", "PublishedEditionItem", "PublishedCategorySet", "PublishedCategory",
19
+ "EditorialPolicy", "EditorialCheckSettings", "EditorialFeedback", "EditorialCheckRun", "Proposal", "ReaderProfile",
20
+ "ReaderHandle", "ReaderVote", "ReaderFlag", "ReaderComment", "ReaderSubmission", "ReaderReport", "ModerationAction",
21
+ "SignupEntry", "LocalizationRequest",
22
+ ]);
7
23
  const TENANT_KEY_SEPARATOR = "#";
8
24
  const TENANT_ID_PATTERN = /^[a-z0-9][a-z0-9-]{0,62}$/;
9
25
  export function validateTenantId(tenantId) {
@@ -6,6 +6,25 @@ export function isSharedStack(environment: Record<string, string | undefined> =
6
6
  return environment[TENANCY_MODE_ENVIRONMENT_VARIABLE]?.trim().toLowerCase() === "shared";
7
7
  }
8
8
 
9
+
10
+ /** Models whose rows carry a `tenantId` and tenant-shaped keys (twin of TENANT_MODELS in src/papyrus_content/tenancy.py; scripts/test-function-tenant-context.ts checks both against the schema). */
11
+ export const TENANT_MODELS: ReadonlySet<string> = new Set([
12
+ "Item", "PublishedItem", "MediaAsset", "PublishedMediaAsset", "NewsroomSection",
13
+ ]);
14
+
15
+ /** Models that carry an optional `tenantId` and nothing else tenant-shaped (twin of TENANT_FIELD_MODELS in tenancy.py). */
16
+ export const TENANT_FIELD_MODELS: ReadonlySet<string> = new Set([
17
+ "UserRoleAssignment", "Assignment", "AssignmentEvent", "ProcedureDefinition", "ProcedureVersion", "ProcedureRun",
18
+ "Automation", "ReviewRequest", "ReviewReadMark", "StoryVariation", "ReviewRecipientRule", "KnowledgeCorpus",
19
+ "KnowledgeImportRun", "KnowledgeRawPayload", "CurationDelegationRecord", "KnowledgeArtifact", "CategorySet", "Category",
20
+ "CategoryKeyword", "LexicalSteeringRule", "SteeringProposal", "SteeringDecision", "Reference", "ReferenceAttachment",
21
+ "SemanticNode", "Message", "MessageThread", "ModelAttachment", "SemanticRelationType", "SemanticRelation", "Tag", "ItemTag",
22
+ "Edition", "EditionItem", "PublishedEdition", "PublishedEditionItem", "PublishedCategorySet", "PublishedCategory",
23
+ "EditorialPolicy", "EditorialCheckSettings", "EditorialFeedback", "EditorialCheckRun", "Proposal", "ReaderProfile",
24
+ "ReaderHandle", "ReaderVote", "ReaderFlag", "ReaderComment", "ReaderSubmission", "ReaderReport", "ModerationAction",
25
+ "SignupEntry", "LocalizationRequest",
26
+ ]);
27
+
9
28
  const TENANT_KEY_SEPARATOR = "#";
10
29
  const TENANT_ID_PATTERN = /^[a-z0-9][a-z0-9-]{0,62}$/;
11
30
 
package/package.json CHANGED
@@ -242,6 +242,7 @@
242
242
  "./components/use-indexed-reference-feed": "./components/use-indexed-reference-feed.ts",
243
243
  "./components/use-media-query": "./components/use-media-query.ts",
244
244
  "./components/use-near-viewport": "./components/use-near-viewport.ts",
245
+ "./components/use-newsroom-desk-sections": "./components/use-newsroom-desk-sections.ts",
245
246
  "./components/use-paged-content-item-versions": "./components/use-paged-content-item-versions.ts",
246
247
  "./components/use-reference-preview-attachments": "./components/use-reference-preview-attachments.ts",
247
248
  "./components/use-reference-ratings": "./components/use-reference-ratings.ts",
@@ -637,7 +638,7 @@
637
638
  "optional": true
638
639
  }
639
640
  },
640
- "version": "5.110.0",
641
+ "version": "5.112.0-next.1",
641
642
  "dependencies": {
642
643
  "@aws-amplify/adapter-nextjs": "^1.7.3",
643
644
  "@aws-crypto/sha256-js": "5.2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.110.0",
2
+ "version": "5.112.0-next.1",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",