Skip to content

Commit

Permalink
update 88 (tools_menu + ComposeDetails.type)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Mar 2, 2021
1 parent eb2e2c5 commit 44bf04d
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changes/beta86.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changes in Thunderbird 86
theme
=====

* The theme API was added to Thunderbird (see `bug 1684666 <https://bugzilla.mozilla.org/show_bug.cgi?id=1684666>`__). It’s more or less the same as the `Firefox theme API <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme>`__, but has been extended to better fit the needs of Thunderbird.
* The :ref:`theme_api` API was added to Thunderbird (see `bug 1684666 <https://bugzilla.mozilla.org/show_bug.cgi?id=1684666>`__). It’s more or less the same as the `Firefox theme API <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme>`__, but has been extended to better fit the needs of Thunderbird.

The color key ``sidebar_highlight_border`` has been added.

Expand Down
2 changes: 1 addition & 1 deletion changes/beta87.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Changes in Thunderbird 87
commands
========

* The commands API now supports the internal shortcuts ``_execute_compose_action`` and ``_execute_message_display_action``.
* The :ref:`commands_api` API now supports the internal shortcuts ``_execute_compose_action`` and ``_execute_message_display_action``.

16 changes: 16 additions & 0 deletions changes/beta88.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
=========================
Changes in Thunderbird 88
=========================

compose
=======

* :ref:`compose.ComposeDetails` of the :ref:`compose_api` API now supports a ``type`` property, to distinguish between ``new``, ``reply``, ``forward`` and ``draft``.


menus
=====

* The :ref:`menus_api` API now supports the ``tools_menu`` :ref:`menus.ContextType`.


22 changes: 22 additions & 0 deletions compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,28 @@ Used by various functions to represent the state of a message being composed. No
:name: [``to``]
:type: (:ref:`compose.ComposeRecipientList`)


.. api-member::
:name: [``type``]
:type: (`string`)
:annotation: -- [Added in TB 88]

Read-only. The type of the message being composed, depending on how the compose window was opened by the user.

Supported values:

.. api-member::
:name: ``draft``

.. api-member::
:name: ``new``

.. api-member::
:name: ``reply``

.. api-member::
:name: ``forward``


.. _compose.ComposeRecipient:

Expand Down
8 changes: 6 additions & 2 deletions menus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ onClicked(info, [tab])

.. api-section-annotation-hack::

Fired when a context menu item is clicked.
Fired when a context menu item is clicked. This is a user input event handler. For asynchronous listeners some `restrictions <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/User_actions>`__ apply.

.. api-header::
:label: Parameters for event listeners
Expand Down Expand Up @@ -569,7 +569,7 @@ ContextType

.. api-section-annotation-hack::

The different contexts a menu can appear in. Specifying ``all`` is equivalent to the combination of all other contexts except for ``tab``.
The different contexts a menu can appear in. Specifying ``all`` is equivalent to the combination of all other contexts excluding ``tab`` and ``tools_menu``.

.. api-header::
:label: `string`
Expand Down Expand Up @@ -626,6 +626,10 @@ The different contexts a menu can appear in. Specifying ``all`` is equivalent to
.. api-member::
:name: ``compose_attachments``
:annotation: -- [Added in TB 83, backported to TB 78.5.0]

.. api-member::
:name: ``tools_menu``
:annotation: -- [Added in TB 88]


.. _menus.ItemType:
Expand Down
3 changes: 3 additions & 0 deletions overlay/compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"plainTextBody": {
"added": "75"
},
"type": {
"added": "88"
},
"attachments": {
"added": "82",
"backported": "78.4.0"
Expand Down
3 changes: 3 additions & 0 deletions overlay/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"compose_attachments": {
"added": "83",
"backported": "78.5.0"
},
"tools_menu": {
"added": "88"
}
}
},
Expand Down

0 comments on commit 44bf04d

Please sign in to comment.