Skip to content

[pull] main from tldraw:main#269

Merged
pull[bot] merged 4 commits intocode:mainfrom
tldraw:main
Nov 17, 2025
Merged

[pull] main from tldraw:main#269
pull[bot] merged 4 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 17, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

mimecuvalo and others added 4 commits November 17, 2025 12:25
cc @derekcicerone

### Change type

- [ ] `bugfix`
- [x] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Release notes

- cross-realm: adapt `useCanvasEvents`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Scopes the canvas pointermove listener to the editor container’s
ownerDocument to support cross-realm contexts.
> 
> - **Editor**:
>   - `useCanvasEvents`:
> - Derives `ownerDocument` from `editor.getContainer().ownerDocument`.
> - Attaches/removes `pointermove` listener on `ownerDocument.body`
instead of `document.body`.
>     - Updates effect dependencies to include `ownerDocument`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
bccc226. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
made it hard to do rich text for custom shapes downstream

### Change type

- [x] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Release notes

- add export for `DefaultLabelColorStyle`, used with `labelColor` which
is necessary for rich text in custom shapes

### API changes

- add export for `DefaultLabelColorStyle`, used with `labelColor` which
is necessary for rich text in custom shapes

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Export `DefaultLabelColorStyle` from `@tldraw/tlschema` and update the
API report accordingly.
> 
> - **Exports**:
> - Add `DefaultLabelColorStyle` to `packages/tlschema/src/index.ts`
from `styles/TLColorStyle`.
> - **API**:
> - Include `DefaultLabelColorStyle` in
`packages/tlschema/api-report.api.md`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4689e57. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
this is work that was in the fairy branch, landing this parent tweak
ahead of the SDK release

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

### Release notes

- examples: dynamic tools

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds a new example that dynamically adds/removes a custom Heart tool
and updates the toolbar using setTool/removeTool.
> 
> - **Examples**:
> - **New example**
`apps/examples/src/examples/dynamic-tools/DynamicToolsExample.tsx`:
> - Implements `HeartTool` (`StateNode`) creating a heart emoji on
click.
> - Uses `editor.setTool` / `editor.removeTool` to dynamically
register/unregister the tool.
> - Adds UI overrides to expose `tools.heart` with custom icon and
toolbar item.
> - Integrates a toggle button (in `InFrontOfTheCanvas`) to add/remove
the tool at runtime.
>     - Supplies `customAssetUrls` for `heart-icon`.
> - **Docs**:
>   - Adds `README.md` describing dynamic tool addition/removal.
> - **Styles**:
>   - Adds `dynamic-tools.css` for the toggle button positioning.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
3e218db. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
This PR updates the i18n strings.

### Change type
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Refreshes i18n across many locales, adding translations for
groups/invites, file‑linking, auth/terms/privacy prompts, and related
UI; removes/renames a few deprecated keys.
> 
> - **i18n/localization**:
> - Add new strings across
`apps/dotcom/client/public/tla/locales*/**.json` for: `groups`
(create/delete/leave, settings, members/roles), `invites` (copy,
accept/join, invalid link), `file links` (add/paste URL), `auth` flows
(continue with email, Google sign-in, verification code, guest),
`legal/cookies` (accept analytics, terms of use, privacy policy), and
various UI prompts (save, show more/less, danger zone, room limits).
> - Adjust/rename some keys (e.g., pin/unpin/upload strings removed or
replaced) and add richer status/tooltip texts (rate limiting, errors,
read‑only, publish/unpublish).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
dd016a8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
Co-authored-by: Mime Čuvalo <mimecuvalo@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Nov 17, 2025
@pull pull Bot added the ⤵️ pull label Nov 17, 2025
@pull pull Bot had a problem deploying to deploy-staging November 17, 2025 15:13 Failure
@pull pull Bot merged commit 0d8a9d2 into code:main Nov 17, 2025
1 of 6 checks passed
@pull pull Bot requested a deployment to e2e-dotcom November 17, 2025 15:13 In progress
@pull pull Bot had a problem deploying to deploy-production November 17, 2025 15:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 17, 2025 15:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 18, 2025 00:23 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant