@alexandregme/zljs 2.1.1 → 2.1.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/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ A change that needs action in an app has a **Migration** note. When updating, re
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [2.1.2] - 2026-11-04
12
+
13
+ ### Fixed
14
+
15
+ - `WhatsAppButton` opens `whatsapp://send` on a phone, the scheme in Meta's iOS docs. It opened `whatsapp-business://send`, which is in no official doc: on an iPhone with WhatsApp Business installed, Safari said the address was invalid. On Android, a phone with both apps asks which one to use; on an iPhone, iOS picks one of them
16
+
11
17
  ## [2.1.0] - 2026-11-03
12
18
 
13
19
  ### Added
@@ -369,7 +375,8 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
369
375
 
370
376
  The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
371
377
 
372
- [Unreleased]: https://github.com/alexandregme/zljs/compare/v2.1.0...HEAD
378
+ [Unreleased]: https://github.com/alexandregme/zljs/compare/v2.1.2...HEAD
379
+ [2.1.2]: https://github.com/alexandregme/zljs/compare/v2.1.0...v2.1.2
373
380
  [2.1.0]: https://github.com/alexandregme/zljs/compare/v2.0.1...v2.1.0
374
381
  [2.0.1]: https://github.com/alexandregme/zljs/compare/v2.0.0...v2.0.1
375
382
  [2.0.0]: https://github.com/alexandregme/zljs/compare/v1.19.1...v2.0.0
package/dist/index.js CHANGED
@@ -804,7 +804,7 @@ var Modal = ({
804
804
 
805
805
  // core/whatsapp-button/whatsapp-button.const.ts
806
806
  var whatsappWebUrl = "https://wa.me";
807
- var whatsappBusinessUrl = "whatsapp-business://send";
807
+ var whatsappAppUrl = "whatsapp://send";
808
808
  var whatsappMobileUserAgent = /Android|iPhone|iPad|iPod/i;
809
809
 
810
810
  // core/whatsapp-button/whatsapp-button.tsx
@@ -821,12 +821,12 @@ var WhatsAppButton = ({
821
821
  const hasMessage = Boolean(message);
822
822
  const encodedMessage = hasMessage ? encodeURIComponent(message) : "";
823
823
  const webUrl = hasMessage ? `${whatsappWebUrl}/${phone}?text=${encodedMessage}` : `${whatsappWebUrl}/${phone}`;
824
- const businessUrl = hasMessage ? `${whatsappBusinessUrl}?phone=${phone}&text=${encodedMessage}` : `${whatsappBusinessUrl}?phone=${phone}`;
824
+ const appUrl = hasMessage ? `${whatsappAppUrl}?phone=${phone}&text=${encodedMessage}` : `${whatsappAppUrl}?phone=${phone}`;
825
825
  if (isMobile) {
826
826
  if (window.location?.assign) {
827
- window.location.assign(businessUrl);
827
+ window.location.assign(appUrl);
828
828
  } else {
829
- window.location.href = businessUrl;
829
+ window.location.href = appUrl;
830
830
  }
831
831
  } else {
832
832
  window.open(webUrl, "_blank");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",