[fix] Routes check on e2e tests (#3022)

This PR updates our end to end tests so that they check every route in
our examples to ensure that it loads (skipping any routes that don't
features a canvas).

### Change Type

- [x] `tests` — Changes to any test code only[^2]

### Test Plan

- [x] End to end tests
This commit is contained in:
Steve Ruiz 2024-03-02 16:42:07 +00:00 committed by GitHub
parent 4cc823e22e
commit 338501d656
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 132 additions and 193 deletions

View file

@ -83,5 +83,5 @@ export async function createApiMarkdown() {
1
)
sectionsJson.push(apiInputSection)
fs.writeFileSync(sectionsJsonPath, JSON.stringify(sectionsJson, null, '\t'))
fs.writeFileSync(sectionsJsonPath, JSON.stringify(sectionsJson, null, '\t') + '\n')
}

View file

@ -1,78 +1,17 @@
import test from '@playwright/test'
import * as fs from 'fs'
import path from 'path'
// get all routes from examples/src/examples folder
const examplesFolderList = fs.readdirSync(path.join(__dirname, '../../src/examples'))
const examplesWithoutCanvas = ['image-component', 'yjs']
const exampelsToTest = examplesFolderList.filter((route) => !examplesWithoutCanvas.includes(route))
test.describe('Routes', () => {
test('end-to-end', async ({ page }) => {
await page.goto('http://localhost:5420/end-to-end')
await page.waitForSelector('.tl-canvas')
})
test('basic', async ({ page }) => {
await page.goto('http://localhost:5420/develop')
await page.waitForSelector('.tl-canvas')
})
test('api', async ({ page }) => {
await page.goto('http://localhost:5420/api/full')
await page.waitForSelector('.tl-canvas')
})
test('hide-ui', async ({ page }) => {
await page.goto('http://localhost:5420/custom-config/full')
await page.waitForSelector('.tl-canvas')
})
test('custom-config', async ({ page }) => {
await page.goto('http://localhost:5420/custom-config/full')
await page.waitForSelector('.tl-canvas')
})
test('custom-ui', async ({ page }) => {
await page.goto('http://localhost:5420/custom-ui/full')
await page.waitForSelector('.tl-canvas')
})
test('exploded', async ({ page }) => {
await page.goto('http://localhost:5420/exploded/full')
await page.waitForSelector('.tl-canvas')
})
test('scroll', async ({ page }) => {
await page.goto('http://localhost:5420/scroll/full')
await page.waitForSelector('.tl-canvas')
})
test('multiple', async ({ page }) => {
await page.goto('http://localhost:5420/multiple/full')
await page.waitForSelector('.tl-canvas')
})
test('error-boundary', async ({ page }) => {
await page.goto('http://localhost:5420/error-boundary/full')
await page.waitForSelector('.tl-canvas')
})
test('user-presence', async ({ page }) => {
await page.goto('http://localhost:5420/user-presence/full')
await page.waitForSelector('.tl-canvas')
})
test('ui-events', async ({ page }) => {
await page.goto('http://localhost:5420/ui-events/full')
await page.waitForSelector('.tl-canvas')
})
test('store-events', async ({ page }) => {
await page.goto('http://localhost:5420/store-events/full')
await page.waitForSelector('.tl-canvas')
})
test('persistence', async ({ page }) => {
await page.goto('http://localhost:5420/local-storage/full')
await page.waitForSelector('.tl-canvas')
})
test('snapshots', async ({ page }) => {
await page.goto('http://localhost:5420/snapshots/full')
await page.waitForSelector('.tl-canvas')
})
for (const example of exampelsToTest) {
test(example, async ({ page }) => {
await page.goto(`http://localhost:5420/${example}/full`)
await page.waitForSelector('.tl-canvas')
})
}
})

View file

@ -38360,8 +38360,8 @@
},
{
"kind": "Reference",
"text": "TLCommand",
"canonicalReference": "@tldraw/editor!TLCommand:type"
"text": "TLHistoryMark",
"canonicalReference": "@tldraw/editor!TLHistoryMark:type"
},
{
"kind": "Content",
@ -38369,8 +38369,8 @@
},
{
"kind": "Reference",
"text": "TLHistoryMark",
"canonicalReference": "@tldraw/editor!TLHistoryMark:type"
"text": "TLCommand",
"canonicalReference": "@tldraw/editor!TLCommand:type"
},
{
"kind": "Content",
@ -39151,7 +39151,7 @@
},
{
"kind": "Content",
"text": ") => (() => undefined | void) | undefined | void"
"text": ") => (() => void | undefined) | undefined | void"
},
{
"kind": "Content",

View file

@ -192,7 +192,7 @@
},
{
"kind": "Content",
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">"
"text": "<\"none\" | \"arrow\" | \"triangle\" | \"square\" | \"dot\" | \"pipe\" | \"diamond\" | \"inverted\" | \"bar\">"
}
],
"fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts",
@ -224,7 +224,7 @@
},
{
"kind": "Content",
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">"
"text": "<\"none\" | \"arrow\" | \"triangle\" | \"square\" | \"dot\" | \"pipe\" | \"diamond\" | \"inverted\" | \"bar\">"
}
],
"fileUrlPath": "packages/tlschema/src/shapes/TLArrowShape.ts",
@ -256,7 +256,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"../styles/StyleProp\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n color: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -265,7 +265,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"../styles/StyleProp\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n fill: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -274,7 +274,7 @@
},
{
"kind": "Content",
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"../styles/StyleProp\")."
"text": "<\"none\" | \"semi\" | \"solid\" | \"pattern\">;\n dash: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -283,7 +283,7 @@
},
{
"kind": "Content",
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")."
"text": "<\"solid\" | \"draw\" | \"dashed\" | \"dotted\">;\n size: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -292,7 +292,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n arrowheadStart: import(\"../styles/StyleProp\")."
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n arrowheadStart: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -301,7 +301,7 @@
},
{
"kind": "Content",
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n arrowheadEnd: import(\"../styles/StyleProp\")."
"text": "<\"none\" | \"arrow\" | \"triangle\" | \"square\" | \"dot\" | \"pipe\" | \"diamond\" | \"inverted\" | \"bar\">;\n arrowheadEnd: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -310,7 +310,7 @@
},
{
"kind": "Content",
"text": "<\"arrow\" | \"bar\" | \"diamond\" | \"dot\" | \"inverted\" | \"none\" | \"pipe\" | \"square\" | \"triangle\">;\n font: import(\"../styles/StyleProp\")."
"text": "<\"none\" | \"arrow\" | \"triangle\" | \"square\" | \"dot\" | \"pipe\" | \"diamond\" | \"inverted\" | \"bar\">;\n font: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -319,7 +319,7 @@
},
{
"kind": "Content",
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n start: "
"text": "<\"draw\" | \"sans\" | \"serif\" | \"mono\">;\n start: "
},
{
"kind": "Reference",
@ -514,7 +514,7 @@
},
{
"kind": "Content",
"text": ", \"props\" | \"type\">"
"text": ", \"type\" | \"props\">"
}
],
"fileUrlPath": "packages/tlschema/src/records/TLAsset.ts",
@ -814,7 +814,7 @@
},
{
"kind": "Content",
"text": "<\"accent\" | \"black\" | \"laser\" | \"muted-1\" | \"selection-fill\" | \"selection-stroke\" | \"white\">"
"text": "<\"accent\" | \"white\" | \"black\" | \"selection-stroke\" | \"selection-fill\" | \"laser\" | \"muted-1\">"
}
],
"fileUrlPath": "packages/tlschema/src/misc/TLColor.ts",
@ -880,7 +880,7 @@
},
{
"kind": "Content",
"text": "<{ [P in \"id\" | \"meta\" | \"typeName\" | (undefined extends Props ? never : \"props\") | (undefined extends Type ? never : \"type\")]: {\n id: "
"text": "<{ [P in \"typeName\" | \"id\" | \"meta\" | (undefined extends Type ? never : \"type\") | (undefined extends Props ? never : \"props\")]: {\n id: "
},
{
"kind": "Reference",
@ -898,7 +898,7 @@
},
{
"kind": "Content",
"text": ";\n}[P]; } & { [P_1 in (undefined extends Props ? \"props\" : never) | (undefined extends Type ? \"type\" : never)]?: {\n id: "
"text": ";\n}[P]; } & { [P_1 in (undefined extends Type ? \"type\" : never) | (undefined extends Props ? \"props\" : never)]?: {\n id: "
},
{
"kind": "Reference",
@ -1029,7 +1029,7 @@
},
{
"kind": "Content",
"text": "<null | "
"text": "<"
},
{
"kind": "Reference",
@ -1038,7 +1038,7 @@
},
{
"kind": "Content",
"text": ">"
"text": " | null>"
}
],
"fileUrlPath": "packages/tlschema/src/createPresenceStateDerivation.ts",
@ -1198,7 +1198,7 @@
},
{
"kind": "Content",
"text": "<{ [P in \"id\" | \"index\" | \"isLocked\" | \"meta\" | \"opacity\" | \"parentId\" | \"rotation\" | \"typeName\" | \"x\" | \"y\" | (undefined extends Props ? never : \"props\") | (undefined extends Type ? never : \"type\")]: "
"text": "<{ [P in \"typeName\" | \"id\" | \"x\" | \"y\" | \"meta\" | \"rotation\" | \"opacity\" | \"index\" | \"parentId\" | \"isLocked\" | (undefined extends Type ? never : \"type\") | (undefined extends Props ? never : \"props\")]: "
},
{
"kind": "Reference",
@ -1207,7 +1207,7 @@
},
{
"kind": "Content",
"text": "<Type, Props>[P]; } & { [P_1 in (undefined extends Props ? \"props\" : never) | (undefined extends Type ? \"type\" : never)]?: "
"text": "<Type, Props>[P]; } & { [P_1 in (undefined extends Type ? \"type\" : never) | (undefined extends Props ? \"props\" : never)]?: "
},
{
"kind": "Reference",
@ -1377,7 +1377,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">"
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLColorStyle.ts",
@ -1450,7 +1450,7 @@
},
{
"kind": "Content",
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">"
"text": "<\"solid\" | \"draw\" | \"dashed\" | \"dotted\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLDashStyle.ts",
@ -1482,7 +1482,7 @@
},
{
"kind": "Content",
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">"
"text": "<\"none\" | \"semi\" | \"solid\" | \"pattern\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLFillStyle.ts",
@ -1537,7 +1537,7 @@
},
{
"kind": "Content",
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">"
"text": "<\"draw\" | \"sans\" | \"serif\" | \"mono\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLFontStyle.ts",
@ -1569,7 +1569,7 @@
},
{
"kind": "Content",
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">"
"text": "<\"start\" | \"end\" | \"middle\" | \"start-legacy\" | \"end-legacy\" | \"middle-legacy\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLHorizontalAlignStyle.ts",
@ -1601,7 +1601,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">"
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLSizeStyle.ts",
@ -1633,7 +1633,7 @@
},
{
"kind": "Content",
"text": "<\"end\" | \"middle\" | \"start\">"
"text": "<\"start\" | \"end\" | \"middle\">"
}
],
"fileUrlPath": "packages/tlschema/src/styles/TLVerticalAlignStyle.ts",
@ -1706,7 +1706,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"..\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n fill: import(\"..\")."
},
{
"kind": "Reference",
@ -1715,7 +1715,7 @@
},
{
"kind": "Content",
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"..\")."
"text": "<\"none\" | \"semi\" | \"solid\" | \"pattern\">;\n dash: import(\"..\")."
},
{
"kind": "Reference",
@ -1724,7 +1724,7 @@
},
{
"kind": "Content",
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"..\")."
"text": "<\"solid\" | \"draw\" | \"dashed\" | \"dotted\">;\n size: import(\"..\")."
},
{
"kind": "Reference",
@ -1733,7 +1733,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: "
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n segments: "
},
{
"kind": "Reference",
@ -2070,7 +2070,7 @@
},
{
"kind": "Content",
"text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">"
"text": "<\"triangle\" | \"diamond\" | \"rectangle\" | \"cloud\" | \"ellipse\" | \"pentagon\" | \"hexagon\" | \"octagon\" | \"star\" | \"rhombus\" | \"rhombus-2\" | \"oval\" | \"trapezoid\" | \"arrow-right\" | \"arrow-left\" | \"arrow-up\" | \"arrow-down\" | \"x-box\" | \"check-box\">"
}
],
"fileUrlPath": "packages/tlschema/src/shapes/TLGeoShape.ts",
@ -2102,7 +2102,7 @@
},
{
"kind": "Content",
"text": "<\"arrow-down\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"check-box\" | \"cloud\" | \"diamond\" | \"ellipse\" | \"hexagon\" | \"octagon\" | \"oval\" | \"pentagon\" | \"rectangle\" | \"rhombus-2\" | \"rhombus\" | \"star\" | \"trapezoid\" | \"triangle\" | \"x-box\">;\n labelColor: import(\"../styles/StyleProp\")."
"text": "<\"triangle\" | \"diamond\" | \"rectangle\" | \"cloud\" | \"ellipse\" | \"pentagon\" | \"hexagon\" | \"octagon\" | \"star\" | \"rhombus\" | \"rhombus-2\" | \"oval\" | \"trapezoid\" | \"arrow-right\" | \"arrow-left\" | \"arrow-up\" | \"arrow-down\" | \"x-box\" | \"check-box\">;\n labelColor: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2111,7 +2111,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n color: import(\"../styles/StyleProp\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n color: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2120,7 +2120,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n fill: import(\"../styles/StyleProp\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n fill: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2129,7 +2129,7 @@
},
{
"kind": "Content",
"text": "<\"none\" | \"pattern\" | \"semi\" | \"solid\">;\n dash: import(\"../styles/StyleProp\")."
"text": "<\"none\" | \"semi\" | \"solid\" | \"pattern\">;\n dash: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2138,7 +2138,7 @@
},
{
"kind": "Content",
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")."
"text": "<\"solid\" | \"draw\" | \"dashed\" | \"dotted\">;\n size: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2147,7 +2147,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"../styles/StyleProp\")."
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n font: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2156,7 +2156,7 @@
},
{
"kind": "Content",
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"../styles/StyleProp\")."
"text": "<\"draw\" | \"sans\" | \"serif\" | \"mono\">;\n align: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2165,7 +2165,7 @@
},
{
"kind": "Content",
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"../styles/StyleProp\")."
"text": "<\"start\" | \"end\" | \"middle\" | \"start-legacy\" | \"end-legacy\" | \"middle-legacy\">;\n verticalAlign: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2174,7 +2174,7 @@
},
{
"kind": "Content",
"text": "<\"end\" | \"middle\" | \"start\">;\n url: "
"text": "<\"start\" | \"end\" | \"middle\">;\n url: "
},
{
"kind": "Reference",
@ -2330,7 +2330,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n size: import(\"..\")."
},
{
"kind": "Reference",
@ -2339,7 +2339,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n segments: "
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n segments: "
},
{
"kind": "Reference",
@ -2561,7 +2561,7 @@
},
{
"kind": "Content",
"text": ", \"currentPageId\" | \"userId\" | \"userName\">"
"text": ", \"userId\" | \"userName\" | \"currentPageId\">"
}
],
"fileUrlPath": "packages/tlschema/src/records/TLPresence.ts",
@ -2782,7 +2782,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n dash: import(\"../styles/StyleProp\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n dash: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2791,7 +2791,7 @@
},
{
"kind": "Content",
"text": "<\"dashed\" | \"dotted\" | \"draw\" | \"solid\">;\n size: import(\"../styles/StyleProp\")."
"text": "<\"solid\" | \"draw\" | \"dashed\" | \"dotted\">;\n size: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2800,7 +2800,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n spline: import(\"../styles/StyleProp\")."
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n spline: import(\"../styles/StyleProp\")."
},
{
"kind": "Reference",
@ -2809,7 +2809,7 @@
},
{
"kind": "Content",
"text": "<\"cubic\" | \"line\">;\n points: "
"text": "<\"line\" | \"cubic\">;\n points: "
},
{
"kind": "Reference",
@ -2859,7 +2859,7 @@
},
{
"kind": "Content",
"text": "<\"cubic\" | \"line\">"
"text": "<\"line\" | \"cubic\">"
}
],
"fileUrlPath": "packages/tlschema/src/shapes/TLLineShape.ts",
@ -2891,7 +2891,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n size: import(\"..\")."
},
{
"kind": "Reference",
@ -2900,7 +2900,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"..\")."
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n font: import(\"..\")."
},
{
"kind": "Reference",
@ -2909,7 +2909,7 @@
},
{
"kind": "Content",
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"..\")."
"text": "<\"draw\" | \"sans\" | \"serif\" | \"mono\">;\n align: import(\"..\")."
},
{
"kind": "Reference",
@ -2918,7 +2918,7 @@
},
{
"kind": "Content",
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n verticalAlign: import(\"..\")."
"text": "<\"start\" | \"end\" | \"middle\" | \"start-legacy\" | \"end-legacy\" | \"middle-legacy\">;\n verticalAlign: import(\"..\")."
},
{
"kind": "Reference",
@ -2927,7 +2927,7 @@
},
{
"kind": "Content",
"text": "<\"end\" | \"middle\" | \"start\">;\n growY: "
"text": "<\"start\" | \"end\" | \"middle\">;\n growY: "
},
{
"kind": "Reference",
@ -2995,7 +2995,7 @@
},
{
"kind": "Content",
"text": ", \"index\" | \"name\">"
"text": ", \"name\" | \"index\">"
}
],
"fileUrlPath": "packages/tlschema/src/records/TLPage.ts",
@ -3773,7 +3773,7 @@
},
{
"kind": "Content",
"text": "<\"black\" | \"blue\" | \"green\" | \"grey\" | \"light-blue\" | \"light-green\" | \"light-red\" | \"light-violet\" | \"orange\" | \"red\" | \"violet\" | \"yellow\">;\n size: import(\"..\")."
"text": "<\"black\" | \"grey\" | \"light-violet\" | \"violet\" | \"blue\" | \"light-blue\" | \"yellow\" | \"orange\" | \"green\" | \"light-green\" | \"light-red\" | \"red\">;\n size: import(\"..\")."
},
{
"kind": "Reference",
@ -3782,7 +3782,7 @@
},
{
"kind": "Content",
"text": "<\"l\" | \"m\" | \"s\" | \"xl\">;\n font: import(\"..\")."
"text": "<\"m\" | \"s\" | \"l\" | \"xl\">;\n font: import(\"..\")."
},
{
"kind": "Reference",
@ -3791,7 +3791,7 @@
},
{
"kind": "Content",
"text": "<\"draw\" | \"mono\" | \"sans\" | \"serif\">;\n align: import(\"..\")."
"text": "<\"draw\" | \"sans\" | \"serif\" | \"mono\">;\n align: import(\"..\")."
},
{
"kind": "Reference",
@ -3800,7 +3800,7 @@
},
{
"kind": "Content",
"text": "<\"end-legacy\" | \"end\" | \"middle-legacy\" | \"middle\" | \"start-legacy\" | \"start\">;\n w: "
"text": "<\"start\" | \"end\" | \"middle\" | \"start-legacy\" | \"end-legacy\" | \"middle-legacy\">;\n w: "
},
{
"kind": "Reference",
@ -3864,7 +3864,7 @@
},
{
"kind": "Content",
"text": "<\"accent\" | \"black\" | \"laser\" | \"muted-1\" | \"selection-fill\" | \"selection-stroke\" | \"white\">"
"text": "<\"accent\" | \"white\" | \"black\" | \"selection-stroke\" | \"selection-fill\" | \"laser\" | \"muted-1\">"
}
],
"fileUrlPath": "packages/tlschema/src/misc/TLColor.ts",
@ -4045,15 +4045,6 @@
"kind": "Content",
"text": "export type TLAsset = "
},
{
"kind": "Reference",
"text": "TLBookmarkAsset",
"canonicalReference": "@tldraw/tlschema!TLBookmarkAsset:type"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLImageAsset",
@ -4068,6 +4059,15 @@
"text": "TLVideoAsset",
"canonicalReference": "@tldraw/tlschema!TLVideoAsset:type"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLBookmarkAsset",
"canonicalReference": "@tldraw/tlschema!TLBookmarkAsset:type"
},
{
"kind": "Content",
"text": ";"
@ -4195,7 +4195,7 @@
},
{
"kind": "Content",
"text": "<T, 'id' | 'meta' | 'props' | 'type'>> : never"
"text": "<T, 'type' | 'id' | 'props' | 'meta'>> : never"
},
{
"kind": "Content",
@ -4806,7 +4806,7 @@
},
{
"kind": "Content",
"text": "<'bookmark', {\n title: string;\n description: string;\n image: string;\n src: null | string;\n}>"
"text": "<'bookmark', {\n title: string;\n description: string;\n image: string;\n src: string | null;\n}>"
},
{
"kind": "Content",
@ -5264,7 +5264,7 @@
},
{
"kind": "Content",
"text": "<{\n id: 'dark' | 'light';\n text: string;\n background: string;\n solid: string;\n} & "
"text": "<{\n id: 'light' | 'dark';\n text: string;\n background: string;\n solid: string;\n} & "
},
{
"kind": "Reference",
@ -5564,15 +5564,6 @@
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLHighlightShape",
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLImageShape",
@ -5614,6 +5605,15 @@
"text": "TLVideoShape",
"canonicalReference": "@tldraw/tlschema!TLVideoShape:type"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLHighlightShape",
"canonicalReference": "@tldraw/tlschema!TLHighlightShape:type"
},
{
"kind": "Content",
"text": ";"
@ -6460,7 +6460,7 @@
},
{
"kind": "Content",
"text": "<'image', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: null | string;\n src: null | string;\n}>"
"text": "<'image', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: string | null;\n src: string | null;\n}>"
},
{
"kind": "Content",
@ -6899,7 +6899,7 @@
},
{
"kind": "Content",
"text": "null | string"
"text": "string | null"
},
{
"kind": "Content",
@ -7567,15 +7567,15 @@
"kind": "Content",
"text": "croppingShapeId: "
},
{
"kind": "Content",
"text": "null | "
},
{
"kind": "Reference",
"text": "TLShapeId",
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
},
{
"kind": "Content",
"text": " | null"
},
{
"kind": "Content",
"text": ";"
@ -7599,15 +7599,15 @@
"kind": "Content",
"text": "editingShapeId: "
},
{
"kind": "Content",
"text": "null | "
},
{
"kind": "Reference",
"text": "TLShapeId",
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
},
{
"kind": "Content",
"text": " | null"
},
{
"kind": "Content",
"text": ";"
@ -7663,15 +7663,15 @@
"kind": "Content",
"text": "focusedGroupId: "
},
{
"kind": "Content",
"text": "null | "
},
{
"kind": "Reference",
"text": "TLShapeId",
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
},
{
"kind": "Content",
"text": " | null"
},
{
"kind": "Content",
"text": ";"
@ -7727,15 +7727,15 @@
"kind": "Content",
"text": "hoveredShapeId: "
},
{
"kind": "Content",
"text": "null | "
},
{
"kind": "Reference",
"text": "TLShapeId",
"canonicalReference": "@tldraw/tlschema!TLShapeId:type"
},
{
"kind": "Content",
"text": " | null"
},
{
"kind": "Content",
"text": ";"
@ -8084,7 +8084,7 @@
},
{
"kind": "Content",
"text": "null | string"
"text": "string | null"
},
{
"kind": "Content",
@ -8732,15 +8732,6 @@
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLInstancePresence",
"canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLPage",
@ -8752,8 +8743,8 @@
},
{
"kind": "Reference",
"text": "TLPointer",
"canonicalReference": "@tldraw/tlschema!~TLPointer:interface"
"text": "TLShape",
"canonicalReference": "@tldraw/tlschema!TLShape:type"
},
{
"kind": "Content",
@ -8761,8 +8752,17 @@
},
{
"kind": "Reference",
"text": "TLShape",
"canonicalReference": "@tldraw/tlschema!TLShape:type"
"text": "TLInstancePresence",
"canonicalReference": "@tldraw/tlschema!TLInstancePresence:interface"
},
{
"kind": "Content",
"text": " | "
},
{
"kind": "Reference",
"text": "TLPointer",
"canonicalReference": "@tldraw/tlschema!~TLPointer:interface"
},
{
"kind": "Content",
@ -9078,7 +9078,7 @@
},
{
"kind": "Content",
"text": "<T, 'id' | 'meta' | 'props' | 'type'>> : never"
"text": "<T, 'type' | 'id' | 'props' | 'meta'>> : never"
},
{
"kind": "Content",
@ -9477,7 +9477,7 @@
},
{
"kind": "Content",
"text": "<'video', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: null | string;\n src: null | string;\n}>"
"text": "<'video', {\n w: number;\n h: number;\n name: string;\n isAnimated: boolean;\n mimeType: string | null;\n src: string | null;\n}>"
},
{
"kind": "Content",