@tma.js/sdk-react 2.2.4 → 2.2.5

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/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as Rt } from "react/jsx-runtime";
2
2
  import { createContext as re, useContext as ie, useState as rt, useEffect as R, useRef as bt, useCallback as oe, useMemo as ae } from "react";
3
- var ce = Object.defineProperty, he = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, c = (e, t, s) => (he(e, typeof t != "symbol" ? t + "" : t, s), s);
3
+ var ce = Object.defineProperty, he = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, c = (e, t, s) => he(e, typeof t != "symbol" ? t + "" : t, s);
4
4
  function xt(e, t) {
5
5
  let s;
6
6
  const n = () => {
@@ -2105,10 +2105,11 @@ class Es extends wt {
2105
2105
  * @param url - URL to share.
2106
2106
  * @param text - text to append after the URL.
2107
2107
  * @see https://core.telegram.org/api/links#share-links
2108
+ * @see https://core.telegram.org/widgets/share#custom-buttons
2108
2109
  */
2109
2110
  shareURL(t, s) {
2110
2111
  this.openTelegramLink(
2111
- "https://t.me/share?" + new URLSearchParams({ url: t, text: s || "" }).toString()
2112
+ "https://t.me/share/url?" + new URLSearchParams({ url: t, text: s || "" }).toString()
2112
2113
  );
2113
2114
  }
2114
2115
  }