Skip to content

Commit

Permalink
Merge branch 'master' into f/update-getHubRelativeUrl-and-add-siteRel…
Browse files Browse the repository at this point in the history
…ativeEntityType-link
  • Loading branch information
vivzhang authored May 22, 2024
2 parents cb69510 + 548bee9 commit d101ddd
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 21 deletions.
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 [14.133.1](https://github.com/Esri/hub.js/compare/@esri/[email protected]...@esri/[email protected]) (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/[email protected]...@esri/[email protected]) (2024-05-17)


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": "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",
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/events/_internal/EventSchemaEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const buildSchema = (): IConfigurationSchema => {
startDate: {
type: "string",
format: "date",
formatMinimum: minStartDate,
},
endDate: {
type: "string",
Expand Down
8 changes: 0 additions & 8 deletions packages/common/src/events/_internal/EventUiSchemaEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,13 @@ export const buildUiSchema = async (
type: "Control",
options: {
control: "hub-field-input-date",
min: minStartEndDate,
messages: [
{
type: "ERROR",
keyword: "required",
icon: true,
labelKey: `${i18nScope}.fields.startDate.requiredError`,
},
{
type: "ERROR",
keyword: "formatMinimum",
icon: true,
labelKey: `${i18nScope}.fields.startDate.minDateError`,
},
],
},
},
Expand All @@ -105,7 +98,6 @@ export const buildUiSchema = async (
type: "Control",
options: {
control: "hub-field-input-date",
min: minStartEndDate,
messages: [
{
type: "ERROR",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe("EventSchemaEdit", () => {
startDate: {
type: "string",
format: "date",
formatMinimum: datesAndTimes.startDate,
},
endDate: {
type: "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,13 @@ describe("EventUiSchemaEdit", () => {
type: "Control",
options: {
control: "hub-field-input-date",
min: "2024-04-03",
messages: [
{
type: "ERROR",
keyword: "required",
icon: true,
labelKey: `myI18nScope.fields.startDate.requiredError`,
},
{
type: "ERROR",
keyword: "formatMinimum",
icon: true,
labelKey: `myI18nScope.fields.startDate.minDateError`,
},
],
},
},
Expand All @@ -185,7 +178,6 @@ describe("EventUiSchemaEdit", () => {
type: "Control",
options: {
control: "hub-field-input-date",
min: "2024-04-03",
messages: [
{
type: "ERROR",
Expand Down

0 comments on commit d101ddd

Please sign in to comment.