@adobe/spacecat-shared-data-access 2.94.0 → 2.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/models/site/config.js +8 -0
- package/src/models/site/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.95.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.94.0...@adobe/spacecat-shared-data-access-v2.95.0) (2026-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add autofixExcludedURLs configuration support for meta-tags opportunity ([#1258](https://github.com/adobe/spacecat-shared/issues/1258)) ([b5c5025](https://github.com/adobe/spacecat-shared/commit/b5c50250bb067799b352d98ab3ee860f3db324b4))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.94.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.93.0...@adobe/spacecat-shared-data-access-v2.94.0) (2026-01-15)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -350,6 +350,7 @@ export const configSchema = Joi.object({
|
|
|
350
350
|
handlers: Joi.object().pattern(Joi.string(), Joi.object({
|
|
351
351
|
mentions: Joi.object().pattern(Joi.string(), Joi.array().items(Joi.string())),
|
|
352
352
|
excludedURLs: Joi.array().items(Joi.string()),
|
|
353
|
+
autofixExcludedURLs: Joi.array().items(Joi.string()),
|
|
353
354
|
manualOverwrites: Joi.array().items(Joi.object({
|
|
354
355
|
brokenTargetURL: Joi.string().optional(),
|
|
355
356
|
targetURL: Joi.string().optional(),
|
|
@@ -429,6 +430,7 @@ export const Config = (data = {}) => {
|
|
|
429
430
|
self.getHandlers = () => state.handlers;
|
|
430
431
|
self.getImports = () => state.imports;
|
|
431
432
|
self.getExcludedURLs = (type) => state?.handlers?.[type]?.excludedURLs;
|
|
433
|
+
self.getAutofixExcludedURLs = (type) => state?.handlers?.[type]?.autofixExcludedURLs;
|
|
432
434
|
self.getManualOverwrites = (type) => state?.handlers?.[type]?.manualOverwrites;
|
|
433
435
|
self.getFixedURLs = (type) => state?.handlers?.[type]?.fixedURLs;
|
|
434
436
|
self.getIncludedURLs = (type) => state?.handlers?.[type]?.includedURLs;
|
|
@@ -619,6 +621,12 @@ export const Config = (data = {}) => {
|
|
|
619
621
|
state.handlers[type].excludedURLs = excludedURLs;
|
|
620
622
|
};
|
|
621
623
|
|
|
624
|
+
self.updateAutofixExcludedURLs = (type, autofixExcludedURLs) => {
|
|
625
|
+
state.handlers = state.handlers || {};
|
|
626
|
+
state.handlers[type] = state.handlers[type] || {};
|
|
627
|
+
state.handlers[type].autofixExcludedURLs = autofixExcludedURLs;
|
|
628
|
+
};
|
|
629
|
+
|
|
622
630
|
self.updateManualOverwrites = (type, manualOverwrites) => {
|
|
623
631
|
state.handlers = state.handlers || {};
|
|
624
632
|
state.handlers[type] = state.handlers[type] || {};
|
|
@@ -109,6 +109,7 @@ export interface SiteConfig {
|
|
|
109
109
|
handlers?: Record<string, {
|
|
110
110
|
mentions?: Record<string, string[]>;
|
|
111
111
|
excludedURLs?: string[];
|
|
112
|
+
autofixExcludedURLs?: string[];
|
|
112
113
|
manualOverwrites?: Array<{
|
|
113
114
|
brokenTargetURL?: string;
|
|
114
115
|
targetURL?: string;
|
|
@@ -156,6 +157,7 @@ export interface SiteConfig {
|
|
|
156
157
|
getHandlerConfig(type: string): object;
|
|
157
158
|
getSlackMentions(type: string): string[] | undefined;
|
|
158
159
|
getExcludedURLs(type: string): string[] | undefined;
|
|
160
|
+
getAutofixExcludedURLs(type: string): string[] | undefined;
|
|
159
161
|
getManualOverwrites(type: string):
|
|
160
162
|
Array<{ brokenTargetURL?: string; targetURL?: string }> | undefined;
|
|
161
163
|
getFixedURLs(type: string): Array<{ brokenTargetURL?: string; targetURL?: string }> | undefined;
|