diff --git a/package-lock.json b/package-lock.json index d6a9cb51a46..1b34c4310f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22659,10 +22659,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseuniq": { "version": "4.6.0", @@ -22677,24 +22676,21 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "lodash._getnative": "^3.0.0" } @@ -22708,10 +22704,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._root": { "version": "3.0.1", @@ -22729,10 +22724,9 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.union": { "version": "4.6.0", @@ -64987,7 +64981,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "14.35.0", + "version": "14.36.0", "license": "Apache-2.0", "dependencies": { "abab": "^2.0.5", @@ -65013,7 +65007,7 @@ }, "packages/discussions": { "name": "@esri/hub-discussions", - "version": "26.1.1", + "version": "26.1.2", "license": "Apache-2.0", "dependencies": { "tslib": "^1.13.0" @@ -65112,7 +65106,7 @@ }, "packages/sites": { "name": "@esri/hub-sites", - "version": "14.1.0", + "version": "14.2.0", "license": "Apache-2.0", "dependencies": { "tslib": "^1.13.0" @@ -83407,8 +83401,7 @@ "lodash._baseindexof": { "version": "3.1.0", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -83423,20 +83416,17 @@ "lodash._bindcallback": { "version": "3.0.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._cacheindexof": { "version": "3.0.2", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, - "dev": true, - "peer": true, + "extraneous": true, "requires": { "lodash._getnative": "^3.0.0" } @@ -83450,8 +83440,7 @@ "lodash._getnative": { "version": "3.9.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash._root": { "version": "3.0.1", @@ -83468,8 +83457,7 @@ "lodash.restparam": { "version": "3.6.1", "bundled": true, - "dev": true, - "peer": true + "extraneous": true }, "lodash.union": { "version": "4.6.0", diff --git a/packages/common/src/core/schemas/index.ts b/packages/common/src/core/schemas/index.ts index abbf6a485c8..9c01f562ab3 100644 --- a/packages/common/src/core/schemas/index.ts +++ b/packages/common/src/core/schemas/index.ts @@ -1,2 +1,3 @@ export * from "./types"; export * from "./getEditorConfig"; +export * from "./shared"; diff --git a/packages/common/src/core/schemas/shared/subschemas.ts b/packages/common/src/core/schemas/shared/subschemas.ts index c9285adc03e..b2e0f6376f1 100644 --- a/packages/common/src/core/schemas/shared/subschemas.ts +++ b/packages/common/src/core/schemas/shared/subschemas.ts @@ -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.-]*)*\\/?$|^$", + }, + }, }, }, };