@getuserfeedback/adapters 0.5.1 → 0.5.2

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/README.md CHANGED
@@ -46,8 +46,10 @@ Template generation:
46
46
 
47
47
  The GTM template no longer exposes consent settings in its UI.
48
48
 
49
- - Default consent is derived automatically from Google Consent Mode state.
50
- - `analytics.measurement` follows `analytics.storage`.
49
+ - The template follows GTM Consent Mode directly.
50
+ - getuserfeedback `defaultConsent` scopes are inferred from GTM's standard consent signals only.
51
+ - `analytics.measurement` follows `analytics_storage`.
52
+ - There is no custom consent remapping UI or runtime path.
51
53
  - If no GTM consent state is available, the adapter leaves `defaultConsent` unset.
52
54
 
53
55
  ### Color scheme behavior
@@ -541,7 +541,7 @@ const getConsentState = function() {
541
541
  return result;
542
542
  };
543
543
 
544
- const buildDefaultConsent = function(templateData) {
544
+ const deriveDefaultConsentFromGtmConsentState = function() {
545
545
  const consentState = getConsentState();
546
546
  const grantedScopeLookup = {};
547
547
  const grantedScopes = [];
@@ -617,7 +617,7 @@ if (colorScheme !== undefined) {
617
617
  initOptions.colorScheme = colorScheme;
618
618
  }
619
619
 
620
- const defaultConsent = buildDefaultConsent(data);
620
+ const defaultConsent = deriveDefaultConsentFromGtmConsentState();
621
621
  if (defaultConsent !== undefined) {
622
622
  initOptions.defaultConsent = defaultConsent;
623
623
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getuserfeedback/adapters",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "getuserfeedback integration adapters",
5
5
  "keywords": [
6
6
  "getuserfeedback",