Virtual whiteboard for sketching hand-drawn like diagrams
feat(packages/excalidraw): ViewportStatusFrame & factor out user-follow state (#11819)
David Luzar85270fcc8db2
diff --git a/excalidraw-app/App.tsx b/excalidraw-app/App.tsxindex 9ba64e1df9..8b9f940382 100644--- a/excalidraw-app/App.tsx+++ b/excalidraw-app/App.tsx@@ -33,7 +33,7 @@ import {isDevEnv,} from "@excalidraw/common";import polyfill from "@excalidraw/excalidraw/polyfill";-import { useCallback, useEffect, useRef, useState } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { loadFromBlob } from "@excalidraw/excalidraw/data/blob";import { t } from "@excalidraw/excalidraw/i18n";@@ -97,6 +97,7 @@ import Collab, {collabAPIAtom,isCollaboratingAtom,isOfflineAtom,+ userToFollowAtom,} from "./collab/Collab";import { AppFooter } from "./components/AppFooter";import { AppMainMenu } from "./components/AppMainMenu";@@ -139,6 +140,7 @@ import DebugCanvas, {isVisualDebuggerEnabled,loadSavedDebugState,} from "./components/DebugCanvas";+import { useSimulatedCollaborators } from "./debugCollaborators";import { AIComponents } from "./components/AI";import { ExcalidrawPlusIframeExport } from "./ExcalidrawPlusIframeExport";@@ -409,6 +411,37 @@ const ExcalidrawWrapper = () => {return isCollaborationLink(window.location.href);});const collabError = useAtomValue(collabErrorIndicatorAtom);+ const userToFollow = useAtomValue(userToFollowAtom);++ const viewportStatusFrame = useMemo(+ () =>+ userToFollow+ ? {+ border: "var(--color-primary-hover)",+ label: {+ label: (+ <>+ Following{" "}+ <span+ style={{+ display: "block",+ whiteSpace: "nowrap",+ overflow: "hidden",+ textOverflow: "ellipsis",+ maxWidth: 100,+ }}+ title={userToFollow.username}+ >+ {userToFollow.username}+ </span>+ </>+ ),+ onClose: () => collabAPI?.setUserToFollow(null),+ },+ }+ : null,+ [userToFollow, collabAPI],+ );useHandleLibrary({excalidrawAPI,@@ -434,6 +467,11 @@ const ExcalidrawWrapper = () => {}}, [excalidrawAPI]);+ // ?collaborators=<N> — populate the canvas with N static fake+ // collaborators for exercising avatar/UserList UI without a real+ // collab room+ useSimulatedCollaborators(excalidrawAPI);+// ---------------------------------------------------------------------------// Hoisted loadImages// ---------------------------------------------------------------------------@@ -908,6 +946,8 @@ const ExcalidrawWrapper = () => {})}><Excalidraw+ viewportStatusFrame={viewportStatusFrame}+ userToFollow={userToFollow}onChange={onChange}onExport={onExport}initialData={initialStatePromiseRef.current.promise}diff --git a/excalidraw-app/collab/Collab.tsx b/excalidraw-app/collab/Collab.tsxindex 87bf7fb1ad..34d225b37e 100644--- a/excalidraw-app/collab/Collab.tsx+++ b/excalidraw-app/collab/Collab.tsx@@ -48,6 +48,7 @@ import type {SocketId,Collaborator,Gesture,+ UserToFollow,} from "@excalidraw/excalidraw/types";import type { Mutable, ValueOf } from "@excalidraw/common/utility-types";@@ -108,6 +109,7 @@ interface CollabState {}export const activeRoomLinkAtom = atom<string | null>(null);+export const userToFollowAtom = atom<UserToFollow | null>(null);type CollabInstance = InstanceType<typeof Collab>;@@ -123,6 +125,7 @@ export interface CollabAPI {getUsername: CollabInstance["getUsername"];getActiveRoomLink: CollabInstance["getActiveRoomLink"];setCollabError: CollabInstance["setErrorDialog"];+ setUserToFollow: CollabInstance["setUserToFollow"];}interface CollabProps {@@ -139,6 +142,8 @@ class Collab extends PureComponent<CollabProps, CollabState> {private socketInitializationTimer?: number;private lastBroadcastedOrReceivedSceneVersion: number = -1;private collaborators = new Map<SocketId, Collaborator>();+ /** the socket ids of the users following the current user */+ private followedBy = new Set<SocketId>();constructor(props: CollabProps) {super(props);@@ -212,7 +217,9 @@ class Collab extends PureComponent<CollabProps, CollabState> {window.addEventListener(EVENT.UNLOAD, this.onUnload);const unsubOnUserFollow = this.excalidrawAPI.onUserFollow((payload) => {- this.portal.socket && this.portal.broadcastUserFollowed(payload);+ this.setUserToFollow(+ payload.action === "FOLLOW" ? payload.userToFollow : null,+ );});const throttledRelayUserViewportBounds = throttleRAF(this.relayVisibleSceneBounds,@@ -238,6 +245,7 @@ class Collab extends PureComponent<CollabProps, CollabState> {getUsername: this.getUsername,getActiveRoomLink: this.getActiveRoomLink,setCollabError: this.setErrorDialog,+ setUserToFollow: this.setUserToFollow,};appJotaiStore.set(collabAPIAtom, collabAPI);@@ -406,9 +414,11 @@ class Collab extends PureComponent<CollabProps, CollabState> {this.lastBroadcastedOrReceivedSceneVersion = -1;this.portal.close();this.fileManager.reset();+ this.followedBy = new Set();if (!opts?.isUnload) {this.setIsCollaborating(false);this.setActiveRoomLink(null);+ appJotaiStore.set(userToFollowAtom, null);this.collaborators = new Map();this.excalidrawAPI.updateScene({collaborators: this.collaborators,@@ -629,11 +639,11 @@ class Collab extends PureComponent<CollabProps, CollabState> {case WS_SUBTYPES.USER_VISIBLE_SCENE_BOUNDS: {const { sceneBounds, socketId } = decryptedData.payload;- const appState = this.excalidrawAPI.getAppState();+ const userToFollow = appJotaiStore.get(userToFollowAtom);// we're not following the user// (shouldn't happen, but could be late message or bug upstream)- if (appState.userToFollow?.socketId !== socketId) {+ if (userToFollow?.socketId !== socketId) {console.warn(`receiving remote client's (from ${socketId}) viewport bounds even though we're not subscribed to it!`,);@@ -641,13 +651,12 @@ class Collab extends PureComponent<CollabProps, CollabState> {}// cross-follow case, ignore updates in this case- if (- appState.userToFollow &&- appState.followedBy.has(appState.userToFollow.socketId)- ) {+ if (this.followedBy.has(userToFollow.socketId)) {return;}+ const appState = this.excalidrawAPI.getAppState();+this.excalidrawAPI.updateScene({appState: zoomToFitBounds({appState,@@ -689,9 +698,7 @@ class Collab extends PureComponent<CollabProps, CollabState> {this.portal.socket.on(WS_EVENTS.USER_FOLLOW_ROOM_CHANGE,(followedBy: SocketId[]) => {- this.excalidrawAPI.updateScene({- appState: { followedBy: new Set(followedBy) },- });+ this.followedBy = new Set(followedBy);this.relayVisibleSceneBounds({ force: true });},@@ -869,26 +876,38 @@ class Collab extends PureComponent<CollabProps, CollabState> {const collaborators: InstanceType<typeof Collab>["collaborators"] =new Map();for (const socketId of sockets) {+ const isCurrentUser = socketId === this.portal.socket?.id;collaborators.set(socketId,- Object.assign({}, this.collaborators.get(socketId), {- isCurrentUser: socketId === this.portal.socket?.id,- }),+ Object.assign(+ // we never receive our own broadcasts, so we need to seed+ // our own collaborator entry with the local username+ isCurrentUser ? { username: this.state.username } : {},+ this.collaborators.get(socketId),+ { isCurrentUser },+ ),);}this.collaborators = collaborators;this.excalidrawAPI.updateScene({ collaborators });++ // unfollow if the followed user left the room+ const userToFollow = appJotaiStore.get(userToFollowAtom);+ if (userToFollow && !collaborators.has(userToFollow.socketId)) {+ this.setUserToFollow(null);+ }}updateCollaborator = (socketId: SocketId, updates: Partial<Collaborator>) => {+ const isCurrentUser = socketId === this.portal.socket?.id;const collaborators = new Map(this.collaborators);const user: Mutable<Collaborator> = Object.assign(- {},+ // we never receive our own broadcasts, so we need to seed+ // our own collaborator entry with the local username+ isCurrentUser ? { username: this.state.username } : {},collaborators.get(socketId),updates,- {- isCurrentUser: socketId === this.portal.socket?.id,- },+ { isCurrentUser },);collaborators.set(socketId, user);this.collaborators = collaborators;@@ -924,12 +943,10 @@ class Collab extends PureComponent<CollabProps, CollabState> {);relayVisibleSceneBounds = (props?: { force: boolean }) => {- const appState = this.excalidrawAPI.getAppState();-- if (this.portal.socket && (appState.followedBy.size > 0 || props?.force)) {+ if (this.portal.socket && (this.followedBy.size > 0 || props?.force)) {this.portal.broadcastVisibleSceneBounds({- sceneBounds: getVisibleSceneBounds(appState),+ sceneBounds: getVisibleSceneBounds(this.excalidrawAPI.getAppState()),},`follow@${this.portal.socket.id}`,);@@ -984,9 +1001,37 @@ class Collab extends PureComponent<CollabProps, CollabState> {{ leading: false },);+ setUserToFollow = (userToFollow: UserToFollow | null) => {+ const prev = appJotaiStore.get(userToFollowAtom) ?? null;++ if (prev?.socketId !== userToFollow?.socketId && this.portal.socket) {+ // leave the previous user's follow room before joining the next one+ if (prev) {+ this.portal.broadcastUserFollowed({+ userToFollow: prev,+ action: "UNFOLLOW",+ });+ }+ if (userToFollow) {+ this.portal.broadcastUserFollowed({+ userToFollow,+ action: "FOLLOW",+ });+ }+ }++ appJotaiStore.set(userToFollowAtom, userToFollow);+ };+setUsername = (username: string) => {this.setState({ username });saveUsernameToLocalStorage(username);++ // keep our own collaborator entry in sync+ const socketId = this.portal.socket?.id as SocketId | undefined;+ if (socketId && this.collaborators.has(socketId)) {+ this.updateCollaborator(socketId, { username });+ }};getUsername = () => this.state.username;diff --git a/excalidraw-app/debugCollaborators.ts b/excalidraw-app/debugCollaborators.tsnew file mode 100644index 0000000000..e1728f7b41--- /dev/null+++ b/excalidraw-app/debugCollaborators.ts@@ -0,0 +1,74 @@+import { useEffect } from "react";++import { isDevEnv, toBrandedType } from "@excalidraw/common";++import type {+ Collaborator,+ ExcalidrawImperativeAPI,+ SocketId,+} from "@excalidraw/excalidraw/types";++/**+ * Dev-only debug helper: `?collaborators=<N>` on excalidraw-app populates+ * the canvas with N static fake collaborators (random usernames, one of+ * them marked as the current user) so avatar/UserList UI can be exercised+ * without a real collab room or a second browser tab.+ *+ * Not meant to coexist with a real collab session — joining an actual room+ * will overwrite these with the real roster (Collab owns `collaborators`+ * from that point on).+ */++const getSimulatedCollaboratorCountFromUrl = (): number | null => {+ const count = Number(+ new URLSearchParams(window.location.search).get("collaborators"),+ );+ return Number.isFinite(count) && count > 0 ? Math.floor(count) : null;+};++const generateSimulatedCollaborators = async (+ count: number,+): Promise<Map<SocketId, Collaborator>> => {+ const { getRandomUsername } = await import("@excalidraw/random-username");++ const collaborators = new Map<SocketId, Collaborator>();++ for (let i = 0; i < count; i++) {+ const socketId = toBrandedType<SocketId>(`debug-collaborator-${i}`);+ collaborators.set(socketId, {+ id: socketId,+ socketId,+ username: getRandomUsername(),+ isCurrentUser: i === 0,+ });+ }++ return collaborators;+};++export const useSimulatedCollaborators = (+ excalidrawAPI: ExcalidrawImperativeAPI | null,+) => {+ useEffect(() => {+ if (!isDevEnv() || !excalidrawAPI) {+ return;+ }++ const count = getSimulatedCollaboratorCountFromUrl();+ if (!count) {+ return;+ }++ let cancelled = false;++ generateSimulatedCollaborators(count).then((collaborators) => {+ if (!cancelled) {+ excalidrawAPI.updateScene({ collaborators });+ }+ });++ return () => {+ cancelled = true;+ };+ }, [excalidrawAPI]);+};diff --git a/packages/excalidraw/actions/actionCanvas.tsx b/packages/excalidraw/actions/actionCanvas.tsxindex 7033ca9025..eded7e9ade 100644--- a/packages/excalidraw/actions/actionCanvas.tsx+++ b/packages/excalidraw/actions/actionCanvas.tsx@@ -133,6 +133,7 @@ export const actionZoomIn = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (_elements, appState, _, app) => {+ app.requestUnfollow();const nextState = {...appState,...getViewportForZoomWithScrollConstraints(@@ -143,7 +144,6 @@ export const actionZoomIn = register({},appState,),- userToFollow: null,};return {appState: nextState,@@ -180,6 +180,7 @@ export const actionZoomOut = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (_elements, appState, _, app) => {+ app.requestUnfollow();const nextState = {...appState,...getViewportForZoomWithScrollConstraints(@@ -190,7 +191,6 @@ export const actionZoomOut = register({},appState,),- userToFollow: null,};return {appState: nextState,@@ -227,6 +227,7 @@ export const actionResetZoom = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (_elements, appState, _, app) => {+ app.requestUnfollow();// reset to 100%, unless a zoom lock floors the zoom higher — then reset to// the locked minimum zoom (the lock's resting zoom level)const nextZoom = appState.scrollConstraints?.lockZoom@@ -242,7 +243,6 @@ export const actionResetZoom = register({},appState,),- userToFollow: null,};return {appState: nextState,@@ -300,6 +300,7 @@ export const actionZoomToFitSelectionInViewport = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (elements, appState, _, app) => {+ app.requestUnfollow();const selectedElements = app.scene.getSelectedElements(appState);const bounds = selectedElements.length? getCommonBounds(getNonDeletedElements(selectedElements))@@ -308,10 +309,7 @@ export const actionZoomToFitSelectionInViewport = register({: getCommonBounds(getNonDeletedElements(elements));const result = zoomToFitBounds({bounds,- appState: {- ...appState,- userToFollow: null,- },+ appState,fit: "scale-down",canvasOffsets: app.viewport.getOffsets(),});@@ -345,6 +343,7 @@ export const actionZoomToFitSelection = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (elements, appState, _, app) => {+ app.requestUnfollow();const selectedElements = app.scene.getSelectedElements(appState);const bounds = selectedElements.length? getCommonBounds(getNonDeletedElements(selectedElements))@@ -353,10 +352,7 @@ export const actionZoomToFitSelection = register({: getCommonBounds(getNonDeletedElements(elements));const result = zoomToFitBounds({bounds,- appState: {- ...appState,- userToFollow: null,- },+ appState,fit: "contain",canvasOffsets: app.viewport.getOffsets(),});@@ -386,16 +382,14 @@ export const actionZoomToFit = register({trackEvent: { category: "canvas" },predicate: (elements, appState, appProps, app) => app.isNavigationEnabled(),perform: (elements, appState, _, app) => {+ app.requestUnfollow();// under a viewport lock, fits the locked box rather than the elementsconst bounds = appState.scrollConstraints? getScrollConstraintsBounds(appState.scrollConstraints): getCommonBounds(getNonDeletedElements(elements));const result = zoomToFitBounds({bounds,- appState: {- ...appState,- userToFollow: null,- },+ appState,fit: "scale-down",canvasOffsets: app.viewport.getOffsets(),});diff --git a/packages/excalidraw/actions/actionNavigate.tsx b/packages/excalidraw/actions/actionNavigate.tsxindex 02dcecef50..e1a639e44b 100644--- a/packages/excalidraw/actions/actionNavigate.tsx+++ b/packages/excalidraw/actions/actionNavigate.tsx@@ -23,7 +23,7 @@ export const actionGoToCollaborator = register<Collaborator>({label: "Go to a collaborator",viewMode: true,trackEvent: { category: "collab" },- perform: (_elements, appState, collaborator) => {+ perform: (_elements, appState, collaborator, app) => {invariant(collaborator,"actionGoToCollaborator: collaborator should be defined when actionGoToCollaborator is called",@@ -31,25 +31,27 @@ export const actionGoToCollaborator = register<Collaborator>({if (!collaborator.socketId ||- appState.userToFollow?.socketId === collaborator.socketId ||+ app.props.userToFollow?.socketId === collaborator.socketId ||collaborator.isCurrentUser) {+ app.requestUnfollow();return {- appState: {- ...appState,- userToFollow: null,- },+ appState,captureUpdate: CaptureUpdateAction.EVENTUALLY,};}+ app.emitUserFollowIntent({+ userToFollow: {+ socketId: collaborator.socketId,+ username: collaborator.username || "",+ },+ action: "FOLLOW",+ });+return {appState: {...appState,- userToFollow: {- socketId: collaborator.socketId,- username: collaborator.username || "",- },// Close mobile menuopenMenu: appState.openMenu === "canvas" ? null : appState.openMenu,},@@ -96,7 +98,11 @@ export const actionGoToCollaborator = register<Collaborator>({<divclassName={`dropdown-menu-item dropdown-menu-item-base UserList__collaborator ${statusClassNames}`}style={{ [`--avatar-size` as any]: "1.5rem" }}- onClick={() => updateData<Collaborator>(collaborator)}+ onClick={+ collaborator.isCurrentUser+ ? undefined+ : () => updateData<Collaborator>(collaborator)+ }><Avatarcolor={background}@@ -117,6 +123,7 @@ export const actionGoToCollaborator = register<Collaborator>({{eyeIcon}</div>)}+ {collaborator.isCurrentUser && ` (${t("labels.you")})`}{statusIconJSX}</div></div>diff --git a/packages/excalidraw/appState.ts b/packages/excalidraw/appState.tsindex e1abb4c94f..91a452e321 100644--- a/packages/excalidraw/appState.ts+++ b/packages/excalidraw/appState.ts@@ -123,8 +123,6 @@ export const getDefaultAppState = (): Omit<y: 0,},objectsSnapModeEnabled: false,- userToFollow: null,- followedBy: new Set(),isCropping: false,croppingElementId: null,searchMatches: null,@@ -257,8 +255,6 @@ const APP_STATE_STORAGE_CONF = (<snapLines: { browser: false, export: false, server: false },originSnapOffset: { browser: false, export: false, server: false },objectsSnapModeEnabled: { browser: true, export: false, server: false },- userToFollow: { browser: false, export: false, server: false },- followedBy: { browser: false, export: false, server: false },isCropping: { browser: false, export: false, server: false },croppingElementId: { browser: false, export: false, server: false },searchMatches: { browser: false, export: false, server: false },diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsxindex ca69d4a036..b8be5be54f 100644--- a/packages/excalidraw/components/App.tsx+++ b/packages/excalidraw/components/App.tsx@@ -440,7 +440,7 @@ import { AppViewport, RIGHT_SIDEBAR_WIDTH } from "./App.viewport";import BraveMeasureTextError from "./BraveMeasureTextError";import { ContextMenu, CONTEXT_MENU_SEPARATOR } from "./ContextMenu";import { activeEyeDropperAtom } from "./EyeDropper";-import FollowMode from "./FollowMode/FollowMode";+import ViewportStatusFrame from "./ViewportStatusFrame/ViewportStatusFrame";import LayerUI from "./LayerUI";import { ElementCanvasButton } from "./MagicButton";import { SVGLayer } from "./SVGLayer";@@ -2435,6 +2435,7 @@ class App extends React.Component<AppProps, AppState> {generateLinkForSelection={this.props.generateLinkForSelection}+ currentUserControls={this.props.currentUserControls}>{this.props.children}</LayerUI>@@ -2640,15 +2641,11 @@ class App extends React.Component<AppProps, AppState> {onPointerDown={this.handleCanvasPointerDown}onDoubleClick={this.handleCanvasDoubleClick}/>- {this.isDefaultUIEnabled() &&- this.state.userToFollow && (- <FollowMode- width={this.state.width}- height={this.state.height}- userToFollow={this.state.userToFollow}- onDisconnect={this.maybeUnfollowRemoteUser}- />- )}+ {this.props.viewportStatusFrame && (+ <ViewportStatusFrame+ status={this.props.viewportStatusFrame}+ />+ )}{this.renderFrameNames()}{this.isDefaultUIEnabled() &&this.state.activeLockedId && (@@ -4103,14 +4100,6 @@ class App extends React.Component<AppProps, AppState> {this.setState({ showWelcomeScreen: true });}- const hasFollowedPersonLeft =- prevState.userToFollow &&- !this.state.collaborators.has(prevState.userToFollow.socketId);-- if (hasFollowedPersonLeft) {- this.maybeUnfollowRemoteUser();- }-if (prevState.zoom.value !== this.state.zoom.value ||prevState.scrollX !== this.state.scrollX ||@@ -4128,22 +4117,6 @@ class App extends React.Component<AppProps, AppState> {);}- if (prevState.userToFollow !== this.state.userToFollow) {- if (prevState.userToFollow) {- this.onUserFollowEmitter.trigger({- userToFollow: prevState.userToFollow,- action: "UNFOLLOW",- });- }-- if (this.state.userToFollow) {- this.onUserFollowEmitter.trigger({- userToFollow: this.state.userToFollow,- action: "FOLLOW",- });- }- }-if (Object.keys(this.state.selectedElementIds).length &&isEraserActive(this.state)@@ -5093,9 +5066,22 @@ class App extends React.Component<AppProps, AppState> {});};- private maybeUnfollowRemoteUser = () => {- if (this.state.userToFollow) {- this.setState({ userToFollow: null });+ /** emits a follow/unfollow intent to the host (which owns the+ * `userToFollow` state) via both the `onUserFollow` prop and the+ * imperative API emitter */+ public emitUserFollowIntent = (payload: OnUserFollowedPayload) => {+ this.onUserFollowEmitter.trigger(payload);+ this.props.onUserFollow?.(payload);+ };++ /** emits an UNFOLLOW intent if currently following someone — use on+ * user-initiated viewport changes which should break follow mode */+ public requestUnfollow = () => {+ if (this.props.userToFollow) {+ this.emitUserFollowIntent({+ userToFollow: this.props.userToFollow,+ action: "UNFOLLOW",+ });}};@@ -8328,7 +8314,11 @@ class App extends React.Component<AppProps, AppState> {}this.maybeCleanupAfterMissingPointerUp(event.nativeEvent);- this.maybeUnfollowRemoteUser();+ // laser pointer is a presentation aid, not an edit — using it while+ // following someone shouldn't break follow+ if (this.state.activeTool.type !== "laser") {+ this.requestUnfollow();+ }if (this.state.searchMatches) {this.setState((state) => {diff --git a/packages/excalidraw/components/App.viewport.ts b/packages/excalidraw/components/App.viewport.tsindex f621db60fc..2c0257c8fb 100644--- a/packages/excalidraw/components/App.viewport.ts+++ b/packages/excalidraw/components/App.viewport.ts@@ -749,9 +749,7 @@ export class AppViewport {AnimationController.cancel(SCROLL_CONSTRAINTS_SNAP_BACK_ANIMATION_KEY);}this.app.setState({ shouldCacheIgnoreZoom: false });- if (this.app.state.userToFollow) {- this.app.setState({ userToFollow: null });- }+ this.app.requestUnfollow();const prevZoom = this.app.state.zoom.value;this.app.setState(state);diff --git a/packages/excalidraw/components/FollowMode/FollowMode.scss b/packages/excalidraw/components/FollowMode/FollowMode.scssdeleted file mode 100644index 383b3ceedb..0000000000--- a/packages/excalidraw/components/FollowMode/FollowMode.scss+++ /dev/null@@ -1,59 +0,0 @@-.excalidraw {- .follow-mode {- position: absolute;- box-sizing: border-box;- pointer-events: none;- border: 2px solid var(--color-primary-hover);- z-index: 9999;- display: flex;- align-items: flex-end;- justify-content: center;-- &__badge {- background-color: var(--color-primary-hover);- color: var(--color-primary-light);- padding: 0.25rem 0.5rem;- margin-bottom: 0.5rem;- border-radius: 0.5rem;- pointer-events: all;- font-size: 0.75rem;- display: flex;- gap: 0.5rem;- align-items: center;-- &__label {- display: flex;- white-space: pre-wrap;- line-height: 1;- }-- &__username {- display: block;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- max-width: 100px;- }- }-- &__disconnect-btn {- all: unset;- cursor: pointer;- border-radius: 0.25rem;-- &:hover {- background-color: var(--color-primary-darker);- }-- &:active {- background-color: var(--color-primary-darkest);- }-- svg {- display: block;- width: 1rem;- height: 1rem;- }- }- }-}diff --git a/packages/excalidraw/components/FollowMode/FollowMode.tsx b/packages/excalidraw/components/FollowMode/FollowMode.tsxdeleted file mode 100644index e862cb4ea3..0000000000--- a/packages/excalidraw/components/FollowMode/FollowMode.tsx+++ /dev/null@@ -1,44 +0,0 @@-import { CloseIcon } from "../icons";--import "./FollowMode.scss";--import type { UserToFollow } from "../../types";--interface FollowModeProps {- width: number;- height: number;- userToFollow: UserToFollow;- onDisconnect: () => void;-}--const FollowMode = ({- height,- width,- userToFollow,- onDisconnect,-}: FollowModeProps) => {- return (- <div className="follow-mode" style={{ width, height }}>- <div className="follow-mode__badge">- <div className="follow-mode__badge__label">- Following{" "}- <span- className="follow-mode__badge__username"- title={userToFollow.username}- >- {userToFollow.username}- </span>- </div>- <button- type="button"- onClick={onDisconnect}- className="follow-mode__disconnect-btn"- >- {CloseIcon}- </button>- </div>- </div>- );-};--export default FollowMode;diff --git a/packages/excalidraw/components/LayerUI.tsx b/packages/excalidraw/components/LayerUI.tsxindex 43ded1403c..1b7f3f4ab3 100644--- a/packages/excalidraw/components/LayerUI.tsx+++ b/packages/excalidraw/components/LayerUI.tsx@@ -39,7 +39,7 @@ import Footer from "./footer/Footer";import { isSidebarDockedAtom } from "./Sidebar/Sidebar";import MainMenu from "./main-menu/MainMenu";import { ActiveConfirmDialog } from "./ActiveConfirmDialog";-import { useEditorInterface, useStylesPanelMode } from "./App";+import { useAppProps, useEditorInterface, useStylesPanelMode } from "./App";import { OverwriteConfirmDialog } from "./OverwriteConfirm/OverwriteConfirm";import { sidebarRightIcon } from "./icons";import { DefaultSidebar } from "./DefaultSidebar";@@ -96,6 +96,7 @@ interface LayerUIProps {scrollBackToContentUIEnabled: boolean;isCollaborating: boolean;generateLinkForSelection?: AppProps["generateLinkForSelection"];+ currentUserControls?: ExcalidrawProps["currentUserControls"];}const DefaultMainMenu: React.FC<{@@ -157,8 +158,10 @@ const LayerUI = ({scrollBackToContentUIEnabled,isCollaborating,generateLinkForSelection,+ currentUserControls,}: LayerUIProps) => {const editorInterface = useEditorInterface();+ const appProps = useAppProps();const stylesPanelMode = useStylesPanelMode();const isCompactStylesPanel = stylesPanelMode === "compact";const tunnels = useInitializeTunnels();@@ -397,7 +400,8 @@ const LayerUI = ({{defaultUIEnabled && appState.collaborators.size > 0 && (<UserListcollaborators={appState.collaborators}- userToFollow={appState.userToFollow?.socketId || null}+ userToFollow={appProps.userToFollow?.socketId || null}+ currentUserControls={currentUserControls}/>)}{renderTopRightUI?.(diff --git a/packages/excalidraw/components/UserList.scss b/packages/excalidraw/components/UserList.scssindex af0d1f74fe..887e7d70e0 100644--- a/packages/excalidraw/components/UserList.scss+++ b/packages/excalidraw/components/UserList.scss@@ -29,7 +29,10 @@pointer-events: none;padding: var(--userList-padding);display: flex;- flex-wrap: wrap;+ // never wrap — the current user's pill is always the last item and its+ // width is already carved out of the container's width up front (see+ // UserList.tsx), so wrapping would only ever orphan it onto its own line+ flex-wrap: nowrap;justify-content: flex-end;align-items: center;gap: var(--avatarList-gap);@@ -53,6 +56,8 @@}.UserList_mobile {+ flex-direction: column;+ align-items: stretch;padding: 0;justify-content: normal;margin: 0.5rem 0;@@ -60,18 +65,11 @@max-height: none;}- .UserList__more {- @include avatarStyles;-- & {- background-color: var(--color-gray-20);- border: 0 !important;- font-size: 0.625rem;- font-weight: 400;- flex-shrink: 0;- color: var(--color-gray-100);- font-weight: bold;- }+ .UserList_mobile__avatars {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: var(--avatarList-gap);}.UserList__collaborator-name {@@ -80,6 +78,34 @@white-space: nowrap;}+ .UserList__pill {+ display: flex;+ align-items: center;+ padding: 0 0.25rem 0 0;+ border-radius: 1.25rem;+ background-color: var(--color-surface-low);+ border: 1px solid var(--color-gray-20);+ cursor: pointer;+ pointer-events: var(--ui-pointerEvents);++ &:hover {+ background-color: var(--color-surface-high);+ }+ }++ .UserList__pill-chevron {+ display: flex;+ align-items: center;+ color: var(--color-gray-50);+ width: 15px;+ height: 15px;++ svg {+ width: 100%;+ height: 100%;+ }+ }+.UserList__collaborator--avatar-only {position: relative;display: flex;@@ -110,6 +136,12 @@display: flex;}+ // the current user's own row in the "who's here" list isn't clickable —+ // no hover/active background, no focus ring, no pointer cursor+ .UserList__collaborator.is-current-user {+ pointer-events: none;+ }+.UserList__collaborator.is-muted.UserList__collaborator-status-icon-microphone-muted {color: var(--color-danger);@@ -159,5 +191,17 @@.UserList__collaborators {top: auto;max-height: 50vh;+ // leave room for the focus/hover ring (box-shadow) on collaborator rows —+ // without it, the list's overflow-y:auto (which also clips overflow-x)+ // cuts the ring off flush against the container's edges: sideways for+ // every row, and top/bottom for the first/last one+ padding: 2px;+ box-sizing: border-box;+ }++ .UserList__menu-divider {+ height: 1px;+ background-color: var(--userlist-collaborators-border-color);+ margin: 0.25rem 0;}}diff --git a/packages/excalidraw/components/UserList.tsx b/packages/excalidraw/components/UserList.tsxindex 39a3ee57d1..c7b16cf407 100644--- a/packages/excalidraw/components/UserList.tsx+++ b/packages/excalidraw/components/UserList.tsx@@ -9,6 +9,7 @@ import type { MarkRequired } from "@excalidraw/common/utility-types";import { t } from "../i18n";import { useExcalidrawActionManager } from "./App";+import { chevronDownIcon } from "./icons";import { Island } from "./Island";import { QuickSearch } from "./QuickSearch";import { ScrollableList } from "./ScrollableList";@@ -32,6 +33,14 @@ type ClientId = string & { _brand: "UserId" };const DEFAULT_MAX_AVATARS = 4;const SHOW_COLLABORATORS_FILTER_AT = 8;+// avatar (28px) + gap (10px)+const AVATAR_SLOT_WIDTH = 38;+// the current user's pill (avatar + chevron + its own padding/border) is+// wider than a plain avatar — reserving this extra width for it keeps it+// from ever being the item that tips the row over and wraps onto its own+// line (chevron 15px + pill's right padding 4px + pill's border 2px)+const PILL_EXTRA_WIDTH = 21;+const ConditionalTooltipWrapper = ({shouldWrap,children,@@ -90,6 +99,7 @@ type UserListUserObject = Pick<| "isInCall"| "isSpeaking"| "isMuted"+ | "isCurrentUser">;type UserListProps = {@@ -97,6 +107,9 @@ type UserListProps = {mobile?: boolean;collaborators: Map<SocketId, UserListUserObject>;userToFollow: SocketId | null;+ currentUserControls?:+ | React.ReactNode+ | ((isMobile: boolean) => React.ReactNode);};const collaboratorComparatorKeys = [@@ -107,12 +120,24 @@ const collaboratorComparatorKeys = ["isInCall","isSpeaking","isMuted",+ "isCurrentUser",] as const;export const UserList = React.memo(- ({ className, mobile, collaborators, userToFollow }: UserListProps) => {+ ({+ className,+ mobile,+ collaborators,+ userToFollow,+ currentUserControls,+ }: UserListProps) => {const actionManager = useExcalidrawActionManager();+ const resolvedCurrentUserControls =+ typeof currentUserControls === "function"+ ? currentUserControls(!!mobile)+ : currentUserControls;+const uniqueCollaboratorsMap = new Map<ClientId,MarkRequired<Collaborator, "socketId">@@ -141,12 +166,11 @@ export const UserList = React.memo(useLayoutEffect(() => {if (userListWrapper.current) {- const updateMaxAvatars = (width: number) => {- const maxAvatars = Math.max(1, Math.min(8, Math.floor(width / 38)));- setMaxAvatars(maxAvatars);+ const updateWrapperWidth = (width: number) => {+ setWrapperWidth(width);};- updateMaxAvatars(userListWrapper.current.clientWidth);+ updateWrapperWidth(userListWrapper.current.clientWidth);if (!supportsResizeObserver) {return;@@ -155,7 +179,7 @@ export const UserList = React.memo(const resizeObserver = new ResizeObserver((entries) => {for (const entry of entries) {const { width } = entry.contentRect;- updateMaxAvatars(width);+ updateWrapperWidth(width);}});@@ -167,98 +191,152 @@ export const UserList = React.memo(}}, []);- const [maxAvatars, setMaxAvatars] = React.useState(DEFAULT_MAX_AVATARS);+ const [wrapperWidth, setWrapperWidth] = React.useState(+ DEFAULT_MAX_AVATARS * AVATAR_SLOT_WIDTH,+ );++ const currentUser = uniqueCollaboratorsArray.find((c) => c.isCurrentUser);+ const otherCollaborators = uniqueCollaboratorsArray.filter(+ (c) => !c.isCurrentUser,+ );- const firstNCollaborators = uniqueCollaboratorsArray.slice(- 0,- maxAvatars - 1,+ // the current user's avatar is always shown, reserved as the last+ // slot — it's the single entry point for the collaborators ++ // currentUserControls dropdown, so it's never hidden by/counted in+ // overflow. Its width (wider than a plain avatar) is carved out of the+ // available width up front so it always shares a row with the other+ // avatars — if there's only room for the pill itself, it renders alone+ // rather than wrapping onto its own line.+ const availableWidth = currentUser+ ? wrapperWidth - PILL_EXTRA_WIDTH+ : wrapperWidth;+ const totalSlots = Math.max(+ 1,+ Math.min(8, Math.floor(availableWidth / AVATAR_SLOT_WIDTH)),);+ const otherSlots = currentUser ? Math.max(0, totalSlots - 1) : totalSlots;+ const visibleOthers = otherCollaborators.slice(0, otherSlots);++ const firstNCollaborators = currentUser+ ? [...visibleOthers, currentUser]+ : visibleOthers;- const firstNAvatarsJSX = firstNCollaborators.map((collaborator) =>- renderCollaborator({+ const firstNAvatarsJSX = firstNCollaborators.map((collaborator) => {+ const avatarJSX = renderCollaborator({actionManager,collaborator,socketId: collaborator.socketId,shouldWrapWithTooltip: true,isBeingFollowed: collaborator.socketId === userToFollow,- }),- );+ });++ if (!collaborator.isCurrentUser) {+ return avatarJSX;+ }++ // current user's avatar is the single entry point for the "who's+ // here" list + currentUserControls dropdown+ return (+ <Popover.Root key={collaborator.socketId}>+ <Popover.Trigger asChild>+ <div className="UserList__pill">+ {avatarJSX}+ <div className="UserList__pill-chevron">{chevronDownIcon}</div>+ </div>+ </Popover.Trigger>+ <Popover.Content+ className="focus-visible-none"+ style={{+ zIndex: 2,+ width: "15rem",+ textAlign: "left",+ }}+ align="end"+ sideOffset={10}+ >+ <Island padding={2}>+ {uniqueCollaboratorsArray.length >=+ SHOW_COLLABORATORS_FILTER_AT && (+ <QuickSearch+ placeholder={t("quickSearch.placeholder")}+ onChange={setSearchTerm}+ />+ )}+ <ScrollableList+ className={"dropdown-menu UserList__collaborators"}+ placeholder={t("userList.empty")}+ >+ {/* The list checks for `Children.count()`, hence defensively returning empty list */}+ {filteredCollaborators.length > 0+ ? [+ <div className="hint">{t("userList.hint.text")}</div>,+ filteredCollaborators.map((c) =>+ renderCollaborator({+ actionManager,+ collaborator: c,+ socketId: c.socketId,+ withName: true,+ isBeingFollowed: c.socketId === userToFollow,+ }),+ ),+ ]+ : []}+ </ScrollableList>+ {resolvedCurrentUserControls && (+ <>+ <div className="UserList__menu-divider" />+ <Popover.Close asChild>+ <div className="dropdown-menu">+ {resolvedCurrentUserControls}+ </div>+ </Popover.Close>+ </>+ )}+ <Popover.Arrow+ width={20}+ height={10}+ style={{+ fill: "var(--popup-bg-color)",+ filter: "drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)",+ }}+ />+ </Island>+ </Popover.Content>+ </Popover.Root>+ );+ });return mobile ? (<div className={clsx("UserList UserList_mobile", className)}>- {uniqueCollaboratorsArray.map((collaborator) =>- renderCollaborator({- actionManager,- collaborator,- socketId: collaborator.socketId,- shouldWrapWithTooltip: true,- isBeingFollowed: collaborator.socketId === userToFollow,- }),+ <div className="UserList_mobile__avatars">+ {uniqueCollaboratorsArray.map((collaborator) =>+ renderCollaborator({+ actionManager,+ collaborator,+ socketId: collaborator.socketId,+ shouldWrapWithTooltip: true,+ isBeingFollowed: collaborator.socketId === userToFollow,+ }),+ )}+ </div>+ {resolvedCurrentUserControls && (+ <>+ <div className="UserList__menu-divider" />+ {resolvedCurrentUserControls}+ </>)}</div>) : (<div className="UserList__wrapper" ref={userListWrapper}><divclassName={clsx("UserList", className)}- style={{ [`--max-avatars` as any]: maxAvatars }}+ style={{+ [`--max-avatars` as any]:+ firstNCollaborators.length ++ (currentUser ? PILL_EXTRA_WIDTH / AVATAR_SLOT_WIDTH : 0),+ }}>{firstNAvatarsJSX}-- {uniqueCollaboratorsArray.length > maxAvatars - 1 && (- <Popover.Root>- <Popover.Trigger className="UserList__more">- +{uniqueCollaboratorsArray.length - maxAvatars + 1}- </Popover.Trigger>- <Popover.Content- style={{- zIndex: 2,- width: "15rem",- textAlign: "left",- }}- align="end"- sideOffset={10}- >- <Island padding={2}>- {uniqueCollaboratorsArray.length >=- SHOW_COLLABORATORS_FILTER_AT && (- <QuickSearch- placeholder={t("quickSearch.placeholder")}- onChange={setSearchTerm}- />- )}- <ScrollableList- className={"dropdown-menu UserList__collaborators"}- placeholder={t("userList.empty")}- >- {/* The list checks for `Children.count()`, hence defensively returning empty list */}- {filteredCollaborators.length > 0- ? [- <div className="hint">{t("userList.hint.text")}</div>,- filteredCollaborators.map((collaborator) =>- renderCollaborator({- actionManager,- collaborator,- socketId: collaborator.socketId,- withName: true,- isBeingFollowed:- collaborator.socketId === userToFollow,- }),- ),- ]- : []}- </ScrollableList>- <Popover.Arrow- width={20}- height={10}- style={{- fill: "var(--popup-bg-color)",- filter: "drop-shadow(rgba(0, 0, 0, 0.05) 0px 3px 2px)",- }}- />- </Island>- </Popover.Content>- </Popover.Root>- )}</div></div>);@@ -268,7 +346,8 @@ export const UserList = React.memo(prev.collaborators.size !== next.collaborators.size ||prev.mobile !== next.mobile ||prev.className !== next.className ||- prev.userToFollow !== next.userToFollow+ prev.userToFollow !== next.userToFollow ||+ prev.currentUserControls !== next.currentUserControls) {return false;}diff --git a/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.scss b/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.scssnew file mode 100644index 0000000000..e18984c1d3--- /dev/null+++ b/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.scss@@ -0,0 +1,66 @@+.excalidraw {+ .viewport-status-frame__border {+ position: absolute;+ inset: 0;+ box-sizing: border-box;+ pointer-events: none;+ border: 2px solid;+ z-index: 9999;+ }++ .viewport-status-frame__badge {+ position: absolute;+ bottom: 0.5rem;+ left: 50%;+ transform: translateX(-50%);+ z-index: 9999;+ pointer-events: all;++ background-color: var(--color-primary-hover);+ color: var(--color-primary-light);+ padding: 0.25rem 0.5rem;+ border-radius: 0.5rem;+ font-size: 0.75rem;+ display: flex;+ gap: 0.5rem;+ align-items: center;+ }++ .viewport-status-frame__badge-label {+ display: flex;+ align-items: center;+ gap: 0.25rem;+ white-space: pre-wrap;+ line-height: 1;+ }++ .viewport-status-frame__badge-icon {+ display: flex;+ align-items: center;++ svg {+ width: 1rem;+ height: 1rem;+ }+ }++ .viewport-status-frame__badge-close {+ all: unset;+ cursor: pointer;+ border-radius: 0.25rem;++ &:hover {+ background-color: var(--color-primary-darker);+ }++ &:active {+ background-color: var(--color-primary-darkest);+ }++ svg {+ display: block;+ width: 1rem;+ height: 1rem;+ }+ }+}diff --git a/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.tsx b/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.tsxnew file mode 100644index 0000000000..d54cb9794d--- /dev/null+++ b/packages/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.tsx@@ -0,0 +1,56 @@+import { t } from "../../i18n";+import { CloseIcon } from "../icons";++import "./ViewportStatusFrame.scss";++import type { ViewportStatusFrame as ViewportStatusFrameType } from "../../types";++interface ViewportStatusFrameProps {+ status: ViewportStatusFrameType;+}++const ViewportStatusFrame = ({ status }: ViewportStatusFrameProps) => {+ const { border, label } = status;++ return (+ <>+ {border && (+ <div+ className="viewport-status-frame__border"+ style={{ borderColor: border }}+ />+ )}+ {label && (+ <div+ className="viewport-status-frame__badge"+ role="status"+ style={{+ backgroundColor: label.background || border || undefined,+ color: label.color,+ }}+ >+ <div className="viewport-status-frame__badge-label">+ {label.icon && (+ <span className="viewport-status-frame__badge-icon">+ {label.icon}+ </span>+ )}+ {label.label}+ </div>+ {label.onClose && (+ <button+ type="button"+ className="viewport-status-frame__badge-close"+ aria-label={t("buttons.close")}+ onClick={label.onClose}+ >+ {CloseIcon}+ </button>+ )}+ </div>+ )}+ </>+ );+};++export default ViewportStatusFrame;diff --git a/packages/excalidraw/components/icons.tsx b/packages/excalidraw/components/icons.tsxindex 784b1f3038..707198cbe3 100644--- a/packages/excalidraw/components/icons.tsx+++ b/packages/excalidraw/components/icons.tsx@@ -2534,6 +2534,15 @@ export const presentationIcon = createIcon(// empty placeholder icon (used for alignment in menus)export const emptyIcon = <div style={{ width: "1rem", height: "1rem" }} />;+//tabler-icons: chevron-down+export const chevronDownIcon = createIcon(+ <g strokeWidth="1.5">+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />+ <polyline points="6 9 12 15 18 9" />+ </g>,+ tablerIconProps,+);+//tabler-icons: chevron-rightexport const chevronRight = createIcon(<g strokeWidth="1.5">diff --git a/packages/excalidraw/components/main-menu/MainMenu.tsx b/packages/excalidraw/components/main-menu/MainMenu.tsxindex 3755f1f0d4..fa41feeccb 100644--- a/packages/excalidraw/components/main-menu/MainMenu.tsx+++ b/packages/excalidraw/components/main-menu/MainMenu.tsx@@ -5,7 +5,11 @@ import { composeEventHandlers } from "@excalidraw/common";import { useTunnels } from "../../context/tunnels";import { useUIAppState } from "../../context/ui-appState";import { t } from "../../i18n";-import { useEditorInterface, useExcalidrawSetAppState } from "../App";+import {+ useAppProps,+ useEditorInterface,+ useExcalidrawSetAppState,+} from "../App";import { UserList } from "../UserList";import DropdownMenu from "../dropdownMenu/DropdownMenu";import DropdownMenuSub from "../dropdownMenu/DropdownMenuSub";@@ -30,6 +34,7 @@ const MainMenu = Object.assign(const { MainMenuTunnel } = useTunnels();const editorInterface = useEditorInterface();const appState = useUIAppState();+ const appProps = useAppProps();const setAppState = useExcalidrawSetAppState();return (@@ -64,7 +69,8 @@ const MainMenu = Object.assign(<UserListmobile={true}collaborators={appState.collaborators}- userToFollow={appState.userToFollow?.socketId || null}+ userToFollow={appProps.userToFollow?.socketId || null}+ currentUserControls={appProps.currentUserControls}/></fieldset>)}diff --git a/packages/excalidraw/index.tsx b/packages/excalidraw/index.tsxindex 240743cb44..fff49d793d 100644--- a/packages/excalidraw/index.tsx+++ b/packages/excalidraw/index.tsx@@ -102,6 +102,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {onPointerDown,onPointerUp,onScrollChange,+ onUserFollow,+ userToFollow,onDuplicate,children,validateEmbeddable,@@ -109,6 +111,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {aiEnabled,showDeprecatedFonts,renderScrollbars,+ viewportStatusFrame,+ currentUserControls,imageOptions,} = props;@@ -239,12 +243,16 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {onPointerDown={onPointerDown}onPointerUp={onPointerUp}onScrollChange={onScrollChange}+ onUserFollow={onUserFollow}+ userToFollow={userToFollow}onDuplicate={onDuplicate}validateEmbeddable={validateEmbeddable}renderEmbeddable={renderEmbeddable}aiEnabled={aiEnabled !== false}showDeprecatedFonts={showDeprecatedFonts}renderScrollbars={renderScrollbars}+ viewportStatusFrame={viewportStatusFrame}+ currentUserControls={currentUserControls}imageOptions={normalizedImageOptions}>{children}@@ -475,6 +483,8 @@ export type {SavedChats,} from "./components/TTDDialog/types";+export type { ViewportStatusFrame } from "./types";+export { zoomToFitBounds, DEFAULT_OVERSCROLL } from "./viewport";export {diff --git a/packages/excalidraw/locales/en.json b/packages/excalidraw/locales/en.jsonindex 62413515c0..3c5f47fe76 100644--- a/packages/excalidraw/locales/en.json+++ b/packages/excalidraw/locales/en.json@@ -109,6 +109,7 @@"group": "Group selection","ungroup": "Ungroup selection","collaborators": "Collaborators",+ "you": "You","toggleGrid": "Toggle grid","addToLibrary": "Add to library","removeFromLibrary": "Remove from library",diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snapindex 0161971b52..a2f634d77e 100644--- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap+++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap@@ -919,7 +919,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -989,7 +988,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -1121,7 +1119,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1187,7 +1184,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e"toast": {"message": "Added to library",},- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -1338,7 +1334,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1402,7 +1397,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -1672,7 +1666,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1736,7 +1729,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -2006,7 +1998,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2072,7 +2063,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st"toast": {"message": "Copied styles.",},- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -2223,7 +2213,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2285,7 +2274,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -2467,7 +2455,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2531,7 +2518,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -2768,7 +2754,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2837,7 +2822,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -3143,7 +3127,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3209,7 +3192,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s"toast": {"message": "Copied styles.",},- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -3666,7 +3648,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3730,7 +3711,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -3992,7 +3972,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4056,7 +4035,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -4318,7 +4296,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4385,7 +4362,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -5606,7 +5582,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5673,7 +5648,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -6826,7 +6800,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -6895,7 +6868,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -7786,7 +7758,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7851,7 +7822,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -8789,7 +8759,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8853,7 +8822,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,@@ -9783,7 +9751,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9850,7 +9817,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 200,diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snapindex 7cd26c4654..6ab2bc7696 100644--- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap+++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap@@ -45,7 +45,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -108,7 +107,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -681,7 +679,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -744,7 +741,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -1245,7 +1241,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1307,7 +1302,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -1608,7 +1602,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1670,7 +1663,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -1973,7 +1965,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2035,7 +2026,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -2239,7 +2229,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2300,7 +2289,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -2695,7 +2683,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2757,7 +2744,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -3001,7 +2987,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3063,7 +3048,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -3323,7 +3307,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3385,7 +3368,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -3620,7 +3602,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3682,7 +3663,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -3909,7 +3889,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3971,7 +3950,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -4147,7 +4125,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4209,7 +4186,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -4407,7 +4383,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4469,7 +4444,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -4681,7 +4655,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4743,7 +4716,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -4913,7 +4885,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4975,7 +4946,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -5145,7 +5115,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5207,7 +5176,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -5395,7 +5363,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5457,7 +5424,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -5654,7 +5620,6 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5716,7 +5681,6 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -5915,7 +5879,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5976,7 +5939,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -6247,7 +6209,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -6308,7 +6269,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -6677,7 +6637,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -6741,7 +6700,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -7054,7 +7012,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7124,7 +7081,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -7369,7 +7325,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7428,7 +7383,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -7664,7 +7618,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7723,7 +7676,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -7897,7 +7849,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7956,7 +7907,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -8252,7 +8202,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8311,7 +8260,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -8607,7 +8555,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8672,7 +8619,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -9016,7 +8962,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9075,7 +9020,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -9306,7 +9250,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9367,7 +9310,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -9573,7 +9515,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9634,7 +9575,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -9841,7 +9781,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9902,7 +9841,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -10076,7 +10014,6 @@ exports[`history > multiplayer undo/redo > should override remotely added groups"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10138,7 +10075,6 @@ exports[`history > multiplayer undo/redo > should override remotely added groups"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -10376,7 +10312,6 @@ exports[`history > multiplayer undo/redo > should override remotely added points"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10437,7 +10372,6 @@ exports[`history > multiplayer undo/redo > should override remotely added points"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -10696,7 +10630,6 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10755,7 +10688,6 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -10935,7 +10867,6 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10997,7 +10928,6 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -11863,7 +11793,6 @@ exports[`history > multiplayer undo/redo > should update history entries after r"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -11924,7 +11853,6 @@ exports[`history > multiplayer undo/redo > should update history entries after r"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -12126,7 +12054,6 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -12185,7 +12112,6 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -12364,7 +12290,6 @@ exports[`history > singleplayer undo/redo > should clear the redo stack on eleme"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -12425,7 +12350,6 @@ exports[`history > singleplayer undo/redo > should clear the redo stack on eleme"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -12604,7 +12528,6 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -12663,7 +12586,6 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -13010,7 +12932,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13074,7 +12995,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -13223,7 +13143,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13284,7 +13203,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -13433,7 +13351,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on i"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13498,7 +13415,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on i"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -13737,7 +13653,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on i"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13799,7 +13714,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on i"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -14038,7 +13952,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on s"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14100,7 +14013,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on s"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#000","viewModeEnabled": false,"width": 0,@@ -14286,7 +14198,6 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14347,7 +14258,6 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -14526,7 +14436,6 @@ exports[`history > singleplayer undo/redo > should end up with no history entry"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14587,7 +14496,6 @@ exports[`history > singleplayer undo/redo > should end up with no history entry"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -14766,7 +14674,6 @@ exports[`history > singleplayer undo/redo > should iterate through the history w"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14827,7 +14734,6 @@ exports[`history > singleplayer undo/redo > should iterate through the history w"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -15016,7 +14922,6 @@ exports[`history > singleplayer undo/redo > should not clear the redo stack on s"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15077,7 +14982,6 @@ exports[`history > singleplayer undo/redo > should not clear the redo stack on s"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -15350,7 +15254,6 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15412,7 +15315,6 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -15523,7 +15425,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15587,7 +15488,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -15810,7 +15710,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15872,7 +15771,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -16076,7 +15974,6 @@ exports[`history > singleplayer undo/redo > should not modify anything on unrela"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -16138,7 +16035,6 @@ exports[`history > singleplayer undo/redo > should not modify anything on unrela"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": true,"width": 0,@@ -16232,7 +16128,6 @@ exports[`history > singleplayer undo/redo > should not override appstate changes"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -16295,7 +16190,6 @@ exports[`history > singleplayer undo/redo > should not override appstate changes"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -16517,7 +16411,6 @@ exports[`history > singleplayer undo/redo > should support appstate name or view"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -16579,7 +16472,6 @@ exports[`history > singleplayer undo/redo > should support appstate name or view"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#000","viewModeEnabled": false,"width": 0,@@ -16682,7 +16574,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -16745,7 +16636,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -17433,7 +17323,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -17496,7 +17385,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -18082,7 +17970,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -18145,7 +18032,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -18731,7 +18617,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -18792,7 +18677,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -19483,7 +19367,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -19547,7 +19430,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -20254,7 +20136,6 @@ exports[`history > singleplayer undo/redo > should support changes in elements'"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -20318,7 +20199,6 @@ exports[`history > singleplayer undo/redo > should support changes in elements'"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -20737,7 +20617,6 @@ exports[`history > singleplayer undo/redo > should support duplication of groups"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -20803,7 +20682,6 @@ exports[`history > singleplayer undo/redo > should support duplication of groups"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -21251,7 +21129,6 @@ exports[`history > singleplayer undo/redo > should support element creation, del"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -21312,7 +21189,6 @@ exports[`history > singleplayer undo/redo > should support element creation, del"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,@@ -21713,7 +21589,6 @@ exports[`history > singleplayer undo/redo > should support linear element creati"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -21776,7 +21651,6 @@ exports[`history > singleplayer undo/redo > should support linear element creati"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 0,diff --git a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snapindex 26865c9362..3a81505d23 100644--- a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap+++ b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap@@ -45,7 +45,6 @@ exports[`given element A and group of elements B and given both are selected whe"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -116,7 +115,6 @@ exports[`given element A and group of elements B and given both are selected whe"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -474,7 +472,6 @@ exports[`given element A and group of elements B and given both are selected whe"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -547,7 +544,6 @@ exports[`given element A and group of elements B and given both are selected whe"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -893,7 +889,6 @@ exports[`regression tests > Cmd/Ctrl-click exclusively select element under poin"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -957,7 +952,6 @@ exports[`regression tests > Cmd/Ctrl-click exclusively select element under poin"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -1462,7 +1456,6 @@ exports[`regression tests > Drags selected element when hitting only bounding bo"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1526,7 +1519,6 @@ exports[`regression tests > Drags selected element when hitting only bounding bo"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -1672,7 +1664,6 @@ exports[`regression tests > adjusts z order when grouping > [end of test] appSta"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -1741,7 +1732,6 @@ exports[`regression tests > adjusts z order when grouping > [end of test] appSta"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -2059,7 +2049,6 @@ exports[`regression tests > alt-drag duplicates an element > [end of test] appSt"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2125,7 +2114,6 @@ exports[`regression tests > alt-drag duplicates an element > [end of test] appSt"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -2307,7 +2295,6 @@ exports[`regression tests > arrow keys > [end of test] appState 1`] = `"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2371,7 +2358,6 @@ exports[`regression tests > arrow keys > [end of test] appState 1`] = `"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -2490,7 +2476,6 @@ exports[`regression tests > can drag element that covers another element, while"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2556,7 +2541,6 @@ exports[`regression tests > can drag element that covers another element, while"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -2818,7 +2802,6 @@ exports[`regression tests > change the properties of a shape > [end of test] app"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -2882,7 +2865,6 @@ exports[`regression tests > change the properties of a shape > [end of test] app"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -3076,7 +3058,6 @@ exports[`regression tests > click on an element and drag it > [dragged] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3142,7 +3123,6 @@ exports[`regression tests > click on an element and drag it > [dragged] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -3320,7 +3300,6 @@ exports[`regression tests > click on an element and drag it > [end of test] appS"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3386,7 +3365,6 @@ exports[`regression tests > click on an element and drag it > [end of test] appS"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -3559,7 +3537,6 @@ exports[`regression tests > click to select a shape > [end of test] appState 1`]"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3625,7 +3602,6 @@ exports[`regression tests > click to select a shape > [end of test] appState 1`]"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -3820,7 +3796,6 @@ exports[`regression tests > click-drag to select a group > [end of test] appStat"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -3887,7 +3862,6 @@ exports[`regression tests > click-drag to select a group > [end of test] appStat"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -4137,7 +4111,6 @@ exports[`regression tests > deleting last but one element in editing group shoul"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4203,7 +4176,6 @@ exports[`regression tests > deleting last but one element in editing group shoul"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -4576,7 +4548,6 @@ exports[`regression tests > deselects group of selected elements on pointer down"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4669,7 +4640,6 @@ exports[`regression tests > deselects group of selected elements on pointer down"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -4862,7 +4832,6 @@ exports[`regression tests > deselects group of selected elements on pointer up w"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -4927,7 +4896,6 @@ exports[`regression tests > deselects group of selected elements on pointer up w"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -5141,7 +5109,6 @@ exports[`regression tests > deselects selected element on pointer down when poin"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5233,7 +5200,6 @@ exports[`regression tests > deselects selected element on pointer down when poin"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -5352,7 +5318,6 @@ exports[`regression tests > deselects selected element, on pointer up, when clic"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5416,7 +5381,6 @@ exports[`regression tests > deselects selected element, on pointer up, when clic"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -5555,7 +5519,6 @@ exports[`regression tests > double click to edit a group > [end of test] appStat"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -5619,7 +5582,6 @@ exports[`regression tests > double click to edit a group > [end of test] appStat"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -5951,7 +5913,6 @@ exports[`regression tests > drags selected elements from point inside common bou"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -6019,7 +5980,6 @@ exports[`regression tests > drags selected elements from point inside common bou"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -6251,7 +6211,6 @@ exports[`regression tests > draw every type of shape > [end of test] appState 1`"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -6313,7 +6272,6 @@ exports[`regression tests > draw every type of shape > [end of test] appState 1`"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -7046,7 +7004,6 @@ exports[`regression tests > given a group of selected elements with an element t"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7113,7 +7070,6 @@ exports[`regression tests > given a group of selected elements with an element t"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -7383,7 +7339,6 @@ exports[`regression tests > given a selected element A and a not selected elemen"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7450,7 +7405,6 @@ exports[`regression tests > given a selected element A and a not selected elemen"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -7665,7 +7619,6 @@ exports[`regression tests > given selected element A with lower z-index than uns"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7731,7 +7684,6 @@ exports[`regression tests > given selected element A with lower z-index than uns"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -7903,7 +7855,6 @@ exports[`regression tests > given selected element A with lower z-index than uns"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -7969,7 +7920,6 @@ exports[`regression tests > given selected element A with lower z-index than uns"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -8146,7 +8096,6 @@ exports[`regression tests > key 2 selects rectangle tool > [end of test] appStat"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8210,7 +8159,6 @@ exports[`regression tests > key 2 selects rectangle tool > [end of test] appStat"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -8329,7 +8277,6 @@ exports[`regression tests > key 3 selects diamond tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8393,7 +8340,6 @@ exports[`regression tests > key 3 selects diamond tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -8512,7 +8458,6 @@ exports[`regression tests > key 4 selects ellipse tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8576,7 +8521,6 @@ exports[`regression tests > key 4 selects ellipse tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -8695,7 +8639,6 @@ exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1`"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -8790,7 +8733,6 @@ exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1`"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -8931,7 +8873,6 @@ exports[`regression tests > key 6 selects line tool > [end of test] appState 1`]"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9026,7 +8967,6 @@ exports[`regression tests > key 6 selects line tool > [end of test] appState 1`]"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -9165,7 +9105,6 @@ exports[`regression tests > key 7 selects freedraw tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9227,7 +9166,6 @@ exports[`regression tests > key 7 selects freedraw tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -9364,7 +9302,6 @@ exports[`regression tests > key a selects arrow tool > [end of test] appState 1`"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9459,7 +9396,6 @@ exports[`regression tests > key a selects arrow tool > [end of test] appState 1`"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -9600,7 +9536,6 @@ exports[`regression tests > key d selects diamond tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9664,7 +9599,6 @@ exports[`regression tests > key d selects diamond tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -9783,7 +9717,6 @@ exports[`regression tests > key l selects line tool > [end of test] appState 1`]"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -9878,7 +9811,6 @@ exports[`regression tests > key l selects line tool > [end of test] appState 1`]"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -10017,7 +9949,6 @@ exports[`regression tests > key o selects ellipse tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10081,7 +10012,6 @@ exports[`regression tests > key o selects ellipse tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -10200,7 +10130,6 @@ exports[`regression tests > key p selects freedraw tool > [end of test] appState"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10262,7 +10191,6 @@ exports[`regression tests > key p selects freedraw tool > [end of test] appState"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -10399,7 +10327,6 @@ exports[`regression tests > key r selects rectangle tool > [end of test] appStat"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10463,7 +10390,6 @@ exports[`regression tests > key r selects rectangle tool > [end of test] appStat"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -10582,7 +10508,6 @@ exports[`regression tests > make a group and duplicate it > [end of test] appSta"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -10654,7 +10579,6 @@ exports[`regression tests > make a group and duplicate it > [end of test] appSta"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -11116,7 +11040,6 @@ exports[`regression tests > noop interaction after undo shouldn't create history"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -11182,7 +11105,6 @@ exports[`regression tests > noop interaction after undo shouldn't create history"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -11399,7 +11321,6 @@ exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = `"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -11461,7 +11382,6 @@ exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = `"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -11525,7 +11445,6 @@ exports[`regression tests > shift click on selected element should deselect it o"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -11589,7 +11508,6 @@ exports[`regression tests > shift click on selected element should deselect it o"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -11728,7 +11646,6 @@ exports[`regression tests > shift-click to multiselect, then drag > [end of test"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -11796,7 +11713,6 @@ exports[`regression tests > shift-click to multiselect, then drag > [end of test"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -12050,7 +11966,6 @@ exports[`regression tests > should group elements and ungroup them > [end of tes"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -12120,7 +12035,6 @@ exports[`regression tests > should group elements and ungroup them > [end of tes"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -12482,7 +12396,6 @@ exports[`regression tests > single-clicking on a subgroup of a selected group sh"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -12556,7 +12469,6 @@ exports[`regression tests > single-clicking on a subgroup of a selected group sh"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -13125,7 +13037,6 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13190,7 +13101,6 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -13254,7 +13164,6 @@ exports[`regression tests > supports nested groups > [end of test] appState 1`]"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13320,7 +13229,6 @@ exports[`regression tests > supports nested groups > [end of test] appState 1`]"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -13888,7 +13796,6 @@ exports[`regression tests > switches from group of selected elements to another"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -13983,7 +13890,6 @@ exports[`regression tests > switches from group of selected elements to another"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -14230,7 +14136,6 @@ exports[`regression tests > switches selected element on pointer down > [end of"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14324,7 +14229,6 @@ exports[`regression tests > switches selected element on pointer down > [end of"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -14497,7 +14401,6 @@ exports[`regression tests > two-finger scroll works > [end of test] appState 1`]"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14559,7 +14462,6 @@ exports[`regression tests > two-finger scroll works > [end of test] appState 1`]"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -14623,7 +14525,6 @@ exports[`regression tests > undo/redo drawing an element > [end of test] appStat"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -14687,7 +14588,6 @@ exports[`regression tests > undo/redo drawing an element > [end of test] appStat"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -14990,7 +14890,6 @@ exports[`regression tests > updates fontSize & fontFamily appState > [end of tes"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15052,7 +14951,6 @@ exports[`regression tests > updates fontSize & fontFamily appState > [end of tes"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,@@ -15116,7 +15014,6 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = `"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -15181,7 +15078,6 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = `"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"width": 1440,diff --git a/packages/excalidraw/types.ts b/packages/excalidraw/types.tsindex 48bce3bfb3..347eaf2421 100644--- a/packages/excalidraw/types.ts+++ b/packages/excalidraw/types.ts@@ -514,10 +514,6 @@ export interface AppState {y: number;} | null;objectsSnapModeEnabled: boolean;- /** the user's socket id & username who is being followed on the canvas */- userToFollow: UserToFollow | null;- /** the socket ids of the users following the current user */- followedBy: Set<SocketId>;/** image cropping */isCropping: boolean;@@ -640,6 +636,22 @@ export type OnUserFollowedPayload = {action: "FOLLOW" | "UNFOLLOW";};+export type ViewportStatusFrame = {+ /** the badge (bottom-center pill) */+ label?: {+ label: React.ReactNode;+ icon?: React.ReactNode;+ /** badge background; defaults to var(--color-primary-hover) */+ background?: string;+ /** badge text color; defaults to var(--color-primary-light) */+ color?: string;+ /** renders a close button when set */+ onClose?: () => void;+ };+ /** viewport-edge border: CSS color, or `false` for none */+ border: false | string;+};+export type OnExportProgress = {type: "progress";message?: React.ReactNode;@@ -935,6 +947,23 @@ export interface ExcalidrawProps {aiEnabled?: boolean;showDeprecatedFonts?: boolean;renderScrollbars?: boolean;+ viewportStatusFrame?: ViewportStatusFrame | null;+ /**+ * Rendered inside the UserList "who's here" dropdown (desktop) and inline+ * in the mobile menu's collaborators section, below a divider. Accepts a+ * render function — called with `isMobile` so hosts can render different+ * UI for each surface — in addition to a plain node.+ */+ currentUserControls?:+ | React.ReactNode+ | ((isMobile: boolean) => React.ReactNode);+ /**+ * The user being followed on the canvas, if any. Controlled by the host —+ * the editor never sets it; it emits follow/unfollow intents via+ * `onUserFollow` (prop or imperative API) and renders the followed+ * user's avatar highlight from this value.+ */+ userToFollow?: UserToFollow | null;/*** Called before exporting to a file.*@@ -1104,6 +1133,9 @@ export type AppClassProperties = {lastPointerMoveEvent: App["lastPointerMoveEvent"];bindModeHandler: App["bindModeHandler"];+ emitUserFollowIntent: App["emitUserFollowIntent"];+ requestUnfollow: App["requestUnfollow"];+setAppState: App["setAppState"];isInteractionEnabled: App["isInteractionEnabled"];diff --git a/packages/utils/tests/__snapshots__/export.test.ts.snap b/packages/utils/tests/__snapshots__/export.test.ts.snapindex 761445ed92..1edab7385d 100644--- a/packages/utils/tests/__snapshots__/export.test.ts.snap+++ b/packages/utils/tests/__snapshots__/export.test.ts.snap@@ -46,7 +46,6 @@ exports[`exportToSvg > with default arguments 1`] = `"exportScale": 1,"exportWithDarkMode": false,"fileHandle": null,- "followedBy": Set {},"frameRendering": {"clip": true,"enabled": true,@@ -108,7 +107,6 @@ exports[`exportToSvg > with default arguments 1`] = `"suggestedBinding": null,"theme": "light","toast": null,- "userToFollow": null,"viewBackgroundColor": "#ffffff","viewModeEnabled": false,"zenModeEnabled": false,