JC Brand
cb1f929045
Fixes #3123 : Contacts do not show up online until chat is opened with them.
...
The issue was that nothing was listening to the new `presenceChanged` event.
2023-06-09 20:37:27 +02:00
JC Brand
2b732cdb94
Bump filesize
to latest version and fix issues.
2023-06-09 14:55:09 +02:00
JC Brand
1e4937bf41
Run npm update
and fix resulting dynamic import error.
...
For some reason the newer webpack versions can't handle the destructured
assignment from a dynamic import of a JSON file.
2023-06-09 12:34:58 +02:00
JC Brand
8b28ffecfe
Don't run type check when making dist files
2023-06-09 11:40:04 +02:00
JC Brand
975a2c2305
Remove Lerna and bump Node version.
...
Lerna doesn't seem to be needed anymore, NPM workspaces functionality suffices.
2023-06-09 11:19:23 +02:00
dependabot[bot]
efa448956e
Bump dayjs from 1.11.6 to 1.11.8 ( #3172 )
...
Bumps [dayjs](https://github.com/iamkun/dayjs ) from 1.11.6 to 1.11.8.
- [Release notes](https://github.com/iamkun/dayjs/releases )
- [Changelog](https://github.com/iamkun/dayjs/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.6...v1.11.8 )
---
updated-dependencies:
- dependency-name: dayjs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-07 12:47:13 +02:00
JC Brand
5a710e4601
Add new sponsor BairesDev
2023-06-05 16:53:49 +02:00
JC Brand
27a47c6ee8
fixes #3165
...
Use configured nickname in profile view in the control box.
Remove doc for the unimplemented `fullname` setting.
2023-06-02 07:24:37 +02:00
JC Brand
5c3acc8a4d
Rename package module
files to index.js
...
Makes it easier to import, you don't have to specify the file name, just
the package name.
2023-03-03 17:28:26 +01:00
JC Brand
48e7987f38
Start work on removing constants from _converse object
2023-03-03 17:28:26 +01:00
JC Brand
4d2a8e9f8d
Create new config setting stanza_timeout
...
And move STANZA_TIMEOUT off `_converse` and into constants.js
2023-03-03 17:28:26 +01:00
JC Brand
3d0e9a7374
Move CONNECTION_STATUS to constant.js
2023-03-03 17:28:26 +01:00
JC Brand
fb054c40be
Experimenting with avoiding importing the converse
global
2023-03-03 17:28:26 +01:00
JC Brand
6b365458f5
Get rid of lodash's invoke method
2023-02-26 19:32:55 +01:00
JC Brand
885a3d92b5
Move private API to own file
2023-02-26 18:10:01 +01:00
JC Brand
6df80507f3
Move ConnectionFeedback model to its own file
2023-02-26 18:10:01 +01:00
JC Brand
16754c15aa
Register Strophe namespaces in constants.js
2023-02-26 18:10:01 +01:00
JC Brand
70a10efd49
Move public API into its own file
2023-02-26 18:10:01 +01:00
JC Brand
9a63629b40
Get rid of lodash's isFunction
2023-02-26 18:10:01 +01:00
JC Brand
dcfc0d50f4
Refactor shared API functions out into src/headless/shared/api
2023-02-26 18:10:01 +01:00
JC Brand
fde55bea2c
Include XEP-0172 nick in all outgoing presence subscribe stanzas
2023-02-26 09:53:25 +01:00
JC Brand
3530ccc35d
Add initial TypeScript support and declaration files
2023-02-23 09:38:11 +01:00
JC Brand
05c5cd1046
Remove call to api.confirm
in @converse/headless
2023-02-22 15:21:56 +01:00
JC Brand
0122bd7bab
Import emoji utils.
...
Fixes `TypeError: core_default.isOnlyEmojis is not a function`
when using only `@converse/headless`.
2023-02-22 09:10:22 +01:00
JC Brand
85181053e6
Make the role form a custom element
...
So that it can be used in the occupant modal as well.
2023-02-21 23:14:16 +01:00
JC Brand
57f489f61b
Turn the MUC affiliation form into a component
...
So that it can be used elsewhere, for example in the occupant modal.
2023-02-21 20:18:16 +01:00
JC Brand
b69e5b5482
Create occupants based on messages
...
That way the occupant modal can still be shown in MUCs even if the user
is no longer online.
2023-02-20 22:02:13 +01:00
JC Brand
0b3bcbfe40
Release 10.1.2
2023-02-17 11:56:30 +01:00
JC Brand
bb7ed5315f
XEP-0437 MUC RAI fixes
...
Avoid unnecessarily connecting to rooms that should instead receive room
activity indicators (RAI).
- Don't join a newly created room that qualifies for RAI.
- Upon switching back to the tab, don't reconnect to a room that qualifies for RAI.
- Don't ping a room that we didn't actually enter.
2023-02-16 14:25:24 +01:00
JC Brand
6719aeba45
Release 10.1.1
2023-02-15 15:14:13 +01:00
JC Brand
4e98383e65
Ran npm update
2023-02-15 15:00:38 +01:00
JC Brand
5e5bdc78ec
Bump @converse/skeletor to 0.0.8 for @converse/headless
2023-02-15 14:43:39 +01:00
JC Brand
15c10376b0
Rename all templates to camelCase
...
To conform with naming conventions regarding functions, which the
templates are.
2023-02-15 14:29:07 +01:00
JC Brand
5db3e8ca51
Move adhoc plugin into own directory with separate files
2023-02-14 11:51:35 +01:00
JC Brand
0fcdb2a594
Add-hoc form fixes
...
- Provide actions as received in the Ad-Hoc form
- Add support for multi-stage ad-hoc forms
- Add new tests for multi-stage forms
Fixes #2240
2023-02-14 11:51:35 +01:00
JC Brand
5029d93523
XML stanza parsing fixes
...
- Add a `Stanza` class which can be used by Strophe because it has a
`tree()` function. This is what gets returned by the `stx` tagged
template.
- Throw an error when no valid namespace is on the stanza.
Strophe.Builder used to automatically add the `jabber:client` namespace,
but that doesn't happen with `toStanza`, so we need to fail if it's not
specified by the user.
- Use the Strophe XML Parser
This opens the door to NodeJS support
2023-02-14 11:50:38 +01:00
JC Brand
6fc83db9df
Run npm update
2023-01-17 12:41:48 +01:00
JC Brand
a486fe25b8
Configure Webpack to make @converse/headless
a library
...
Also, remove unused alias.
2023-01-17 12:33:08 +01:00
JC Brand
078936fb8a
Release 10.1.0
2023-01-07 21:14:22 +01:00
JC Brand
0227b2e06c
Run npm update
2023-01-07 21:07:32 +01:00
JC Brand
de65409e79
Add Uyghur
2023-01-02 09:45:04 +01:00
JC Brand
7539fc1a6f
Move functions out of src/headless/core.js into utils
2022-12-28 21:36:40 +01:00
JC Brand
f740332e95
Fixes based on Github's code scanning results
2022-12-28 21:14:15 +01:00
JC Brand
fdcab413f5
Use crypto.randomUUID()
if available
2022-12-28 11:49:37 +01:00
JC Brand
3c6dd5d0ae
Run npm update
in src/headless
2022-12-28 10:18:14 +01:00
JC Brand
6494b34da3
Don't automatically log in again if the user manually logged out
...
Fixes #2759
2022-12-28 09:57:32 +01:00
JC Brand
447fe8ba08
Refactor the code related to storing SCRAM keys
...
- No need to create a new storage mechanism, just use `persistent`.
- Store SCRAM keys per JID
- Upon succesfull login, store the current session JID, so that we know who to fetch SCRAM keys for
- Only store SCRAM keys when the device is trusted
Fixes #3001
2022-12-28 09:56:41 +01:00
based-a-tron
8ab0b718de
Added option to save SCRAM keys
2022-12-27 22:39:12 +01:00
JC Brand
a76393f216
Also handle 'normal'
messages from roster contacts
2022-12-26 19:17:40 +01:00
JC Brand
e63ba2075f
Use repeat
directive to render roster and MUC occupant items
...
If we don't use `repeat`, a DOM node may be reused with different state
(e.g. the `model` it receives originally changes upon next render).
https://lit.dev/docs/templates/lists/#when-to-use-map-or-repeat
Fixes #2816
2022-12-13 10:04:13 +01:00