Skip to content

Commit

Permalink
fix: update privacy config schema (#1276)
Browse files Browse the repository at this point in the history
affects: @esri/hub-common
  • Loading branch information
mjuniper authored Oct 13, 2023
1 parent 9d14231 commit 7a3bb3f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 32 deletions.
52 changes: 20 additions & 32 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/common/src/core/schemas/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./types";
export * from "./getEditorConfig";
export * from "./shared";
34 changes: 34 additions & 0 deletions packages/common/src/core/schemas/shared/subschemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,40 @@ export const PRIVACY_CONFIG_SCHEMA = {
properties: {
consentNotice: {
type: "object",
properties: {
allowPrivacyConfig: {
type: "boolean",
default: false,
},
blocking: {
type: "boolean",
default: false,
},
disclaimer: {
type: "array",
items: [
{
type: "object",
properties: {
text: {
type: "string",
},
lang: {
type: "string",
},
default: {
type: "boolean",
},
},
},
],
},
policyURL: {
type: "string",
pattern:
"^(https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w.-]*)*\\/?$|^$",
},
},
},
},
};

0 comments on commit 7a3bb3f

Please sign in to comment.