@blotoutio/providers-google-ads-clicks-sdk 1.63.3 → 1.64.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/index.cjs.js CHANGED
@@ -450,7 +450,31 @@ const usStates = new Map([
450
450
  ['US-UM', 'United States Minor Outlying Islands'],
451
451
  ['US-VI', 'Virgin Islands, U.S.'],
452
452
  ]);
453
- new Set([...isoCountries.keys(), ...usStates.keys()]);
453
+ /**
454
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
455
+ * `usStates`. Used by the consent banner's Canada region to offer province
456
+ * selection (Québec is treated specially by the regional consent config).
457
+ */
458
+ const caProvinces = new Map([
459
+ ['CA-AB', 'Alberta'],
460
+ ['CA-BC', 'British Columbia'],
461
+ ['CA-MB', 'Manitoba'],
462
+ ['CA-NB', 'New Brunswick'],
463
+ ['CA-NL', 'Newfoundland and Labrador'],
464
+ ['CA-NS', 'Nova Scotia'],
465
+ ['CA-NT', 'Northwest Territories'],
466
+ ['CA-NU', 'Nunavut'],
467
+ ['CA-ON', 'Ontario'],
468
+ ['CA-PE', 'Prince Edward Island'],
469
+ ['CA-QC', 'Quebec'],
470
+ ['CA-SK', 'Saskatchewan'],
471
+ ['CA-YT', 'Yukon'],
472
+ ]);
473
+ new Set([
474
+ ...isoCountries.keys(),
475
+ ...usStates.keys(),
476
+ ...caProvinces.keys(),
477
+ ]);
454
478
 
455
479
  /**
456
480
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -978,7 +1002,7 @@ const tag = ({ data, eventName, manifestVariables, destination, pageUrl, getEdge
978
1002
  var _a;
979
1003
  const result = {
980
1004
  isFired: false,
981
- sdkVersion: "1.63.3" ,
1005
+ sdkVersion: "1.64.0" ,
982
1006
  };
983
1007
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
984
1008
  return result;
package/index.js CHANGED
@@ -451,7 +451,31 @@ var ProvidersGoogleAdsClicksSdk = (function () {
451
451
  ['US-UM', 'United States Minor Outlying Islands'],
452
452
  ['US-VI', 'Virgin Islands, U.S.'],
453
453
  ]);
454
- new Set([...isoCountries.keys(), ...usStates.keys()]);
454
+ /**
455
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
456
+ * `usStates`. Used by the consent banner's Canada region to offer province
457
+ * selection (Québec is treated specially by the regional consent config).
458
+ */
459
+ const caProvinces = new Map([
460
+ ['CA-AB', 'Alberta'],
461
+ ['CA-BC', 'British Columbia'],
462
+ ['CA-MB', 'Manitoba'],
463
+ ['CA-NB', 'New Brunswick'],
464
+ ['CA-NL', 'Newfoundland and Labrador'],
465
+ ['CA-NS', 'Nova Scotia'],
466
+ ['CA-NT', 'Northwest Territories'],
467
+ ['CA-NU', 'Nunavut'],
468
+ ['CA-ON', 'Ontario'],
469
+ ['CA-PE', 'Prince Edward Island'],
470
+ ['CA-QC', 'Quebec'],
471
+ ['CA-SK', 'Saskatchewan'],
472
+ ['CA-YT', 'Yukon'],
473
+ ]);
474
+ new Set([
475
+ ...isoCountries.keys(),
476
+ ...usStates.keys(),
477
+ ...caProvinces.keys(),
478
+ ]);
455
479
 
456
480
  /**
457
481
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -979,7 +1003,7 @@ var ProvidersGoogleAdsClicksSdk = (function () {
979
1003
  var _a;
980
1004
  const result = {
981
1005
  isFired: false,
982
- sdkVersion: "1.63.3" ,
1006
+ sdkVersion: "1.64.0" ,
983
1007
  };
984
1008
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
985
1009
  return result;
package/index.mjs CHANGED
@@ -448,7 +448,31 @@ const usStates = new Map([
448
448
  ['US-UM', 'United States Minor Outlying Islands'],
449
449
  ['US-VI', 'Virgin Islands, U.S.'],
450
450
  ]);
451
- new Set([...isoCountries.keys(), ...usStates.keys()]);
451
+ /**
452
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
453
+ * `usStates`. Used by the consent banner's Canada region to offer province
454
+ * selection (Québec is treated specially by the regional consent config).
455
+ */
456
+ const caProvinces = new Map([
457
+ ['CA-AB', 'Alberta'],
458
+ ['CA-BC', 'British Columbia'],
459
+ ['CA-MB', 'Manitoba'],
460
+ ['CA-NB', 'New Brunswick'],
461
+ ['CA-NL', 'Newfoundland and Labrador'],
462
+ ['CA-NS', 'Nova Scotia'],
463
+ ['CA-NT', 'Northwest Territories'],
464
+ ['CA-NU', 'Nunavut'],
465
+ ['CA-ON', 'Ontario'],
466
+ ['CA-PE', 'Prince Edward Island'],
467
+ ['CA-QC', 'Quebec'],
468
+ ['CA-SK', 'Saskatchewan'],
469
+ ['CA-YT', 'Yukon'],
470
+ ]);
471
+ new Set([
472
+ ...isoCountries.keys(),
473
+ ...usStates.keys(),
474
+ ...caProvinces.keys(),
475
+ ]);
452
476
 
453
477
  /**
454
478
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -976,7 +1000,7 @@ const tag = ({ data, eventName, manifestVariables, destination, pageUrl, getEdge
976
1000
  var _a;
977
1001
  const result = {
978
1002
  isFired: false,
979
- sdkVersion: "1.63.3" ,
1003
+ sdkVersion: "1.64.0" ,
980
1004
  };
981
1005
  if (!eventName || !window.gtag || !(manifestVariables === null || manifestVariables === void 0 ? void 0 : manifestVariables['tagId'])) {
982
1006
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-ads-clicks-sdk",
3
- "version": "1.63.3",
3
+ "version": "1.64.0",
4
4
  "description": "Google Ads Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",