@c8y/ngx-components 1023.9.0 → 1023.10.1
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/branding/plain-branding-editor/index.d.ts +2 -1
- package/branding/plain-branding-editor/index.d.ts.map +1 -1
- package/branding/plain-branding-editor/lazy/index.d.ts +4 -0
- package/branding/plain-branding-editor/lazy/index.d.ts.map +1 -1
- package/branding/shared/data/index.d.ts +15 -10
- package/branding/shared/data/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs +21 -5
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor-lazy.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs +11 -1
- package/fesm2022/c8y-ngx-components-branding-plain-branding-editor.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +22 -26
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/locales/de.po +41 -32
- package/locales/es.po +41 -32
- package/locales/fr.po +41 -32
- package/locales/ja_JP.po +41 -32
- package/locales/ko.po +41 -32
- package/locales/nl.po +41 -32
- package/locales/pl.po +41 -32
- package/locales/pt_BR.po +41 -32
- package/locales/zh_CN.po +41 -32
- package/locales/zh_TW.po +41 -32
- package/package.json +1 -1
|
@@ -8285,11 +8285,20 @@ class UserPreferencesService {
|
|
|
8285
8285
|
return await currentUserStorage.get(customPropertiesKey);
|
|
8286
8286
|
}
|
|
8287
8287
|
else {
|
|
8288
|
-
const localOrInventoryStorage = this.getStorage(user);
|
|
8289
8288
|
const transformedRawKey = this.getTransformedRawKey(key, user);
|
|
8290
8289
|
const rawKey = this.getRawKey(key, user);
|
|
8291
|
-
|
|
8292
|
-
|
|
8290
|
+
let valueFromStorage = (await this.storage.local.get(transformedRawKey)) || (await this.storage.local.get(rawKey));
|
|
8291
|
+
if (valueFromStorage === undefined) {
|
|
8292
|
+
// only still here as a fallback for old preferences stored in inventory
|
|
8293
|
+
// new settings are no longer stored in inventory
|
|
8294
|
+
valueFromStorage =
|
|
8295
|
+
(await this.storage.inventory.get(transformedRawKey)) ||
|
|
8296
|
+
(await this.storage.inventory.get(rawKey));
|
|
8297
|
+
// save request to the inventory next time by storing the retrieved value in local storage
|
|
8298
|
+
if (valueFromStorage !== undefined && !currentUserStorage) {
|
|
8299
|
+
this.storage.local.set(rawKey, valueFromStorage);
|
|
8300
|
+
}
|
|
8301
|
+
}
|
|
8293
8302
|
if (valueFromStorage === undefined) {
|
|
8294
8303
|
return undefined;
|
|
8295
8304
|
}
|
|
@@ -9755,7 +9764,7 @@ class GainsightService {
|
|
|
9755
9764
|
*/
|
|
9756
9765
|
identify(sendPiiData, identifyData) {
|
|
9757
9766
|
const windowRef = window;
|
|
9758
|
-
const { id: userId, email, roles } = identifyData.user;
|
|
9767
|
+
const { id: userId, email, userName, firstName, lastName, roles } = identifyData.user;
|
|
9759
9768
|
const { name: tenantID, customProperties, domainName } = identifyData.currentTenant;
|
|
9760
9769
|
const { instanceId, versionUI, versionBE } = identifyData;
|
|
9761
9770
|
/**
|
|
@@ -9766,17 +9775,13 @@ class GainsightService {
|
|
|
9766
9775
|
* Due to GS limitations (GS does not allow clearing user attr/preferences via the GS tag!),
|
|
9767
9776
|
* we always need to initialize fields related to PII to prevent leaking this data to GS when the user has disabled functional cookies.
|
|
9768
9777
|
*/
|
|
9769
|
-
const
|
|
9778
|
+
const baseIdentify = {
|
|
9770
9779
|
/**
|
|
9771
9780
|
* Email was not mandatory form field until 10.14
|
|
9772
9781
|
*/
|
|
9773
9782
|
id: email ? email : `${userId}_${tenantID}_${instanceId}`,
|
|
9774
9783
|
isUserCreatedAfterAnonymizationWasActivated: true,
|
|
9775
|
-
tenantID
|
|
9776
|
-
email: '--',
|
|
9777
|
-
userName: '--',
|
|
9778
|
-
firstName: '--',
|
|
9779
|
-
lastName: '--',
|
|
9784
|
+
tenantID,
|
|
9780
9785
|
domainName,
|
|
9781
9786
|
versionUI,
|
|
9782
9787
|
versionBE,
|
|
@@ -9788,22 +9793,13 @@ class GainsightService {
|
|
|
9788
9793
|
customBranding: this.isCustomBranding(),
|
|
9789
9794
|
fullTracking: sendPiiData
|
|
9790
9795
|
};
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
lastName
|
|
9799
|
-
};
|
|
9800
|
-
windowRef[this.GAINSIGHT_GLOBAL_SCOPE]('identify', extendedIdentify, {
|
|
9801
|
-
id: `${tenantID}_${instanceId}`,
|
|
9802
|
-
instanceId
|
|
9803
|
-
});
|
|
9804
|
-
return;
|
|
9805
|
-
}
|
|
9806
|
-
windowRef[this.GAINSIGHT_GLOBAL_SCOPE]('identify', requiredIdentify);
|
|
9796
|
+
const identifyPayload = sendPiiData
|
|
9797
|
+
? { ...baseIdentify, email, userName, firstName, lastName }
|
|
9798
|
+
: { ...baseIdentify, email: '--', userName: '--', firstName: '--', lastName: '--' };
|
|
9799
|
+
windowRef[this.GAINSIGHT_GLOBAL_SCOPE]('identify', identifyPayload, {
|
|
9800
|
+
id: `${tenantID}_${instanceId}`,
|
|
9801
|
+
instanceId
|
|
9802
|
+
});
|
|
9807
9803
|
}
|
|
9808
9804
|
/**
|
|
9809
9805
|
* Triggers an event to be recorded by Gainsight PX.
|