diff --git a/package-lock.json b/package-lock.json index 319f36b5ece..dd384b68445 100644 --- a/package-lock.json +++ b/package-lock.json @@ -65017,7 +65017,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "15.11.0", + "version": "15.12.1", "license": "Apache-2.0", "dependencies": { "@terraformer/arcgis": "^2.1.2", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 6fae5fe90b0..8ea047625ab 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,3 +1,10 @@ +## @esri/hub-common [15.12.1](https://github.com/Esri/hub.js/compare/@esri/hub-common@15.12.0...@esri/hub-common@15.12.1) (2024-11-25) + + +### Bug Fixes + +* **hub-common:** rename hub:event:workspace:attendees permission ([#1737](https://github.com/Esri/hub.js/issues/1737)) ([a96ecdc](https://github.com/Esri/hub.js/commit/a96ecdcec164640478c8a3606d9d5a6700102d22)) + # @esri/hub-common [15.12.0](https://github.com/Esri/hub.js/compare/@esri/hub-common@15.11.0...@esri/hub-common@15.12.0) (2024-11-22) diff --git a/packages/common/package-lock.json b/packages/common/package-lock.json index 8d86858316d..652c8ef36f7 100644 --- a/packages/common/package-lock.json +++ b/packages/common/package-lock.json @@ -1,12 +1,12 @@ { "name": "@esri/hub-common", - "version": "15.12.0", + "version": "15.12.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@esri/hub-common", - "version": "15.12.0", + "version": "15.12.1", "license": "Apache-2.0", "dependencies": { "@terraformer/arcgis": "^2.1.2", diff --git a/packages/common/package.json b/packages/common/package.json index c82b01a5249..84bd7688eed 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@esri/hub-common", - "version": "15.12.0", + "version": "15.12.1", "description": "Common TypeScript types and utility functions for @esri/hub.js.", "main": "dist/node/index.js", "module": "dist/esm/index.js", diff --git a/packages/common/src/core/schemas/internal/getEditorSchemas.ts b/packages/common/src/core/schemas/internal/getEditorSchemas.ts index 05af3bf5c81..60399055ea6 100644 --- a/packages/common/src/core/schemas/internal/getEditorSchemas.ts +++ b/packages/common/src/core/schemas/internal/getEditorSchemas.ts @@ -363,7 +363,7 @@ export async function getEditorSchemas( import("../../../events/_internal/EventSchemaCreate"), "hub:event:edit": () => import("../../../events/_internal/EventSchemaEdit"), - "hub:event:attendees": () => + "hub:event:registrants": () => import("../../../events/_internal/EventSchemaAttendeesSettings"), }[type as EventEditorType](); const eventUiSchemaModule = await { @@ -371,7 +371,7 @@ export async function getEditorSchemas( import("../../../events/_internal/EventUiSchemaCreate"), "hub:event:edit": () => import("../../../events/_internal/EventUiSchemaEdit"), - "hub:event:attendees": () => + "hub:event:registrants": () => import("../../../events/_internal/EventUiSchemaAttendeesSettings"), }[type as EventEditorType](); schema = eventSchemaModule.buildSchema(); diff --git a/packages/common/src/events/_internal/EventBusinessRules.ts b/packages/common/src/events/_internal/EventBusinessRules.ts index 1df2757ccaf..8f6c4261780 100644 --- a/packages/common/src/events/_internal/EventBusinessRules.ts +++ b/packages/common/src/events/_internal/EventBusinessRules.ts @@ -19,7 +19,7 @@ export const EventPermissions = [ "hub:event:workspace:settings", "hub:event:workspace:collaborators", "hub:event:workspace:manage", - "hub:event:workspace:attendees", + "hub:event:workspace:registrants", "hub:event:workspace:content", "hub:event:manage", ] as const; @@ -108,7 +108,7 @@ export const EventPermissionPolicies: IPermissionPolicy[] = [ dependencies: ["hub:event:workspace", "hub:event:edit"], }, { - permission: "hub:event:workspace:attendees", + permission: "hub:event:workspace:registrants", dependencies: ["hub:event:workspace", "hub:event:edit"], }, { diff --git a/packages/common/src/events/_internal/EventSchemaCreate.ts b/packages/common/src/events/_internal/EventSchemaCreate.ts index 51bae421bba..734acdd4819 100644 --- a/packages/common/src/events/_internal/EventSchemaCreate.ts +++ b/packages/common/src/events/_internal/EventSchemaCreate.ts @@ -11,7 +11,7 @@ export type EventEditorType = (typeof EventEditorTypes)[number]; export const EventEditorTypes = [ "hub:event:create", "hub:event:edit", - "hub:event:attendees", + "hub:event:registrants", ] as const; /**