From 096df3209bf2edd93c71a6ed2d3557d9a8f5ff1d Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Fri, 23 Jun 2023 15:23:14 +0100 Subject: [PATCH] [1/2] Move docs to brivate (#1640) This PR moves the docs site to the private repo while keeping the docs content on the public repo. ### Change Type - [x] `documentation` --- apps/docs/.eslintrc.json | 1 - apps/docs/.gitignore | 41 - apps/docs/CHANGELOG.md | 7 - apps/docs/LICENSE | 190 - apps/docs/README.md | 7 - apps/docs/components/ArticleDetails.tsx | 27 - apps/docs/components/ArticleNavLinks.tsx | 32 - apps/docs/components/Icon.tsx | 11 - apps/docs/components/Mdx.tsx | 10 - apps/docs/components/MetaHead.tsx | 26 - apps/docs/components/ThemeSwitcher.tsx | 15 - .../components/article-components/index.ts | 1 - .../components/mdx-components/api-docs.tsx | 27 - .../components/mdx-components/generic.tsx | 132 - apps/docs/components/mdx-components/index.ts | 53 - apps/docs/content.d.ts | 4 - apps/docs/package.json | 78 - apps/docs/pages/404.tsx | 39 - .../[sectionId]/[childId]/[articleId].tsx | 97 - .../pages/[sectionId]/[childId]/index.tsx | 170 - apps/docs/pages/_app.tsx | 17 - apps/docs/pages/_document.tsx | 63 - apps/docs/pages/api/search.ts | 45 - apps/docs/pages/cla.tsx | 138 - apps/docs/pages/index.tsx | 52 - apps/docs/pages/search-results.tsx | 58 - apps/docs/public/apple-touch-icon-152x152.svg | 11 - apps/docs/public/apple-touch-icon-180x180.svg | 11 - apps/docs/public/apple-touch-icon167x167.svg | 11 - apps/docs/public/avatars/steve_ruiz.jpg | Bin 276027 -> 0 bytes apps/docs/public/card_repo.png | Bin 5167 -> 0 bytes apps/docs/public/favicon-16x16.svg | 11 - apps/docs/public/favicon-32x32.svg | 11 - apps/docs/public/favicon.svg | 4 - apps/docs/public/icons/arrow-left.svg | 3 - apps/docs/public/icons/arrow-right.svg | 3 - apps/docs/public/icons/back-to-top.svg | 3 - apps/docs/public/icons/close.svg | 3 - apps/docs/public/icons/discord.svg | 12 - apps/docs/public/icons/double-arrow-left.svg | 3 - apps/docs/public/icons/double-arrow-right.svg | 3 - apps/docs/public/icons/edit.svg | 3 - apps/docs/public/icons/github.svg | 3 - apps/docs/public/icons/light.svg | 10 - apps/docs/public/icons/menu.svg | 3 - apps/docs/public/icons/search.svg | 3 - apps/docs/public/icons/twitter.svg | 4 - apps/docs/public/images/api/events.png | Bin 156956 -> 0 bytes apps/docs/public/images/placeholder.jpg | Bin 276527 -> 0 bytes apps/docs/public/images/placeholder_a.jpg | Bin 223654 -> 0 bytes apps/docs/public/images/placeholder_b.jpg | Bin 276527 -> 0 bytes apps/docs/public/images/placeholder_c.jpg | Bin 183681 -> 0 bytes apps/docs/public/images/screenshot.png | Bin 91356 -> 0 bytes apps/docs/public/images/social-image-draw.png | Bin 172438 -> 0 bytes apps/docs/public/images/social-image.png | Bin 171153 -> 0 bytes apps/docs/public/lockup.svg | 9 - apps/docs/public/social-github.png | Bin 5452 -> 0 bytes apps/docs/public/social-og.png | Bin 5364 -> 0 bytes apps/docs/public/social-twitter.png | Bin 5045 -> 0 bytes apps/docs/scripts/generateApiContent.ts | 128 - apps/docs/tsconfig.content.json | 6 - apps/docs/tsconfig.json | 24 - apps/docs/types/search-types.ts | 7 - apps/docs/utils/content.ts | 124 - apps/docs/utils/gtag.ts | 28 - apps/docs/utils/useGtag.ts | 19 - {apps/docs/content => docs}/README.md | 0 {apps/docs/content => docs}/authors.json | 0 .../community/contributing.mdx | 0 .../content => docs}/community/embeds.mdx | 0 .../community/translations.mdx | 0 {apps/docs/content => docs}/docs/assets.mdx | 0 .../content => docs}/docs/collaboration.mdx | 0 {apps/docs/content => docs}/docs/editor.mdx | 0 docs/docs/installation.mdx | 29 + docs/docs/introduction.mdx | 50 + .../content => docs}/docs/persistence.mdx | 0 {apps/docs/content => docs}/docs/shapes.mdx | 0 {apps/docs/content => docs}/docs/tools.mdx | 0 docs/docs/usage.mdx | 48 + .../content => docs}/docs/user-interface.mdx | 0 docs/gen/ACCEPTED_ASSET_TYPE-var.mdx | 20 + docs/gen/ACCEPTED_IMG_TYPE-var.mdx | 20 + docs/gen/ACCEPTED_VID_TYPE-var.mdx | 20 + docs/gen/AllRecords-type.mdx | 24 + docs/gen/ArrowShape-var.mdx | 26 + docs/gen/ArrowShapeArrowheadEndStyle-var.mdx | 34 + .../gen/ArrowShapeArrowheadStartStyle-var.mdx | 34 + docs/gen/ArrowShapeUtil-class.mdx | 925 ++ docs/gen/AssetRecordType-var.mdx | 24 + docs/gen/BaseBoxShapeTool-class.mdx | 97 + docs/gen/BaseBoxShapeUtil-class.mdx | 309 + docs/gen/BaseRecord-interface.mdx | 64 + docs/gen/BookmarkShape-var.mdx | 26 + docs/gen/BookmarkShapeUtil-class.mdx | 233 + docs/gen/Box2d-class.mdx | 1664 ++ docs/gen/Box2dModel-interface.mdx | 85 + docs/gen/BreakPointProvider-function-1.mdx | 49 + docs/gen/Button-var.mdx | 26 + docs/gen/CameraRecordType-var.mdx | 24 + docs/gen/Canvas-var.mdx | 24 + docs/gen/CollectionDiff-type.mdx | 27 + docs/gen/ComputedCache-type.mdx | 26 + docs/gen/ContextMenu-var.mdx | 24 + docs/gen/CubicSegment2d-class.mdx | 312 + docs/gen/CubicSegment2dModel-interface.mdx | 115 + docs/gen/CubicSpline2d-class.mdx | 244 + docs/gen/DefaultColorStyle-var.mdx | 37 + docs/gen/DefaultDashStyle-var.mdx | 26 + docs/gen/DefaultFillStyle-var.mdx | 26 + docs/gen/DefaultFontStyle-var.mdx | 26 + docs/gen/DefaultHorizontalAlignStyle-var.mdx | 26 + docs/gen/DefaultSizeStyle-var.mdx | 24 + docs/gen/DefaultVerticalAlignStyle-var.mdx | 26 + docs/gen/Dialog-namespace.mdx | 241 + docs/gen/DocumentRecordType-var.mdx | 24 + docs/gen/DrawShape-var.mdx | 26 + docs/gen/DrawShapeUtil-class.mdx | 630 + docs/gen/DropdownMenu-namespace.mdx | 519 + docs/gen/EASINGS-var.mdx | 40 + docs/gen/EMBED_DEFINITIONS-var.mdx | 222 + docs/gen/EPSILON-var.mdx | 20 + docs/gen/EVENT_NAME_MAP-var.mdx | 27 + docs/gen/EasingType-type.mdx | 24 + docs/gen/Editor-class.mdx | 12503 ++++++++++++++++ docs/gen/EmbedDefinition-type.mdx | 41 + docs/gen/EmbedShape-var.mdx | 26 + docs/gen/EmbedShapeUtil-class.mdx | 281 + docs/gen/EnumStyleProp-class.mdx | 46 + docs/gen/ErrorBoundary-class.mdx | 166 + docs/gen/ErrorScreen-function-1.mdx | 49 + docs/gen/FrameShape-var.mdx | 26 + docs/gen/FrameShapeUtil-class.mdx | 373 + docs/gen/GRID_STEPS-var.mdx | 24 + docs/gen/GeoShape-var.mdx | 26 + docs/gen/GeoShapeGeoStyle-var.mdx | 43 + docs/gen/GeoShapeUtil-class.mdx | 773 + docs/gen/GroupShape-var.mdx | 26 + docs/gen/GroupShapeUtil-class.mdx | 352 + docs/gen/HTMLContainer-function-1.mdx | 47 + docs/gen/HTMLContainerProps-type.mdx | 24 + docs/gen/HighlightShape-var.mdx | 26 + docs/gen/HighlightShapeUtil-class.mdx | 726 + docs/gen/HistoryEntry-type.mdx | 27 + docs/gen/INDENT-var.mdx | 20 + docs/gen/Icon-var.mdx | 24 + docs/gen/IdOf-type.mdx | 24 + docs/gen/ImageShape-var.mdx | 26 + docs/gen/ImageShapeUtil-class.mdx | 260 + docs/gen/Input-var.mdx | 26 + docs/gen/InstancePageStateRecordType-var.mdx | 27 + docs/gen/InstancePresenceRecordType-var.mdx | 27 + docs/gen/LANGUAGES-var.mdx | 153 + docs/gen/LineSegment2d-class.mdx | 556 + docs/gen/LineSegment2dModel-interface.mdx | 79 + docs/gen/LineShape-var.mdx | 26 + docs/gen/LineShapeSplineStyle-var.mdx | 26 + docs/gen/LineShapeUtil-class.mdx | 628 + docs/gen/LoadingScreen-function-1.mdx | 49 + docs/gen/MatLike-type.mdx | 24 + docs/gen/Matrix2d-class.mdx | 1530 ++ docs/gen/Matrix2dModel-interface.mdx | 113 + docs/gen/MatrixInfo-interface.mdx | 99 + docs/gen/Migration-type.mdx | 23 + docs/gen/MigrationFailureReason-enum.mdx | 20 + docs/gen/MigrationResult-type.mdx | 32 + docs/gen/Migrations-interface.mdx | 65 + docs/gen/NoteShape-var.mdx | 26 + docs/gen/NoteShapeUtil-class.mdx | 587 + docs/gen/PI-var.mdx | 20 + docs/gen/PI2-var.mdx | 20 + docs/gen/PageRecordType-var.mdx | 24 + docs/gen/PlopManager-class.mdx | 704 + docs/gen/PointerRecordType-var.mdx | 24 + docs/gen/Polyline2d-class.mdx | 226 + .../ROTATE_CORNER_TO_SELECTION_CORNER-var.mdx | 26 + docs/gen/ReadonlySharedStyleMap-class.mdx | 319 + docs/gen/RecordId-type.mdx | 26 + docs/gen/RecordType-class.mdx | 689 + docs/gen/RecordVersion-type.mdx | 23 + docs/gen/RecordsDiff-type.mdx | 28 + docs/gen/RequiredKeys-type.mdx | 24 + docs/gen/RotateCorner-type.mdx | 25 + docs/gen/SIN-var.mdx | 20 + docs/gen/SVGContainer-function-1.mdx | 47 + docs/gen/SVGContainerProps-type.mdx | 24 + docs/gen/SchemaShapeInfo-type.mdx | 32 + docs/gen/SelectionCorner-type.mdx | 20 + docs/gen/SelectionEdge-type.mdx | 20 + docs/gen/SelectionHandle-type.mdx | 24 + docs/gen/SerializedSchema-interface.mdx | 94 + docs/gen/ShapeProps-type.mdx | 26 + docs/gen/ShapeUtil-class.mdx | 2723 ++++ docs/gen/SharedStyle-type.mdx | 27 + docs/gen/StateNode-class.mdx | 846 ++ docs/gen/Store-class.mdx | 1292 ++ docs/gen/StoreError-type.mdx | 30 + docs/gen/StoreListener-type.mdx | 24 + docs/gen/StoreSchema-class.mdx | 403 + docs/gen/StoreSchemaOptions-type.mdx | 34 + docs/gen/StoreSnapshot-type.mdx | 24 + docs/gen/StoreValidator-type.mdx | 26 + docs/gen/StoreValidators-type.mdx | 33 + docs/gen/StrokeOptions-interface.mdx | 187 + docs/gen/StrokePoint-interface.mdx | 139 + docs/gen/StyleProp-class.mdx | 307 + docs/gen/T-namespace.mdx | 821 + docs/gen/TAB_ID-var.mdx | 20 + docs/gen/TAU-var.mdx | 20 + docs/gen/TLAnimationOptions-type.mdx | 27 + docs/gen/TLArrowShape-type.mdx | 24 + docs/gen/TLArrowShapeArrowheadStyle-type.mdx | 24 + docs/gen/TLArrowShapeProps-type.mdx | 24 + docs/gen/TLArrowShapeTerminal-type.mdx | 24 + docs/gen/TLAsset-type.mdx | 24 + docs/gen/TLAssetId-type.mdx | 24 + docs/gen/TLAssetPartial-type.mdx | 30 + docs/gen/TLAssetShape-type.mdx | 31 + docs/gen/TLBaseAsset-interface.mdx | 62 + docs/gen/TLBaseBoxShape-type.mdx | 30 + docs/gen/TLBaseEventInfo-interface.mdx | 89 + docs/gen/TLBaseShape-interface.mdx | 168 + docs/gen/TLBookmarkAsset-type.mdx | 32 + docs/gen/TLBookmarkShape-type.mdx | 24 + docs/gen/TLCLickEventName-type.mdx | 20 + docs/gen/TLCamera-interface.mdx | 75 + docs/gen/TLCameraId-type.mdx | 24 + docs/gen/TLCancelEvent-type.mdx | 24 + docs/gen/TLCancelEventInfo-type.mdx | 23 + docs/gen/TLCanvasUiColor-type.mdx | 24 + docs/gen/TLClickEvent-type.mdx | 24 + docs/gen/TLClickEventInfo-type.mdx | 31 + docs/gen/TLCommand-type.mdx | 26 + docs/gen/TLCommandHandler-type.mdx | 25 + docs/gen/TLCompleteEvent-type.mdx | 24 + docs/gen/TLCompleteEventInfo-type.mdx | 23 + docs/gen/TLContent-interface.mdx | 101 + docs/gen/TLCopyType-type.mdx | 20 + docs/gen/TLCursor-interface.mdx | 79 + docs/gen/TLCursorType-type.mdx | 24 + docs/gen/TLDOCUMENT_ID-var.mdx | 24 + docs/gen/TLDRAW_FILE_EXTENSION-var.mdx | 20 + docs/gen/TLDRAW_FILE_MIMETYPE-var.mdx | 20 + docs/gen/TLDefaultColorStyle-type.mdx | 24 + docs/gen/TLDefaultDashStyle-type.mdx | 24 + docs/gen/TLDefaultFillStyle-type.mdx | 24 + docs/gen/TLDefaultFontStyle-type.mdx | 24 + .../TLDefaultHorizontalAlignStyle-type.mdx | 26 + docs/gen/TLDefaultShape-type.mdx | 37 + docs/gen/TLDefaultSizeStyle-type.mdx | 24 + docs/gen/TLDefaultVerticalAlignStyle-type.mdx | 24 + docs/gen/TLDocument-interface.mdx | 61 + docs/gen/TLDrawShape-type.mdx | 24 + docs/gen/TLDrawShapeSegment-type.mdx | 24 + docs/gen/TLEditorAssetUrls-type.mdx | 27 + docs/gen/TLEditorComponents-interface.mdx | 353 + docs/gen/TLEditorOptions-interface.mdx | 134 + docs/gen/TLEmbedResult-type.mdx | 30 + docs/gen/TLEmbedShape-type.mdx | 24 + docs/gen/TLEmbedShapePermissions-type.mdx | 26 + docs/gen/TLEnterEventHandler-type.mdx | 20 + docs/gen/TLErrorBoundaryProps-interface.mdx | 75 + docs/gen/TLEventHandlers-interface.mdx | 335 + docs/gen/TLEventInfo-type.mdx | 32 + docs/gen/TLEventMap-interface.mdx | 231 + docs/gen/TLEventMapHandler-type.mdx | 26 + docs/gen/TLEventName-type.mdx | 32 + docs/gen/TLExitEventHandler-type.mdx | 20 + docs/gen/TLExportType-type.mdx | 20 + docs/gen/TLExternalContent-type.mdx | 51 + docs/gen/TLFrameShape-type.mdx | 24 + docs/gen/TLGeoShape-type.mdx | 24 + docs/gen/TLGroupShape-type.mdx | 24 + docs/gen/TLHandle-interface.mdx | 120 + docs/gen/TLHandleType-type.mdx | 24 + docs/gen/TLHighlightShape-type.mdx | 24 + docs/gen/TLHistoryEntry-type.mdx | 24 + docs/gen/TLHistoryMark-type.mdx | 25 + docs/gen/TLINSTANCE_ID-var.mdx | 24 + docs/gen/TLImageAsset-type.mdx | 34 + docs/gen/TLImageShape-type.mdx | 24 + docs/gen/TLImageShapeCrop-type.mdx | 24 + docs/gen/TLImageShapeProps-type.mdx | 24 + docs/gen/TLInstance-interface.mdx | 320 + docs/gen/TLInstanceId-type.mdx | 24 + docs/gen/TLInstancePageState-interface.mdx | 181 + docs/gen/TLInstancePresence-interface.mdx | 249 + docs/gen/TLInterruptEvent-type.mdx | 24 + docs/gen/TLInterruptEventInfo-type.mdx | 23 + docs/gen/TLKeyboardEvent-type.mdx | 24 + docs/gen/TLKeyboardEventInfo-type.mdx | 29 + docs/gen/TLKeyboardEventName-type.mdx | 20 + docs/gen/TLLanguage-type.mdx | 24 + docs/gen/TLLineShape-type.mdx | 24 + docs/gen/TLNoteShape-type.mdx | 24 + docs/gen/TLOnBeforeCreateHandler-type.mdx | 24 + docs/gen/TLOnBeforeUpdateHandler-type.mdx | 24 + docs/gen/TLOnChildrenChangeHandler-type.mdx | 26 + docs/gen/TLOnClickHandler-type.mdx | 26 + .../gen/TLOnDoubleClickHandleHandler-type.mdx | 27 + docs/gen/TLOnDoubleClickHandler-type.mdx | 26 + docs/gen/TLOnDragHandler-type.mdx | 27 + docs/gen/TLOnEditEndHandler-type.mdx | 24 + docs/gen/TLOnHandleChangeHandler-type.mdx | 30 + docs/gen/TLOnResizeEndHandler-type.mdx | 24 + docs/gen/TLOnResizeHandler-type.mdx | 27 + docs/gen/TLOnResizeStartHandler-type.mdx | 24 + docs/gen/TLOnRotateEndHandler-type.mdx | 24 + docs/gen/TLOnRotateHandler-type.mdx | 24 + docs/gen/TLOnRotateStartHandler-type.mdx | 24 + docs/gen/TLOnTranslateEndHandler-type.mdx | 24 + docs/gen/TLOnTranslateHandler-type.mdx | 24 + docs/gen/TLOnTranslateStartHandler-type.mdx | 24 + docs/gen/TLOpacityType-type.mdx | 20 + docs/gen/TLPOINTER_ID-var.mdx | 24 + docs/gen/TLPage-interface.mdx | 61 + docs/gen/TLPageId-type.mdx | 24 + docs/gen/TLParentId-type.mdx | 24 + docs/gen/TLPinchEvent-type.mdx | 24 + docs/gen/TLPinchEventInfo-type.mdx | 29 + docs/gen/TLPinchEventName-type.mdx | 20 + docs/gen/TLPointerEvent-type.mdx | 24 + docs/gen/TLPointerEventInfo-type.mdx | 31 + docs/gen/TLPointerEventName-type.mdx | 27 + docs/gen/TLPointerEventTarget-type.mdx | 42 + docs/gen/TLRecord-type.mdx | 33 + docs/gen/TLResizeHandle-type.mdx | 24 + docs/gen/TLResizeInfo-type.mdx | 144 + docs/gen/TLResizeMode-type.mdx | 26 + docs/gen/TLSchema-type.mdx | 24 + docs/gen/TLScribble-type.mdx | 31 + docs/gen/TLSelectionHandle-type.mdx | 24 + docs/gen/TLSessionStateSnapshot-interface.mdx | 158 + docs/gen/TLShape-type.mdx | 24 + docs/gen/TLShapeId-type.mdx | 24 + docs/gen/TLShapeInfo-type.mdx | 30 + docs/gen/TLShapePartial-type.mdx | 30 + docs/gen/TLShapeProp-type.mdx | 24 + docs/gen/TLShapeProps-type.mdx | 24 + docs/gen/TLShapeUtilConstructor-interface.mdx | 122 + docs/gen/TLShapeUtilFlag-type.mdx | 20 + docs/gen/TLStateNodeConstructor-interface.mdx | 133 + docs/gen/TLStore-type.mdx | 24 + docs/gen/TLStoreEventInfo-type.mdx | 24 + docs/gen/TLStoreOptions-type.mdx | 34 + docs/gen/TLStoreProps-type.mdx | 22 + docs/gen/TLStoreSchema-type.mdx | 24 + docs/gen/TLStoreSnapshot-type.mdx | 24 + docs/gen/TLStoreWithStatus-type.mdx | 50 + docs/gen/TLTextShape-type.mdx | 24 + docs/gen/TLTextShapeProps-type.mdx | 24 + docs/gen/TLTickEvent-type.mdx | 20 + docs/gen/TLUiActionItem-interface.mdx | 207 + docs/gen/TLUiActionsContextType-type.mdx | 24 + .../TLUiActionsMenuSchemaContextType-type.mdx | 24 + docs/gen/TLUiButtonProps-interface.mdx | 199 + docs/gen/TLUiContextMenuProps-interface.mdx | 43 + ...ContextTTLUiMenuSchemaContextType-type.mdx | 24 + docs/gen/TLUiCustomMenuItem-type.mdx | 25 + docs/gen/TLUiDialog-interface.mdx | 75 + docs/gen/TLUiDialogProps-interface.mdx | 43 + docs/gen/TLUiDialogsContextType-type.mdx | 34 + docs/gen/TLUiEventContextType-type.mdx | 24 + docs/gen/TLUiEventHandler-type.mdx | 32 + docs/gen/TLUiEventSource-type.mdx | 37 + .../TLUiHelpMenuSchemaContextType-type.mdx | 24 + docs/gen/TLUiIconProps-interface.mdx | 121 + docs/gen/TLUiIconType-type.mdx | 181 + docs/gen/TLUiInputProps-interface.mdx | 268 + ...eyboardShortcutsSchemaContextType-type.mdx | 24 + ...boardShortcutsSchemaProviderProps-type.mdx | 34 + docs/gen/TLUiMenuChild-type.mdx | 28 + docs/gen/TLUiMenuGroup-type.mdx | 31 + docs/gen/TLUiMenuItem-type.mdx | 31 + docs/gen/TLUiMenuSchema-type.mdx | 24 + docs/gen/TLUiMenuSchemaContextType-type.mdx | 24 + docs/gen/TLUiMenuSchemaProviderProps-type.mdx | 37 + docs/gen/TLUiOverrides-interface.mdx | 203 + docs/gen/TLUiSubMenu-type.mdx | 31 + docs/gen/TLUiToast-interface.mdx | 131 + docs/gen/TLUiToastAction-interface.mdx | 71 + docs/gen/TLUiToastsContextType-type.mdx | 33 + docs/gen/TLUiToolItem-interface.mdx | 159 + docs/gen/TLUiToolbarItem-type.mdx | 29 + .../gen/TLUiToolbarSchemaContextType-type.mdx | 24 + docs/gen/TLUiToolsContextType-type.mdx | 24 + docs/gen/TLUiToolsProviderProps-type.mdx | 33 + docs/gen/TLUiTranslation-type.mdx | 28 + docs/gen/TLUiTranslationContextType-type.mdx | 24 + docs/gen/TLUiTranslationKey-type.mdx | 364 + docs/gen/TLUnknownShape-type.mdx | 24 + docs/gen/TLUserPreferences-interface.mdx | 127 + docs/gen/TLVideoAsset-type.mdx | 34 + docs/gen/TLVideoShape-type.mdx | 24 + docs/gen/TLWheelEvent-type.mdx | 24 + docs/gen/TLWheelEventInfo-type.mdx | 28 + docs/gen/TL_CANVAS_UI_COLOR_TYPES-var.mdx | 32 + docs/gen/TextShape-var.mdx | 26 + docs/gen/TextShapeUtil-class.mdx | 578 + docs/gen/Tldraw-function-1.mdx | 47 + docs/gen/TldrawEditor-var.mdx | 24 + docs/gen/TldrawEditorProps-type.mdx | 43 + docs/gen/TldrawFile-interface.mdx | 79 + docs/gen/TldrawFileParseError-type.mdx | 44 + docs/gen/TldrawUi-var.mdx | 32 + .../TldrawUiContextProvider-function-1.mdx | 47 + ...TldrawUiContextProviderProps-interface.mdx | 97 + docs/gen/TldrawUiProps-type.mdx | 30 + docs/gen/UiEvent-type.mdx | 30 + docs/gen/UiEventType-type.mdx | 20 + docs/gen/UnknownRecord-type.mdx | 24 + docs/gen/Vec2d-class.mdx | 4893 ++++++ docs/gen/Vec2dModel-interface.mdx | 71 + docs/gen/VecLike-type.mdx | 24 + docs/gen/VideoShape-var.mdx | 26 + docs/gen/VideoShapeUtil-class.mdx | 224 + docs/gen/WeakMapCache-class.mdx | 290 + docs/gen/angleDelta-function-1.mdx | 65 + docs/gen/approximately-function-1.mdx | 83 + docs/gen/areAnglesCompatible-function-1.mdx | 68 + docs/gen/arrowShapeProps-var.mdx | 121 + docs/gen/assertIdType-function-1.mdx | 81 + docs/gen/assetIdValidator-var.mdx | 24 + docs/gen/blobAsString-function-1.mdx | 47 + docs/gen/bookmarkShapeProps-var.mdx | 29 + docs/gen/box2dModelValidator-var.mdx | 24 + docs/gen/canolicalizeRotation-function-1.mdx | 48 + docs/gen/canvasUiColorTypeValidator-var.mdx | 32 + docs/gen/checkFlag-var.mdx | 22 + docs/gen/clamp-function-1.mdx | 77 + docs/gen/clamp-function-2.mdx | 98 + docs/gen/clampRadians-function-1.mdx | 46 + docs/gen/compactMenuItems-function-1.mdx | 47 + docs/gen/compareRecordVersions-function-1.mdx | 63 + docs/gen/compareSchemas-var.mdx | 24 + docs/gen/containBoxSize-function-1.mdx | 72 + docs/gen/coreShapes-var.mdx | 30 + docs/gen/correctSpacesToNbsp-function-1.mdx | 43 + docs/gen/createAssetValidator-function-1.mdx | 74 + .../gen/createPresenceStateDerivation-var.mdx | 31 + docs/gen/createRecordType-function-1.mdx | 82 + ...eSessionStateSnapshotSignal-function-1.mdx | 53 + docs/gen/createShapeId-function-1.mdx | 49 + docs/gen/createShapeValidator-function-1.mdx | 79 + docs/gen/createTLSchema-function-1.mdx | 49 + docs/gen/createTLStore-function-1.mdx | 47 + docs/gen/createTLUser-function-1.mdx | 61 + .../dataTransferItemAsString-function-1.mdx | 47 + docs/gen/dataUrlToFile-function-1.mdx | 79 + docs/gen/decomposeMatrix2d-function-1.mdx | 53 + docs/gen/defaultEditorAssetUrls-var.mdx | 24 + docs/gen/defaultEmptyAs-function-1.mdx | 59 + docs/gen/defaultShapes-var.mdx | 33 + docs/gen/defaultTools-var.mdx | 24 + docs/gen/defineMigrations-function-1.mdx | 76 + docs/gen/defineShape-function-1.mdx | 63 + docs/gen/degreesToRadians-function-1.mdx | 46 + docs/gen/devFreeze-function-1.mdx | 61 + docs/gen/downloadDataURLAsFile-function-1.mdx | 59 + docs/gen/drawShapeProps-var.mdx | 49 + docs/gen/embedShapePermissionDefaults-var.mdx | 35 + docs/gen/embedShapeProps-var.mdx | 28 + docs/gen/fileToBase64-function-1.mdx | 59 + docs/gen/findMenuItem-function-1.mdx | 63 + docs/gen/flipSelectionHandleX-function-1.mdx | 54 + docs/gen/flipSelectionHandleY-function-1.mdx | 54 + docs/gen/frameShapeProps-var.mdx | 28 + docs/gen/geoShapeProps-var.mdx | 99 + docs/gen/getArcLength-function-1.mdx | 107 + ...getDefaultTranslationLocale-function-1.mdx | 29 + docs/gen/getDrawLinePathData-function-1.mdx | 79 + docs/gen/getEmbedInfo-function-1.mdx | 50 + docs/gen/getEmbedInfoUnsafely-function-1.mdx | 50 + docs/gen/getFileMetaData-function-1.mdx | 52 + .../getFreshUserPreferences-function-1.mdx | 29 + docs/gen/getHeight-function-1.mdx | 47 + docs/gen/getImageSizeFromSrc-function-1.mdx | 53 + docs/gen/getIncrementedName-function-1.mdx | 65 + docs/gen/getMaxX-function-1.mdx | 47 + docs/gen/getMaxY-function-1.mdx | 47 + docs/gen/getMediaAssetFromFile-function-1.mdx | 53 + docs/gen/getMidX-function-1.mdx | 47 + docs/gen/getMidY-function-1.mdx | 47 + docs/gen/getMinX-function-1.mdx | 47 + docs/gen/getMinY-function-1.mdx | 47 + docs/gen/getPointOnCircle-function-1.mdx | 107 + docs/gen/getPolygonVertices-function-1.mdx | 79 + docs/gen/getRecordVersion-function-1.mdx | 63 + .../gen/getResizedImageDataUrl-function-1.mdx | 88 + docs/gen/getRotatedBoxShadow-function-1.mdx | 43 + .../getRoundedInkyPolygonPath-function-1.mdx | 47 + .../getRoundedPolygonPoints-function-1.mdx | 111 + docs/gen/getSplineForLineShape-function-1.mdx | 47 + docs/gen/getStarBounds-var.mdx | 76 + docs/gen/getStroke-function-1.mdx | 74 + .../gen/getStrokeOutlinePoints-function-1.mdx | 71 + docs/gen/getStrokePoints-function-1.mdx | 71 + docs/gen/getSvgAsDataUrl-function-1.mdx | 47 + docs/gen/getSvgAsDataUrlSync-function-1.mdx | 47 + docs/gen/getSvgAsImage-function-1.mdx | 67 + docs/gen/getSvgAsString-function-1.mdx | 47 + docs/gen/getSvgPathFromStroke-function-1.mdx | 71 + .../getSvgPathFromStrokePoints-function-1.mdx | 71 + docs/gen/getSweep-function-1.mdx | 88 + docs/gen/getTextBoundingBox-function-1.mdx | 47 + docs/gen/getUserPreferences-function-1.mdx | 29 + docs/gen/getValidHttpURLList-var.mdx | 20 + docs/gen/getVideoSizeFromSrc-function-1.mdx | 53 + docs/gen/getWidth-function-1.mdx | 47 + docs/gen/hardReset-function-1.mdx | 51 + docs/gen/hardResetEditor-function-1.mdx | 25 + docs/gen/highlightShapeProps-var.mdx | 46 + docs/gen/imageShapeProps-var.mdx | 34 + docs/gen/intersectCircleCircle-function-1.mdx | 107 + .../gen/intersectCirclePolygon-function-1.mdx | 88 + .../intersectCirclePolyline-function-1.mdx | 88 + .../intersectLineSegmentCircle-function-1.mdx | 107 + ...rsectLineSegmentLineSegment-function-1.mdx | 107 + ...intersectLineSegmentPolygon-function-1.mdx | 88 + ...ntersectLineSegmentPolyline-function-1.mdx | 88 + .../gen/intersectPolygonBounds-function-1.mdx | 63 + .../intersectPolygonPolygon-function-1.mdx | 69 + docs/gen/isAngleBetween-function-1.mdx | 84 + docs/gen/isAnimated-function-1.mdx | 47 + docs/gen/isGIF-function-1.mdx | 47 + docs/gen/isImage-var.mdx | 20 + docs/gen/isPageId-function-1.mdx | 47 + docs/gen/isSafeFloat-var.mdx | 20 + docs/gen/isSelectionCorner-function-1.mdx | 47 + docs/gen/isSerializable-function-1.mdx | 61 + docs/gen/isShape-function-1.mdx | 49 + docs/gen/isShapeId-function-1.mdx | 49 + docs/gen/isSvgText-var.mdx | 20 + docs/gen/isV1File-function-1.mdx | 43 + docs/gen/isValidHttpURL-var.mdx | 20 + docs/gen/isValidUrl-function-1.mdx | 43 + docs/gen/lerpAngles-function-1.mdx | 84 + docs/gen/lineShapeProps-var.mdx | 45 + docs/gen/linesIntersect-function-1.mdx | 95 + ...ssionStateSnapshotIntoStore-function-1.mdx | 72 + docs/gen/longAngleDist-function-1.mdx | 65 + docs/gen/loopToHtmlElement-function-1.mdx | 47 + docs/gen/matchEmbedUrl-function-1.mdx | 253 + docs/gen/matchUrl-function-1.mdx | 253 + docs/gen/menuCustom-function-1.mdx | 73 + docs/gen/menuGroup-function-1.mdx | 63 + docs/gen/menuItem-function-1.mdx | 68 + docs/gen/menuSubmenu-function-1.mdx | 79 + docs/gen/migrate-function-1.mdx | 52 + docs/gen/migrateRecord-function-1.mdx | 52 + docs/gen/normalizeWheel-function-1.mdx | 51 + docs/gen/noteShapeProps-var.mdx | 53 + docs/gen/openWindow-function-1.mdx | 61 + docs/gen/parentIdValidator-var.mdx | 24 + docs/gen/parseTldrawJsonFile-function-1.mdx | 50 + docs/gen/perimeterOfEllipse-function-1.mdx | 65 + docs/gen/pointInBounds-function-1.mdx | 72 + docs/gen/pointInCircle-function-1.mdx | 91 + docs/gen/pointInEllipse-function-1.mdx | 125 + docs/gen/pointInPolygon-function-1.mdx | 68 + docs/gen/pointInPolyline-function-1.mdx | 93 + docs/gen/pointInRect-function-1.mdx | 88 + .../gen/pointNearToLineSegment-function-1.mdx | 109 + docs/gen/pointNearToPolyline-function-1.mdx | 90 + docs/gen/polygonsIntersect-function-1.mdx | 63 + docs/gen/preventDefault-function-1.mdx | 53 + docs/gen/radiansToDegrees-function-1.mdx | 46 + docs/gen/rangeIntersection-function-1.mdx | 106 + docs/gen/rangesOverlap-function-1.mdx | 105 + docs/gen/refreshPage-function-1.mdx | 25 + docs/gen/releasePointerCapture-function-1.mdx | 63 + docs/gen/reverseRecordsDiff-function-1.mdx | 47 + docs/gen/rotateSelectionHandle-function-1.mdx | 63 + docs/gen/runtime-var.mdx | 24 + docs/gen/serializeTldrawJson-function-1.mdx | 47 + .../serializeTldrawJsonBlob-function-1.mdx | 47 + docs/gen/setPointerCapture-function-1.mdx | 63 + docs/gen/setRuntimeOverrides-function-1.mdx | 47 + docs/gen/setStrokePointRadii-function-1.mdx | 63 + docs/gen/setUserPreferences-function-1.mdx | 47 + docs/gen/shapeIdValidator-var.mdx | 24 + docs/gen/shortAngleDist-function-1.mdx | 65 + docs/gen/simplify-function-1.mdx | 74 + docs/gen/simplify2-function-1.mdx | 65 + docs/gen/snapAngle-function-1.mdx | 65 + docs/gen/snapToGrid-function-1.mdx | 59 + docs/gen/squashRecordDiffs-function-1.mdx | 53 + docs/gen/textShapeProps-var.mdx | 53 + docs/gen/toDomPrecision-function-1.mdx | 43 + docs/gen/toFixed-function-1.mdx | 43 + docs/gen/toPrecision-function-1.mdx | 67 + docs/gen/toolbarItem-function-1.mdx | 47 + docs/gen/truncateStringWithEllipsis-var.mdx | 20 + docs/gen/uniqueId-function-1.mdx | 37 + docs/gen/useActions-function-1.mdx | 29 + docs/gen/useActionsMenuSchema-function-1.mdx | 29 + docs/gen/useBreakpoint-function-1.mdx | 25 + docs/gen/useCanRedo-function-1.mdx | 25 + docs/gen/useCanUndo-function-1.mdx | 25 + docs/gen/useContainer-function-1.mdx | 29 + docs/gen/useContextMenuSchema-function-1.mdx | 29 + docs/gen/useCopyAs-function-1.mdx | 29 + docs/gen/useDefaultHelpers-function-1.mdx | 50 + docs/gen/useDialogs-function-1.mdx | 29 + docs/gen/useEditor-var.mdx | 24 + docs/gen/useEvents-function-1.mdx | 29 + docs/gen/useExportAs-function-1.mdx | 29 + docs/gen/useHelpMenuSchema-function-1.mdx | 29 + docs/gen/useKeyboardShortcuts-function-1.mdx | 25 + .../useKeyboardShortcutsSchema-function-1.mdx | 29 + docs/gen/useLocalStorageState-function-1.mdx | 59 + .../gen/useMenuClipboardEvents-function-1.mdx | 37 + docs/gen/useMenuIsOpen-function-1.mdx | 61 + docs/gen/useMenuSchema-function-1.mdx | 29 + .../useNativeClipboardEvents-function-1.mdx | 25 + .../usePrefersReducedMotion-function-1.mdx | 25 + docs/gen/useReadonly-function-1.mdx | 25 + docs/gen/useTLStore-function-1.mdx | 47 + docs/gen/useToasts-function-1.mdx | 29 + docs/gen/useToolbarSchema-function-1.mdx | 29 + docs/gen/useTools-function-1.mdx | 29 + docs/gen/useTranslation-function-1.mdx | 42 + docs/gen/vec2dModelValidator-var.mdx | 24 + docs/gen/videoShapeProps-var.mdx | 31 + docs/sections.json | 14 + lazy.config.ts | 15 +- package.json | 2 - public-yarn.lock | 1181 +- .../lib/docs/docs-types.ts | 2 + .../lib/docs/docs-utils.ts | 0 .../lib/docs}/generate-on-reload.ts | 0 scripts/lib/docs/generateApiContent.ts | 131 + .../lib/docs}/generateContent.ts | 8 +- .../lib/docs}/generateSection.ts | 6 +- .../lib/docs}/getApiMarkdown.ts | 6 +- .../scripts => scripts/lib/docs}/index.ts | 0 scripts/lib/file.ts | 2 +- scripts/package.json | 1 + 638 files changed, 64004 insertions(+), 2983 deletions(-) delete mode 100644 apps/docs/.eslintrc.json delete mode 100644 apps/docs/.gitignore delete mode 100644 apps/docs/CHANGELOG.md delete mode 100644 apps/docs/LICENSE delete mode 100644 apps/docs/README.md delete mode 100644 apps/docs/components/ArticleDetails.tsx delete mode 100644 apps/docs/components/ArticleNavLinks.tsx delete mode 100644 apps/docs/components/Icon.tsx delete mode 100644 apps/docs/components/Mdx.tsx delete mode 100644 apps/docs/components/MetaHead.tsx delete mode 100644 apps/docs/components/ThemeSwitcher.tsx delete mode 100644 apps/docs/components/article-components/index.ts delete mode 100644 apps/docs/components/mdx-components/api-docs.tsx delete mode 100644 apps/docs/components/mdx-components/generic.tsx delete mode 100644 apps/docs/components/mdx-components/index.ts delete mode 100644 apps/docs/content.d.ts delete mode 100644 apps/docs/package.json delete mode 100644 apps/docs/pages/404.tsx delete mode 100644 apps/docs/pages/[sectionId]/[childId]/[articleId].tsx delete mode 100644 apps/docs/pages/[sectionId]/[childId]/index.tsx delete mode 100644 apps/docs/pages/_app.tsx delete mode 100644 apps/docs/pages/_document.tsx delete mode 100644 apps/docs/pages/api/search.ts delete mode 100644 apps/docs/pages/cla.tsx delete mode 100644 apps/docs/pages/index.tsx delete mode 100644 apps/docs/pages/search-results.tsx delete mode 100644 apps/docs/public/apple-touch-icon-152x152.svg delete mode 100644 apps/docs/public/apple-touch-icon-180x180.svg delete mode 100644 apps/docs/public/apple-touch-icon167x167.svg delete mode 100644 apps/docs/public/avatars/steve_ruiz.jpg delete mode 100644 apps/docs/public/card_repo.png delete mode 100644 apps/docs/public/favicon-16x16.svg delete mode 100644 apps/docs/public/favicon-32x32.svg delete mode 100644 apps/docs/public/favicon.svg delete mode 100644 apps/docs/public/icons/arrow-left.svg delete mode 100644 apps/docs/public/icons/arrow-right.svg delete mode 100644 apps/docs/public/icons/back-to-top.svg delete mode 100644 apps/docs/public/icons/close.svg delete mode 100644 apps/docs/public/icons/discord.svg delete mode 100644 apps/docs/public/icons/double-arrow-left.svg delete mode 100644 apps/docs/public/icons/double-arrow-right.svg delete mode 100644 apps/docs/public/icons/edit.svg delete mode 100644 apps/docs/public/icons/github.svg delete mode 100644 apps/docs/public/icons/light.svg delete mode 100644 apps/docs/public/icons/menu.svg delete mode 100644 apps/docs/public/icons/search.svg delete mode 100644 apps/docs/public/icons/twitter.svg delete mode 100644 apps/docs/public/images/api/events.png delete mode 100644 apps/docs/public/images/placeholder.jpg delete mode 100644 apps/docs/public/images/placeholder_a.jpg delete mode 100644 apps/docs/public/images/placeholder_b.jpg delete mode 100644 apps/docs/public/images/placeholder_c.jpg delete mode 100644 apps/docs/public/images/screenshot.png delete mode 100644 apps/docs/public/images/social-image-draw.png delete mode 100644 apps/docs/public/images/social-image.png delete mode 100644 apps/docs/public/lockup.svg delete mode 100644 apps/docs/public/social-github.png delete mode 100644 apps/docs/public/social-og.png delete mode 100644 apps/docs/public/social-twitter.png delete mode 100644 apps/docs/scripts/generateApiContent.ts delete mode 100644 apps/docs/tsconfig.content.json delete mode 100644 apps/docs/tsconfig.json delete mode 100644 apps/docs/types/search-types.ts delete mode 100644 apps/docs/utils/content.ts delete mode 100644 apps/docs/utils/gtag.ts delete mode 100644 apps/docs/utils/useGtag.ts rename {apps/docs/content => docs}/README.md (100%) rename {apps/docs/content => docs}/authors.json (100%) rename {apps/docs/content => docs}/community/contributing.mdx (100%) rename {apps/docs/content => docs}/community/embeds.mdx (100%) rename {apps/docs/content => docs}/community/translations.mdx (100%) rename {apps/docs/content => docs}/docs/assets.mdx (100%) rename {apps/docs/content => docs}/docs/collaboration.mdx (100%) rename {apps/docs/content => docs}/docs/editor.mdx (100%) create mode 100644 docs/docs/installation.mdx create mode 100644 docs/docs/introduction.mdx rename {apps/docs/content => docs}/docs/persistence.mdx (100%) rename {apps/docs/content => docs}/docs/shapes.mdx (100%) rename {apps/docs/content => docs}/docs/tools.mdx (100%) create mode 100644 docs/docs/usage.mdx rename {apps/docs/content => docs}/docs/user-interface.mdx (100%) create mode 100644 docs/gen/ACCEPTED_ASSET_TYPE-var.mdx create mode 100644 docs/gen/ACCEPTED_IMG_TYPE-var.mdx create mode 100644 docs/gen/ACCEPTED_VID_TYPE-var.mdx create mode 100644 docs/gen/AllRecords-type.mdx create mode 100644 docs/gen/ArrowShape-var.mdx create mode 100644 docs/gen/ArrowShapeArrowheadEndStyle-var.mdx create mode 100644 docs/gen/ArrowShapeArrowheadStartStyle-var.mdx create mode 100644 docs/gen/ArrowShapeUtil-class.mdx create mode 100644 docs/gen/AssetRecordType-var.mdx create mode 100644 docs/gen/BaseBoxShapeTool-class.mdx create mode 100644 docs/gen/BaseBoxShapeUtil-class.mdx create mode 100644 docs/gen/BaseRecord-interface.mdx create mode 100644 docs/gen/BookmarkShape-var.mdx create mode 100644 docs/gen/BookmarkShapeUtil-class.mdx create mode 100644 docs/gen/Box2d-class.mdx create mode 100644 docs/gen/Box2dModel-interface.mdx create mode 100644 docs/gen/BreakPointProvider-function-1.mdx create mode 100644 docs/gen/Button-var.mdx create mode 100644 docs/gen/CameraRecordType-var.mdx create mode 100644 docs/gen/Canvas-var.mdx create mode 100644 docs/gen/CollectionDiff-type.mdx create mode 100644 docs/gen/ComputedCache-type.mdx create mode 100644 docs/gen/ContextMenu-var.mdx create mode 100644 docs/gen/CubicSegment2d-class.mdx create mode 100644 docs/gen/CubicSegment2dModel-interface.mdx create mode 100644 docs/gen/CubicSpline2d-class.mdx create mode 100644 docs/gen/DefaultColorStyle-var.mdx create mode 100644 docs/gen/DefaultDashStyle-var.mdx create mode 100644 docs/gen/DefaultFillStyle-var.mdx create mode 100644 docs/gen/DefaultFontStyle-var.mdx create mode 100644 docs/gen/DefaultHorizontalAlignStyle-var.mdx create mode 100644 docs/gen/DefaultSizeStyle-var.mdx create mode 100644 docs/gen/DefaultVerticalAlignStyle-var.mdx create mode 100644 docs/gen/Dialog-namespace.mdx create mode 100644 docs/gen/DocumentRecordType-var.mdx create mode 100644 docs/gen/DrawShape-var.mdx create mode 100644 docs/gen/DrawShapeUtil-class.mdx create mode 100644 docs/gen/DropdownMenu-namespace.mdx create mode 100644 docs/gen/EASINGS-var.mdx create mode 100644 docs/gen/EMBED_DEFINITIONS-var.mdx create mode 100644 docs/gen/EPSILON-var.mdx create mode 100644 docs/gen/EVENT_NAME_MAP-var.mdx create mode 100644 docs/gen/EasingType-type.mdx create mode 100644 docs/gen/Editor-class.mdx create mode 100644 docs/gen/EmbedDefinition-type.mdx create mode 100644 docs/gen/EmbedShape-var.mdx create mode 100644 docs/gen/EmbedShapeUtil-class.mdx create mode 100644 docs/gen/EnumStyleProp-class.mdx create mode 100644 docs/gen/ErrorBoundary-class.mdx create mode 100644 docs/gen/ErrorScreen-function-1.mdx create mode 100644 docs/gen/FrameShape-var.mdx create mode 100644 docs/gen/FrameShapeUtil-class.mdx create mode 100644 docs/gen/GRID_STEPS-var.mdx create mode 100644 docs/gen/GeoShape-var.mdx create mode 100644 docs/gen/GeoShapeGeoStyle-var.mdx create mode 100644 docs/gen/GeoShapeUtil-class.mdx create mode 100644 docs/gen/GroupShape-var.mdx create mode 100644 docs/gen/GroupShapeUtil-class.mdx create mode 100644 docs/gen/HTMLContainer-function-1.mdx create mode 100644 docs/gen/HTMLContainerProps-type.mdx create mode 100644 docs/gen/HighlightShape-var.mdx create mode 100644 docs/gen/HighlightShapeUtil-class.mdx create mode 100644 docs/gen/HistoryEntry-type.mdx create mode 100644 docs/gen/INDENT-var.mdx create mode 100644 docs/gen/Icon-var.mdx create mode 100644 docs/gen/IdOf-type.mdx create mode 100644 docs/gen/ImageShape-var.mdx create mode 100644 docs/gen/ImageShapeUtil-class.mdx create mode 100644 docs/gen/Input-var.mdx create mode 100644 docs/gen/InstancePageStateRecordType-var.mdx create mode 100644 docs/gen/InstancePresenceRecordType-var.mdx create mode 100644 docs/gen/LANGUAGES-var.mdx create mode 100644 docs/gen/LineSegment2d-class.mdx create mode 100644 docs/gen/LineSegment2dModel-interface.mdx create mode 100644 docs/gen/LineShape-var.mdx create mode 100644 docs/gen/LineShapeSplineStyle-var.mdx create mode 100644 docs/gen/LineShapeUtil-class.mdx create mode 100644 docs/gen/LoadingScreen-function-1.mdx create mode 100644 docs/gen/MatLike-type.mdx create mode 100644 docs/gen/Matrix2d-class.mdx create mode 100644 docs/gen/Matrix2dModel-interface.mdx create mode 100644 docs/gen/MatrixInfo-interface.mdx create mode 100644 docs/gen/Migration-type.mdx create mode 100644 docs/gen/MigrationFailureReason-enum.mdx create mode 100644 docs/gen/MigrationResult-type.mdx create mode 100644 docs/gen/Migrations-interface.mdx create mode 100644 docs/gen/NoteShape-var.mdx create mode 100644 docs/gen/NoteShapeUtil-class.mdx create mode 100644 docs/gen/PI-var.mdx create mode 100644 docs/gen/PI2-var.mdx create mode 100644 docs/gen/PageRecordType-var.mdx create mode 100644 docs/gen/PlopManager-class.mdx create mode 100644 docs/gen/PointerRecordType-var.mdx create mode 100644 docs/gen/Polyline2d-class.mdx create mode 100644 docs/gen/ROTATE_CORNER_TO_SELECTION_CORNER-var.mdx create mode 100644 docs/gen/ReadonlySharedStyleMap-class.mdx create mode 100644 docs/gen/RecordId-type.mdx create mode 100644 docs/gen/RecordType-class.mdx create mode 100644 docs/gen/RecordVersion-type.mdx create mode 100644 docs/gen/RecordsDiff-type.mdx create mode 100644 docs/gen/RequiredKeys-type.mdx create mode 100644 docs/gen/RotateCorner-type.mdx create mode 100644 docs/gen/SIN-var.mdx create mode 100644 docs/gen/SVGContainer-function-1.mdx create mode 100644 docs/gen/SVGContainerProps-type.mdx create mode 100644 docs/gen/SchemaShapeInfo-type.mdx create mode 100644 docs/gen/SelectionCorner-type.mdx create mode 100644 docs/gen/SelectionEdge-type.mdx create mode 100644 docs/gen/SelectionHandle-type.mdx create mode 100644 docs/gen/SerializedSchema-interface.mdx create mode 100644 docs/gen/ShapeProps-type.mdx create mode 100644 docs/gen/ShapeUtil-class.mdx create mode 100644 docs/gen/SharedStyle-type.mdx create mode 100644 docs/gen/StateNode-class.mdx create mode 100644 docs/gen/Store-class.mdx create mode 100644 docs/gen/StoreError-type.mdx create mode 100644 docs/gen/StoreListener-type.mdx create mode 100644 docs/gen/StoreSchema-class.mdx create mode 100644 docs/gen/StoreSchemaOptions-type.mdx create mode 100644 docs/gen/StoreSnapshot-type.mdx create mode 100644 docs/gen/StoreValidator-type.mdx create mode 100644 docs/gen/StoreValidators-type.mdx create mode 100644 docs/gen/StrokeOptions-interface.mdx create mode 100644 docs/gen/StrokePoint-interface.mdx create mode 100644 docs/gen/StyleProp-class.mdx create mode 100644 docs/gen/T-namespace.mdx create mode 100644 docs/gen/TAB_ID-var.mdx create mode 100644 docs/gen/TAU-var.mdx create mode 100644 docs/gen/TLAnimationOptions-type.mdx create mode 100644 docs/gen/TLArrowShape-type.mdx create mode 100644 docs/gen/TLArrowShapeArrowheadStyle-type.mdx create mode 100644 docs/gen/TLArrowShapeProps-type.mdx create mode 100644 docs/gen/TLArrowShapeTerminal-type.mdx create mode 100644 docs/gen/TLAsset-type.mdx create mode 100644 docs/gen/TLAssetId-type.mdx create mode 100644 docs/gen/TLAssetPartial-type.mdx create mode 100644 docs/gen/TLAssetShape-type.mdx create mode 100644 docs/gen/TLBaseAsset-interface.mdx create mode 100644 docs/gen/TLBaseBoxShape-type.mdx create mode 100644 docs/gen/TLBaseEventInfo-interface.mdx create mode 100644 docs/gen/TLBaseShape-interface.mdx create mode 100644 docs/gen/TLBookmarkAsset-type.mdx create mode 100644 docs/gen/TLBookmarkShape-type.mdx create mode 100644 docs/gen/TLCLickEventName-type.mdx create mode 100644 docs/gen/TLCamera-interface.mdx create mode 100644 docs/gen/TLCameraId-type.mdx create mode 100644 docs/gen/TLCancelEvent-type.mdx create mode 100644 docs/gen/TLCancelEventInfo-type.mdx create mode 100644 docs/gen/TLCanvasUiColor-type.mdx create mode 100644 docs/gen/TLClickEvent-type.mdx create mode 100644 docs/gen/TLClickEventInfo-type.mdx create mode 100644 docs/gen/TLCommand-type.mdx create mode 100644 docs/gen/TLCommandHandler-type.mdx create mode 100644 docs/gen/TLCompleteEvent-type.mdx create mode 100644 docs/gen/TLCompleteEventInfo-type.mdx create mode 100644 docs/gen/TLContent-interface.mdx create mode 100644 docs/gen/TLCopyType-type.mdx create mode 100644 docs/gen/TLCursor-interface.mdx create mode 100644 docs/gen/TLCursorType-type.mdx create mode 100644 docs/gen/TLDOCUMENT_ID-var.mdx create mode 100644 docs/gen/TLDRAW_FILE_EXTENSION-var.mdx create mode 100644 docs/gen/TLDRAW_FILE_MIMETYPE-var.mdx create mode 100644 docs/gen/TLDefaultColorStyle-type.mdx create mode 100644 docs/gen/TLDefaultDashStyle-type.mdx create mode 100644 docs/gen/TLDefaultFillStyle-type.mdx create mode 100644 docs/gen/TLDefaultFontStyle-type.mdx create mode 100644 docs/gen/TLDefaultHorizontalAlignStyle-type.mdx create mode 100644 docs/gen/TLDefaultShape-type.mdx create mode 100644 docs/gen/TLDefaultSizeStyle-type.mdx create mode 100644 docs/gen/TLDefaultVerticalAlignStyle-type.mdx create mode 100644 docs/gen/TLDocument-interface.mdx create mode 100644 docs/gen/TLDrawShape-type.mdx create mode 100644 docs/gen/TLDrawShapeSegment-type.mdx create mode 100644 docs/gen/TLEditorAssetUrls-type.mdx create mode 100644 docs/gen/TLEditorComponents-interface.mdx create mode 100644 docs/gen/TLEditorOptions-interface.mdx create mode 100644 docs/gen/TLEmbedResult-type.mdx create mode 100644 docs/gen/TLEmbedShape-type.mdx create mode 100644 docs/gen/TLEmbedShapePermissions-type.mdx create mode 100644 docs/gen/TLEnterEventHandler-type.mdx create mode 100644 docs/gen/TLErrorBoundaryProps-interface.mdx create mode 100644 docs/gen/TLEventHandlers-interface.mdx create mode 100644 docs/gen/TLEventInfo-type.mdx create mode 100644 docs/gen/TLEventMap-interface.mdx create mode 100644 docs/gen/TLEventMapHandler-type.mdx create mode 100644 docs/gen/TLEventName-type.mdx create mode 100644 docs/gen/TLExitEventHandler-type.mdx create mode 100644 docs/gen/TLExportType-type.mdx create mode 100644 docs/gen/TLExternalContent-type.mdx create mode 100644 docs/gen/TLFrameShape-type.mdx create mode 100644 docs/gen/TLGeoShape-type.mdx create mode 100644 docs/gen/TLGroupShape-type.mdx create mode 100644 docs/gen/TLHandle-interface.mdx create mode 100644 docs/gen/TLHandleType-type.mdx create mode 100644 docs/gen/TLHighlightShape-type.mdx create mode 100644 docs/gen/TLHistoryEntry-type.mdx create mode 100644 docs/gen/TLHistoryMark-type.mdx create mode 100644 docs/gen/TLINSTANCE_ID-var.mdx create mode 100644 docs/gen/TLImageAsset-type.mdx create mode 100644 docs/gen/TLImageShape-type.mdx create mode 100644 docs/gen/TLImageShapeCrop-type.mdx create mode 100644 docs/gen/TLImageShapeProps-type.mdx create mode 100644 docs/gen/TLInstance-interface.mdx create mode 100644 docs/gen/TLInstanceId-type.mdx create mode 100644 docs/gen/TLInstancePageState-interface.mdx create mode 100644 docs/gen/TLInstancePresence-interface.mdx create mode 100644 docs/gen/TLInterruptEvent-type.mdx create mode 100644 docs/gen/TLInterruptEventInfo-type.mdx create mode 100644 docs/gen/TLKeyboardEvent-type.mdx create mode 100644 docs/gen/TLKeyboardEventInfo-type.mdx create mode 100644 docs/gen/TLKeyboardEventName-type.mdx create mode 100644 docs/gen/TLLanguage-type.mdx create mode 100644 docs/gen/TLLineShape-type.mdx create mode 100644 docs/gen/TLNoteShape-type.mdx create mode 100644 docs/gen/TLOnBeforeCreateHandler-type.mdx create mode 100644 docs/gen/TLOnBeforeUpdateHandler-type.mdx create mode 100644 docs/gen/TLOnChildrenChangeHandler-type.mdx create mode 100644 docs/gen/TLOnClickHandler-type.mdx create mode 100644 docs/gen/TLOnDoubleClickHandleHandler-type.mdx create mode 100644 docs/gen/TLOnDoubleClickHandler-type.mdx create mode 100644 docs/gen/TLOnDragHandler-type.mdx create mode 100644 docs/gen/TLOnEditEndHandler-type.mdx create mode 100644 docs/gen/TLOnHandleChangeHandler-type.mdx create mode 100644 docs/gen/TLOnResizeEndHandler-type.mdx create mode 100644 docs/gen/TLOnResizeHandler-type.mdx create mode 100644 docs/gen/TLOnResizeStartHandler-type.mdx create mode 100644 docs/gen/TLOnRotateEndHandler-type.mdx create mode 100644 docs/gen/TLOnRotateHandler-type.mdx create mode 100644 docs/gen/TLOnRotateStartHandler-type.mdx create mode 100644 docs/gen/TLOnTranslateEndHandler-type.mdx create mode 100644 docs/gen/TLOnTranslateHandler-type.mdx create mode 100644 docs/gen/TLOnTranslateStartHandler-type.mdx create mode 100644 docs/gen/TLOpacityType-type.mdx create mode 100644 docs/gen/TLPOINTER_ID-var.mdx create mode 100644 docs/gen/TLPage-interface.mdx create mode 100644 docs/gen/TLPageId-type.mdx create mode 100644 docs/gen/TLParentId-type.mdx create mode 100644 docs/gen/TLPinchEvent-type.mdx create mode 100644 docs/gen/TLPinchEventInfo-type.mdx create mode 100644 docs/gen/TLPinchEventName-type.mdx create mode 100644 docs/gen/TLPointerEvent-type.mdx create mode 100644 docs/gen/TLPointerEventInfo-type.mdx create mode 100644 docs/gen/TLPointerEventName-type.mdx create mode 100644 docs/gen/TLPointerEventTarget-type.mdx create mode 100644 docs/gen/TLRecord-type.mdx create mode 100644 docs/gen/TLResizeHandle-type.mdx create mode 100644 docs/gen/TLResizeInfo-type.mdx create mode 100644 docs/gen/TLResizeMode-type.mdx create mode 100644 docs/gen/TLSchema-type.mdx create mode 100644 docs/gen/TLScribble-type.mdx create mode 100644 docs/gen/TLSelectionHandle-type.mdx create mode 100644 docs/gen/TLSessionStateSnapshot-interface.mdx create mode 100644 docs/gen/TLShape-type.mdx create mode 100644 docs/gen/TLShapeId-type.mdx create mode 100644 docs/gen/TLShapeInfo-type.mdx create mode 100644 docs/gen/TLShapePartial-type.mdx create mode 100644 docs/gen/TLShapeProp-type.mdx create mode 100644 docs/gen/TLShapeProps-type.mdx create mode 100644 docs/gen/TLShapeUtilConstructor-interface.mdx create mode 100644 docs/gen/TLShapeUtilFlag-type.mdx create mode 100644 docs/gen/TLStateNodeConstructor-interface.mdx create mode 100644 docs/gen/TLStore-type.mdx create mode 100644 docs/gen/TLStoreEventInfo-type.mdx create mode 100644 docs/gen/TLStoreOptions-type.mdx create mode 100644 docs/gen/TLStoreProps-type.mdx create mode 100644 docs/gen/TLStoreSchema-type.mdx create mode 100644 docs/gen/TLStoreSnapshot-type.mdx create mode 100644 docs/gen/TLStoreWithStatus-type.mdx create mode 100644 docs/gen/TLTextShape-type.mdx create mode 100644 docs/gen/TLTextShapeProps-type.mdx create mode 100644 docs/gen/TLTickEvent-type.mdx create mode 100644 docs/gen/TLUiActionItem-interface.mdx create mode 100644 docs/gen/TLUiActionsContextType-type.mdx create mode 100644 docs/gen/TLUiActionsMenuSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiButtonProps-interface.mdx create mode 100644 docs/gen/TLUiContextMenuProps-interface.mdx create mode 100644 docs/gen/TLUiContextTTLUiMenuSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiCustomMenuItem-type.mdx create mode 100644 docs/gen/TLUiDialog-interface.mdx create mode 100644 docs/gen/TLUiDialogProps-interface.mdx create mode 100644 docs/gen/TLUiDialogsContextType-type.mdx create mode 100644 docs/gen/TLUiEventContextType-type.mdx create mode 100644 docs/gen/TLUiEventHandler-type.mdx create mode 100644 docs/gen/TLUiEventSource-type.mdx create mode 100644 docs/gen/TLUiHelpMenuSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiIconProps-interface.mdx create mode 100644 docs/gen/TLUiIconType-type.mdx create mode 100644 docs/gen/TLUiInputProps-interface.mdx create mode 100644 docs/gen/TLUiKeyboardShortcutsSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiKeyboardShortcutsSchemaProviderProps-type.mdx create mode 100644 docs/gen/TLUiMenuChild-type.mdx create mode 100644 docs/gen/TLUiMenuGroup-type.mdx create mode 100644 docs/gen/TLUiMenuItem-type.mdx create mode 100644 docs/gen/TLUiMenuSchema-type.mdx create mode 100644 docs/gen/TLUiMenuSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiMenuSchemaProviderProps-type.mdx create mode 100644 docs/gen/TLUiOverrides-interface.mdx create mode 100644 docs/gen/TLUiSubMenu-type.mdx create mode 100644 docs/gen/TLUiToast-interface.mdx create mode 100644 docs/gen/TLUiToastAction-interface.mdx create mode 100644 docs/gen/TLUiToastsContextType-type.mdx create mode 100644 docs/gen/TLUiToolItem-interface.mdx create mode 100644 docs/gen/TLUiToolbarItem-type.mdx create mode 100644 docs/gen/TLUiToolbarSchemaContextType-type.mdx create mode 100644 docs/gen/TLUiToolsContextType-type.mdx create mode 100644 docs/gen/TLUiToolsProviderProps-type.mdx create mode 100644 docs/gen/TLUiTranslation-type.mdx create mode 100644 docs/gen/TLUiTranslationContextType-type.mdx create mode 100644 docs/gen/TLUiTranslationKey-type.mdx create mode 100644 docs/gen/TLUnknownShape-type.mdx create mode 100644 docs/gen/TLUserPreferences-interface.mdx create mode 100644 docs/gen/TLVideoAsset-type.mdx create mode 100644 docs/gen/TLVideoShape-type.mdx create mode 100644 docs/gen/TLWheelEvent-type.mdx create mode 100644 docs/gen/TLWheelEventInfo-type.mdx create mode 100644 docs/gen/TL_CANVAS_UI_COLOR_TYPES-var.mdx create mode 100644 docs/gen/TextShape-var.mdx create mode 100644 docs/gen/TextShapeUtil-class.mdx create mode 100644 docs/gen/Tldraw-function-1.mdx create mode 100644 docs/gen/TldrawEditor-var.mdx create mode 100644 docs/gen/TldrawEditorProps-type.mdx create mode 100644 docs/gen/TldrawFile-interface.mdx create mode 100644 docs/gen/TldrawFileParseError-type.mdx create mode 100644 docs/gen/TldrawUi-var.mdx create mode 100644 docs/gen/TldrawUiContextProvider-function-1.mdx create mode 100644 docs/gen/TldrawUiContextProviderProps-interface.mdx create mode 100644 docs/gen/TldrawUiProps-type.mdx create mode 100644 docs/gen/UiEvent-type.mdx create mode 100644 docs/gen/UiEventType-type.mdx create mode 100644 docs/gen/UnknownRecord-type.mdx create mode 100644 docs/gen/Vec2d-class.mdx create mode 100644 docs/gen/Vec2dModel-interface.mdx create mode 100644 docs/gen/VecLike-type.mdx create mode 100644 docs/gen/VideoShape-var.mdx create mode 100644 docs/gen/VideoShapeUtil-class.mdx create mode 100644 docs/gen/WeakMapCache-class.mdx create mode 100644 docs/gen/angleDelta-function-1.mdx create mode 100644 docs/gen/approximately-function-1.mdx create mode 100644 docs/gen/areAnglesCompatible-function-1.mdx create mode 100644 docs/gen/arrowShapeProps-var.mdx create mode 100644 docs/gen/assertIdType-function-1.mdx create mode 100644 docs/gen/assetIdValidator-var.mdx create mode 100644 docs/gen/blobAsString-function-1.mdx create mode 100644 docs/gen/bookmarkShapeProps-var.mdx create mode 100644 docs/gen/box2dModelValidator-var.mdx create mode 100644 docs/gen/canolicalizeRotation-function-1.mdx create mode 100644 docs/gen/canvasUiColorTypeValidator-var.mdx create mode 100644 docs/gen/checkFlag-var.mdx create mode 100644 docs/gen/clamp-function-1.mdx create mode 100644 docs/gen/clamp-function-2.mdx create mode 100644 docs/gen/clampRadians-function-1.mdx create mode 100644 docs/gen/compactMenuItems-function-1.mdx create mode 100644 docs/gen/compareRecordVersions-function-1.mdx create mode 100644 docs/gen/compareSchemas-var.mdx create mode 100644 docs/gen/containBoxSize-function-1.mdx create mode 100644 docs/gen/coreShapes-var.mdx create mode 100644 docs/gen/correctSpacesToNbsp-function-1.mdx create mode 100644 docs/gen/createAssetValidator-function-1.mdx create mode 100644 docs/gen/createPresenceStateDerivation-var.mdx create mode 100644 docs/gen/createRecordType-function-1.mdx create mode 100644 docs/gen/createSessionStateSnapshotSignal-function-1.mdx create mode 100644 docs/gen/createShapeId-function-1.mdx create mode 100644 docs/gen/createShapeValidator-function-1.mdx create mode 100644 docs/gen/createTLSchema-function-1.mdx create mode 100644 docs/gen/createTLStore-function-1.mdx create mode 100644 docs/gen/createTLUser-function-1.mdx create mode 100644 docs/gen/dataTransferItemAsString-function-1.mdx create mode 100644 docs/gen/dataUrlToFile-function-1.mdx create mode 100644 docs/gen/decomposeMatrix2d-function-1.mdx create mode 100644 docs/gen/defaultEditorAssetUrls-var.mdx create mode 100644 docs/gen/defaultEmptyAs-function-1.mdx create mode 100644 docs/gen/defaultShapes-var.mdx create mode 100644 docs/gen/defaultTools-var.mdx create mode 100644 docs/gen/defineMigrations-function-1.mdx create mode 100644 docs/gen/defineShape-function-1.mdx create mode 100644 docs/gen/degreesToRadians-function-1.mdx create mode 100644 docs/gen/devFreeze-function-1.mdx create mode 100644 docs/gen/downloadDataURLAsFile-function-1.mdx create mode 100644 docs/gen/drawShapeProps-var.mdx create mode 100644 docs/gen/embedShapePermissionDefaults-var.mdx create mode 100644 docs/gen/embedShapeProps-var.mdx create mode 100644 docs/gen/fileToBase64-function-1.mdx create mode 100644 docs/gen/findMenuItem-function-1.mdx create mode 100644 docs/gen/flipSelectionHandleX-function-1.mdx create mode 100644 docs/gen/flipSelectionHandleY-function-1.mdx create mode 100644 docs/gen/frameShapeProps-var.mdx create mode 100644 docs/gen/geoShapeProps-var.mdx create mode 100644 docs/gen/getArcLength-function-1.mdx create mode 100644 docs/gen/getDefaultTranslationLocale-function-1.mdx create mode 100644 docs/gen/getDrawLinePathData-function-1.mdx create mode 100644 docs/gen/getEmbedInfo-function-1.mdx create mode 100644 docs/gen/getEmbedInfoUnsafely-function-1.mdx create mode 100644 docs/gen/getFileMetaData-function-1.mdx create mode 100644 docs/gen/getFreshUserPreferences-function-1.mdx create mode 100644 docs/gen/getHeight-function-1.mdx create mode 100644 docs/gen/getImageSizeFromSrc-function-1.mdx create mode 100644 docs/gen/getIncrementedName-function-1.mdx create mode 100644 docs/gen/getMaxX-function-1.mdx create mode 100644 docs/gen/getMaxY-function-1.mdx create mode 100644 docs/gen/getMediaAssetFromFile-function-1.mdx create mode 100644 docs/gen/getMidX-function-1.mdx create mode 100644 docs/gen/getMidY-function-1.mdx create mode 100644 docs/gen/getMinX-function-1.mdx create mode 100644 docs/gen/getMinY-function-1.mdx create mode 100644 docs/gen/getPointOnCircle-function-1.mdx create mode 100644 docs/gen/getPolygonVertices-function-1.mdx create mode 100644 docs/gen/getRecordVersion-function-1.mdx create mode 100644 docs/gen/getResizedImageDataUrl-function-1.mdx create mode 100644 docs/gen/getRotatedBoxShadow-function-1.mdx create mode 100644 docs/gen/getRoundedInkyPolygonPath-function-1.mdx create mode 100644 docs/gen/getRoundedPolygonPoints-function-1.mdx create mode 100644 docs/gen/getSplineForLineShape-function-1.mdx create mode 100644 docs/gen/getStarBounds-var.mdx create mode 100644 docs/gen/getStroke-function-1.mdx create mode 100644 docs/gen/getStrokeOutlinePoints-function-1.mdx create mode 100644 docs/gen/getStrokePoints-function-1.mdx create mode 100644 docs/gen/getSvgAsDataUrl-function-1.mdx create mode 100644 docs/gen/getSvgAsDataUrlSync-function-1.mdx create mode 100644 docs/gen/getSvgAsImage-function-1.mdx create mode 100644 docs/gen/getSvgAsString-function-1.mdx create mode 100644 docs/gen/getSvgPathFromStroke-function-1.mdx create mode 100644 docs/gen/getSvgPathFromStrokePoints-function-1.mdx create mode 100644 docs/gen/getSweep-function-1.mdx create mode 100644 docs/gen/getTextBoundingBox-function-1.mdx create mode 100644 docs/gen/getUserPreferences-function-1.mdx create mode 100644 docs/gen/getValidHttpURLList-var.mdx create mode 100644 docs/gen/getVideoSizeFromSrc-function-1.mdx create mode 100644 docs/gen/getWidth-function-1.mdx create mode 100644 docs/gen/hardReset-function-1.mdx create mode 100644 docs/gen/hardResetEditor-function-1.mdx create mode 100644 docs/gen/highlightShapeProps-var.mdx create mode 100644 docs/gen/imageShapeProps-var.mdx create mode 100644 docs/gen/intersectCircleCircle-function-1.mdx create mode 100644 docs/gen/intersectCirclePolygon-function-1.mdx create mode 100644 docs/gen/intersectCirclePolyline-function-1.mdx create mode 100644 docs/gen/intersectLineSegmentCircle-function-1.mdx create mode 100644 docs/gen/intersectLineSegmentLineSegment-function-1.mdx create mode 100644 docs/gen/intersectLineSegmentPolygon-function-1.mdx create mode 100644 docs/gen/intersectLineSegmentPolyline-function-1.mdx create mode 100644 docs/gen/intersectPolygonBounds-function-1.mdx create mode 100644 docs/gen/intersectPolygonPolygon-function-1.mdx create mode 100644 docs/gen/isAngleBetween-function-1.mdx create mode 100644 docs/gen/isAnimated-function-1.mdx create mode 100644 docs/gen/isGIF-function-1.mdx create mode 100644 docs/gen/isImage-var.mdx create mode 100644 docs/gen/isPageId-function-1.mdx create mode 100644 docs/gen/isSafeFloat-var.mdx create mode 100644 docs/gen/isSelectionCorner-function-1.mdx create mode 100644 docs/gen/isSerializable-function-1.mdx create mode 100644 docs/gen/isShape-function-1.mdx create mode 100644 docs/gen/isShapeId-function-1.mdx create mode 100644 docs/gen/isSvgText-var.mdx create mode 100644 docs/gen/isV1File-function-1.mdx create mode 100644 docs/gen/isValidHttpURL-var.mdx create mode 100644 docs/gen/isValidUrl-function-1.mdx create mode 100644 docs/gen/lerpAngles-function-1.mdx create mode 100644 docs/gen/lineShapeProps-var.mdx create mode 100644 docs/gen/linesIntersect-function-1.mdx create mode 100644 docs/gen/loadSessionStateSnapshotIntoStore-function-1.mdx create mode 100644 docs/gen/longAngleDist-function-1.mdx create mode 100644 docs/gen/loopToHtmlElement-function-1.mdx create mode 100644 docs/gen/matchEmbedUrl-function-1.mdx create mode 100644 docs/gen/matchUrl-function-1.mdx create mode 100644 docs/gen/menuCustom-function-1.mdx create mode 100644 docs/gen/menuGroup-function-1.mdx create mode 100644 docs/gen/menuItem-function-1.mdx create mode 100644 docs/gen/menuSubmenu-function-1.mdx create mode 100644 docs/gen/migrate-function-1.mdx create mode 100644 docs/gen/migrateRecord-function-1.mdx create mode 100644 docs/gen/normalizeWheel-function-1.mdx create mode 100644 docs/gen/noteShapeProps-var.mdx create mode 100644 docs/gen/openWindow-function-1.mdx create mode 100644 docs/gen/parentIdValidator-var.mdx create mode 100644 docs/gen/parseTldrawJsonFile-function-1.mdx create mode 100644 docs/gen/perimeterOfEllipse-function-1.mdx create mode 100644 docs/gen/pointInBounds-function-1.mdx create mode 100644 docs/gen/pointInCircle-function-1.mdx create mode 100644 docs/gen/pointInEllipse-function-1.mdx create mode 100644 docs/gen/pointInPolygon-function-1.mdx create mode 100644 docs/gen/pointInPolyline-function-1.mdx create mode 100644 docs/gen/pointInRect-function-1.mdx create mode 100644 docs/gen/pointNearToLineSegment-function-1.mdx create mode 100644 docs/gen/pointNearToPolyline-function-1.mdx create mode 100644 docs/gen/polygonsIntersect-function-1.mdx create mode 100644 docs/gen/preventDefault-function-1.mdx create mode 100644 docs/gen/radiansToDegrees-function-1.mdx create mode 100644 docs/gen/rangeIntersection-function-1.mdx create mode 100644 docs/gen/rangesOverlap-function-1.mdx create mode 100644 docs/gen/refreshPage-function-1.mdx create mode 100644 docs/gen/releasePointerCapture-function-1.mdx create mode 100644 docs/gen/reverseRecordsDiff-function-1.mdx create mode 100644 docs/gen/rotateSelectionHandle-function-1.mdx create mode 100644 docs/gen/runtime-var.mdx create mode 100644 docs/gen/serializeTldrawJson-function-1.mdx create mode 100644 docs/gen/serializeTldrawJsonBlob-function-1.mdx create mode 100644 docs/gen/setPointerCapture-function-1.mdx create mode 100644 docs/gen/setRuntimeOverrides-function-1.mdx create mode 100644 docs/gen/setStrokePointRadii-function-1.mdx create mode 100644 docs/gen/setUserPreferences-function-1.mdx create mode 100644 docs/gen/shapeIdValidator-var.mdx create mode 100644 docs/gen/shortAngleDist-function-1.mdx create mode 100644 docs/gen/simplify-function-1.mdx create mode 100644 docs/gen/simplify2-function-1.mdx create mode 100644 docs/gen/snapAngle-function-1.mdx create mode 100644 docs/gen/snapToGrid-function-1.mdx create mode 100644 docs/gen/squashRecordDiffs-function-1.mdx create mode 100644 docs/gen/textShapeProps-var.mdx create mode 100644 docs/gen/toDomPrecision-function-1.mdx create mode 100644 docs/gen/toFixed-function-1.mdx create mode 100644 docs/gen/toPrecision-function-1.mdx create mode 100644 docs/gen/toolbarItem-function-1.mdx create mode 100644 docs/gen/truncateStringWithEllipsis-var.mdx create mode 100644 docs/gen/uniqueId-function-1.mdx create mode 100644 docs/gen/useActions-function-1.mdx create mode 100644 docs/gen/useActionsMenuSchema-function-1.mdx create mode 100644 docs/gen/useBreakpoint-function-1.mdx create mode 100644 docs/gen/useCanRedo-function-1.mdx create mode 100644 docs/gen/useCanUndo-function-1.mdx create mode 100644 docs/gen/useContainer-function-1.mdx create mode 100644 docs/gen/useContextMenuSchema-function-1.mdx create mode 100644 docs/gen/useCopyAs-function-1.mdx create mode 100644 docs/gen/useDefaultHelpers-function-1.mdx create mode 100644 docs/gen/useDialogs-function-1.mdx create mode 100644 docs/gen/useEditor-var.mdx create mode 100644 docs/gen/useEvents-function-1.mdx create mode 100644 docs/gen/useExportAs-function-1.mdx create mode 100644 docs/gen/useHelpMenuSchema-function-1.mdx create mode 100644 docs/gen/useKeyboardShortcuts-function-1.mdx create mode 100644 docs/gen/useKeyboardShortcutsSchema-function-1.mdx create mode 100644 docs/gen/useLocalStorageState-function-1.mdx create mode 100644 docs/gen/useMenuClipboardEvents-function-1.mdx create mode 100644 docs/gen/useMenuIsOpen-function-1.mdx create mode 100644 docs/gen/useMenuSchema-function-1.mdx create mode 100644 docs/gen/useNativeClipboardEvents-function-1.mdx create mode 100644 docs/gen/usePrefersReducedMotion-function-1.mdx create mode 100644 docs/gen/useReadonly-function-1.mdx create mode 100644 docs/gen/useTLStore-function-1.mdx create mode 100644 docs/gen/useToasts-function-1.mdx create mode 100644 docs/gen/useToolbarSchema-function-1.mdx create mode 100644 docs/gen/useTools-function-1.mdx create mode 100644 docs/gen/useTranslation-function-1.mdx create mode 100644 docs/gen/vec2dModelValidator-var.mdx create mode 100644 docs/gen/videoShapeProps-var.mdx create mode 100644 docs/sections.json rename apps/docs/types/content-types.ts => scripts/lib/docs/docs-types.ts (98%) rename apps/docs/scripts/utils.ts => scripts/lib/docs/docs-utils.ts (100%) rename {apps/docs/scripts => scripts/lib/docs}/generate-on-reload.ts (100%) create mode 100644 scripts/lib/docs/generateApiContent.ts rename {apps/docs/scripts => scripts/lib/docs}/generateContent.ts (96%) rename {apps/docs/scripts => scripts/lib/docs}/generateSection.ts (97%) rename {apps/docs/scripts => scripts/lib/docs}/getApiMarkdown.ts (98%) rename {apps/docs/scripts => scripts/lib/docs}/index.ts (100%) diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.json deleted file mode 100644 index 0967ef424..000000000 --- a/apps/docs/.eslintrc.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/apps/docs/.gitignore b/apps/docs/.gitignore deleted file mode 100644 index c605f457d..000000000 --- a/apps/docs/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts - - -content/gen -content.json -api-content.json \ No newline at end of file diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md deleted file mode 100644 index 6bff4ea23..000000000 --- a/apps/docs/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# @tldraw/docs - -## 0.1.1-alpha.0 - -### Patch Changes - -- Release day! diff --git a/apps/docs/LICENSE b/apps/docs/LICENSE deleted file mode 100644 index 4f227c380..000000000 --- a/apps/docs/LICENSE +++ /dev/null @@ -1,190 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -Copyright 2023 tldraw GB Ltd. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/apps/docs/README.md b/apps/docs/README.md deleted file mode 100644 index a53300ae3..000000000 --- a/apps/docs/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# tldraw-docs - -
- - tldraw - -
diff --git a/apps/docs/components/ArticleDetails.tsx b/apps/docs/components/ArticleDetails.tsx deleted file mode 100644 index 0c5cb888f..000000000 --- a/apps/docs/components/ArticleDetails.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { Article } from '@/types/content-types' -import { Icon } from './Icon' - -type ArticleDetailsProps = { - article: Article -} - -export function ArticleDetails({ article: { sourceUrl, date } }: ArticleDetailsProps) { - return ( -
- - - Edit this page - - {date && ( -
- Last edited on{' '} - {Intl.DateTimeFormat('en-gb', { - year: 'numeric', - month: 'long', - day: 'numeric', - }).format(new Date(date))} -
- )} -
- ) -} diff --git a/apps/docs/components/ArticleNavLinks.tsx b/apps/docs/components/ArticleNavLinks.tsx deleted file mode 100644 index 58c2649ea..000000000 --- a/apps/docs/components/ArticleNavLinks.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { ArticleLinks } from '@/types/content-types' -import Link from 'next/link' -import { Icon } from './Icon' - -type ArticleNavLinksProps = { - links: ArticleLinks -} - -export function ArticleNavLinks({ links: { prev, next } }: ArticleNavLinksProps) { - return ( -
- {prev && ( - - - {prev.title} - - )} - {next && ( - - {next.title} - - - )} -
- ) -} diff --git a/apps/docs/components/Icon.tsx b/apps/docs/components/Icon.tsx deleted file mode 100644 index 2b7b3ff19..000000000 --- a/apps/docs/components/Icon.tsx +++ /dev/null @@ -1,11 +0,0 @@ -export function Icon({ icon, className }: { icon: string; className?: string }) { - return ( - - ) -} diff --git a/apps/docs/components/Mdx.tsx b/apps/docs/components/Mdx.tsx deleted file mode 100644 index c7f23b4a4..000000000 --- a/apps/docs/components/Mdx.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote' -import { components, scope } from './mdx-components' - -interface MdxProps { - mdxSource: MDXRemoteSerializeResult -} - -export function Mdx({ mdxSource }: MdxProps) { - return -} diff --git a/apps/docs/components/MetaHead.tsx b/apps/docs/components/MetaHead.tsx deleted file mode 100644 index 32c9b03d7..000000000 --- a/apps/docs/components/MetaHead.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import Head from 'next/head' - -interface MetaHeadProps { - title: string - description?: string | null - hero?: string | null -} - -export function MetaHead({ title, description, hero }: MetaHeadProps) { - const TITLE = `${title} - tldraw docs` - - return ( - - {TITLE} - {description && } - - - {description && } - {hero && } - - - {description && } - {hero && } - - ) -} diff --git a/apps/docs/components/ThemeSwitcher.tsx b/apps/docs/components/ThemeSwitcher.tsx deleted file mode 100644 index 65b30b741..000000000 --- a/apps/docs/components/ThemeSwitcher.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { useTheme } from 'next-themes' -import { Icon } from './Icon' - -export function ThemeSwitcher() { - const { theme, setTheme } = useTheme() - - return ( - - ) -} diff --git a/apps/docs/components/article-components/index.ts b/apps/docs/components/article-components/index.ts deleted file mode 100644 index 336ce12bb..000000000 --- a/apps/docs/components/article-components/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/apps/docs/components/mdx-components/api-docs.tsx b/apps/docs/components/mdx-components/api-docs.tsx deleted file mode 100644 index 6987f71a0..000000000 --- a/apps/docs/components/mdx-components/api-docs.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { ReactNode } from 'react' - -export function ParametersTable({ children }: { children: ReactNode }) { - return ( - - - - - - - - {children} -
NameDescription
- ) -} - -export function ParametersTableRow({ children }: { children: ReactNode }) { - return {children} -} - -export function ParametersTableName({ children }: { children: ReactNode }) { - return {children} -} - -export function ParametersTableDescription({ children }: { children: ReactNode }) { - return {children} -} diff --git a/apps/docs/components/mdx-components/generic.tsx b/apps/docs/components/mdx-components/generic.tsx deleted file mode 100644 index eb5a40691..000000000 --- a/apps/docs/components/mdx-components/generic.tsx +++ /dev/null @@ -1,132 +0,0 @@ -/* ---------------------- Lists --------------------- */ - -import React from 'react' - -export const UnorderedList = (props: any) => { - return