diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index d37025ed1e9..f638406ef06 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,3 +1,10 @@ +## @esri/hub-common [14.133.1](https://github.com/Esri/hub.js/compare/@esri/hub-common@14.133.0...@esri/hub-common@14.133.1) (2024-05-21) + + +### Bug Fixes + +* **hub-common:** enable editing for past events ([#1521](https://github.com/Esri/hub.js/issues/1521)) ([8d66da4](https://github.com/Esri/hub.js/commit/8d66da4294eb613fd314feb0244ccbf43b9ab8b6)) + # @esri/hub-common [14.133.0](https://github.com/Esri/hub.js/compare/@esri/hub-common@14.132.0...@esri/hub-common@14.133.0) (2024-05-17) diff --git a/packages/common/package-lock.json b/packages/common/package-lock.json index e4cad880072..10908b10b40 100644 --- a/packages/common/package-lock.json +++ b/packages/common/package-lock.json @@ -1,12 +1,12 @@ { "name": "@esri/hub-common", - "version": "14.133.0", + "version": "14.133.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@esri/hub-common", - "version": "14.133.0", + "version": "14.133.1", "license": "Apache-2.0", "dependencies": { "@terraformer/arcgis": "^2.1.2", diff --git a/packages/common/package.json b/packages/common/package.json index abf74d62dae..300240eab7d 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@esri/hub-common", - "version": "14.133.0", + "version": "14.133.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/events/_internal/EventSchemaEdit.ts b/packages/common/src/events/_internal/EventSchemaEdit.ts index 7e7163290e9..937d760bd05 100644 --- a/packages/common/src/events/_internal/EventSchemaEdit.ts +++ b/packages/common/src/events/_internal/EventSchemaEdit.ts @@ -38,7 +38,6 @@ export const buildSchema = (): IConfigurationSchema => { startDate: { type: "string", format: "date", - formatMinimum: minStartDate, }, endDate: { type: "string", diff --git a/packages/common/src/events/_internal/EventUiSchemaEdit.ts b/packages/common/src/events/_internal/EventUiSchemaEdit.ts index 9dd15a77c06..38999c0a7e8 100644 --- a/packages/common/src/events/_internal/EventUiSchemaEdit.ts +++ b/packages/common/src/events/_internal/EventUiSchemaEdit.ts @@ -82,7 +82,6 @@ export const buildUiSchema = async ( type: "Control", options: { control: "hub-field-input-date", - min: minStartEndDate, messages: [ { type: "ERROR", @@ -90,12 +89,6 @@ export const buildUiSchema = async ( icon: true, labelKey: `${i18nScope}.fields.startDate.requiredError`, }, - { - type: "ERROR", - keyword: "formatMinimum", - icon: true, - labelKey: `${i18nScope}.fields.startDate.minDateError`, - }, ], }, }, @@ -105,7 +98,6 @@ export const buildUiSchema = async ( type: "Control", options: { control: "hub-field-input-date", - min: minStartEndDate, messages: [ { type: "ERROR", diff --git a/packages/common/test/events/_internal/EventSchemaEdit.test.ts b/packages/common/test/events/_internal/EventSchemaEdit.test.ts index 8aed585c1cf..c9d4e58709a 100644 --- a/packages/common/test/events/_internal/EventSchemaEdit.test.ts +++ b/packages/common/test/events/_internal/EventSchemaEdit.test.ts @@ -54,7 +54,6 @@ describe("EventSchemaEdit", () => { startDate: { type: "string", format: "date", - formatMinimum: datesAndTimes.startDate, }, endDate: { type: "string", diff --git a/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts b/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts index bcbce2dca85..fa0cae20e11 100644 --- a/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts +++ b/packages/common/test/events/_internal/EventUiSchemaEdit.test.ts @@ -162,7 +162,6 @@ describe("EventUiSchemaEdit", () => { type: "Control", options: { control: "hub-field-input-date", - min: "2024-04-03", messages: [ { type: "ERROR", @@ -170,12 +169,6 @@ describe("EventUiSchemaEdit", () => { icon: true, labelKey: `myI18nScope.fields.startDate.requiredError`, }, - { - type: "ERROR", - keyword: "formatMinimum", - icon: true, - labelKey: `myI18nScope.fields.startDate.minDateError`, - }, ], }, }, @@ -185,7 +178,6 @@ describe("EventUiSchemaEdit", () => { type: "Control", options: { control: "hub-field-input-date", - min: "2024-04-03", messages: [ { type: "ERROR",