@adobe/spacecat-shared-data-access 3.0.1 → 3.1.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 +6 -0
- package/package.json +1 -1
- package/src/models/site/config.js +13 -0
- package/src/models/site/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.1.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.0.1...@adobe/spacecat-shared-data-access-v3.1.0) (2026-02-18)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add methods to manage LLMO tags | LLMO-3058 ([#1362](https://github.com/adobe/spacecat-shared/issues/1362)) ([c678d1a](https://github.com/adobe/spacecat-shared/commit/c678d1ad6e12febeeae6cc60211bb0cbf9f922a4))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v3.0.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.0.0...@adobe/spacecat-shared-data-access-v3.0.1) (2026-02-17)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -605,6 +605,19 @@ export const Config = (data = {}) => {
|
|
|
605
605
|
state.llmo.cdnBucketConfig = cdnBucketConfig;
|
|
606
606
|
};
|
|
607
607
|
|
|
608
|
+
self.addLlmoTag = (tag) => {
|
|
609
|
+
state.llmo = state.llmo || {};
|
|
610
|
+
state.llmo.tags = state.llmo.tags || [];
|
|
611
|
+
if (!state.llmo.tags.includes(tag)) {
|
|
612
|
+
state.llmo.tags.push(tag);
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
self.removeLlmoTag = (tag) => {
|
|
617
|
+
if (!state.llmo?.tags) return;
|
|
618
|
+
state.llmo.tags = state.llmo.tags.filter((t) => t !== tag);
|
|
619
|
+
};
|
|
620
|
+
|
|
608
621
|
self.updateImports = (imports) => {
|
|
609
622
|
state.imports = imports;
|
|
610
623
|
};
|
|
@@ -194,6 +194,8 @@ export interface SiteConfig {
|
|
|
194
194
|
addLlmoCustomerIntent(customerIntentItems: Array<LlmoCustomerIntent>): void;
|
|
195
195
|
removeLlmoCustomerIntent(intentKey: string): void;
|
|
196
196
|
updateLlmoCustomerIntent(intentKey: string, updateData: Partial<LlmoCustomerIntent>): void;
|
|
197
|
+
addLlmoTag(tag: string): void;
|
|
198
|
+
removeLlmoTag(tag: string): void;
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
export interface Site extends BaseModel {
|