@blotoutio/providers-vibe-co-sdk 1.63.3 → 1.64.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/index.cjs.js CHANGED
@@ -474,7 +474,31 @@ const usStates = new Map([
474
474
  ['US-UM', 'United States Minor Outlying Islands'],
475
475
  ['US-VI', 'Virgin Islands, U.S.'],
476
476
  ]);
477
- new Set([...isoCountries.keys(), ...usStates.keys()]);
477
+ /**
478
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
479
+ * `usStates`. Used by the consent banner's Canada region to offer province
480
+ * selection (Québec is treated specially by the regional consent config).
481
+ */
482
+ const caProvinces = new Map([
483
+ ['CA-AB', 'Alberta'],
484
+ ['CA-BC', 'British Columbia'],
485
+ ['CA-MB', 'Manitoba'],
486
+ ['CA-NB', 'New Brunswick'],
487
+ ['CA-NL', 'Newfoundland and Labrador'],
488
+ ['CA-NS', 'Nova Scotia'],
489
+ ['CA-NT', 'Northwest Territories'],
490
+ ['CA-NU', 'Nunavut'],
491
+ ['CA-ON', 'Ontario'],
492
+ ['CA-PE', 'Prince Edward Island'],
493
+ ['CA-QC', 'Quebec'],
494
+ ['CA-SK', 'Saskatchewan'],
495
+ ['CA-YT', 'Yukon'],
496
+ ]);
497
+ new Set([
498
+ ...isoCountries.keys(),
499
+ ...usStates.keys(),
500
+ ...caProvinces.keys(),
501
+ ]);
478
502
 
479
503
  /**
480
504
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -633,7 +657,7 @@ const triggerEvent = (vbpx, event, data) => {
633
657
  };
634
658
  const tag = ({ data, eventName, manifestVariables }) => {
635
659
  const payload = {
636
- sdkVersion: "1.63.3" ,
660
+ sdkVersion: "1.64.1" ,
637
661
  };
638
662
  if (typeof window === 'undefined' ||
639
663
  !window.vbpx ||
package/index.js CHANGED
@@ -475,7 +475,31 @@ var ProvidersVibeCoSdk = (function () {
475
475
  ['US-UM', 'United States Minor Outlying Islands'],
476
476
  ['US-VI', 'Virgin Islands, U.S.'],
477
477
  ]);
478
- new Set([...isoCountries.keys(), ...usStates.keys()]);
478
+ /**
479
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
480
+ * `usStates`. Used by the consent banner's Canada region to offer province
481
+ * selection (Québec is treated specially by the regional consent config).
482
+ */
483
+ const caProvinces = new Map([
484
+ ['CA-AB', 'Alberta'],
485
+ ['CA-BC', 'British Columbia'],
486
+ ['CA-MB', 'Manitoba'],
487
+ ['CA-NB', 'New Brunswick'],
488
+ ['CA-NL', 'Newfoundland and Labrador'],
489
+ ['CA-NS', 'Nova Scotia'],
490
+ ['CA-NT', 'Northwest Territories'],
491
+ ['CA-NU', 'Nunavut'],
492
+ ['CA-ON', 'Ontario'],
493
+ ['CA-PE', 'Prince Edward Island'],
494
+ ['CA-QC', 'Quebec'],
495
+ ['CA-SK', 'Saskatchewan'],
496
+ ['CA-YT', 'Yukon'],
497
+ ]);
498
+ new Set([
499
+ ...isoCountries.keys(),
500
+ ...usStates.keys(),
501
+ ...caProvinces.keys(),
502
+ ]);
479
503
 
480
504
  /**
481
505
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -634,7 +658,7 @@ var ProvidersVibeCoSdk = (function () {
634
658
  };
635
659
  const tag = ({ data, eventName, manifestVariables }) => {
636
660
  const payload = {
637
- sdkVersion: "1.63.3" ,
661
+ sdkVersion: "1.64.1" ,
638
662
  };
639
663
  if (typeof window === 'undefined' ||
640
664
  !window.vbpx ||
package/index.mjs CHANGED
@@ -472,7 +472,31 @@ const usStates = new Map([
472
472
  ['US-UM', 'United States Minor Outlying Islands'],
473
473
  ['US-VI', 'Virgin Islands, U.S.'],
474
474
  ]);
475
- new Set([...isoCountries.keys(), ...usStates.keys()]);
475
+ /**
476
+ * ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
477
+ * `usStates`. Used by the consent banner's Canada region to offer province
478
+ * selection (Québec is treated specially by the regional consent config).
479
+ */
480
+ const caProvinces = new Map([
481
+ ['CA-AB', 'Alberta'],
482
+ ['CA-BC', 'British Columbia'],
483
+ ['CA-MB', 'Manitoba'],
484
+ ['CA-NB', 'New Brunswick'],
485
+ ['CA-NL', 'Newfoundland and Labrador'],
486
+ ['CA-NS', 'Nova Scotia'],
487
+ ['CA-NT', 'Northwest Territories'],
488
+ ['CA-NU', 'Nunavut'],
489
+ ['CA-ON', 'Ontario'],
490
+ ['CA-PE', 'Prince Edward Island'],
491
+ ['CA-QC', 'Quebec'],
492
+ ['CA-SK', 'Saskatchewan'],
493
+ ['CA-YT', 'Yukon'],
494
+ ]);
495
+ new Set([
496
+ ...isoCountries.keys(),
497
+ ...usStates.keys(),
498
+ ...caProvinces.keys(),
499
+ ]);
476
500
 
477
501
  /**
478
502
  * Exact utm_source normalization (lowercase key → canonical name).
@@ -631,7 +655,7 @@ const triggerEvent = (vbpx, event, data) => {
631
655
  };
632
656
  const tag = ({ data, eventName, manifestVariables }) => {
633
657
  const payload = {
634
- sdkVersion: "1.63.3" ,
658
+ sdkVersion: "1.64.1" ,
635
659
  };
636
660
  if (typeof window === 'undefined' ||
637
661
  !window.vbpx ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-vibe-co-sdk",
3
- "version": "1.63.3",
3
+ "version": "1.64.1",
4
4
  "description": "Vibe Co Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",