From 48d1f4e0d725b6bf620e957c34d013337c426ac2 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 16 Jul 2024 14:24:44 +0100 Subject: [PATCH] add version attribute (#4192) Occasionally I come across tldraw in the wild and want to see what version it is. ### Change type - [x] `other` --- packages/editor/src/lib/TldrawEditor.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/editor/src/lib/TldrawEditor.tsx b/packages/editor/src/lib/TldrawEditor.tsx index 136fa399c..3382e453b 100644 --- a/packages/editor/src/lib/TldrawEditor.tsx +++ b/packages/editor/src/lib/TldrawEditor.tsx @@ -12,6 +12,7 @@ import React, { } from 'react' import classNames from 'classnames' +import { version } from '../version' import { OptionalErrorBoundary } from './components/ErrorBoundary' import { DefaultErrorFallback } from './components/default-components/DefaultErrorFallback' import { TLEditorSnapshot } from './config/TLEditorSnapshot' @@ -223,6 +224,7 @@ export const TldrawEditor = memo(function TldrawEditor({ return (