From b0643c3811ceefaea28a2b6cb5f89975f00cac88 Mon Sep 17 00:00:00 2001 From: Aaron Putterman <60486980+abp6318@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:05:20 -0500 Subject: [PATCH] feat: set the aria level for all location pickers using config editor to 3 --- package-lock.json | 2 +- packages/common/src/content/_internal/ContentUiSchemaEdit.ts | 1 + .../common/src/discussions/_internal/DiscussionUiSchemaEdit.ts | 1 + packages/common/src/events/_internal/EventUiSchemaEdit.ts | 1 + .../src/initiatives/_internal/InitiativeUiSchemaCreate.ts | 1 + .../common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts | 1 + packages/common/src/pages/_internal/PageUiSchemaEdit.ts | 1 + packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts | 1 + packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts | 1 + packages/common/src/sites/_internal/SiteUiSchemaEdit.ts | 1 + .../common/test/content/_internal/ContentUiSchemaEdit.test.ts | 1 + .../test/discussions/_internal/DiscussionUiSchemaEdit.test.ts | 2 ++ packages/common/test/events/_internal/EventUiSchemaEdit.test.ts | 1 + .../test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts | 2 ++ .../test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts | 2 ++ packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts | 1 + .../test/projects/_internal/ProjectUiSchemaCreate.test.ts | 1 + .../common/test/projects/_internal/ProjectUiSchemaEdit.test.ts | 2 ++ packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts | 1 + 19 files changed, 23 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 563ab57bc00..d53686eb27b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65023,7 +65023,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "15.18.2", + "version": "15.19.0", "license": "Apache-2.0", "dependencies": { "@terraformer/arcgis": "^2.1.2", diff --git a/packages/common/src/content/_internal/ContentUiSchemaEdit.ts b/packages/common/src/content/_internal/ContentUiSchemaEdit.ts index dec6a661493..e778d6db3e4 100644 --- a/packages/common/src/content/_internal/ContentUiSchemaEdit.ts +++ b/packages/common/src/content/_internal/ContentUiSchemaEdit.ts @@ -152,6 +152,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts b/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts index ef2e5f6bd27..cfa81b21a31 100644 --- a/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts +++ b/packages/common/src/discussions/_internal/DiscussionUiSchemaEdit.ts @@ -106,6 +106,7 @@ export const buildUiSchema = async ( context.hubRequestOptions ), mapTools: ["polygon", "rectangle"], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/events/_internal/EventUiSchemaEdit.ts b/packages/common/src/events/_internal/EventUiSchemaEdit.ts index 28c11875e31..7a0856a6324 100644 --- a/packages/common/src/events/_internal/EventUiSchemaEdit.ts +++ b/packages/common/src/events/_internal/EventUiSchemaEdit.ts @@ -220,6 +220,7 @@ export const buildUiSchema = async ( hidden: true, }, ], + noticeTitleElementAriaLevel: 3, }, }, { diff --git a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts index c9e459e3bc2..4e401e380db 100644 --- a/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts +++ b/packages/common/src/initiatives/_internal/InitiativeUiSchemaCreate.ts @@ -175,6 +175,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts b/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts index d657867823c..20cb9576612 100644 --- a/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts +++ b/packages/common/src/initiatives/_internal/InitiativeUiSchemaEdit.ts @@ -180,6 +180,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/pages/_internal/PageUiSchemaEdit.ts b/packages/common/src/pages/_internal/PageUiSchemaEdit.ts index b17a590fec1..e5c424ccefe 100644 --- a/packages/common/src/pages/_internal/PageUiSchemaEdit.ts +++ b/packages/common/src/pages/_internal/PageUiSchemaEdit.ts @@ -139,6 +139,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts b/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts index 90314a79490..ded5cfa8397 100644 --- a/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts +++ b/packages/common/src/projects/_internal/ProjectUiSchemaCreate.ts @@ -157,6 +157,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts b/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts index e4f8b52490e..f0b6ed397e8 100644 --- a/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts +++ b/packages/common/src/projects/_internal/ProjectUiSchemaEdit.ts @@ -146,6 +146,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts b/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts index d45dfc6d218..8239f96eaf3 100644 --- a/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts +++ b/packages/common/src/sites/_internal/SiteUiSchemaEdit.ts @@ -139,6 +139,7 @@ export const buildUiSchema = async ( context.portal.name, context.hubRequestOptions ), + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts b/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts index dcd895dcaf9..3891bfa8979 100644 --- a/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts +++ b/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts @@ -244,6 +244,7 @@ describe("buildUiSchema: content edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts index 5134a65edcb..1fd3b6fc4c8 100644 --- a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts +++ b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts @@ -158,6 +158,7 @@ describe("buildUiSchema: discussion edit", () => { extent: [], options: [], mapTools: ["polygon", "rectangle"], + noticeTitleElementAriaLevel: 3, }, }, ], @@ -403,6 +404,7 @@ describe("buildUiSchema: discussion edit", () => { extent: [], options: [], mapTools: ["polygon", "rectangle"], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts b/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts index 93b29c19195..6a7cfd41735 100644 --- a/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts +++ b/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts @@ -330,6 +330,7 @@ describe("EventUiSchemaEdit", () => { hidden: true, }, ], + noticeTitleElementAriaLevel: 3, }, }, { diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts index c777557439e..b2f74801867 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts @@ -175,6 +175,7 @@ describe("buildUiSchema: initiative create", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], @@ -462,6 +463,7 @@ describe("buildUiSchema: initiative create", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts index 9392ff402aa..57e03f8599a 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts @@ -200,6 +200,7 @@ describe("buildUiSchema: initiative edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], @@ -549,6 +550,7 @@ describe("buildUiSchema: initiative edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts index 82c2c43862e..43bd694203a 100644 --- a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts +++ b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts @@ -245,6 +245,7 @@ describe("buildUiSchema: page edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts index d42637c1619..59301e640cc 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts @@ -152,6 +152,7 @@ describe("buildUiSchema: project create", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts index fd7457cc73d..8ccc5178cd1 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts @@ -166,6 +166,7 @@ describe("buildUiSchema: project edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], @@ -550,6 +551,7 @@ describe("buildUiSchema: project edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ], diff --git a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts index 17aa96f3c7c..4737f1f2143 100644 --- a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts +++ b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts @@ -245,6 +245,7 @@ describe("buildUiSchema: site edit", () => { control: "hub-field-input-location-picker", extent: [], options: [], + noticeTitleElementAriaLevel: 3, }, }, ],