@bigbluebutton/tlschema 2.0.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/dist-cjs/TLStore.js +133 -0
- package/dist-cjs/TLStore.js.map +7 -0
- package/dist-cjs/assets/TLBaseAsset.js +37 -0
- package/dist-cjs/assets/TLBaseAsset.js.map +7 -0
- package/dist-cjs/assets/TLBookmarkAsset.js +38 -0
- package/dist-cjs/assets/TLBookmarkAsset.js.map +7 -0
- package/dist-cjs/assets/TLImageAsset.js +76 -0
- package/dist-cjs/assets/TLImageAsset.js.map +7 -0
- package/dist-cjs/assets/TLVideoAsset.js +76 -0
- package/dist-cjs/assets/TLVideoAsset.js.map +7 -0
- package/dist-cjs/createPresenceStateDerivation.js +68 -0
- package/dist-cjs/createPresenceStateDerivation.js.map +7 -0
- package/dist-cjs/createTLSchema.js +68 -0
- package/dist-cjs/createTLSchema.js.map +7 -0
- package/dist-cjs/index.d.ts +1414 -0
- package/dist-cjs/index.js +142 -0
- package/dist-cjs/index.js.map +7 -0
- package/dist-cjs/misc/TLColor.js +36 -0
- package/dist-cjs/misc/TLColor.js.map +7 -0
- package/dist-cjs/misc/TLCursor.js +55 -0
- package/dist-cjs/misc/TLCursor.js.map +7 -0
- package/dist-cjs/misc/TLHandle.js +36 -0
- package/dist-cjs/misc/TLHandle.js.map +7 -0
- package/dist-cjs/misc/TLOpacity.js +30 -0
- package/dist-cjs/misc/TLOpacity.js.map +7 -0
- package/dist-cjs/misc/TLScribble.js +40 -0
- package/dist-cjs/misc/TLScribble.js.map +7 -0
- package/dist-cjs/misc/geometry-types.js +37 -0
- package/dist-cjs/misc/geometry-types.js.map +7 -0
- package/dist-cjs/misc/id-validator.js +33 -0
- package/dist-cjs/misc/id-validator.js.map +7 -0
- package/dist-cjs/records/TLAsset.js +74 -0
- package/dist-cjs/records/TLAsset.js.map +7 -0
- package/dist-cjs/records/TLCamera.js +74 -0
- package/dist-cjs/records/TLCamera.js.map +7 -0
- package/dist-cjs/records/TLDocument.js +82 -0
- package/dist-cjs/records/TLDocument.js.map +7 -0
- package/dist-cjs/records/TLInstance.js +452 -0
- package/dist-cjs/records/TLInstance.js.map +7 -0
- package/dist-cjs/records/TLPage.js +74 -0
- package/dist-cjs/records/TLPage.js.map +7 -0
- package/dist-cjs/records/TLPageState.js +209 -0
- package/dist-cjs/records/TLPageState.js.map +7 -0
- package/dist-cjs/records/TLPointer.js +76 -0
- package/dist-cjs/records/TLPointer.js.map +7 -0
- package/dist-cjs/records/TLPresence.js +170 -0
- package/dist-cjs/records/TLPresence.js.map +7 -0
- package/dist-cjs/records/TLRecord.js +17 -0
- package/dist-cjs/records/TLRecord.js.map +7 -0
- package/dist-cjs/records/TLShape.js +147 -0
- package/dist-cjs/records/TLShape.js.map +7 -0
- package/dist-cjs/shapes/TLArrowShape.js +156 -0
- package/dist-cjs/shapes/TLArrowShape.js.map +7 -0
- package/dist-cjs/shapes/TLBaseShape.js +52 -0
- package/dist-cjs/shapes/TLBaseShape.js.map +7 -0
- package/dist-cjs/shapes/TLBookmarkShape.js +57 -0
- package/dist-cjs/shapes/TLBookmarkShape.js.map +7 -0
- package/dist-cjs/shapes/TLDrawShape.js +89 -0
- package/dist-cjs/shapes/TLDrawShape.js.map +7 -0
- package/dist-cjs/shapes/TLEmbedShape.js +709 -0
- package/dist-cjs/shapes/TLEmbedShape.js.map +7 -0
- package/dist-cjs/shapes/TLFrameShape.js +33 -0
- package/dist-cjs/shapes/TLFrameShape.js.map +7 -0
- package/dist-cjs/shapes/TLGeoShape.js +230 -0
- package/dist-cjs/shapes/TLGeoShape.js.map +7 -0
- package/dist-cjs/shapes/TLGroupShape.js +28 -0
- package/dist-cjs/shapes/TLGroupShape.js.map +7 -0
- package/dist-cjs/shapes/TLHighlightShape.js +38 -0
- package/dist-cjs/shapes/TLHighlightShape.js.map +7 -0
- package/dist-cjs/shapes/TLImageShape.js +69 -0
- package/dist-cjs/shapes/TLImageShape.js.map +7 -0
- package/dist-cjs/shapes/TLLineShape.js +70 -0
- package/dist-cjs/shapes/TLLineShape.js.map +7 -0
- package/dist-cjs/shapes/TLNoteShape.js +144 -0
- package/dist-cjs/shapes/TLNoteShape.js.map +7 -0
- package/dist-cjs/shapes/TLTextShape.js +67 -0
- package/dist-cjs/shapes/TLTextShape.js.map +7 -0
- package/dist-cjs/shapes/TLVideoShape.js +53 -0
- package/dist-cjs/shapes/TLVideoShape.js.map +7 -0
- package/dist-cjs/store-migrations.js +81 -0
- package/dist-cjs/store-migrations.js.map +7 -0
- package/dist-cjs/styles/StyleProp.js +94 -0
- package/dist-cjs/styles/StyleProp.js.map +7 -0
- package/dist-cjs/styles/TLColorStyle.js +283 -0
- package/dist-cjs/styles/TLColorStyle.js.map +7 -0
- package/dist-cjs/styles/TLDashStyle.js +29 -0
- package/dist-cjs/styles/TLDashStyle.js.map +7 -0
- package/dist-cjs/styles/TLFillStyle.js +29 -0
- package/dist-cjs/styles/TLFillStyle.js.map +7 -0
- package/dist-cjs/styles/TLFontStyle.js +36 -0
- package/dist-cjs/styles/TLFontStyle.js.map +7 -0
- package/dist-cjs/styles/TLHorizontalAlignStyle.js +29 -0
- package/dist-cjs/styles/TLHorizontalAlignStyle.js.map +7 -0
- package/dist-cjs/styles/TLSizeStyle.js +29 -0
- package/dist-cjs/styles/TLSizeStyle.js.map +7 -0
- package/dist-cjs/styles/TLVerticalAlignStyle.js +29 -0
- package/dist-cjs/styles/TLVerticalAlignStyle.js.map +7 -0
- package/dist-cjs/translations/languages.js +59 -0
- package/dist-cjs/translations/languages.js.map +7 -0
- package/dist-cjs/translations/translations.js +63 -0
- package/dist-cjs/translations/translations.js.map +7 -0
- package/dist-cjs/util-types.js +17 -0
- package/dist-cjs/util-types.js.map +7 -0
- package/dist-esm/TLStore.mjs +113 -0
- package/dist-esm/TLStore.mjs.map +7 -0
- package/dist-esm/assets/TLBaseAsset.mjs +17 -0
- package/dist-esm/assets/TLBaseAsset.mjs.map +7 -0
- package/dist-esm/assets/TLBookmarkAsset.mjs +18 -0
- package/dist-esm/assets/TLBookmarkAsset.mjs.map +7 -0
- package/dist-esm/assets/TLImageAsset.mjs +56 -0
- package/dist-esm/assets/TLImageAsset.mjs.map +7 -0
- package/dist-esm/assets/TLVideoAsset.mjs +56 -0
- package/dist-esm/assets/TLVideoAsset.mjs.map +7 -0
- package/dist-esm/createPresenceStateDerivation.mjs +48 -0
- package/dist-esm/createPresenceStateDerivation.mjs.map +7 -0
- package/dist-esm/createTLSchema.mjs +48 -0
- package/dist-esm/createTLSchema.mjs.map +7 -0
- package/dist-esm/index.d.mts +1414 -0
- package/dist-esm/index.mjs +193 -0
- package/dist-esm/index.mjs.map +7 -0
- package/dist-esm/misc/TLColor.mjs +16 -0
- package/dist-esm/misc/TLColor.mjs.map +7 -0
- package/dist-esm/misc/TLCursor.mjs +35 -0
- package/dist-esm/misc/TLCursor.mjs.map +7 -0
- package/dist-esm/misc/TLHandle.mjs +16 -0
- package/dist-esm/misc/TLHandle.mjs.map +7 -0
- package/dist-esm/misc/TLOpacity.mjs +10 -0
- package/dist-esm/misc/TLOpacity.mjs.map +7 -0
- package/dist-esm/misc/TLScribble.mjs +20 -0
- package/dist-esm/misc/TLScribble.mjs.map +7 -0
- package/dist-esm/misc/geometry-types.mjs +17 -0
- package/dist-esm/misc/geometry-types.mjs.map +7 -0
- package/dist-esm/misc/id-validator.mjs +13 -0
- package/dist-esm/misc/id-validator.mjs.map +7 -0
- package/dist-esm/records/TLAsset.mjs +57 -0
- package/dist-esm/records/TLAsset.mjs.map +7 -0
- package/dist-esm/records/TLCamera.mjs +54 -0
- package/dist-esm/records/TLCamera.mjs.map +7 -0
- package/dist-esm/records/TLDocument.mjs +62 -0
- package/dist-esm/records/TLDocument.mjs.map +7 -0
- package/dist-esm/records/TLInstance.mjs +432 -0
- package/dist-esm/records/TLInstance.mjs.map +7 -0
- package/dist-esm/records/TLPage.mjs +54 -0
- package/dist-esm/records/TLPage.mjs.map +7 -0
- package/dist-esm/records/TLPageState.mjs +189 -0
- package/dist-esm/records/TLPageState.mjs.map +7 -0
- package/dist-esm/records/TLPointer.mjs +56 -0
- package/dist-esm/records/TLPointer.mjs.map +7 -0
- package/dist-esm/records/TLPresence.mjs +150 -0
- package/dist-esm/records/TLPresence.mjs.map +7 -0
- package/dist-esm/records/TLRecord.mjs +1 -0
- package/dist-esm/records/TLRecord.mjs.map +7 -0
- package/dist-esm/records/TLShape.mjs +127 -0
- package/dist-esm/records/TLShape.mjs.map +7 -0
- package/dist-esm/shapes/TLArrowShape.mjs +136 -0
- package/dist-esm/shapes/TLArrowShape.mjs.map +7 -0
- package/dist-esm/shapes/TLBaseShape.mjs +32 -0
- package/dist-esm/shapes/TLBaseShape.mjs.map +7 -0
- package/dist-esm/shapes/TLBookmarkShape.mjs +37 -0
- package/dist-esm/shapes/TLBookmarkShape.mjs.map +7 -0
- package/dist-esm/shapes/TLDrawShape.mjs +69 -0
- package/dist-esm/shapes/TLDrawShape.mjs.map +7 -0
- package/dist-esm/shapes/TLEmbedShape.mjs +689 -0
- package/dist-esm/shapes/TLEmbedShape.mjs.map +7 -0
- package/dist-esm/shapes/TLFrameShape.mjs +13 -0
- package/dist-esm/shapes/TLFrameShape.mjs.map +7 -0
- package/dist-esm/shapes/TLGeoShape.mjs +212 -0
- package/dist-esm/shapes/TLGeoShape.mjs.map +7 -0
- package/dist-esm/shapes/TLGroupShape.mjs +8 -0
- package/dist-esm/shapes/TLGroupShape.mjs.map +7 -0
- package/dist-esm/shapes/TLHighlightShape.mjs +18 -0
- package/dist-esm/shapes/TLHighlightShape.mjs.map +7 -0
- package/dist-esm/shapes/TLImageShape.mjs +49 -0
- package/dist-esm/shapes/TLImageShape.mjs.map +7 -0
- package/dist-esm/shapes/TLLineShape.mjs +50 -0
- package/dist-esm/shapes/TLLineShape.mjs.map +7 -0
- package/dist-esm/shapes/TLNoteShape.mjs +126 -0
- package/dist-esm/shapes/TLNoteShape.mjs.map +7 -0
- package/dist-esm/shapes/TLTextShape.mjs +47 -0
- package/dist-esm/shapes/TLTextShape.mjs.map +7 -0
- package/dist-esm/shapes/TLVideoShape.mjs +33 -0
- package/dist-esm/shapes/TLVideoShape.mjs.map +7 -0
- package/dist-esm/store-migrations.mjs +61 -0
- package/dist-esm/store-migrations.mjs.map +7 -0
- package/dist-esm/styles/StyleProp.mjs +74 -0
- package/dist-esm/styles/StyleProp.mjs.map +7 -0
- package/dist-esm/styles/TLColorStyle.mjs +263 -0
- package/dist-esm/styles/TLColorStyle.mjs.map +7 -0
- package/dist-esm/styles/TLDashStyle.mjs +9 -0
- package/dist-esm/styles/TLDashStyle.mjs.map +7 -0
- package/dist-esm/styles/TLFillStyle.mjs +9 -0
- package/dist-esm/styles/TLFillStyle.mjs.map +7 -0
- package/dist-esm/styles/TLFontStyle.mjs +16 -0
- package/dist-esm/styles/TLFontStyle.mjs.map +7 -0
- package/dist-esm/styles/TLHorizontalAlignStyle.mjs +9 -0
- package/dist-esm/styles/TLHorizontalAlignStyle.mjs.map +7 -0
- package/dist-esm/styles/TLSizeStyle.mjs +9 -0
- package/dist-esm/styles/TLSizeStyle.mjs.map +7 -0
- package/dist-esm/styles/TLVerticalAlignStyle.mjs +9 -0
- package/dist-esm/styles/TLVerticalAlignStyle.mjs.map +7 -0
- package/dist-esm/translations/languages.mjs +39 -0
- package/dist-esm/translations/languages.mjs.map +7 -0
- package/dist-esm/translations/translations.mjs +43 -0
- package/dist-esm/translations/translations.mjs.map +7 -0
- package/dist-esm/util-types.mjs +1 -0
- package/dist-esm/util-types.mjs.map +7 -0
- package/package.json +64 -0
- package/src/TLStore.ts +160 -0
- package/src/assets/TLBaseAsset.ts +44 -0
- package/src/assets/TLBookmarkAsset.ts +31 -0
- package/src/assets/TLImageAsset.ts +73 -0
- package/src/assets/TLVideoAsset.ts +73 -0
- package/src/createPresenceStateDerivation.ts +53 -0
- package/src/createTLSchema.ts +65 -0
- package/src/index.ts +168 -0
- package/src/migrations.test.ts +1768 -0
- package/src/misc/TLColor.ts +28 -0
- package/src/misc/TLCursor.ts +54 -0
- package/src/misc/TLHandle.ts +41 -0
- package/src/misc/TLOpacity.ts +11 -0
- package/src/misc/TLScribble.ts +39 -0
- package/src/misc/geometry-types.ts +37 -0
- package/src/misc/id-validator.ts +14 -0
- package/src/records/TLAsset.ts +80 -0
- package/src/records/TLCamera.ts +74 -0
- package/src/records/TLDocument.ts +77 -0
- package/src/records/TLInstance.ts +493 -0
- package/src/records/TLPage.ts +72 -0
- package/src/records/TLPageState.ts +216 -0
- package/src/records/TLPointer.ts +74 -0
- package/src/records/TLPresence.ts +179 -0
- package/src/records/TLRecord.ts +21 -0
- package/src/records/TLShape.ts +214 -0
- package/src/shapes/TLArrowShape.ts +160 -0
- package/src/shapes/TLBaseShape.ts +67 -0
- package/src/shapes/TLBookmarkShape.ts +44 -0
- package/src/shapes/TLDrawShape.ts +89 -0
- package/src/shapes/TLEmbedShape.ts +754 -0
- package/src/shapes/TLFrameShape.ts +18 -0
- package/src/shapes/TLGeoShape.ts +226 -0
- package/src/shapes/TLGroupShape.ts +14 -0
- package/src/shapes/TLHighlightShape.ts +24 -0
- package/src/shapes/TLImageShape.ts +59 -0
- package/src/shapes/TLLineShape.ts +61 -0
- package/src/shapes/TLNoteShape.ts +137 -0
- package/src/shapes/TLTextShape.ts +55 -0
- package/src/shapes/TLVideoShape.ts +40 -0
- package/src/store-migrations.ts +63 -0
- package/src/styles/StyleProp.ts +105 -0
- package/src/styles/TLColorStyle.ts +296 -0
- package/src/styles/TLDashStyle.ts +11 -0
- package/src/styles/TLFillStyle.ts +11 -0
- package/src/styles/TLFontStyle.ts +19 -0
- package/src/styles/TLHorizontalAlignStyle.ts +11 -0
- package/src/styles/TLSizeStyle.ts +11 -0
- package/src/styles/TLVerticalAlignStyle.ts +11 -0
- package/src/translations/languages.ts +39 -0
- package/src/translations/translations.test.ts +43 -0
- package/src/translations/translations.ts +73 -0
- package/src/util-types.ts +2 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Migrations, StoreSchema } from '@bigbluebutton/store'
|
|
2
|
+
import { objectMapValues } from '@bigbluebutton/utils'
|
|
3
|
+
import { TLStoreProps, createIntegrityChecker, onValidationFailure } from './TLStore'
|
|
4
|
+
import { AssetRecordType } from './records/TLAsset'
|
|
5
|
+
import { CameraRecordType } from './records/TLCamera'
|
|
6
|
+
import { DocumentRecordType } from './records/TLDocument'
|
|
7
|
+
import { createInstanceRecordType } from './records/TLInstance'
|
|
8
|
+
import { PageRecordType } from './records/TLPage'
|
|
9
|
+
import { InstancePageStateRecordType } from './records/TLPageState'
|
|
10
|
+
import { PointerRecordType } from './records/TLPointer'
|
|
11
|
+
import { InstancePresenceRecordType } from './records/TLPresence'
|
|
12
|
+
import { TLRecord } from './records/TLRecord'
|
|
13
|
+
import { createShapeRecordType, getShapePropKeysByStyle } from './records/TLShape'
|
|
14
|
+
import { storeMigrations } from './store-migrations'
|
|
15
|
+
import { StyleProp } from './styles/StyleProp'
|
|
16
|
+
|
|
17
|
+
/** @public */
|
|
18
|
+
export type SchemaShapeInfo = {
|
|
19
|
+
migrations?: Migrations
|
|
20
|
+
props?: Record<string, { validate: (prop: any) => any }>
|
|
21
|
+
meta?: Record<string, { validate: (prop: any) => any }>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** @public */
|
|
25
|
+
export type TLSchema = StoreSchema<TLRecord, TLStoreProps>
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create a TLSchema with custom shapes. Custom shapes cannot override default shapes.
|
|
29
|
+
*
|
|
30
|
+
* @param opts - Options
|
|
31
|
+
*
|
|
32
|
+
* @public */
|
|
33
|
+
export function createTLSchema({ shapes }: { shapes: Record<string, SchemaShapeInfo> }): TLSchema {
|
|
34
|
+
const stylesById = new Map<string, StyleProp<unknown>>()
|
|
35
|
+
for (const shape of objectMapValues(shapes)) {
|
|
36
|
+
for (const style of getShapePropKeysByStyle(shape.props ?? {}).keys()) {
|
|
37
|
+
if (stylesById.has(style.id) && stylesById.get(style.id) !== style) {
|
|
38
|
+
throw new Error(`Multiple StyleProp instances with the same id: ${style.id}`)
|
|
39
|
+
}
|
|
40
|
+
stylesById.set(style.id, style)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const ShapeRecordType = createShapeRecordType(shapes)
|
|
45
|
+
const InstanceRecordType = createInstanceRecordType(stylesById)
|
|
46
|
+
|
|
47
|
+
return StoreSchema.create(
|
|
48
|
+
{
|
|
49
|
+
asset: AssetRecordType,
|
|
50
|
+
camera: CameraRecordType,
|
|
51
|
+
document: DocumentRecordType,
|
|
52
|
+
instance: InstanceRecordType,
|
|
53
|
+
instance_page_state: InstancePageStateRecordType,
|
|
54
|
+
page: PageRecordType,
|
|
55
|
+
shape: ShapeRecordType,
|
|
56
|
+
instance_presence: InstancePresenceRecordType,
|
|
57
|
+
pointer: PointerRecordType,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
snapshotMigrations: storeMigrations,
|
|
61
|
+
onValidationFailure,
|
|
62
|
+
createIntegrityChecker: createIntegrityChecker,
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
export {
|
|
2
|
+
type TLSerializedStore,
|
|
3
|
+
type TLStore,
|
|
4
|
+
type TLStoreProps,
|
|
5
|
+
type TLStoreSchema,
|
|
6
|
+
type TLStoreSnapshot,
|
|
7
|
+
} from './TLStore'
|
|
8
|
+
export { assetIdValidator, createAssetValidator, type TLBaseAsset } from './assets/TLBaseAsset'
|
|
9
|
+
export { type TLBookmarkAsset } from './assets/TLBookmarkAsset'
|
|
10
|
+
export { type TLImageAsset } from './assets/TLImageAsset'
|
|
11
|
+
export { type TLVideoAsset } from './assets/TLVideoAsset'
|
|
12
|
+
export { createPresenceStateDerivation } from './createPresenceStateDerivation'
|
|
13
|
+
export { createTLSchema, type SchemaShapeInfo, type TLSchema } from './createTLSchema'
|
|
14
|
+
export {
|
|
15
|
+
TL_CANVAS_UI_COLOR_TYPES,
|
|
16
|
+
canvasUiColorTypeValidator,
|
|
17
|
+
type TLCanvasUiColor,
|
|
18
|
+
} from './misc/TLColor'
|
|
19
|
+
export { type TLCursor, type TLCursorType } from './misc/TLCursor'
|
|
20
|
+
export { type TLHandle, type TLHandleType } from './misc/TLHandle'
|
|
21
|
+
export { opacityValidator, type TLOpacityType } from './misc/TLOpacity'
|
|
22
|
+
export { scribbleValidator, type TLScribble } from './misc/TLScribble'
|
|
23
|
+
export {
|
|
24
|
+
box2dModelValidator,
|
|
25
|
+
vec2dModelValidator,
|
|
26
|
+
type Box2dModel,
|
|
27
|
+
type Vec2dModel,
|
|
28
|
+
} from './misc/geometry-types'
|
|
29
|
+
export { idValidator } from './misc/id-validator'
|
|
30
|
+
export {
|
|
31
|
+
AssetRecordType,
|
|
32
|
+
assetMigrations,
|
|
33
|
+
assetValidator,
|
|
34
|
+
type TLAsset,
|
|
35
|
+
type TLAssetId,
|
|
36
|
+
type TLAssetPartial,
|
|
37
|
+
type TLAssetShape,
|
|
38
|
+
} from './records/TLAsset'
|
|
39
|
+
export { CameraRecordType, type TLCamera, type TLCameraId } from './records/TLCamera'
|
|
40
|
+
export { DocumentRecordType, TLDOCUMENT_ID, type TLDocument } from './records/TLDocument'
|
|
41
|
+
export { TLINSTANCE_ID, type TLInstance, type TLInstanceId } from './records/TLInstance'
|
|
42
|
+
export {
|
|
43
|
+
PageRecordType,
|
|
44
|
+
isPageId,
|
|
45
|
+
pageIdValidator,
|
|
46
|
+
type TLPage,
|
|
47
|
+
type TLPageId,
|
|
48
|
+
} from './records/TLPage'
|
|
49
|
+
export { InstancePageStateRecordType, type TLInstancePageState } from './records/TLPageState'
|
|
50
|
+
export { PointerRecordType, TLPOINTER_ID } from './records/TLPointer'
|
|
51
|
+
export { InstancePresenceRecordType, type TLInstancePresence } from './records/TLPresence'
|
|
52
|
+
export { type TLRecord } from './records/TLRecord'
|
|
53
|
+
export {
|
|
54
|
+
createShapeId,
|
|
55
|
+
getShapePropKeysByStyle,
|
|
56
|
+
isShape,
|
|
57
|
+
isShapeId,
|
|
58
|
+
rootShapeMigrations,
|
|
59
|
+
type TLDefaultShape,
|
|
60
|
+
type TLParentId,
|
|
61
|
+
type TLShape,
|
|
62
|
+
type TLShapeId,
|
|
63
|
+
type TLShapePartial,
|
|
64
|
+
type TLShapeProp,
|
|
65
|
+
type TLShapeProps,
|
|
66
|
+
type TLUnknownShape,
|
|
67
|
+
} from './records/TLShape'
|
|
68
|
+
export {
|
|
69
|
+
ArrowShapeArrowheadEndStyle,
|
|
70
|
+
ArrowShapeArrowheadStartStyle,
|
|
71
|
+
arrowShapeMigrations,
|
|
72
|
+
arrowShapeProps,
|
|
73
|
+
type TLArrowShape,
|
|
74
|
+
type TLArrowShapeArrowheadStyle,
|
|
75
|
+
type TLArrowShapeProps,
|
|
76
|
+
type TLArrowShapeTerminal,
|
|
77
|
+
} from './shapes/TLArrowShape'
|
|
78
|
+
export {
|
|
79
|
+
createShapeValidator,
|
|
80
|
+
parentIdValidator,
|
|
81
|
+
shapeIdValidator,
|
|
82
|
+
type ShapeProps,
|
|
83
|
+
type TLBaseShape,
|
|
84
|
+
} from './shapes/TLBaseShape'
|
|
85
|
+
export {
|
|
86
|
+
bookmarkShapeMigrations,
|
|
87
|
+
bookmarkShapeProps,
|
|
88
|
+
type TLBookmarkShape,
|
|
89
|
+
} from './shapes/TLBookmarkShape'
|
|
90
|
+
export {
|
|
91
|
+
drawShapeMigrations,
|
|
92
|
+
drawShapeProps,
|
|
93
|
+
type TLDrawShape,
|
|
94
|
+
type TLDrawShapeSegment,
|
|
95
|
+
} from './shapes/TLDrawShape'
|
|
96
|
+
export {
|
|
97
|
+
EMBED_DEFINITIONS,
|
|
98
|
+
embedShapeMigrations,
|
|
99
|
+
embedShapePermissionDefaults,
|
|
100
|
+
embedShapeProps,
|
|
101
|
+
type EmbedDefinition,
|
|
102
|
+
type TLEmbedShape,
|
|
103
|
+
type TLEmbedShapePermissions,
|
|
104
|
+
} from './shapes/TLEmbedShape'
|
|
105
|
+
export { frameShapeMigrations, frameShapeProps, type TLFrameShape } from './shapes/TLFrameShape'
|
|
106
|
+
export {
|
|
107
|
+
GeoShapeGeoStyle,
|
|
108
|
+
geoShapeMigrations,
|
|
109
|
+
geoShapeProps,
|
|
110
|
+
type TLGeoShape,
|
|
111
|
+
} from './shapes/TLGeoShape'
|
|
112
|
+
export { groupShapeMigrations, groupShapeProps, type TLGroupShape } from './shapes/TLGroupShape'
|
|
113
|
+
export {
|
|
114
|
+
highlightShapeMigrations,
|
|
115
|
+
highlightShapeProps,
|
|
116
|
+
type TLHighlightShape,
|
|
117
|
+
} from './shapes/TLHighlightShape'
|
|
118
|
+
export {
|
|
119
|
+
imageShapeMigrations,
|
|
120
|
+
imageShapeProps,
|
|
121
|
+
type TLImageShape,
|
|
122
|
+
type TLImageShapeCrop,
|
|
123
|
+
type TLImageShapeProps,
|
|
124
|
+
} from './shapes/TLImageShape'
|
|
125
|
+
export {
|
|
126
|
+
LineShapeSplineStyle,
|
|
127
|
+
lineShapeMigrations,
|
|
128
|
+
lineShapeProps,
|
|
129
|
+
type TLLineShape,
|
|
130
|
+
} from './shapes/TLLineShape'
|
|
131
|
+
export { noteShapeMigrations, noteShapeProps, type TLNoteShape } from './shapes/TLNoteShape'
|
|
132
|
+
export {
|
|
133
|
+
textShapeMigrations,
|
|
134
|
+
textShapeProps,
|
|
135
|
+
type TLTextShape,
|
|
136
|
+
type TLTextShapeProps,
|
|
137
|
+
} from './shapes/TLTextShape'
|
|
138
|
+
export { videoShapeMigrations, videoShapeProps, type TLVideoShape } from './shapes/TLVideoShape'
|
|
139
|
+
export { EnumStyleProp, StyleProp } from './styles/StyleProp'
|
|
140
|
+
export {
|
|
141
|
+
DefaultColorStyle,
|
|
142
|
+
DefaultColorThemePalette,
|
|
143
|
+
getDefaultColorTheme,
|
|
144
|
+
type TLDefaultColorStyle,
|
|
145
|
+
type TLDefaultColorTheme,
|
|
146
|
+
type TLDefaultColorThemeColor,
|
|
147
|
+
} from './styles/TLColorStyle'
|
|
148
|
+
export { DefaultDashStyle, type TLDefaultDashStyle } from './styles/TLDashStyle'
|
|
149
|
+
export { DefaultFillStyle, type TLDefaultFillStyle } from './styles/TLFillStyle'
|
|
150
|
+
export {
|
|
151
|
+
DefaultFontFamilies,
|
|
152
|
+
DefaultFontStyle,
|
|
153
|
+
type TLDefaultFontStyle,
|
|
154
|
+
} from './styles/TLFontStyle'
|
|
155
|
+
export {
|
|
156
|
+
DefaultHorizontalAlignStyle,
|
|
157
|
+
type TLDefaultHorizontalAlignStyle,
|
|
158
|
+
} from './styles/TLHorizontalAlignStyle'
|
|
159
|
+
export { DefaultSizeStyle, type TLDefaultSizeStyle } from './styles/TLSizeStyle'
|
|
160
|
+
export {
|
|
161
|
+
DefaultVerticalAlignStyle,
|
|
162
|
+
type TLDefaultVerticalAlignStyle,
|
|
163
|
+
} from './styles/TLVerticalAlignStyle'
|
|
164
|
+
export {
|
|
165
|
+
LANGUAGES,
|
|
166
|
+
getDefaultTranslationLocale,
|
|
167
|
+
type TLLanguage,
|
|
168
|
+
} from './translations/translations'
|