129 Commits
Author SHA1 Message Date
Timo K. 2ac95df75f update readmes 2026-09-09 12:15:19 +02:00
Timo K.andClaude Fable 5.1 b722cc277e Make the theme a prop, next to the language
The theme is state — what Element Call should look like right now — and
so belongs beside `language` as a prop, not on the imperative handle
(where it was a request, `setTheme`, because the internal host bridge
speaks the widget API and a widget's host sends theme changes as
requests) and not in the configuration (where `config.theme` only ever
set the starting theme).

The `theme` prop feeds the same channel the rest of Element Call listens
to for a host's theme, replayed so that whatever subscribes after the
host has set it still hears the current one. Changing it re-themes the
container and nothing else; unlike the language, it is per component.
`setTheme` and `config.theme` are gone, and the harness gets a theme
picker in place of its per-pane buttons.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-08 17:02:24 +02:00
Timo K.andClaude Fable 5.1 f994586eeb Speak every language in the component, not just English
The component bundled English alone: the standalone app fetches its
locale files at runtime from URLs its own build emits, which a host
serving the library from elsewhere could not resolve, so bundling one
language was the self-contained option. Now every locale is a chunk of
its own that the host's bundler loads the first time it is needed, with
English still bundled in so that the fallback never waits.

Element Call starts in the browser's language and follows the host's own
setting through a `language` prop; `supportedLanguages` says what it
accepts. Translations are shared by every Element Call on the page, so
the most recently set language wins for all of them. The harness gets a
language picker, and the app and the component share the parsing of
locale paths.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-08 16:03:48 +02:00
Timo K. 365204d04c fix media queries in component based element call. 2026-09-07 14:50:36 +02:00
Timo K.andClaude Fable 5.1 218ee46b7d Make the component installable as a git dependency
`component/package.json` describes the built component as a package
(`@element-hq/element-call-component`: entry, stylesheet subpath, types,
peer dependencies) so that a host can depend on
`github:element-hq/element-call#<ref>&path:/component`. Its `prepare`
script builds on install, since nothing is published yet.

For that the component build now lands in `component/dist` instead of the
repository's `dist`, and `pnpm build:component` also emits the type
declarations (`component/tsconfig.build.json`, `build:component:types`),
which previously had to be produced by hand.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 15:29:55 +02:00
Timo K. 38c28a1c8f scaling based on component size instead webview size 2026-09-04 14:16:40 +02:00
Timo K. f5458bb03e de-globalise styles 2026-09-04 13:51:47 +02:00
Valere 9f5fa6049f Add a harness for Element Call embedded as a component
`pnpm dev:component` serves a page that stands in for a host application: it
signs in twice against the development backend and shows two calls side by
side, in resizable boxes, with furniture of its own around them. Two devices of
one account, so a real call happens between the two components and anything
Element Call keeps once per process rather than once per call shows itself.

The host bridge is driven by hand and reports both directions in a log along
the bottom, which is the first exercise the theme, hang-up and device-mute
requests have had outside widget mode. Each pane can be unmounted and remounted
to see what Element Call leaves behind, and there is a `position: fixed` dialog
belonging to the host to see whether it covers the calls. The page uses none of
Element Call's design tokens, so anything that looks styled outside a pane came
from Element Call reaching out of its container. It reaches Element Call only
through the component's public interface, which is how the exports missing from
that interface came to light.

Three things about the component build the harness turned up on the way, all
too small to be worth their own commits:

- It copied `public/` into `dist/`, including the developer's own gitignored
  config.json, into output we would publish. `publicDir: false`, as the
  embedded build already does. The sdk build has the same leak; untouched.
- `pnpm lint:externals` now exists, which the build config already claimed it
  did. It reads the external list out of that config and fails if the source
  imports React, the Matrix SDK or LiveKit by a path the list does not name.
  Since the bundler silently ignores the pattern form of that option, an
  unnamed subpath is bundled with no warning at all — which is how a host would
  end up with a second React.
- `lint:oxlint` ran over `src playwright`, so nothing in `component/` had ever
  been linted.

Serving a page also meant the shared plugin list could no longer inject the
app's HTML entry point unconditionally, so that is now optional — and off for
the library build too, which never had an HTML page to inject it into.
2026-09-03 16:11:39 +02:00
Robin 426ea30fe1 Remove all references to .well-known transport advertisement 2026-08-10 15:10:49 +02:00
Johannes Marbach 1811b36205 Make renovate track docker-compose files and pin synapse / element-web for playwright tests 2026-07-03 08:48:28 +02:00
Johannes Marbach fc3461dd54 Set up label sync 2026-06-15 14:18:13 +02:00
Johannes Marbach 4c2c068c3a Update dev settings snapshot 2026-06-08 08:48:46 +02:00
Timo 3adddf4b70 Merge pull request #3960 from element-hq/toger5/storybook-tests
Use vite storybook plugin for storybook tests
2026-05-20 19:57:21 +08:00
Timo K e7c87e3439 Merge branch 'livekit' into toger5/storybook-tests 2026-05-20 13:28:03 +02:00
Johannes Marbach 6f7d4ec8eb List additional dependencies needed for development
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-19 11:14:53 +02:00
Johannes Marbach 18a128b865 Fix linking link
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 09:56:37 +02:00
Johannes Marbach 80f573e899 Add missing apostrophe
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 09:50:42 +02:00
Johannes Marbach 0ca2b6d4ea Remove extra space and add colon
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 09:49:58 +02:00
Johannes Marbach 198d961646 Add missing apostrophe
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 09:48:46 +02:00
Johannes Marbach 9d522913f9 Add missing colon
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 09:46:41 +02:00
Johannes Marbach 69b5209071 Fix typo
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:40:08 +02:00
Johannes Marbach 0160f60c6d Reorder sentence fragments for better readability
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:33:36 +02:00
Johannes Marbach abce4d16fc Add missing article
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:29:47 +02:00
Johannes Marbach b0c1c48ad4 Add missing article
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:26:42 +02:00
Johannes Marbach a2c6b8102a Link to self-hosting guide
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:21:17 +02:00
Johannes Marbach 959a55a9f8 Use correct preposition
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-05-18 08:21:00 +02:00
Timo K 20d14fa4e0 use vite storybook plugin for storybook tests.
run via pnpm test:storybook
2026-05-11 16:40:05 +02:00
Timo K 741b82b026 update linking realted logic
- remove post-commit hook
 - remove .links.cjs enable/disable (instead just add/rm .pnpmfile.cjs)
 - rename pnpm links:enable -> pnpm links:on
 - rename pnpm links:disable -> pnpm links:off
 - unify doc filenames `-` -> `_`
 - add linking_concept_reasoning.md to provide background why the
   linking is how it is.
2026-04-21 16:06:51 +02:00
Timo K 00d6e034a0 fixup some missing yarn -> pnpm transitions 2026-04-21 10:53:56 +02:00
Valere bf19b388ea Add codecov shields.io badge 2026-01-09 12:43:33 +01:00
fkwp 342dd2e7d7 DevX: Add another Matrix site to docker-compose (#3511)
* remove redis, since we dont use it

* update localhost TLS certificat to add *.othersite.m.localhost wildcard

* allow for federation

* Add services and config files for Matrix site othersite.m.localhost

* add element web instance app.othersite.m.localhost

* update README

* exclude synapse database for othersite.m.localhost

* linting
2025-09-22 21:14:12 +02:00
fkwp 87574451a9 Doc: Use new naming of jwt auth service (#3455)
* use new naming of jwt auth service

* use new name of jwt service

* added links the https://github.com/element-hq/lk-jwt-service
2025-08-20 12:45:00 +02:00
fkwp 679ff8c2af adapt to TLS setup 2025-05-05 15:47:03 +02:00
fkwp 34a223f04b add yarn dev --host hint 2025-05-05 14:54:14 +02:00
fkwp 005402d8d1 prettier 2025-05-05 14:48:45 +02:00
fkwp 76fb16dbfd update README.md to reflect TLS settings 2025-05-05 14:44:21 +02:00
fkwp 9416c41d62 added note about certificate exceptions 2025-04-25 00:18:27 +02:00
fkwp 8ad1d60975 remove NOTE wrt. legacy livekit key from README.md 2025-04-25 00:18:19 +02:00
fkwpandTimo db10903ea0 Update README.md
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2025-04-07 16:58:07 +02:00
fkwp ca1410bc85 hint towards cs api 2025-04-07 11:30:34 +02:00
fkwpandTimo c78360fce2 Update README.md
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2025-04-05 19:29:08 +02:00
fkwp ab8a86e451 prettier 2025-04-04 23:12:41 +02:00
fkwp 45b0a5c2a6 reordering 2025-04-04 23:12:41 +02:00
fkwp c20aa5c1c8 rephrase Packaging and adding Figures 2025-04-04 23:12:41 +02:00
fkwp d5481d8c20 indentation 2025-04-04 23:12:41 +02:00
fkwp bef57b677c center images 2025-04-04 23:12:41 +02:00
Robin f99eb3c88f Merge branch 'livekit' into robin/berry 2025-03-27 14:07:24 -04:00
fkwp a4f86492f9 Merge pull request #3130 from element-hq/fkwp/update_readme
Add endpoint routing to README.md
2025-03-26 13:48:09 +01:00
fkwpandTimo 79404fcb18 Update README.md
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2025-03-26 13:20:51 +01:00
fkwpandTimo defe880515 Update README.md
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2025-03-26 13:20:27 +01:00