@tldraw/tlschema 5.3.0-internal.d205573d66cb → 5.3.0-next.299378752aaf
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/dist-cjs/index.d.ts +0 -185
- package/dist-cjs/index.js +1 -11
- package/dist-cjs/index.js.map +2 -2
- package/dist-esm/index.d.mts +0 -185
- package/dist-esm/index.mjs +1 -21
- package/dist-esm/index.mjs.map +2 -2
- package/package.json +5 -5
- package/src/index.ts +0 -16
- package/dist-cjs/records/TLComment.js +0 -172
- package/dist-cjs/records/TLComment.js.map +0 -7
- package/dist-esm/records/TLComment.mjs +0 -152
- package/dist-esm/records/TLComment.mjs.map +0 -7
- package/src/records/TLComment.test.ts +0 -182
- package/src/records/TLComment.ts +0 -305
package/dist-cjs/index.d.ts
CHANGED
|
@@ -529,34 +529,6 @@ export declare const CameraRecordType: RecordType<TLCamera, never>;
|
|
|
529
529
|
*/
|
|
530
530
|
export declare const canvasUiColorTypeValidator: T.Validator<"accent" | "black" | "laser" | "muted-1" | "selection-fill" | "selection-stroke" | "white">;
|
|
531
531
|
|
|
532
|
-
/**
|
|
533
|
-
* Config for registering the `comment` record type in a tldraw schema. Pass via
|
|
534
|
-
* `commentSchemaRecords`; see `TLComment`.
|
|
535
|
-
*
|
|
536
|
-
* @public
|
|
537
|
-
*/
|
|
538
|
-
export declare const commentRecordConfig: CustomRecordInfo;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* The `records` map to pass to `createTLSchema` / the client `records` option so comment
|
|
542
|
-
* threads and comments sync. Register both types together — a comment without its thread type
|
|
543
|
-
* (or vice versa) will fail schema validation on one side of the connection.
|
|
544
|
-
*
|
|
545
|
-
* @public
|
|
546
|
-
*/
|
|
547
|
-
export declare const commentSchemaRecords: {
|
|
548
|
-
'comment-thread': CustomRecordInfo;
|
|
549
|
-
comment: CustomRecordInfo;
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* Config for registering the `comment-thread` record type in a tldraw schema. Pass via
|
|
554
|
-
* `commentSchemaRecords`; see `TLCommentThread`.
|
|
555
|
-
*
|
|
556
|
-
* @public
|
|
557
|
-
*/
|
|
558
|
-
export declare const commentThreadRecordConfig: CustomRecordInfo;
|
|
559
|
-
|
|
560
532
|
/**
|
|
561
533
|
* Compress legacy draw shape segments by converting VecModel[] points to delta-encoded base64 format.
|
|
562
534
|
* This function is useful for converting old draw shape data to the new compressed format.
|
|
@@ -838,39 +810,6 @@ export declare function createBindingValidator<Type extends string, Props extend
|
|
|
838
810
|
*/
|
|
839
811
|
export declare function createCachedUserResolve(resolveFn: (userId: string) => null | TLUser): (userId: string) => Signal<null | TLUser>;
|
|
840
812
|
|
|
841
|
-
/**
|
|
842
|
-
* Create a new comment record within a thread.
|
|
843
|
-
*
|
|
844
|
-
* @public
|
|
845
|
-
*/
|
|
846
|
-
export declare function createComment(props: {
|
|
847
|
-
authorId: string;
|
|
848
|
-
body: TLRichText;
|
|
849
|
-
meta?: JsonObject;
|
|
850
|
-
now?: number;
|
|
851
|
-
pageId: TLPageId;
|
|
852
|
-
threadId: TLCommentThreadId;
|
|
853
|
-
}): TLComment;
|
|
854
|
-
|
|
855
|
-
/** @public */
|
|
856
|
-
export declare function createCommentId(id?: string): TLCommentId;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Create a new comment thread record. Pair with `createComment` for the thread's first message.
|
|
860
|
-
*
|
|
861
|
-
* @public
|
|
862
|
-
*/
|
|
863
|
-
export declare function createCommentThread(props: {
|
|
864
|
-
anchor: TLCommentAnchor;
|
|
865
|
-
createdBy: string;
|
|
866
|
-
meta?: JsonObject;
|
|
867
|
-
now?: number;
|
|
868
|
-
pageId: TLPageId;
|
|
869
|
-
}): TLCommentThread;
|
|
870
|
-
|
|
871
|
-
/** @public */
|
|
872
|
-
export declare function createCommentThreadId(id?: string): TLCommentThreadId;
|
|
873
|
-
|
|
874
813
|
/**
|
|
875
814
|
* Creates a unique ID for a custom record type.
|
|
876
815
|
*
|
|
@@ -2287,23 +2226,6 @@ export declare function isBinding(record?: UnknownRecord): record is TLBinding;
|
|
|
2287
2226
|
*/
|
|
2288
2227
|
export declare function isBindingId(id?: string): id is TLBindingId;
|
|
2289
2228
|
|
|
2290
|
-
/**
|
|
2291
|
-
* Type guard for `TLCommentId`. See `isCommentThreadId` for why `comment-thread:...` ids are
|
|
2292
|
-
* correctly rejected here.
|
|
2293
|
-
*
|
|
2294
|
-
* @public
|
|
2295
|
-
*/
|
|
2296
|
-
export declare function isCommentId(id: string): id is TLCommentId;
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Type guard for `TLCommentThreadId`. Note `isCommentId` does not accept these: the prefixes
|
|
2300
|
-
* are `comment-thread:` vs `comment:`, and the character after `comment` differs (`-` vs `:`),
|
|
2301
|
-
* so the two never overlap.
|
|
2302
|
-
*
|
|
2303
|
-
* @public
|
|
2304
|
-
*/
|
|
2305
|
-
export declare function isCommentThreadId(id: string): id is TLCommentThreadId;
|
|
2306
|
-
|
|
2307
2229
|
/**
|
|
2308
2230
|
* Type guard to check if a record is of a specific custom type.
|
|
2309
2231
|
*
|
|
@@ -4083,113 +4005,6 @@ export declare type TLCameraId = RecordId<TLCamera>;
|
|
|
4083
4005
|
*/
|
|
4084
4006
|
export declare type TLCanvasUiColor = SetValue<typeof TL_CANVAS_UI_COLOR_TYPES>;
|
|
4085
4007
|
|
|
4086
|
-
/**
|
|
4087
|
-
* A single comment message within a thread. See `TLCommentThread` for the overall model and
|
|
4088
|
-
* sync/registration notes.
|
|
4089
|
-
*
|
|
4090
|
-
* Comment mutations are deliberately not undoable — create/edit them with
|
|
4091
|
-
* `{ history: 'ignore' }` to avoid multiplayer surprises like a comment reappearing after
|
|
4092
|
-
* someone else deleted it.
|
|
4093
|
-
*
|
|
4094
|
-
* @public
|
|
4095
|
-
*/
|
|
4096
|
-
export declare interface TLComment extends BaseRecord<'comment', TLCommentId> {
|
|
4097
|
-
/** The thread this comment belongs to. */
|
|
4098
|
-
threadId: TLCommentThreadId;
|
|
4099
|
-
/** Denormalized from the thread so per-page queries don't need a join. */
|
|
4100
|
-
pageId: TLPageId;
|
|
4101
|
-
/** See `TLCommentThread.createdBy` — same server-stamping caveat applies. */
|
|
4102
|
-
authorId: string;
|
|
4103
|
-
createdAt: number;
|
|
4104
|
-
/** Null until the comment is first edited. */
|
|
4105
|
-
editedAt: null | number;
|
|
4106
|
-
/** Rich text body. Use `toRichText(...)` for plaintext input. */
|
|
4107
|
-
body: TLRichText;
|
|
4108
|
-
meta: JsonObject;
|
|
4109
|
-
}
|
|
4110
|
-
|
|
4111
|
-
/**
|
|
4112
|
-
* Where a comment thread is anchored on the canvas. Modeled as a discriminated union so new
|
|
4113
|
-
* anchor kinds can be added without breaking existing threads:
|
|
4114
|
-
*
|
|
4115
|
-
* - `shape` — pinned to a shape. `x`/`y` are normalized (0–1) within the shape's page bounds, so
|
|
4116
|
-
* the pin keeps its spot as the shape moves and resizes. `isPrecise` mirrors arrow bindings: when
|
|
4117
|
-
* true the pin sits at exactly `x`/`y`; when false (the default) it sits at a consumer-defined
|
|
4118
|
-
* spot (top-right out of the box), and `x`/`y` are the remembered precise position
|
|
4119
|
-
* - `point` — pinned to a fixed point on the page, in page coordinates
|
|
4120
|
-
* - `region` — pinned to a rectangular area of the page, in page coordinates
|
|
4121
|
-
* - `page` — a page-level thread with no spatial anchor
|
|
4122
|
-
* - `text-range` — pinned to a character range inside a shape's text
|
|
4123
|
-
*
|
|
4124
|
-
* @public
|
|
4125
|
-
*/
|
|
4126
|
-
export declare type TLCommentAnchor = {
|
|
4127
|
-
from: number;
|
|
4128
|
-
shapeId: TLShapeId;
|
|
4129
|
-
to: number;
|
|
4130
|
-
type: 'text-range';
|
|
4131
|
-
} | {
|
|
4132
|
-
h: number;
|
|
4133
|
-
type: 'region';
|
|
4134
|
-
w: number;
|
|
4135
|
-
x: number;
|
|
4136
|
-
y: number;
|
|
4137
|
-
} | {
|
|
4138
|
-
isPrecise: boolean;
|
|
4139
|
-
shapeId: TLShapeId;
|
|
4140
|
-
type: 'shape';
|
|
4141
|
-
x: number;
|
|
4142
|
-
y: number;
|
|
4143
|
-
} | {
|
|
4144
|
-
type: 'page';
|
|
4145
|
-
} | {
|
|
4146
|
-
type: 'point';
|
|
4147
|
-
x: number;
|
|
4148
|
-
y: number;
|
|
4149
|
-
};
|
|
4150
|
-
|
|
4151
|
-
/** @public */
|
|
4152
|
-
export declare type TLCommentId = RecordId<TLComment>;
|
|
4153
|
-
|
|
4154
|
-
/**
|
|
4155
|
-
* A comment thread. The thread owns the anchor (where the conversation lives on the canvas) and
|
|
4156
|
-
* the resolution state; the messages themselves are `TLComment` records pointing at the thread
|
|
4157
|
-
* via `threadId`, ordered by `createdAt`. v1 threads are flat — no nested replies.
|
|
4158
|
-
*
|
|
4159
|
-
* Threads and comments are document records, but they're intended to be served through the sync
|
|
4160
|
-
* server's object-store lane: gated by the session's `objectAccess` rather than `isReadonly`
|
|
4161
|
-
* (so "can comment but not edit" is expressible), excluded from document snapshots and `.tldr`
|
|
4162
|
-
* exports server-side, and persisted in a separate lane from the main document.
|
|
4163
|
-
*
|
|
4164
|
-
* Opt-in: register with `createTLSchema({ records: commentSchemaRecords })` on the server and
|
|
4165
|
-
* the matching `records` option on the client — neither type is part of the default schema, and
|
|
4166
|
-
* both sides must register them identically.
|
|
4167
|
-
*
|
|
4168
|
-
* @public
|
|
4169
|
-
*/
|
|
4170
|
-
export declare interface TLCommentThread extends BaseRecord<'comment-thread', TLCommentThreadId> {
|
|
4171
|
-
/** The page the thread lives on. */
|
|
4172
|
-
pageId: TLPageId;
|
|
4173
|
-
/** Where the thread is anchored on that page. */
|
|
4174
|
-
anchor: TLCommentAnchor;
|
|
4175
|
-
/**
|
|
4176
|
-
* Who started the thread. Client-supplied for now; the sync server should stamp/verify this
|
|
4177
|
-
* from the session's authenticated identity once record-level authorization lands (the same
|
|
4178
|
-
* model presence already uses for self-ownership).
|
|
4179
|
-
*/
|
|
4180
|
-
createdBy: string;
|
|
4181
|
-
createdAt: number;
|
|
4182
|
-
/** Resolution state: when and by whom the thread was resolved, or null while open. */
|
|
4183
|
-
resolved: {
|
|
4184
|
-
at: number;
|
|
4185
|
-
by: string;
|
|
4186
|
-
} | null;
|
|
4187
|
-
meta: JsonObject;
|
|
4188
|
-
}
|
|
4189
|
-
|
|
4190
|
-
/** @public */
|
|
4191
|
-
export declare type TLCommentThreadId = RecordId<TLCommentThread>;
|
|
4192
|
-
|
|
4193
4008
|
/**
|
|
4194
4009
|
* A partial version of a shape, useful for creating shapes.
|
|
4195
4010
|
*
|
package/dist-cjs/index.js
CHANGED
|
@@ -70,9 +70,6 @@ __export(index_exports, {
|
|
|
70
70
|
bookmarkShapeProps: () => import_TLBookmarkShape.bookmarkShapeProps,
|
|
71
71
|
boxModelValidator: () => import_geometry_types.boxModelValidator,
|
|
72
72
|
canvasUiColorTypeValidator: () => import_TLColor.canvasUiColorTypeValidator,
|
|
73
|
-
commentRecordConfig: () => import_TLComment.commentRecordConfig,
|
|
74
|
-
commentSchemaRecords: () => import_TLComment.commentSchemaRecords,
|
|
75
|
-
commentThreadRecordConfig: () => import_TLComment.commentThreadRecordConfig,
|
|
76
73
|
compressLegacySegments: () => import_TLDrawShape.compressLegacySegments,
|
|
77
74
|
createAssetPropsMigrationIds: () => import_TLAsset.createAssetPropsMigrationIds,
|
|
78
75
|
createAssetPropsMigrationSequence: () => import_TLAsset.createAssetPropsMigrationSequence,
|
|
@@ -83,10 +80,6 @@ __export(index_exports, {
|
|
|
83
80
|
createBindingPropsMigrationSequence: () => import_TLBinding.createBindingPropsMigrationSequence,
|
|
84
81
|
createBindingValidator: () => import_TLBaseBinding.createBindingValidator,
|
|
85
82
|
createCachedUserResolve: () => import_TLStore.createCachedUserResolve,
|
|
86
|
-
createComment: () => import_TLComment.createComment,
|
|
87
|
-
createCommentId: () => import_TLComment.createCommentId,
|
|
88
|
-
createCommentThread: () => import_TLComment.createCommentThread,
|
|
89
|
-
createCommentThreadId: () => import_TLComment.createCommentThreadId,
|
|
90
83
|
createCustomRecordId: () => import_TLCustomRecord.createCustomRecordId,
|
|
91
84
|
createCustomRecordMigrationIds: () => import_TLCustomRecord.createCustomRecordMigrationIds,
|
|
92
85
|
createCustomRecordMigrationSequence: () => import_TLCustomRecord.createCustomRecordMigrationSequence,
|
|
@@ -123,8 +116,6 @@ __export(index_exports, {
|
|
|
123
116
|
imageShapeProps: () => import_TLImageShape.imageShapeProps,
|
|
124
117
|
isBinding: () => import_TLBinding.isBinding,
|
|
125
118
|
isBindingId: () => import_TLBinding.isBindingId,
|
|
126
|
-
isCommentId: () => import_TLComment.isCommentId,
|
|
127
|
-
isCommentThreadId: () => import_TLComment.isCommentThreadId,
|
|
128
119
|
isCustomRecord: () => import_TLCustomRecord.isCustomRecord,
|
|
129
120
|
isCustomRecordId: () => import_TLCustomRecord.isCustomRecordId,
|
|
130
121
|
isDocument: () => import_TLDocument.isDocument,
|
|
@@ -179,7 +170,6 @@ var import_TLScribble = require("./misc/TLScribble");
|
|
|
179
170
|
var import_TLAsset = require("./records/TLAsset");
|
|
180
171
|
var import_TLBinding = require("./records/TLBinding");
|
|
181
172
|
var import_TLCamera = require("./records/TLCamera");
|
|
182
|
-
var import_TLComment = require("./records/TLComment");
|
|
183
173
|
var import_TLCustomRecord = require("./records/TLCustomRecord");
|
|
184
174
|
var import_TLDocument = require("./records/TLDocument");
|
|
185
175
|
var import_TLInstance = require("./records/TLInstance");
|
|
@@ -217,7 +207,7 @@ var import_translations = require("./translations/translations");
|
|
|
217
207
|
var import_b64Vecs = require("./misc/b64Vecs");
|
|
218
208
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
219
209
|
"@tldraw/tlschema",
|
|
220
|
-
"5.3.0-
|
|
210
|
+
"5.3.0-next.299378752aaf",
|
|
221
211
|
"cjs"
|
|
222
212
|
);
|
|
223
213
|
//# sourceMappingURL=index.js.map
|
package/dist-cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @fileoverview\n * Main entry point for the tldraw schema package. Exports the complete type system,\n * data structures, validation, and migrations for tldraw's persisted data.\n *\n * This package provides:\n * - Schema creation utilities (createTLSchema, defaultShapeSchemas, defaultBindingSchemas)\n * - All built-in shape types (TLGeoShape, TLTextShape, TLArrowShape, etc.)\n * - Asset management types and validators (TLImageAsset, TLVideoAsset, TLBookmarkAsset)\n * - Binding system for shape relationships (TLArrowBinding)\n * - Store integration types (TLStore, TLStoreProps, TLStoreSnapshot)\n * - Style properties for consistent styling (DefaultColorStyle, DefaultSizeStyle, etc.)\n * - Validation utilities and type guards\n * - Migration systems for schema evolution\n * - Geometry and utility types\n *\n * @example\n * ```ts\n * import { createTLSchema, defaultShapeSchemas, TLStore } from '@tldraw/tlschema'\n *\n * // Create a schema with default shapes\n * const schema = createTLSchema({\n * shapes: defaultShapeSchemas\n * })\n *\n * // Use with a store\n * const store = new Store({ schema })\n * ```\n *\n * @public\n */\n\nimport { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { assetIdValidator, createAssetValidator, type TLBaseAsset } from './assets/TLBaseAsset'\nexport {\n\tbookmarkAssetMigrations,\n\tbookmarkAssetProps,\n\ttype TLBookmarkAsset,\n} from './assets/TLBookmarkAsset'\nexport { imageAssetMigrations, imageAssetProps, type TLImageAsset } from './assets/TLImageAsset'\nexport { videoAssetMigrations, videoAssetProps, type TLVideoAsset } from './assets/TLVideoAsset'\nexport {\n\tarrowBindingMigrations,\n\tarrowBindingProps,\n\tarrowBindingVersions,\n\tElbowArrowSnap,\n\ttype TLArrowBinding,\n\ttype TLArrowBindingProps,\n} from './bindings/TLArrowBinding'\nexport {\n\tbindingIdValidator,\n\tcreateBindingValidator,\n\ttype TLBaseBinding,\n} from './bindings/TLBaseBinding'\nexport {\n\tcreatePresenceStateDerivation,\n\tgetDefaultUserPresence,\n\ttype CreatePresenceStateDerivationOpts,\n\ttype TLPresenceStateInfo,\n} from './createPresenceStateDerivation'\nexport {\n\tcreateTLSchema,\n\tdefaultAssetSchemas,\n\tdefaultBindingSchemas,\n\tdefaultShapeSchemas,\n\ttype SchemaPropsInfo,\n\ttype TLSchema,\n\ttype UserSchemaInfo,\n} from './createTLSchema'\nexport {\n\tboxModelValidator,\n\tvecModelValidator,\n\ttype BoxModel,\n\ttype VecModel,\n} from './misc/geometry-types'\nexport { idValidator } from './misc/id-validator'\nexport {\n\tcanvasUiColorTypeValidator,\n\tTL_CANVAS_UI_COLOR_TYPES,\n\ttype TLCanvasUiColor,\n} from './misc/TLColor'\nexport { TL_CURSOR_TYPES, type TLCursor, type TLCursorType } from './misc/TLCursor'\nexport { TL_HANDLE_TYPES, type TLHandle, type TLHandleType } from './misc/TLHandle'\nexport { opacityValidator, type TLOpacityType } from './misc/TLOpacity'\nexport { richTextValidator, toRichText, type TLRichText } from './misc/TLRichText'\nexport { scribbleValidator, TL_SCRIBBLE_STATES, type TLScribble } from './misc/TLScribble'\nexport {\n\tassetMigrations,\n\tAssetRecordType,\n\tcreateAssetPropsMigrationIds,\n\tcreateAssetPropsMigrationSequence,\n\tcreateAssetRecordType,\n\ttype TLAsset,\n\ttype TLAssetId,\n\ttype TLAssetPartial,\n\ttype TLAssetShape,\n\ttype TLDefaultAsset,\n\ttype TLGlobalAssetPropsMap,\n\ttype TLIndexedAssets,\n\ttype TLUnknownAsset,\n} from './records/TLAsset'\nexport {\n\tcreateBindingId,\n\tcreateBindingPropsMigrationIds,\n\tcreateBindingPropsMigrationSequence,\n\tisBinding,\n\tisBindingId,\n\trootBindingMigrations,\n\ttype TLBinding,\n\ttype TLBindingCreate,\n\ttype TLBindingId,\n\ttype TLBindingUpdate,\n\ttype TLDefaultBinding,\n\ttype TLGlobalBindingPropsMap,\n\ttype TLIndexedBindings,\n\ttype TLUnknownBinding,\n} from './records/TLBinding'\nexport { CameraRecordType, type TLCamera, type TLCameraId } from './records/TLCamera'\nexport {\n\tcommentRecordConfig,\n\tcommentSchemaRecords,\n\tcommentThreadRecordConfig,\n\tcreateComment,\n\tcreateCommentId,\n\tcreateCommentThread,\n\tcreateCommentThreadId,\n\tisCommentId,\n\tisCommentThreadId,\n\ttype TLComment,\n\ttype TLCommentAnchor,\n\ttype TLCommentId,\n\ttype TLCommentThread,\n\ttype TLCommentThreadId,\n} from './records/TLComment'\nexport {\n\tcreateCustomRecordId,\n\tcreateCustomRecordMigrationIds,\n\tcreateCustomRecordMigrationSequence,\n\tisCustomRecord,\n\tisCustomRecordId,\n\ttype CustomRecordInfo,\n} from './records/TLCustomRecord'\nexport {\n\tDocumentRecordType,\n\tisDocument,\n\tTLDOCUMENT_ID,\n\ttype TLDocument,\n} from './records/TLDocument'\nexport {\n\tpluckPreservingValues,\n\tTLINSTANCE_ID,\n\ttype TLInstance,\n\ttype TLInstanceId,\n} from './records/TLInstance'\nexport {\n\tisPageId,\n\tpageIdValidator,\n\tPageRecordType,\n\ttype TLPage,\n\ttype TLPageId,\n} from './records/TLPage'\nexport {\n\tInstancePageStateRecordType,\n\ttype TLInstancePageState,\n\ttype TLInstancePageStateId,\n} from './records/TLPageState'\nexport {\n\tPointerRecordType,\n\tTLPOINTER_ID,\n\ttype TLPointer,\n\ttype TLPointerId,\n} from './records/TLPointer'\nexport {\n\tInstancePresenceRecordType,\n\ttype TLInstancePresence,\n\ttype TLInstancePresenceID,\n} from './records/TLPresence'\nexport {\n\ttype TLCustomRecord,\n\ttype TLDefaultRecord,\n\ttype TLGlobalRecordPropsMap,\n\ttype TLIndexedRecords,\n\ttype TLRecord,\n} from './records/TLRecord'\nexport {\n\tcreateShapeId,\n\tcreateShapePropsMigrationIds,\n\tcreateShapePropsMigrationSequence,\n\tgetShapePropKeysByStyle,\n\tisShape,\n\tisShapeId,\n\trootShapeMigrations,\n\ttype ExtractShapeByProps,\n\ttype TLCreateShapePartial,\n\ttype TLDefaultShape,\n\ttype TLGlobalShapePropsMap,\n\ttype TLIndexedShapes,\n\ttype TLParentId,\n\ttype TLShape,\n\ttype TLShapeId,\n\ttype TLShapePartial,\n\ttype TLUnknownShape,\n} from './records/TLShape'\nexport {\n\tcreateUserId,\n\tcreateUserRecordType,\n\tisUserId,\n\tuserIdValidator,\n\tUserRecordType,\n\ttype TLUser,\n\ttype TLUserId,\n} from './records/TLUser'\nexport {\n\ttype RecordProps,\n\ttype RecordPropsType,\n\ttype TLPropsMigration,\n\ttype TLPropsMigrations,\n} from './recordsWithProps'\nexport { type ShapeWithCrop, type TLShapeCrop } from './shapes/ShapeWithCrop'\nexport {\n\tArrowShapeArrowheadEndStyle,\n\tArrowShapeArrowheadStartStyle,\n\tArrowShapeKindStyle,\n\tarrowShapeMigrations,\n\tarrowShapeProps,\n\tarrowShapeVersions,\n\ttype TLArrowShape,\n\ttype TLArrowShapeArrowheadStyle,\n\ttype TLArrowShapeKind,\n\ttype TLArrowShapeProps,\n} from './shapes/TLArrowShape'\nexport {\n\tcreateShapeValidator,\n\tparentIdValidator,\n\tshapeIdValidator,\n\ttype TLBaseShape,\n} from './shapes/TLBaseShape'\nexport {\n\tbookmarkShapeMigrations,\n\tbookmarkShapeProps,\n\ttype TLBookmarkShape,\n\ttype TLBookmarkShapeProps,\n} from './shapes/TLBookmarkShape'\nexport {\n\tcompressLegacySegments,\n\tdrawShapeMigrations,\n\tdrawShapeProps,\n\ttype TLDrawShape,\n\ttype TLDrawShapeProps,\n\ttype TLDrawShapeSegment,\n} from './shapes/TLDrawShape'\nexport {\n\tembedShapeMigrations,\n\tembedShapeProps,\n\ttype TLEmbedShape,\n\ttype TLEmbedShapeProps,\n} from './shapes/TLEmbedShape'\nexport {\n\tframeShapeMigrations,\n\tframeShapeProps,\n\ttype TLFrameShape,\n\ttype TLFrameShapeProps,\n} from './shapes/TLFrameShape'\nexport {\n\tGeoShapeGeoStyle,\n\tgeoShapeMigrations,\n\tgeoShapeProps,\n\ttype TLGeoShape,\n\ttype TLGeoShapeGeoStyle,\n\ttype TLGeoShapeProps,\n} from './shapes/TLGeoShape'\nexport {\n\tgroupShapeMigrations,\n\tgroupShapeProps,\n\ttype TLGroupShape,\n\ttype TLGroupShapeProps,\n} from './shapes/TLGroupShape'\nexport {\n\thighlightShapeMigrations,\n\thighlightShapeProps,\n\ttype TLHighlightShape,\n\ttype TLHighlightShapeProps,\n} from './shapes/TLHighlightShape'\nexport {\n\tImageShapeCrop,\n\timageShapeMigrations,\n\timageShapeProps,\n\ttype TLImageShape,\n\ttype TLImageShapeProps,\n} from './shapes/TLImageShape'\nexport {\n\tlineShapeMigrations,\n\tlineShapeProps,\n\tLineShapeSplineStyle,\n\ttype TLLineShape,\n\ttype TLLineShapePoint,\n\ttype TLLineShapeProps,\n\ttype TLLineShapeSplineStyle,\n} from './shapes/TLLineShape'\nexport {\n\tnoteShapeMigrations,\n\tnoteShapeProps,\n\ttype TLNoteShape,\n\ttype TLNoteShapeProps,\n} from './shapes/TLNoteShape'\nexport {\n\ttextShapeMigrations,\n\ttextShapeProps,\n\ttype TLTextShape,\n\ttype TLTextShapeProps,\n} from './shapes/TLTextShape'\nexport {\n\tvideoShapeMigrations,\n\tvideoShapeProps,\n\ttype TLVideoShape,\n\ttype TLVideoShapeProps,\n} from './shapes/TLVideoShape'\nexport { EnumStyleProp, StyleProp, type StylePropValue } from './styles/StyleProp'\nexport {\n\tDefaultColorStyle,\n\tregisterColorsFromThemes,\n\ttype TLDefaultColorStyle,\n} from './styles/TLColorStyle'\nexport { DefaultDashStyle, type TLDefaultDashStyle } from './styles/TLDashStyle'\nexport { DefaultFillStyle, type TLDefaultFillStyle } from './styles/TLFillStyle'\nexport { type TLFontFace, type TLFontFaceSource } from './styles/TLFontFace'\nexport {\n\tDefaultFontFamilies,\n\tDefaultFontStyle,\n\tisFontEntry,\n\tregisterFontsFromThemes,\n\ttype TLDefaultFontStyle,\n} from './styles/TLFontStyle'\nexport {\n\tDefaultHorizontalAlignStyle,\n\ttype TLDefaultHorizontalAlignStyle,\n} from './styles/TLHorizontalAlignStyle'\nexport { DefaultSizeStyle, type TLDefaultSizeStyle } from './styles/TLSizeStyle'\nexport { DefaultTextAlignStyle, type TLDefaultTextAlignStyle } from './styles/TLTextAlignStyle'\nexport {\n\ttype TLDefaultColor,\n\ttype TLRemovedDefaultThemeColors,\n\ttype TLTheme,\n\ttype TLThemeColors,\n\ttype TLThemeDefaultColors,\n\ttype TLThemeFont,\n\ttype TLThemeFonts,\n\ttype TLThemeId,\n\ttype TLThemes,\n\ttype TLThemeUiColorKeys,\n} from './styles/TLTheme'\nexport {\n\tDefaultVerticalAlignStyle,\n\ttype TLDefaultVerticalAlignStyle,\n} from './styles/TLVerticalAlignStyle'\nexport {\n\tcreateCachedUserResolve,\n\ttype TLAssetContext,\n\ttype TLAssetStore,\n\ttype TLSerializedStore,\n\ttype TLStore,\n\ttype TLStoreProps,\n\ttype TLStoreSchema,\n\ttype TLStoreSnapshot,\n\ttype TLUserStore,\n} from './TLStore'\nexport {\n\tgetDefaultTranslationLocale,\n\tLANGUAGES,\n\ttype TLLanguage,\n} from './translations/translations'\nexport { type SetValue } from './util-types'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n\nexport { DIM_2D, DIM_3D, b64Vecs } from './misc/b64Vecs'\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/**\n * @fileoverview\n * Main entry point for the tldraw schema package. Exports the complete type system,\n * data structures, validation, and migrations for tldraw's persisted data.\n *\n * This package provides:\n * - Schema creation utilities (createTLSchema, defaultShapeSchemas, defaultBindingSchemas)\n * - All built-in shape types (TLGeoShape, TLTextShape, TLArrowShape, etc.)\n * - Asset management types and validators (TLImageAsset, TLVideoAsset, TLBookmarkAsset)\n * - Binding system for shape relationships (TLArrowBinding)\n * - Store integration types (TLStore, TLStoreProps, TLStoreSnapshot)\n * - Style properties for consistent styling (DefaultColorStyle, DefaultSizeStyle, etc.)\n * - Validation utilities and type guards\n * - Migration systems for schema evolution\n * - Geometry and utility types\n *\n * @example\n * ```ts\n * import { createTLSchema, defaultShapeSchemas, TLStore } from '@tldraw/tlschema'\n *\n * // Create a schema with default shapes\n * const schema = createTLSchema({\n * shapes: defaultShapeSchemas\n * })\n *\n * // Use with a store\n * const store = new Store({ schema })\n * ```\n *\n * @public\n */\n\nimport { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { assetIdValidator, createAssetValidator, type TLBaseAsset } from './assets/TLBaseAsset'\nexport {\n\tbookmarkAssetMigrations,\n\tbookmarkAssetProps,\n\ttype TLBookmarkAsset,\n} from './assets/TLBookmarkAsset'\nexport { imageAssetMigrations, imageAssetProps, type TLImageAsset } from './assets/TLImageAsset'\nexport { videoAssetMigrations, videoAssetProps, type TLVideoAsset } from './assets/TLVideoAsset'\nexport {\n\tarrowBindingMigrations,\n\tarrowBindingProps,\n\tarrowBindingVersions,\n\tElbowArrowSnap,\n\ttype TLArrowBinding,\n\ttype TLArrowBindingProps,\n} from './bindings/TLArrowBinding'\nexport {\n\tbindingIdValidator,\n\tcreateBindingValidator,\n\ttype TLBaseBinding,\n} from './bindings/TLBaseBinding'\nexport {\n\tcreatePresenceStateDerivation,\n\tgetDefaultUserPresence,\n\ttype CreatePresenceStateDerivationOpts,\n\ttype TLPresenceStateInfo,\n} from './createPresenceStateDerivation'\nexport {\n\tcreateTLSchema,\n\tdefaultAssetSchemas,\n\tdefaultBindingSchemas,\n\tdefaultShapeSchemas,\n\ttype SchemaPropsInfo,\n\ttype TLSchema,\n\ttype UserSchemaInfo,\n} from './createTLSchema'\nexport {\n\tboxModelValidator,\n\tvecModelValidator,\n\ttype BoxModel,\n\ttype VecModel,\n} from './misc/geometry-types'\nexport { idValidator } from './misc/id-validator'\nexport {\n\tcanvasUiColorTypeValidator,\n\tTL_CANVAS_UI_COLOR_TYPES,\n\ttype TLCanvasUiColor,\n} from './misc/TLColor'\nexport { TL_CURSOR_TYPES, type TLCursor, type TLCursorType } from './misc/TLCursor'\nexport { TL_HANDLE_TYPES, type TLHandle, type TLHandleType } from './misc/TLHandle'\nexport { opacityValidator, type TLOpacityType } from './misc/TLOpacity'\nexport { richTextValidator, toRichText, type TLRichText } from './misc/TLRichText'\nexport { scribbleValidator, TL_SCRIBBLE_STATES, type TLScribble } from './misc/TLScribble'\nexport {\n\tassetMigrations,\n\tAssetRecordType,\n\tcreateAssetPropsMigrationIds,\n\tcreateAssetPropsMigrationSequence,\n\tcreateAssetRecordType,\n\ttype TLAsset,\n\ttype TLAssetId,\n\ttype TLAssetPartial,\n\ttype TLAssetShape,\n\ttype TLDefaultAsset,\n\ttype TLGlobalAssetPropsMap,\n\ttype TLIndexedAssets,\n\ttype TLUnknownAsset,\n} from './records/TLAsset'\nexport {\n\tcreateBindingId,\n\tcreateBindingPropsMigrationIds,\n\tcreateBindingPropsMigrationSequence,\n\tisBinding,\n\tisBindingId,\n\trootBindingMigrations,\n\ttype TLBinding,\n\ttype TLBindingCreate,\n\ttype TLBindingId,\n\ttype TLBindingUpdate,\n\ttype TLDefaultBinding,\n\ttype TLGlobalBindingPropsMap,\n\ttype TLIndexedBindings,\n\ttype TLUnknownBinding,\n} from './records/TLBinding'\nexport { CameraRecordType, type TLCamera, type TLCameraId } from './records/TLCamera'\nexport {\n\tcreateCustomRecordId,\n\tcreateCustomRecordMigrationIds,\n\tcreateCustomRecordMigrationSequence,\n\tisCustomRecord,\n\tisCustomRecordId,\n\ttype CustomRecordInfo,\n} from './records/TLCustomRecord'\nexport {\n\tDocumentRecordType,\n\tisDocument,\n\tTLDOCUMENT_ID,\n\ttype TLDocument,\n} from './records/TLDocument'\nexport {\n\tpluckPreservingValues,\n\tTLINSTANCE_ID,\n\ttype TLInstance,\n\ttype TLInstanceId,\n} from './records/TLInstance'\nexport {\n\tisPageId,\n\tpageIdValidator,\n\tPageRecordType,\n\ttype TLPage,\n\ttype TLPageId,\n} from './records/TLPage'\nexport {\n\tInstancePageStateRecordType,\n\ttype TLInstancePageState,\n\ttype TLInstancePageStateId,\n} from './records/TLPageState'\nexport {\n\tPointerRecordType,\n\tTLPOINTER_ID,\n\ttype TLPointer,\n\ttype TLPointerId,\n} from './records/TLPointer'\nexport {\n\tInstancePresenceRecordType,\n\ttype TLInstancePresence,\n\ttype TLInstancePresenceID,\n} from './records/TLPresence'\nexport {\n\ttype TLCustomRecord,\n\ttype TLDefaultRecord,\n\ttype TLGlobalRecordPropsMap,\n\ttype TLIndexedRecords,\n\ttype TLRecord,\n} from './records/TLRecord'\nexport {\n\tcreateShapeId,\n\tcreateShapePropsMigrationIds,\n\tcreateShapePropsMigrationSequence,\n\tgetShapePropKeysByStyle,\n\tisShape,\n\tisShapeId,\n\trootShapeMigrations,\n\ttype ExtractShapeByProps,\n\ttype TLCreateShapePartial,\n\ttype TLDefaultShape,\n\ttype TLGlobalShapePropsMap,\n\ttype TLIndexedShapes,\n\ttype TLParentId,\n\ttype TLShape,\n\ttype TLShapeId,\n\ttype TLShapePartial,\n\ttype TLUnknownShape,\n} from './records/TLShape'\nexport {\n\tcreateUserId,\n\tcreateUserRecordType,\n\tisUserId,\n\tuserIdValidator,\n\tUserRecordType,\n\ttype TLUser,\n\ttype TLUserId,\n} from './records/TLUser'\nexport {\n\ttype RecordProps,\n\ttype RecordPropsType,\n\ttype TLPropsMigration,\n\ttype TLPropsMigrations,\n} from './recordsWithProps'\nexport { type ShapeWithCrop, type TLShapeCrop } from './shapes/ShapeWithCrop'\nexport {\n\tArrowShapeArrowheadEndStyle,\n\tArrowShapeArrowheadStartStyle,\n\tArrowShapeKindStyle,\n\tarrowShapeMigrations,\n\tarrowShapeProps,\n\tarrowShapeVersions,\n\ttype TLArrowShape,\n\ttype TLArrowShapeArrowheadStyle,\n\ttype TLArrowShapeKind,\n\ttype TLArrowShapeProps,\n} from './shapes/TLArrowShape'\nexport {\n\tcreateShapeValidator,\n\tparentIdValidator,\n\tshapeIdValidator,\n\ttype TLBaseShape,\n} from './shapes/TLBaseShape'\nexport {\n\tbookmarkShapeMigrations,\n\tbookmarkShapeProps,\n\ttype TLBookmarkShape,\n\ttype TLBookmarkShapeProps,\n} from './shapes/TLBookmarkShape'\nexport {\n\tcompressLegacySegments,\n\tdrawShapeMigrations,\n\tdrawShapeProps,\n\ttype TLDrawShape,\n\ttype TLDrawShapeProps,\n\ttype TLDrawShapeSegment,\n} from './shapes/TLDrawShape'\nexport {\n\tembedShapeMigrations,\n\tembedShapeProps,\n\ttype TLEmbedShape,\n\ttype TLEmbedShapeProps,\n} from './shapes/TLEmbedShape'\nexport {\n\tframeShapeMigrations,\n\tframeShapeProps,\n\ttype TLFrameShape,\n\ttype TLFrameShapeProps,\n} from './shapes/TLFrameShape'\nexport {\n\tGeoShapeGeoStyle,\n\tgeoShapeMigrations,\n\tgeoShapeProps,\n\ttype TLGeoShape,\n\ttype TLGeoShapeGeoStyle,\n\ttype TLGeoShapeProps,\n} from './shapes/TLGeoShape'\nexport {\n\tgroupShapeMigrations,\n\tgroupShapeProps,\n\ttype TLGroupShape,\n\ttype TLGroupShapeProps,\n} from './shapes/TLGroupShape'\nexport {\n\thighlightShapeMigrations,\n\thighlightShapeProps,\n\ttype TLHighlightShape,\n\ttype TLHighlightShapeProps,\n} from './shapes/TLHighlightShape'\nexport {\n\tImageShapeCrop,\n\timageShapeMigrations,\n\timageShapeProps,\n\ttype TLImageShape,\n\ttype TLImageShapeProps,\n} from './shapes/TLImageShape'\nexport {\n\tlineShapeMigrations,\n\tlineShapeProps,\n\tLineShapeSplineStyle,\n\ttype TLLineShape,\n\ttype TLLineShapePoint,\n\ttype TLLineShapeProps,\n\ttype TLLineShapeSplineStyle,\n} from './shapes/TLLineShape'\nexport {\n\tnoteShapeMigrations,\n\tnoteShapeProps,\n\ttype TLNoteShape,\n\ttype TLNoteShapeProps,\n} from './shapes/TLNoteShape'\nexport {\n\ttextShapeMigrations,\n\ttextShapeProps,\n\ttype TLTextShape,\n\ttype TLTextShapeProps,\n} from './shapes/TLTextShape'\nexport {\n\tvideoShapeMigrations,\n\tvideoShapeProps,\n\ttype TLVideoShape,\n\ttype TLVideoShapeProps,\n} from './shapes/TLVideoShape'\nexport { EnumStyleProp, StyleProp, type StylePropValue } from './styles/StyleProp'\nexport {\n\tDefaultColorStyle,\n\tregisterColorsFromThemes,\n\ttype TLDefaultColorStyle,\n} from './styles/TLColorStyle'\nexport { DefaultDashStyle, type TLDefaultDashStyle } from './styles/TLDashStyle'\nexport { DefaultFillStyle, type TLDefaultFillStyle } from './styles/TLFillStyle'\nexport { type TLFontFace, type TLFontFaceSource } from './styles/TLFontFace'\nexport {\n\tDefaultFontFamilies,\n\tDefaultFontStyle,\n\tisFontEntry,\n\tregisterFontsFromThemes,\n\ttype TLDefaultFontStyle,\n} from './styles/TLFontStyle'\nexport {\n\tDefaultHorizontalAlignStyle,\n\ttype TLDefaultHorizontalAlignStyle,\n} from './styles/TLHorizontalAlignStyle'\nexport { DefaultSizeStyle, type TLDefaultSizeStyle } from './styles/TLSizeStyle'\nexport { DefaultTextAlignStyle, type TLDefaultTextAlignStyle } from './styles/TLTextAlignStyle'\nexport {\n\ttype TLDefaultColor,\n\ttype TLRemovedDefaultThemeColors,\n\ttype TLTheme,\n\ttype TLThemeColors,\n\ttype TLThemeDefaultColors,\n\ttype TLThemeFont,\n\ttype TLThemeFonts,\n\ttype TLThemeId,\n\ttype TLThemes,\n\ttype TLThemeUiColorKeys,\n} from './styles/TLTheme'\nexport {\n\tDefaultVerticalAlignStyle,\n\ttype TLDefaultVerticalAlignStyle,\n} from './styles/TLVerticalAlignStyle'\nexport {\n\tcreateCachedUserResolve,\n\ttype TLAssetContext,\n\ttype TLAssetStore,\n\ttype TLSerializedStore,\n\ttype TLStore,\n\ttype TLStoreProps,\n\ttype TLStoreSchema,\n\ttype TLStoreSnapshot,\n\ttype TLUserStore,\n} from './TLStore'\nexport {\n\tgetDefaultTranslationLocale,\n\tLANGUAGES,\n\ttype TLLanguage,\n} from './translations/translations'\nexport { type SetValue } from './util-types'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n\nexport { DIM_2D, DIM_3D, b64Vecs } from './misc/b64Vecs'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA,mBAA6C;AAC7C,yBAAyE;AACzE,6BAIO;AACP,0BAAyE;AACzE,0BAAyE;AACzE,4BAOO;AACP,2BAIO;AACP,2CAKO;AACP,4BAQO;AACP,4BAKO;AACP,0BAA4B;AAC5B,qBAIO;AACP,sBAAkE;AAClE,sBAAkE;AAClE,uBAAqD;AACrD,wBAA+D;AAC/D,wBAAuE;AACvE,qBAcO;AACP,uBAeO;AACP,sBAAiE;AACjE,4BAOO;AACP,wBAKO;AACP,wBAKO;AACP,oBAMO;AACP,yBAIO;AACP,uBAKO;AACP,wBAIO;AAQP,qBAkBO;AACP,oBAQO;AAQP,0BAWO;AACP,yBAKO;AACP,6BAKO;AACP,yBAOO;AACP,0BAKO;AACP,0BAKO;AACP,wBAOO;AACP,0BAKO;AACP,8BAKO;AACP,0BAMO;AACP,yBAQO;AACP,yBAKO;AACP,yBAKO;AACP,0BAKO;AACP,uBAA8D;AAC9D,0BAIO;AACP,yBAA0D;AAC1D,yBAA0D;AAE1D,yBAMO;AACP,oCAGO;AACP,yBAA0D;AAC1D,8BAAoE;AAapE,kCAGO;AACP,qBAUO;AACP,0BAIO;AASP,qBAAwC;AAAA,IANxC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist-esm/index.d.mts
CHANGED
|
@@ -529,34 +529,6 @@ export declare const CameraRecordType: RecordType<TLCamera, never>;
|
|
|
529
529
|
*/
|
|
530
530
|
export declare const canvasUiColorTypeValidator: T.Validator<"accent" | "black" | "laser" | "muted-1" | "selection-fill" | "selection-stroke" | "white">;
|
|
531
531
|
|
|
532
|
-
/**
|
|
533
|
-
* Config for registering the `comment` record type in a tldraw schema. Pass via
|
|
534
|
-
* `commentSchemaRecords`; see `TLComment`.
|
|
535
|
-
*
|
|
536
|
-
* @public
|
|
537
|
-
*/
|
|
538
|
-
export declare const commentRecordConfig: CustomRecordInfo;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* The `records` map to pass to `createTLSchema` / the client `records` option so comment
|
|
542
|
-
* threads and comments sync. Register both types together — a comment without its thread type
|
|
543
|
-
* (or vice versa) will fail schema validation on one side of the connection.
|
|
544
|
-
*
|
|
545
|
-
* @public
|
|
546
|
-
*/
|
|
547
|
-
export declare const commentSchemaRecords: {
|
|
548
|
-
'comment-thread': CustomRecordInfo;
|
|
549
|
-
comment: CustomRecordInfo;
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* Config for registering the `comment-thread` record type in a tldraw schema. Pass via
|
|
554
|
-
* `commentSchemaRecords`; see `TLCommentThread`.
|
|
555
|
-
*
|
|
556
|
-
* @public
|
|
557
|
-
*/
|
|
558
|
-
export declare const commentThreadRecordConfig: CustomRecordInfo;
|
|
559
|
-
|
|
560
532
|
/**
|
|
561
533
|
* Compress legacy draw shape segments by converting VecModel[] points to delta-encoded base64 format.
|
|
562
534
|
* This function is useful for converting old draw shape data to the new compressed format.
|
|
@@ -838,39 +810,6 @@ export declare function createBindingValidator<Type extends string, Props extend
|
|
|
838
810
|
*/
|
|
839
811
|
export declare function createCachedUserResolve(resolveFn: (userId: string) => null | TLUser): (userId: string) => Signal<null | TLUser>;
|
|
840
812
|
|
|
841
|
-
/**
|
|
842
|
-
* Create a new comment record within a thread.
|
|
843
|
-
*
|
|
844
|
-
* @public
|
|
845
|
-
*/
|
|
846
|
-
export declare function createComment(props: {
|
|
847
|
-
authorId: string;
|
|
848
|
-
body: TLRichText;
|
|
849
|
-
meta?: JsonObject;
|
|
850
|
-
now?: number;
|
|
851
|
-
pageId: TLPageId;
|
|
852
|
-
threadId: TLCommentThreadId;
|
|
853
|
-
}): TLComment;
|
|
854
|
-
|
|
855
|
-
/** @public */
|
|
856
|
-
export declare function createCommentId(id?: string): TLCommentId;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Create a new comment thread record. Pair with `createComment` for the thread's first message.
|
|
860
|
-
*
|
|
861
|
-
* @public
|
|
862
|
-
*/
|
|
863
|
-
export declare function createCommentThread(props: {
|
|
864
|
-
anchor: TLCommentAnchor;
|
|
865
|
-
createdBy: string;
|
|
866
|
-
meta?: JsonObject;
|
|
867
|
-
now?: number;
|
|
868
|
-
pageId: TLPageId;
|
|
869
|
-
}): TLCommentThread;
|
|
870
|
-
|
|
871
|
-
/** @public */
|
|
872
|
-
export declare function createCommentThreadId(id?: string): TLCommentThreadId;
|
|
873
|
-
|
|
874
813
|
/**
|
|
875
814
|
* Creates a unique ID for a custom record type.
|
|
876
815
|
*
|
|
@@ -2287,23 +2226,6 @@ export declare function isBinding(record?: UnknownRecord): record is TLBinding;
|
|
|
2287
2226
|
*/
|
|
2288
2227
|
export declare function isBindingId(id?: string): id is TLBindingId;
|
|
2289
2228
|
|
|
2290
|
-
/**
|
|
2291
|
-
* Type guard for `TLCommentId`. See `isCommentThreadId` for why `comment-thread:...` ids are
|
|
2292
|
-
* correctly rejected here.
|
|
2293
|
-
*
|
|
2294
|
-
* @public
|
|
2295
|
-
*/
|
|
2296
|
-
export declare function isCommentId(id: string): id is TLCommentId;
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Type guard for `TLCommentThreadId`. Note `isCommentId` does not accept these: the prefixes
|
|
2300
|
-
* are `comment-thread:` vs `comment:`, and the character after `comment` differs (`-` vs `:`),
|
|
2301
|
-
* so the two never overlap.
|
|
2302
|
-
*
|
|
2303
|
-
* @public
|
|
2304
|
-
*/
|
|
2305
|
-
export declare function isCommentThreadId(id: string): id is TLCommentThreadId;
|
|
2306
|
-
|
|
2307
2229
|
/**
|
|
2308
2230
|
* Type guard to check if a record is of a specific custom type.
|
|
2309
2231
|
*
|
|
@@ -4083,113 +4005,6 @@ export declare type TLCameraId = RecordId<TLCamera>;
|
|
|
4083
4005
|
*/
|
|
4084
4006
|
export declare type TLCanvasUiColor = SetValue<typeof TL_CANVAS_UI_COLOR_TYPES>;
|
|
4085
4007
|
|
|
4086
|
-
/**
|
|
4087
|
-
* A single comment message within a thread. See `TLCommentThread` for the overall model and
|
|
4088
|
-
* sync/registration notes.
|
|
4089
|
-
*
|
|
4090
|
-
* Comment mutations are deliberately not undoable — create/edit them with
|
|
4091
|
-
* `{ history: 'ignore' }` to avoid multiplayer surprises like a comment reappearing after
|
|
4092
|
-
* someone else deleted it.
|
|
4093
|
-
*
|
|
4094
|
-
* @public
|
|
4095
|
-
*/
|
|
4096
|
-
export declare interface TLComment extends BaseRecord<'comment', TLCommentId> {
|
|
4097
|
-
/** The thread this comment belongs to. */
|
|
4098
|
-
threadId: TLCommentThreadId;
|
|
4099
|
-
/** Denormalized from the thread so per-page queries don't need a join. */
|
|
4100
|
-
pageId: TLPageId;
|
|
4101
|
-
/** See `TLCommentThread.createdBy` — same server-stamping caveat applies. */
|
|
4102
|
-
authorId: string;
|
|
4103
|
-
createdAt: number;
|
|
4104
|
-
/** Null until the comment is first edited. */
|
|
4105
|
-
editedAt: null | number;
|
|
4106
|
-
/** Rich text body. Use `toRichText(...)` for plaintext input. */
|
|
4107
|
-
body: TLRichText;
|
|
4108
|
-
meta: JsonObject;
|
|
4109
|
-
}
|
|
4110
|
-
|
|
4111
|
-
/**
|
|
4112
|
-
* Where a comment thread is anchored on the canvas. Modeled as a discriminated union so new
|
|
4113
|
-
* anchor kinds can be added without breaking existing threads:
|
|
4114
|
-
*
|
|
4115
|
-
* - `shape` — pinned to a shape. `x`/`y` are normalized (0–1) within the shape's page bounds, so
|
|
4116
|
-
* the pin keeps its spot as the shape moves and resizes. `isPrecise` mirrors arrow bindings: when
|
|
4117
|
-
* true the pin sits at exactly `x`/`y`; when false (the default) it sits at a consumer-defined
|
|
4118
|
-
* spot (top-right out of the box), and `x`/`y` are the remembered precise position
|
|
4119
|
-
* - `point` — pinned to a fixed point on the page, in page coordinates
|
|
4120
|
-
* - `region` — pinned to a rectangular area of the page, in page coordinates
|
|
4121
|
-
* - `page` — a page-level thread with no spatial anchor
|
|
4122
|
-
* - `text-range` — pinned to a character range inside a shape's text
|
|
4123
|
-
*
|
|
4124
|
-
* @public
|
|
4125
|
-
*/
|
|
4126
|
-
export declare type TLCommentAnchor = {
|
|
4127
|
-
from: number;
|
|
4128
|
-
shapeId: TLShapeId;
|
|
4129
|
-
to: number;
|
|
4130
|
-
type: 'text-range';
|
|
4131
|
-
} | {
|
|
4132
|
-
h: number;
|
|
4133
|
-
type: 'region';
|
|
4134
|
-
w: number;
|
|
4135
|
-
x: number;
|
|
4136
|
-
y: number;
|
|
4137
|
-
} | {
|
|
4138
|
-
isPrecise: boolean;
|
|
4139
|
-
shapeId: TLShapeId;
|
|
4140
|
-
type: 'shape';
|
|
4141
|
-
x: number;
|
|
4142
|
-
y: number;
|
|
4143
|
-
} | {
|
|
4144
|
-
type: 'page';
|
|
4145
|
-
} | {
|
|
4146
|
-
type: 'point';
|
|
4147
|
-
x: number;
|
|
4148
|
-
y: number;
|
|
4149
|
-
};
|
|
4150
|
-
|
|
4151
|
-
/** @public */
|
|
4152
|
-
export declare type TLCommentId = RecordId<TLComment>;
|
|
4153
|
-
|
|
4154
|
-
/**
|
|
4155
|
-
* A comment thread. The thread owns the anchor (where the conversation lives on the canvas) and
|
|
4156
|
-
* the resolution state; the messages themselves are `TLComment` records pointing at the thread
|
|
4157
|
-
* via `threadId`, ordered by `createdAt`. v1 threads are flat — no nested replies.
|
|
4158
|
-
*
|
|
4159
|
-
* Threads and comments are document records, but they're intended to be served through the sync
|
|
4160
|
-
* server's object-store lane: gated by the session's `objectAccess` rather than `isReadonly`
|
|
4161
|
-
* (so "can comment but not edit" is expressible), excluded from document snapshots and `.tldr`
|
|
4162
|
-
* exports server-side, and persisted in a separate lane from the main document.
|
|
4163
|
-
*
|
|
4164
|
-
* Opt-in: register with `createTLSchema({ records: commentSchemaRecords })` on the server and
|
|
4165
|
-
* the matching `records` option on the client — neither type is part of the default schema, and
|
|
4166
|
-
* both sides must register them identically.
|
|
4167
|
-
*
|
|
4168
|
-
* @public
|
|
4169
|
-
*/
|
|
4170
|
-
export declare interface TLCommentThread extends BaseRecord<'comment-thread', TLCommentThreadId> {
|
|
4171
|
-
/** The page the thread lives on. */
|
|
4172
|
-
pageId: TLPageId;
|
|
4173
|
-
/** Where the thread is anchored on that page. */
|
|
4174
|
-
anchor: TLCommentAnchor;
|
|
4175
|
-
/**
|
|
4176
|
-
* Who started the thread. Client-supplied for now; the sync server should stamp/verify this
|
|
4177
|
-
* from the session's authenticated identity once record-level authorization lands (the same
|
|
4178
|
-
* model presence already uses for self-ownership).
|
|
4179
|
-
*/
|
|
4180
|
-
createdBy: string;
|
|
4181
|
-
createdAt: number;
|
|
4182
|
-
/** Resolution state: when and by whom the thread was resolved, or null while open. */
|
|
4183
|
-
resolved: {
|
|
4184
|
-
at: number;
|
|
4185
|
-
by: string;
|
|
4186
|
-
} | null;
|
|
4187
|
-
meta: JsonObject;
|
|
4188
|
-
}
|
|
4189
|
-
|
|
4190
|
-
/** @public */
|
|
4191
|
-
export declare type TLCommentThreadId = RecordId<TLCommentThread>;
|
|
4192
|
-
|
|
4193
4008
|
/**
|
|
4194
4009
|
* A partial version of a shape, useful for creating shapes.
|
|
4195
4010
|
*
|
package/dist-esm/index.mjs
CHANGED
|
@@ -56,17 +56,6 @@ import {
|
|
|
56
56
|
rootBindingMigrations
|
|
57
57
|
} from "./records/TLBinding.mjs";
|
|
58
58
|
import { CameraRecordType } from "./records/TLCamera.mjs";
|
|
59
|
-
import {
|
|
60
|
-
commentRecordConfig,
|
|
61
|
-
commentSchemaRecords,
|
|
62
|
-
commentThreadRecordConfig,
|
|
63
|
-
createComment,
|
|
64
|
-
createCommentId,
|
|
65
|
-
createCommentThread,
|
|
66
|
-
createCommentThreadId,
|
|
67
|
-
isCommentId,
|
|
68
|
-
isCommentThreadId
|
|
69
|
-
} from "./records/TLComment.mjs";
|
|
70
59
|
import {
|
|
71
60
|
createCustomRecordId,
|
|
72
61
|
createCustomRecordMigrationIds,
|
|
@@ -209,7 +198,7 @@ import {
|
|
|
209
198
|
} from "./translations/translations.mjs";
|
|
210
199
|
registerTldrawLibraryVersion(
|
|
211
200
|
"@tldraw/tlschema",
|
|
212
|
-
"5.3.0-
|
|
201
|
+
"5.3.0-next.299378752aaf",
|
|
213
202
|
"esm"
|
|
214
203
|
);
|
|
215
204
|
import { DIM_2D, DIM_3D, b64Vecs } from "./misc/b64Vecs.mjs";
|
|
@@ -266,9 +255,6 @@ export {
|
|
|
266
255
|
bookmarkShapeProps,
|
|
267
256
|
boxModelValidator,
|
|
268
257
|
canvasUiColorTypeValidator,
|
|
269
|
-
commentRecordConfig,
|
|
270
|
-
commentSchemaRecords,
|
|
271
|
-
commentThreadRecordConfig,
|
|
272
258
|
compressLegacySegments,
|
|
273
259
|
createAssetPropsMigrationIds,
|
|
274
260
|
createAssetPropsMigrationSequence,
|
|
@@ -279,10 +265,6 @@ export {
|
|
|
279
265
|
createBindingPropsMigrationSequence,
|
|
280
266
|
createBindingValidator,
|
|
281
267
|
createCachedUserResolve,
|
|
282
|
-
createComment,
|
|
283
|
-
createCommentId,
|
|
284
|
-
createCommentThread,
|
|
285
|
-
createCommentThreadId,
|
|
286
268
|
createCustomRecordId,
|
|
287
269
|
createCustomRecordMigrationIds,
|
|
288
270
|
createCustomRecordMigrationSequence,
|
|
@@ -319,8 +301,6 @@ export {
|
|
|
319
301
|
imageShapeProps,
|
|
320
302
|
isBinding,
|
|
321
303
|
isBindingId,
|
|
322
|
-
isCommentId,
|
|
323
|
-
isCommentThreadId,
|
|
324
304
|
isCustomRecord,
|
|
325
305
|
isCustomRecordId,
|
|
326
306
|
isDocument,
|
package/dist-esm/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @fileoverview\n * Main entry point for the tldraw schema package. Exports the complete type system,\n * data structures, validation, and migrations for tldraw's persisted data.\n *\n * This package provides:\n * - Schema creation utilities (createTLSchema, defaultShapeSchemas, defaultBindingSchemas)\n * - All built-in shape types (TLGeoShape, TLTextShape, TLArrowShape, etc.)\n * - Asset management types and validators (TLImageAsset, TLVideoAsset, TLBookmarkAsset)\n * - Binding system for shape relationships (TLArrowBinding)\n * - Store integration types (TLStore, TLStoreProps, TLStoreSnapshot)\n * - Style properties for consistent styling (DefaultColorStyle, DefaultSizeStyle, etc.)\n * - Validation utilities and type guards\n * - Migration systems for schema evolution\n * - Geometry and utility types\n *\n * @example\n * ```ts\n * import { createTLSchema, defaultShapeSchemas, TLStore } from '@tldraw/tlschema'\n *\n * // Create a schema with default shapes\n * const schema = createTLSchema({\n * shapes: defaultShapeSchemas\n * })\n *\n * // Use with a store\n * const store = new Store({ schema })\n * ```\n *\n * @public\n */\n\nimport { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { assetIdValidator, createAssetValidator, type TLBaseAsset } from './assets/TLBaseAsset'\nexport {\n\tbookmarkAssetMigrations,\n\tbookmarkAssetProps,\n\ttype TLBookmarkAsset,\n} from './assets/TLBookmarkAsset'\nexport { imageAssetMigrations, imageAssetProps, type TLImageAsset } from './assets/TLImageAsset'\nexport { videoAssetMigrations, videoAssetProps, type TLVideoAsset } from './assets/TLVideoAsset'\nexport {\n\tarrowBindingMigrations,\n\tarrowBindingProps,\n\tarrowBindingVersions,\n\tElbowArrowSnap,\n\ttype TLArrowBinding,\n\ttype TLArrowBindingProps,\n} from './bindings/TLArrowBinding'\nexport {\n\tbindingIdValidator,\n\tcreateBindingValidator,\n\ttype TLBaseBinding,\n} from './bindings/TLBaseBinding'\nexport {\n\tcreatePresenceStateDerivation,\n\tgetDefaultUserPresence,\n\ttype CreatePresenceStateDerivationOpts,\n\ttype TLPresenceStateInfo,\n} from './createPresenceStateDerivation'\nexport {\n\tcreateTLSchema,\n\tdefaultAssetSchemas,\n\tdefaultBindingSchemas,\n\tdefaultShapeSchemas,\n\ttype SchemaPropsInfo,\n\ttype TLSchema,\n\ttype UserSchemaInfo,\n} from './createTLSchema'\nexport {\n\tboxModelValidator,\n\tvecModelValidator,\n\ttype BoxModel,\n\ttype VecModel,\n} from './misc/geometry-types'\nexport { idValidator } from './misc/id-validator'\nexport {\n\tcanvasUiColorTypeValidator,\n\tTL_CANVAS_UI_COLOR_TYPES,\n\ttype TLCanvasUiColor,\n} from './misc/TLColor'\nexport { TL_CURSOR_TYPES, type TLCursor, type TLCursorType } from './misc/TLCursor'\nexport { TL_HANDLE_TYPES, type TLHandle, type TLHandleType } from './misc/TLHandle'\nexport { opacityValidator, type TLOpacityType } from './misc/TLOpacity'\nexport { richTextValidator, toRichText, type TLRichText } from './misc/TLRichText'\nexport { scribbleValidator, TL_SCRIBBLE_STATES, type TLScribble } from './misc/TLScribble'\nexport {\n\tassetMigrations,\n\tAssetRecordType,\n\tcreateAssetPropsMigrationIds,\n\tcreateAssetPropsMigrationSequence,\n\tcreateAssetRecordType,\n\ttype TLAsset,\n\ttype TLAssetId,\n\ttype TLAssetPartial,\n\ttype TLAssetShape,\n\ttype TLDefaultAsset,\n\ttype TLGlobalAssetPropsMap,\n\ttype TLIndexedAssets,\n\ttype TLUnknownAsset,\n} from './records/TLAsset'\nexport {\n\tcreateBindingId,\n\tcreateBindingPropsMigrationIds,\n\tcreateBindingPropsMigrationSequence,\n\tisBinding,\n\tisBindingId,\n\trootBindingMigrations,\n\ttype TLBinding,\n\ttype TLBindingCreate,\n\ttype TLBindingId,\n\ttype TLBindingUpdate,\n\ttype TLDefaultBinding,\n\ttype TLGlobalBindingPropsMap,\n\ttype TLIndexedBindings,\n\ttype TLUnknownBinding,\n} from './records/TLBinding'\nexport { CameraRecordType, type TLCamera, type TLCameraId } from './records/TLCamera'\nexport {\n\tcommentRecordConfig,\n\tcommentSchemaRecords,\n\tcommentThreadRecordConfig,\n\tcreateComment,\n\tcreateCommentId,\n\tcreateCommentThread,\n\tcreateCommentThreadId,\n\tisCommentId,\n\tisCommentThreadId,\n\ttype TLComment,\n\ttype TLCommentAnchor,\n\ttype TLCommentId,\n\ttype TLCommentThread,\n\ttype TLCommentThreadId,\n} from './records/TLComment'\nexport {\n\tcreateCustomRecordId,\n\tcreateCustomRecordMigrationIds,\n\tcreateCustomRecordMigrationSequence,\n\tisCustomRecord,\n\tisCustomRecordId,\n\ttype CustomRecordInfo,\n} from './records/TLCustomRecord'\nexport {\n\tDocumentRecordType,\n\tisDocument,\n\tTLDOCUMENT_ID,\n\ttype TLDocument,\n} from './records/TLDocument'\nexport {\n\tpluckPreservingValues,\n\tTLINSTANCE_ID,\n\ttype TLInstance,\n\ttype TLInstanceId,\n} from './records/TLInstance'\nexport {\n\tisPageId,\n\tpageIdValidator,\n\tPageRecordType,\n\ttype TLPage,\n\ttype TLPageId,\n} from './records/TLPage'\nexport {\n\tInstancePageStateRecordType,\n\ttype TLInstancePageState,\n\ttype TLInstancePageStateId,\n} from './records/TLPageState'\nexport {\n\tPointerRecordType,\n\tTLPOINTER_ID,\n\ttype TLPointer,\n\ttype TLPointerId,\n} from './records/TLPointer'\nexport {\n\tInstancePresenceRecordType,\n\ttype TLInstancePresence,\n\ttype TLInstancePresenceID,\n} from './records/TLPresence'\nexport {\n\ttype TLCustomRecord,\n\ttype TLDefaultRecord,\n\ttype TLGlobalRecordPropsMap,\n\ttype TLIndexedRecords,\n\ttype TLRecord,\n} from './records/TLRecord'\nexport {\n\tcreateShapeId,\n\tcreateShapePropsMigrationIds,\n\tcreateShapePropsMigrationSequence,\n\tgetShapePropKeysByStyle,\n\tisShape,\n\tisShapeId,\n\trootShapeMigrations,\n\ttype ExtractShapeByProps,\n\ttype TLCreateShapePartial,\n\ttype TLDefaultShape,\n\ttype TLGlobalShapePropsMap,\n\ttype TLIndexedShapes,\n\ttype TLParentId,\n\ttype TLShape,\n\ttype TLShapeId,\n\ttype TLShapePartial,\n\ttype TLUnknownShape,\n} from './records/TLShape'\nexport {\n\tcreateUserId,\n\tcreateUserRecordType,\n\tisUserId,\n\tuserIdValidator,\n\tUserRecordType,\n\ttype TLUser,\n\ttype TLUserId,\n} from './records/TLUser'\nexport {\n\ttype RecordProps,\n\ttype RecordPropsType,\n\ttype TLPropsMigration,\n\ttype TLPropsMigrations,\n} from './recordsWithProps'\nexport { type ShapeWithCrop, type TLShapeCrop } from './shapes/ShapeWithCrop'\nexport {\n\tArrowShapeArrowheadEndStyle,\n\tArrowShapeArrowheadStartStyle,\n\tArrowShapeKindStyle,\n\tarrowShapeMigrations,\n\tarrowShapeProps,\n\tarrowShapeVersions,\n\ttype TLArrowShape,\n\ttype TLArrowShapeArrowheadStyle,\n\ttype TLArrowShapeKind,\n\ttype TLArrowShapeProps,\n} from './shapes/TLArrowShape'\nexport {\n\tcreateShapeValidator,\n\tparentIdValidator,\n\tshapeIdValidator,\n\ttype TLBaseShape,\n} from './shapes/TLBaseShape'\nexport {\n\tbookmarkShapeMigrations,\n\tbookmarkShapeProps,\n\ttype TLBookmarkShape,\n\ttype TLBookmarkShapeProps,\n} from './shapes/TLBookmarkShape'\nexport {\n\tcompressLegacySegments,\n\tdrawShapeMigrations,\n\tdrawShapeProps,\n\ttype TLDrawShape,\n\ttype TLDrawShapeProps,\n\ttype TLDrawShapeSegment,\n} from './shapes/TLDrawShape'\nexport {\n\tembedShapeMigrations,\n\tembedShapeProps,\n\ttype TLEmbedShape,\n\ttype TLEmbedShapeProps,\n} from './shapes/TLEmbedShape'\nexport {\n\tframeShapeMigrations,\n\tframeShapeProps,\n\ttype TLFrameShape,\n\ttype TLFrameShapeProps,\n} from './shapes/TLFrameShape'\nexport {\n\tGeoShapeGeoStyle,\n\tgeoShapeMigrations,\n\tgeoShapeProps,\n\ttype TLGeoShape,\n\ttype TLGeoShapeGeoStyle,\n\ttype TLGeoShapeProps,\n} from './shapes/TLGeoShape'\nexport {\n\tgroupShapeMigrations,\n\tgroupShapeProps,\n\ttype TLGroupShape,\n\ttype TLGroupShapeProps,\n} from './shapes/TLGroupShape'\nexport {\n\thighlightShapeMigrations,\n\thighlightShapeProps,\n\ttype TLHighlightShape,\n\ttype TLHighlightShapeProps,\n} from './shapes/TLHighlightShape'\nexport {\n\tImageShapeCrop,\n\timageShapeMigrations,\n\timageShapeProps,\n\ttype TLImageShape,\n\ttype TLImageShapeProps,\n} from './shapes/TLImageShape'\nexport {\n\tlineShapeMigrations,\n\tlineShapeProps,\n\tLineShapeSplineStyle,\n\ttype TLLineShape,\n\ttype TLLineShapePoint,\n\ttype TLLineShapeProps,\n\ttype TLLineShapeSplineStyle,\n} from './shapes/TLLineShape'\nexport {\n\tnoteShapeMigrations,\n\tnoteShapeProps,\n\ttype TLNoteShape,\n\ttype TLNoteShapeProps,\n} from './shapes/TLNoteShape'\nexport {\n\ttextShapeMigrations,\n\ttextShapeProps,\n\ttype TLTextShape,\n\ttype TLTextShapeProps,\n} from './shapes/TLTextShape'\nexport {\n\tvideoShapeMigrations,\n\tvideoShapeProps,\n\ttype TLVideoShape,\n\ttype TLVideoShapeProps,\n} from './shapes/TLVideoShape'\nexport { EnumStyleProp, StyleProp, type StylePropValue } from './styles/StyleProp'\nexport {\n\tDefaultColorStyle,\n\tregisterColorsFromThemes,\n\ttype TLDefaultColorStyle,\n} from './styles/TLColorStyle'\nexport { DefaultDashStyle, type TLDefaultDashStyle } from './styles/TLDashStyle'\nexport { DefaultFillStyle, type TLDefaultFillStyle } from './styles/TLFillStyle'\nexport { type TLFontFace, type TLFontFaceSource } from './styles/TLFontFace'\nexport {\n\tDefaultFontFamilies,\n\tDefaultFontStyle,\n\tisFontEntry,\n\tregisterFontsFromThemes,\n\ttype TLDefaultFontStyle,\n} from './styles/TLFontStyle'\nexport {\n\tDefaultHorizontalAlignStyle,\n\ttype TLDefaultHorizontalAlignStyle,\n} from './styles/TLHorizontalAlignStyle'\nexport { DefaultSizeStyle, type TLDefaultSizeStyle } from './styles/TLSizeStyle'\nexport { DefaultTextAlignStyle, type TLDefaultTextAlignStyle } from './styles/TLTextAlignStyle'\nexport {\n\ttype TLDefaultColor,\n\ttype TLRemovedDefaultThemeColors,\n\ttype TLTheme,\n\ttype TLThemeColors,\n\ttype TLThemeDefaultColors,\n\ttype TLThemeFont,\n\ttype TLThemeFonts,\n\ttype TLThemeId,\n\ttype TLThemes,\n\ttype TLThemeUiColorKeys,\n} from './styles/TLTheme'\nexport {\n\tDefaultVerticalAlignStyle,\n\ttype TLDefaultVerticalAlignStyle,\n} from './styles/TLVerticalAlignStyle'\nexport {\n\tcreateCachedUserResolve,\n\ttype TLAssetContext,\n\ttype TLAssetStore,\n\ttype TLSerializedStore,\n\ttype TLStore,\n\ttype TLStoreProps,\n\ttype TLStoreSchema,\n\ttype TLStoreSnapshot,\n\ttype TLUserStore,\n} from './TLStore'\nexport {\n\tgetDefaultTranslationLocale,\n\tLANGUAGES,\n\ttype TLLanguage,\n} from './translations/translations'\nexport { type SetValue } from './util-types'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n\nexport { DIM_2D, DIM_3D, b64Vecs } from './misc/b64Vecs'\n"],
|
|
5
|
-
"mappings": "AAgCA,SAAS,oCAAoC;AAC7C,SAAS,kBAAkB,4BAA8C;AACzE;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP,SAAS,sBAAsB,uBAA0C;AACzE,SAAS,sBAAsB,uBAA0C;AACzE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP,SAAS,mBAAmB;AAC5B;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP,SAAS,uBAAyD;AAClE,SAAS,uBAAyD;AAClE,SAAS,wBAA4C;AACrD,SAAS,mBAAmB,kBAAmC;AAC/D,SAAS,mBAAmB,0BAA2C;AACvE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASM;AACP,SAAS,wBAAwD;AACjE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,
|
|
4
|
+
"sourcesContent": ["/**\n * @fileoverview\n * Main entry point for the tldraw schema package. Exports the complete type system,\n * data structures, validation, and migrations for tldraw's persisted data.\n *\n * This package provides:\n * - Schema creation utilities (createTLSchema, defaultShapeSchemas, defaultBindingSchemas)\n * - All built-in shape types (TLGeoShape, TLTextShape, TLArrowShape, etc.)\n * - Asset management types and validators (TLImageAsset, TLVideoAsset, TLBookmarkAsset)\n * - Binding system for shape relationships (TLArrowBinding)\n * - Store integration types (TLStore, TLStoreProps, TLStoreSnapshot)\n * - Style properties for consistent styling (DefaultColorStyle, DefaultSizeStyle, etc.)\n * - Validation utilities and type guards\n * - Migration systems for schema evolution\n * - Geometry and utility types\n *\n * @example\n * ```ts\n * import { createTLSchema, defaultShapeSchemas, TLStore } from '@tldraw/tlschema'\n *\n * // Create a schema with default shapes\n * const schema = createTLSchema({\n * shapes: defaultShapeSchemas\n * })\n *\n * // Use with a store\n * const store = new Store({ schema })\n * ```\n *\n * @public\n */\n\nimport { registerTldrawLibraryVersion } from '@tldraw/utils'\nexport { assetIdValidator, createAssetValidator, type TLBaseAsset } from './assets/TLBaseAsset'\nexport {\n\tbookmarkAssetMigrations,\n\tbookmarkAssetProps,\n\ttype TLBookmarkAsset,\n} from './assets/TLBookmarkAsset'\nexport { imageAssetMigrations, imageAssetProps, type TLImageAsset } from './assets/TLImageAsset'\nexport { videoAssetMigrations, videoAssetProps, type TLVideoAsset } from './assets/TLVideoAsset'\nexport {\n\tarrowBindingMigrations,\n\tarrowBindingProps,\n\tarrowBindingVersions,\n\tElbowArrowSnap,\n\ttype TLArrowBinding,\n\ttype TLArrowBindingProps,\n} from './bindings/TLArrowBinding'\nexport {\n\tbindingIdValidator,\n\tcreateBindingValidator,\n\ttype TLBaseBinding,\n} from './bindings/TLBaseBinding'\nexport {\n\tcreatePresenceStateDerivation,\n\tgetDefaultUserPresence,\n\ttype CreatePresenceStateDerivationOpts,\n\ttype TLPresenceStateInfo,\n} from './createPresenceStateDerivation'\nexport {\n\tcreateTLSchema,\n\tdefaultAssetSchemas,\n\tdefaultBindingSchemas,\n\tdefaultShapeSchemas,\n\ttype SchemaPropsInfo,\n\ttype TLSchema,\n\ttype UserSchemaInfo,\n} from './createTLSchema'\nexport {\n\tboxModelValidator,\n\tvecModelValidator,\n\ttype BoxModel,\n\ttype VecModel,\n} from './misc/geometry-types'\nexport { idValidator } from './misc/id-validator'\nexport {\n\tcanvasUiColorTypeValidator,\n\tTL_CANVAS_UI_COLOR_TYPES,\n\ttype TLCanvasUiColor,\n} from './misc/TLColor'\nexport { TL_CURSOR_TYPES, type TLCursor, type TLCursorType } from './misc/TLCursor'\nexport { TL_HANDLE_TYPES, type TLHandle, type TLHandleType } from './misc/TLHandle'\nexport { opacityValidator, type TLOpacityType } from './misc/TLOpacity'\nexport { richTextValidator, toRichText, type TLRichText } from './misc/TLRichText'\nexport { scribbleValidator, TL_SCRIBBLE_STATES, type TLScribble } from './misc/TLScribble'\nexport {\n\tassetMigrations,\n\tAssetRecordType,\n\tcreateAssetPropsMigrationIds,\n\tcreateAssetPropsMigrationSequence,\n\tcreateAssetRecordType,\n\ttype TLAsset,\n\ttype TLAssetId,\n\ttype TLAssetPartial,\n\ttype TLAssetShape,\n\ttype TLDefaultAsset,\n\ttype TLGlobalAssetPropsMap,\n\ttype TLIndexedAssets,\n\ttype TLUnknownAsset,\n} from './records/TLAsset'\nexport {\n\tcreateBindingId,\n\tcreateBindingPropsMigrationIds,\n\tcreateBindingPropsMigrationSequence,\n\tisBinding,\n\tisBindingId,\n\trootBindingMigrations,\n\ttype TLBinding,\n\ttype TLBindingCreate,\n\ttype TLBindingId,\n\ttype TLBindingUpdate,\n\ttype TLDefaultBinding,\n\ttype TLGlobalBindingPropsMap,\n\ttype TLIndexedBindings,\n\ttype TLUnknownBinding,\n} from './records/TLBinding'\nexport { CameraRecordType, type TLCamera, type TLCameraId } from './records/TLCamera'\nexport {\n\tcreateCustomRecordId,\n\tcreateCustomRecordMigrationIds,\n\tcreateCustomRecordMigrationSequence,\n\tisCustomRecord,\n\tisCustomRecordId,\n\ttype CustomRecordInfo,\n} from './records/TLCustomRecord'\nexport {\n\tDocumentRecordType,\n\tisDocument,\n\tTLDOCUMENT_ID,\n\ttype TLDocument,\n} from './records/TLDocument'\nexport {\n\tpluckPreservingValues,\n\tTLINSTANCE_ID,\n\ttype TLInstance,\n\ttype TLInstanceId,\n} from './records/TLInstance'\nexport {\n\tisPageId,\n\tpageIdValidator,\n\tPageRecordType,\n\ttype TLPage,\n\ttype TLPageId,\n} from './records/TLPage'\nexport {\n\tInstancePageStateRecordType,\n\ttype TLInstancePageState,\n\ttype TLInstancePageStateId,\n} from './records/TLPageState'\nexport {\n\tPointerRecordType,\n\tTLPOINTER_ID,\n\ttype TLPointer,\n\ttype TLPointerId,\n} from './records/TLPointer'\nexport {\n\tInstancePresenceRecordType,\n\ttype TLInstancePresence,\n\ttype TLInstancePresenceID,\n} from './records/TLPresence'\nexport {\n\ttype TLCustomRecord,\n\ttype TLDefaultRecord,\n\ttype TLGlobalRecordPropsMap,\n\ttype TLIndexedRecords,\n\ttype TLRecord,\n} from './records/TLRecord'\nexport {\n\tcreateShapeId,\n\tcreateShapePropsMigrationIds,\n\tcreateShapePropsMigrationSequence,\n\tgetShapePropKeysByStyle,\n\tisShape,\n\tisShapeId,\n\trootShapeMigrations,\n\ttype ExtractShapeByProps,\n\ttype TLCreateShapePartial,\n\ttype TLDefaultShape,\n\ttype TLGlobalShapePropsMap,\n\ttype TLIndexedShapes,\n\ttype TLParentId,\n\ttype TLShape,\n\ttype TLShapeId,\n\ttype TLShapePartial,\n\ttype TLUnknownShape,\n} from './records/TLShape'\nexport {\n\tcreateUserId,\n\tcreateUserRecordType,\n\tisUserId,\n\tuserIdValidator,\n\tUserRecordType,\n\ttype TLUser,\n\ttype TLUserId,\n} from './records/TLUser'\nexport {\n\ttype RecordProps,\n\ttype RecordPropsType,\n\ttype TLPropsMigration,\n\ttype TLPropsMigrations,\n} from './recordsWithProps'\nexport { type ShapeWithCrop, type TLShapeCrop } from './shapes/ShapeWithCrop'\nexport {\n\tArrowShapeArrowheadEndStyle,\n\tArrowShapeArrowheadStartStyle,\n\tArrowShapeKindStyle,\n\tarrowShapeMigrations,\n\tarrowShapeProps,\n\tarrowShapeVersions,\n\ttype TLArrowShape,\n\ttype TLArrowShapeArrowheadStyle,\n\ttype TLArrowShapeKind,\n\ttype TLArrowShapeProps,\n} from './shapes/TLArrowShape'\nexport {\n\tcreateShapeValidator,\n\tparentIdValidator,\n\tshapeIdValidator,\n\ttype TLBaseShape,\n} from './shapes/TLBaseShape'\nexport {\n\tbookmarkShapeMigrations,\n\tbookmarkShapeProps,\n\ttype TLBookmarkShape,\n\ttype TLBookmarkShapeProps,\n} from './shapes/TLBookmarkShape'\nexport {\n\tcompressLegacySegments,\n\tdrawShapeMigrations,\n\tdrawShapeProps,\n\ttype TLDrawShape,\n\ttype TLDrawShapeProps,\n\ttype TLDrawShapeSegment,\n} from './shapes/TLDrawShape'\nexport {\n\tembedShapeMigrations,\n\tembedShapeProps,\n\ttype TLEmbedShape,\n\ttype TLEmbedShapeProps,\n} from './shapes/TLEmbedShape'\nexport {\n\tframeShapeMigrations,\n\tframeShapeProps,\n\ttype TLFrameShape,\n\ttype TLFrameShapeProps,\n} from './shapes/TLFrameShape'\nexport {\n\tGeoShapeGeoStyle,\n\tgeoShapeMigrations,\n\tgeoShapeProps,\n\ttype TLGeoShape,\n\ttype TLGeoShapeGeoStyle,\n\ttype TLGeoShapeProps,\n} from './shapes/TLGeoShape'\nexport {\n\tgroupShapeMigrations,\n\tgroupShapeProps,\n\ttype TLGroupShape,\n\ttype TLGroupShapeProps,\n} from './shapes/TLGroupShape'\nexport {\n\thighlightShapeMigrations,\n\thighlightShapeProps,\n\ttype TLHighlightShape,\n\ttype TLHighlightShapeProps,\n} from './shapes/TLHighlightShape'\nexport {\n\tImageShapeCrop,\n\timageShapeMigrations,\n\timageShapeProps,\n\ttype TLImageShape,\n\ttype TLImageShapeProps,\n} from './shapes/TLImageShape'\nexport {\n\tlineShapeMigrations,\n\tlineShapeProps,\n\tLineShapeSplineStyle,\n\ttype TLLineShape,\n\ttype TLLineShapePoint,\n\ttype TLLineShapeProps,\n\ttype TLLineShapeSplineStyle,\n} from './shapes/TLLineShape'\nexport {\n\tnoteShapeMigrations,\n\tnoteShapeProps,\n\ttype TLNoteShape,\n\ttype TLNoteShapeProps,\n} from './shapes/TLNoteShape'\nexport {\n\ttextShapeMigrations,\n\ttextShapeProps,\n\ttype TLTextShape,\n\ttype TLTextShapeProps,\n} from './shapes/TLTextShape'\nexport {\n\tvideoShapeMigrations,\n\tvideoShapeProps,\n\ttype TLVideoShape,\n\ttype TLVideoShapeProps,\n} from './shapes/TLVideoShape'\nexport { EnumStyleProp, StyleProp, type StylePropValue } from './styles/StyleProp'\nexport {\n\tDefaultColorStyle,\n\tregisterColorsFromThemes,\n\ttype TLDefaultColorStyle,\n} from './styles/TLColorStyle'\nexport { DefaultDashStyle, type TLDefaultDashStyle } from './styles/TLDashStyle'\nexport { DefaultFillStyle, type TLDefaultFillStyle } from './styles/TLFillStyle'\nexport { type TLFontFace, type TLFontFaceSource } from './styles/TLFontFace'\nexport {\n\tDefaultFontFamilies,\n\tDefaultFontStyle,\n\tisFontEntry,\n\tregisterFontsFromThemes,\n\ttype TLDefaultFontStyle,\n} from './styles/TLFontStyle'\nexport {\n\tDefaultHorizontalAlignStyle,\n\ttype TLDefaultHorizontalAlignStyle,\n} from './styles/TLHorizontalAlignStyle'\nexport { DefaultSizeStyle, type TLDefaultSizeStyle } from './styles/TLSizeStyle'\nexport { DefaultTextAlignStyle, type TLDefaultTextAlignStyle } from './styles/TLTextAlignStyle'\nexport {\n\ttype TLDefaultColor,\n\ttype TLRemovedDefaultThemeColors,\n\ttype TLTheme,\n\ttype TLThemeColors,\n\ttype TLThemeDefaultColors,\n\ttype TLThemeFont,\n\ttype TLThemeFonts,\n\ttype TLThemeId,\n\ttype TLThemes,\n\ttype TLThemeUiColorKeys,\n} from './styles/TLTheme'\nexport {\n\tDefaultVerticalAlignStyle,\n\ttype TLDefaultVerticalAlignStyle,\n} from './styles/TLVerticalAlignStyle'\nexport {\n\tcreateCachedUserResolve,\n\ttype TLAssetContext,\n\ttype TLAssetStore,\n\ttype TLSerializedStore,\n\ttype TLStore,\n\ttype TLStoreProps,\n\ttype TLStoreSchema,\n\ttype TLStoreSnapshot,\n\ttype TLUserStore,\n} from './TLStore'\nexport {\n\tgetDefaultTranslationLocale,\n\tLANGUAGES,\n\ttype TLLanguage,\n} from './translations/translations'\nexport { type SetValue } from './util-types'\n\nregisterTldrawLibraryVersion(\n\t(globalThis as any).TLDRAW_LIBRARY_NAME,\n\t(globalThis as any).TLDRAW_LIBRARY_VERSION,\n\t(globalThis as any).TLDRAW_LIBRARY_MODULES\n)\n\nexport { DIM_2D, DIM_3D, b64Vecs } from './misc/b64Vecs'\n"],
|
|
5
|
+
"mappings": "AAgCA,SAAS,oCAAoC;AAC7C,SAAS,kBAAkB,4BAA8C;AACzE;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP,SAAS,sBAAsB,uBAA0C;AACzE,SAAS,sBAAsB,uBAA0C;AACzE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP,SAAS,mBAAmB;AAC5B;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP,SAAS,uBAAyD;AAClE,SAAS,uBAAyD;AAClE,SAAS,wBAA4C;AACrD,SAAS,mBAAmB,kBAAmC;AAC/D,SAAS,mBAAmB,0BAA2C;AACvE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OASM;AACP,SAAS,wBAAwD;AACjE;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,OAGM;AAQP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAWM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGM;AAQP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAIM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAIM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,OAKM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAGM;AACP,SAAS,eAAe,iBAAsC;AAC9D;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AACP,SAAS,wBAAiD;AAC1D,SAAS,wBAAiD;AAE1D;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEM;AACP;AAAA,EACC;AAAA,OAEM;AACP,SAAS,wBAAiD;AAC1D,SAAS,6BAA2D;AAapE;AAAA,EACC;AAAA,OAEM;AACP;AAAA,EACC;AAAA,OASM;AACP;AAAA,EACC;AAAA,EACA;AAAA,OAEM;AAGP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AACF;AAEA,SAAS,QAAQ,QAAQ,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|