Skip to content

Commit

Permalink
Merge branch 'master' into 11042/download-discussions-csv
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella committed Nov 25, 2024
2 parents 6ac0b2a + 996db0b commit f900ad0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## @esri/hub-common [15.12.1](https://github.com/Esri/hub.js/compare/@esri/[email protected]...@esri/[email protected]) (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/[email protected]...@esri/[email protected]) (2024-11-22)


Expand Down
4 changes: 2 additions & 2 deletions packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/core/schemas/internal/getEditorSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ 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 {
"hub:event:create": () =>
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();
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/events/_internal/EventBusinessRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/events/_internal/EventSchemaCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit f900ad0

Please sign in to comment.