Merge pull request #3953 from Samueras/release
Signed| @@ -9151,7 +9151,7 @@ function formatSwipeCounter(current, total) { | |||
| 9151 | * @param {string} [params.source] The source of the swipe event. | 9151 | * @param {string} [params.source] The source of the swipe event. |
| 9152 | * @param {boolean} [params.repeated] Is the swipe event repeated. | 9152 | * @param {boolean} [params.repeated] Is the swipe event repeated. |
| 9153 | */ | 9153 | */ |
| 9154 | function swipe_left(_event, { source, repeated } = {}) { | 9154 | export function swipe_left(_event, { source, repeated } = {}) { |
| 9155 | if (chat.length - 1 === Number(this_edit_mes_id)) { | 9155 | if (chat.length - 1 === Number(this_edit_mes_id)) { |
| 9156 | closeMessageEditor(); | 9156 | closeMessageEditor(); |
| 9157 | } | 9157 | } |
| @@ -9299,7 +9299,7 @@ function swipe_left(_event, { source, repeated } = {}) { | |||
| 9299 | * @param {string} [params.source] The source of the swipe event. | 9299 | * @param {string} [params.source] The source of the swipe event. |
| 9300 | * @param {boolean} [params.repeated] Is the swipe event repeated. | 9300 | * @param {boolean} [params.repeated] Is the swipe event repeated. |
| 9301 | */ | 9301 | */ |
| 9302 | function swipe_right(_event, { source, repeated } = {}) { | 9302 | export function swipe_right(_event, { source, repeated } = {}) { |
| 9303 | if (chat.length - 1 === Number(this_edit_mes_id)) { | 9303 | if (chat.length - 1 === Number(this_edit_mes_id)) { |
| 9304 | closeMessageEditor(); | 9304 | closeMessageEditor(); |
| 9305 | } | 9305 | } |
| @@ -50,6 +50,8 @@ import { | |||
| 50 | unshallowCharacter, | 50 | unshallowCharacter, |
| 51 | deleteLastMessage, | 51 | deleteLastMessage, |
| 52 | getCharacterCardFields, | 52 | getCharacterCardFields, |
| 53 | swipe_right, | ||
| 54 | swipe_left, | ||
| 53 | } from '../script.js'; | 55 | } from '../script.js'; |
| 54 | import { | 56 | import { |
| 55 | extension_settings, | 57 | extension_settings, |
| @@ -196,6 +198,7 @@ export function getContext() { | |||
| 196 | humanizedDateTime, | 198 | humanizedDateTime, |
| 197 | updateMessageBlock, | 199 | updateMessageBlock, |
| 198 | appendMediaToMessage, | 200 | appendMediaToMessage, |
| 201 | swipe: { left: swipe_left, right: swipe_right }, | ||
| 199 | variables: { | 202 | variables: { |
| 200 | local: { | 203 | local: { |
| 201 | get: getLocalVariable, | 204 | get: getLocalVariable, |