diff --git a/.changeset/flat-years-thank.md b/.changeset/flat-years-thank.md deleted file mode 100644 index e36602f9..00000000 --- a/.changeset/flat-years-thank.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wptelegram-widget": patch ---- - -Fixed the deprecation warning for `FocusableIframe` diff --git a/.changeset/gorgeous-actors-promise.md b/.changeset/gorgeous-actors-promise.md deleted file mode 100644 index 1ca23382..00000000 --- a/.changeset/gorgeous-actors-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wpsocio/vite-wp-react": patch ---- - -Fixed TS types for config and plugins diff --git a/.changeset/loud-seahorses-bathe.md b/.changeset/loud-seahorses-bathe.md deleted file mode 100644 index 5e568482..00000000 --- a/.changeset/loud-seahorses-bathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wptelegram-widget": patch ---- - -Fixed the single post widget styles in post editor diff --git a/.changeset/mighty-fishes-hammer.md b/.changeset/mighty-fishes-hammer.md deleted file mode 100644 index 2c8b0461..00000000 --- a/.changeset/mighty-fishes-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wptelegram": patch ---- - -Fixed PHP errors in Post to Telegram for partial REST API input diff --git a/plugins/wptelegram-login/docs/README.md b/plugins/wptelegram-login/docs/README.md index cbffc86c..4d8a1aa6 100644 --- a/plugins/wptelegram-login/docs/README.md +++ b/plugins/wptelegram-login/docs/README.md @@ -5,6 +5,11 @@ ## Actions +### `wptelegram_login_init` + +*Fires before the login process starts.* + + Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 43](../src/shared/LoginHandler.php#L43-L46) ### `wptelegram_login_pre_save_user_data` @@ -131,161 +136,6 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 634 ## Filters -### `wptelegram_login_intercept_request_on` - -*Filter the hook and priority to use for intercepting the login request.* - -- [Examples](./examples/intercept_request_on.md) - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$hook_and_priority` | `array` | The hook and priority. - -Source: [src/includes/Main.php](../src/includes/Main.php), [line 392](../src/includes/Main.php#L392-L399) - -### `wptelegram_login_web_app_login_data` - -*Filters the data for the web app login.* - -This can be used to customize the messages etc. for the web app login UI. - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$data` | `array` | The data for the web app login. - -Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 272](../src/includes/AssetManager.php#L272-L279) - -### `wptelegram_login_language_options` - -*Filters the language options for the settings page.* - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$data` | `array` | The language options. -`$translations` | `array` | The available translations. - -Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 408](../src/includes/AssetManager.php#L408-L414) - -### `wptelegram_login_redirect_to` - -*Filters the redirect URL for the login button* - -It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid. - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$redirect_to` | `string` | The redirect URL. - -**Changelog** - -Version | Description -------- | ----------- -`1.0.0` | - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 128](../src/shared/Shared.php#L128-L137) - -### `wptelegram_login_telegram_callback_url` - -*Filters the callback URL for the login button* - -It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid. - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$callback_url` | `string` | The callback URL. - -**Changelog** - -Version | Description -------- | ----------- -`1.0.0` | - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 157](../src/shared/Shared.php#L157-L166) - -### `wptelegram_login_show_if_user_connected` - -*Filters whether to show the button if user is already connected.* - -- [Examples](./examples/show_if_user_connected.md) - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$show_if_connected` | `bool` | Whether to show the button if user is already connected. -`$current_user_telegram_id` | `int` | The current user's Telegram ID. - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 221](../src/shared/Shared.php#L221-L229) - -### `wptelegram_login_show_if_user_is` - -*Filters when to show the login button* - -Possible values: -"logged_out", "logged_in", "author", "subscriber" etc. - -You can also pass a user role e.g "editor" or a comma separated list or an array of roles -to display the button for specific user roles - -Passing an empty value will display the button -for both logged in and logged out users - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$show_if_user_is` | `string` | When to show the button. - -**Changelog** - -Version | Description -------- | ----------- -`1.0.0` | - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 235](../src/shared/Shared.php#L235-L251) - -### `wptelegram_login_use_telegram_avatar` - -*Filters whether to use the Telegram avatar.* - -Pass `false` to disable the Telegram avatar. - -- [Examples](./examples/use_telegram_avatar.md) - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$use_telegram_avatar` | `bool` | Whether to use the Telegram avatar. -`$url` | `string` | Avatar URL. -`$id_or_email` | `mixed` | user id or email. - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 312](../src/shared/Shared.php#L312-L323) - -### `wptelegram_login_custom_avatar_url` - -*Filters the custom avatar URL.* - -**Arguments** - -Argument | Type | Description --------- | ---- | ----------- -`$avatar_url` | `string` | The custom avatar URL. -`$url` | `string` | Avatar URL. -`$id_or_email` | `mixed` | user id or email. - -Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 357](../src/shared/Shared.php#L357-L364) - ### `wptelegram_login_validation_query_params` *Filter the validation query parameters that the plugin uses.* @@ -396,7 +246,7 @@ Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 383 ### `wptelegram_login_disable_signup` -*Filter whether to disable sign up via Telegram!!* +*Filters whether to disable sign up via Telegram.* It means that the user must first create an account and connect it to Telegram to be able to use Telegram Login. @@ -491,6 +341,120 @@ Argument | Type | Description Source: [src/shared/LoginHandler.php](../src/shared/LoginHandler.php), [line 682](../src/shared/LoginHandler.php#L682-L688) +### `wptelegram_login_redirect_to` + +*Filters the redirect URL for the login button* + +It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid. + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$redirect_to` | `string` | The redirect URL. + +**Changelog** + +Version | Description +------- | ----------- +`1.0.0` | + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 128](../src/shared/Shared.php#L128-L137) + +### `wptelegram_login_telegram_callback_url` + +*Filters the callback URL for the login button* + +It can be used to fix the wrong URL in case the website is in subdirectory and the URL is invalid. + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$callback_url` | `string` | The callback URL. + +**Changelog** + +Version | Description +------- | ----------- +`1.0.0` | + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 157](../src/shared/Shared.php#L157-L166) + +### `wptelegram_login_show_if_user_connected` + +*Filters whether to show the button if user is already connected.* + +- [Examples](./examples/show_if_user_connected.md) + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$show_if_connected` | `bool` | Whether to show the button if user is already connected. +`$current_user_telegram_id` | `int` | The current user's Telegram ID. + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 221](../src/shared/Shared.php#L221-L229) + +### `wptelegram_login_show_if_user_is` + +*Filters when to show the login button* + +Possible values: +"logged_out", "logged_in", "author", "subscriber" etc. + +You can also pass a user role e.g "editor" or a comma separated list or an array of roles +to display the button for specific user roles + +Passing an empty value will display the button +for both logged in and logged out users + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$show_if_user_is` | `string` | When to show the button. + +**Changelog** + +Version | Description +------- | ----------- +`1.0.0` | + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 235](../src/shared/Shared.php#L235-L251) + +### `wptelegram_login_use_telegram_avatar` + +*Filters whether to use the Telegram avatar.* + +Pass `false` to disable the Telegram avatar. + +- [Examples](./examples/use_telegram_avatar.md) + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$use_telegram_avatar` | `bool` | Whether to use the Telegram avatar. +`$url` | `string` | Avatar URL. +`$id_or_email` | `mixed` | user id or email. + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 312](../src/shared/Shared.php#L312-L323) + +### `wptelegram_login_custom_avatar_url` + +*Filters the custom avatar URL.* + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$avatar_url` | `string` | The custom avatar URL. +`$url` | `string` | Avatar URL. +`$id_or_email` | `mixed` | user id or email. + +Source: [src/shared/Shared.php](../src/shared/Shared.php), [line 357](../src/shared/Shared.php#L357-L364) + ### `widget_title` *Filters the widget title.* @@ -511,6 +475,47 @@ Version | Description Source: [src/shared/widgets/Primary.php](../src/shared/widgets/Primary.php), [line 46](../src/shared/widgets/Primary.php#L46-L55) +### `wptelegram_login_web_app_login_data` + +*Filters the data for the web app login.* + +This can be used to customize the messages etc. for the web app login UI. + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$data` | `array` | The data for the web app login. + +Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 272](../src/includes/AssetManager.php#L272-L279) + +### `wptelegram_login_language_options` + +*Filters the language options for the settings page.* + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$data` | `array` | The language options. +`$translations` | `array` | The available translations. + +Source: [src/includes/AssetManager.php](../src/includes/AssetManager.php), [line 408](../src/includes/AssetManager.php#L408-L414) + +### `wptelegram_login_intercept_request_on` + +*Filter the hook and priority to use for intercepting the login request.* + +- [Examples](./examples/intercept_request_on.md) + +**Arguments** + +Argument | Type | Description +-------- | ---- | ----------- +`$hook_and_priority` | `array` | The hook and priority. + +Source: [src/includes/Main.php](../src/includes/Main.php), [line 392](../src/includes/Main.php#L392-L399) +
Generated by Pronamic WordPress Documentor 1.2.0
diff --git a/plugins/wptelegram-widget/CHANGELOG.md b/plugins/wptelegram-widget/CHANGELOG.md
index 5493b512..990ecd6a 100644
--- a/plugins/wptelegram-widget/CHANGELOG.md
+++ b/plugins/wptelegram-widget/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 2.1.20
+
+### Patch Changes
+
+- [#110](https://github.com/wpsocio/wp-projects/pull/110) [`e2a689c`](https://github.com/wpsocio/wp-projects/commit/e2a689c152f4ea0d377544b75912831f88e4451e) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Fixed the deprecation warning for `FocusableIframe`
+
+- [#110](https://github.com/wpsocio/wp-projects/pull/110) [`e2a689c`](https://github.com/wpsocio/wp-projects/commit/e2a689c152f4ea0d377544b75912831f88e4451e) Thanks [@irshadahmad21](https://github.com/irshadahmad21)! - Fixed the single post widget styles in post editor
+
## 2.1.19
### Patch Changes
diff --git a/plugins/wptelegram-widget/README.md b/plugins/wptelegram-widget/README.md
index b23e5226..db79fa00 100644
--- a/plugins/wptelegram-widget/README.md
+++ b/plugins/wptelegram-widget/README.md
@@ -5,7 +5,7 @@
**Requires at least:** 6.4
**Requires PHP:** 7.4
**Tested up to:** 6.4.3
-**Stable tag:** 2.1.19
+**Stable tag:** 2.1.20
**License:** GPL-3.0-or-later
**License URI:** [https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)
**Donate link:** [wpsocio.com/donate](https://wpsocio.com/donate)
diff --git a/plugins/wptelegram-widget/composer.json b/plugins/wptelegram-widget/composer.json
index d7c9c0d1..046fb184 100644
--- a/plugins/wptelegram-widget/composer.json
+++ b/plugins/wptelegram-widget/composer.json
@@ -1,6 +1,6 @@
{
"name": "wptelegram/widget",
- "version": "2.1.19",
+ "version": "2.1.20",
"description": "Display the Telegram Public Channel or Group Feed in a WordPress widget or anywhere you want using a shortcode.",
"scripts": {
"lint": "\"vendor/bin/phpcs\" --standard=../../phpcs.xml --extensions=php src/ dev.php",
diff --git a/plugins/wptelegram-widget/package.json b/plugins/wptelegram-widget/package.json
index a82b80a7..7f78a7d4 100644
--- a/plugins/wptelegram-widget/package.json
+++ b/plugins/wptelegram-widget/package.json
@@ -1,7 +1,7 @@
{
"name": "wptelegram-widget",
"title": "WP Telegram Widget",
- "version": "2.1.19",
+ "version": "2.1.20",
"description": "Display the Telegram Public Channel or Group Feed in a WordPress widget or anywhere you want using a shortcode.",
"private": true,
"license": "GPL-3.0-or-later",
diff --git a/plugins/wptelegram-widget/src/languages/wptelegram-widget-de_DE.po b/plugins/wptelegram-widget/src/languages/wptelegram-widget-de_DE.po
index 5047df0e..645ed9b5 100644
--- a/plugins/wptelegram-widget/src/languages/wptelegram-widget-de_DE.po
+++ b/plugins/wptelegram-widget/src/languages/wptelegram-widget-de_DE.po
@@ -161,12 +161,12 @@ msgstr "Optionen"
msgid "Edit URL"
msgstr "URL bearbeiten"
-#: js/blocks/single-post/Edit.tsx:136
+#: js/blocks/single-post/Edit.tsx:27
#: languages/wptelegram-widget-js-translations.php:186
msgid "Telegram post URL"
msgstr "Beitrags-URL von Telegram"
-#: js/blocks/single-post/Edit.tsx:165
+#: js/blocks/single-post/Edit.tsx:135
#: languages/wptelegram-widget-js-translations.php:189
msgid "Loading…"
msgstr "Wird geladen..."
@@ -658,7 +658,7 @@ msgstr "Zeigt einen öffentlichen Telegram Channel oder Gruppen-Feed in einem Wi
#. Plugin Name of the plugin
#: wptelegram-widget.php
-#: includes/Main.php:420
+#: includes/Main.php:421
#~ msgid "WP Telegram Widget"
#~ msgstr "WP Telegram Widget"
@@ -669,7 +669,7 @@ msgstr "Zeigt einen öffentlichen Telegram Channel oder Gruppen-Feed in einem Wi
#~ msgid "Display the Telegram Public Channel or Group Feed in a WordPress widget or anywhere you want using a shortcode."
#~ msgstr "Zeigt einen öffentlichen Telegram Channel oder Gruppen-Feed in einem Widget oder per Shortcode an beliebiger Stelle an."
-#: js/blocks/single-post/Edit.tsx:176
+#: js/blocks/single-post/Edit.tsx:149
#: js/blocks/single-post/index.tsx:46
#: languages/wptelegram-widget-js-translations.php:193
msgid "Telegram post"
diff --git a/plugins/wptelegram-widget/src/languages/wptelegram-widget-js-translations.php b/plugins/wptelegram-widget/src/languages/wptelegram-widget-js-translations.php
index c7053da7..9c50ec9e 100644
--- a/plugins/wptelegram-widget/src/languages/wptelegram-widget-js-translations.php
+++ b/plugins/wptelegram-widget/src/languages/wptelegram-widget-js-translations.php
@@ -182,16 +182,16 @@
// Reference: js/blocks/single-post/Controls.tsx:51
__( 'Edit URL', 'wptelegram-widget' ),
- // Reference: js/blocks/single-post/Edit.tsx:136
- __( 'Telegram post URL', 'wptelegram-widget' ),
-
- // Reference: js/blocks/single-post/Edit.tsx:165
+ // Reference: js/blocks/single-post/Edit.tsx:135
__( 'Loading…', 'wptelegram-widget' ),
- // Reference: js/blocks/single-post/Edit.tsx:176
+ // Reference: js/blocks/single-post/Edit.tsx:149
// Reference: js/blocks/single-post/index.tsx:46
__( 'Telegram post', 'wptelegram-widget' ),
+ // Reference: js/blocks/single-post/Edit.tsx:27
+ __( 'Telegram post URL', 'wptelegram-widget' ),
+
// Reference: js/blocks/single-post/Placeholder.tsx:40
__( 'Embed', 'wptelegram-widget' ),
diff --git a/plugins/wptelegram-widget/src/languages/wptelegram-widget-ru_RU.po b/plugins/wptelegram-widget/src/languages/wptelegram-widget-ru_RU.po
index 0e47245a..e22c2f30 100644
--- a/plugins/wptelegram-widget/src/languages/wptelegram-widget-ru_RU.po
+++ b/plugins/wptelegram-widget/src/languages/wptelegram-widget-ru_RU.po
@@ -162,12 +162,12 @@ msgstr ""
msgid "Edit URL"
msgstr ""
-#: js/blocks/single-post/Edit.tsx:136
+#: js/blocks/single-post/Edit.tsx:27
#: languages/wptelegram-widget-js-translations.php:186
msgid "Telegram post URL"
msgstr ""
-#: js/blocks/single-post/Edit.tsx:165
+#: js/blocks/single-post/Edit.tsx:135
#: languages/wptelegram-widget-js-translations.php:189
msgid "Loading…"
msgstr ""
@@ -656,7 +656,7 @@ msgstr ""
msgid "Display the Telegram Public Channel or Group Feed in a widget"
msgstr "Отображать Telegram канал или Чат в виджете."
-#: js/blocks/single-post/Edit.tsx:176
+#: js/blocks/single-post/Edit.tsx:149
#: js/blocks/single-post/index.tsx:46
#: languages/wptelegram-widget-js-translations.php:193
msgid "Telegram post"
@@ -671,7 +671,7 @@ msgstr ""
#. Plugin Name of the plugin
#: wptelegram-widget.php
-#: includes/Main.php:420
+#: includes/Main.php:421
msgid "WP Telegram Widget"
msgstr ""
diff --git a/plugins/wptelegram-widget/src/languages/wptelegram-widget.pot b/plugins/wptelegram-widget/src/languages/wptelegram-widget.pot
index 59ecea1c..340d9f00 100644
--- a/plugins/wptelegram-widget/src/languages/wptelegram-widget.pot
+++ b/plugins/wptelegram-widget/src/languages/wptelegram-widget.pot
@@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
-"Project-Id-Version: WP Telegram Widget 2.1.19\n"
+"Project-Id-Version: WP Telegram Widget 2.1.20\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wptelegram-widget\n"
"Last-Translator: FULL NAME