Rename tlvalidate to validate (#1508)
This PR renames the @tldraw/tlvalidate package to @tldraw/validate. ### Change Type - [x] `major` — Breaking Change ### Release Notes - Rename tlvalidate to validate
This commit is contained in:
parent
4dfae61a32
commit
7307282f1f
52 changed files with 58 additions and 58 deletions
|
@ -64,9 +64,9 @@
|
||||||
"@tldraw/tldraw": "workspace:*",
|
"@tldraw/tldraw": "workspace:*",
|
||||||
"@tldraw/tlschema": "workspace:*",
|
"@tldraw/tlschema": "workspace:*",
|
||||||
"@tldraw/tlstore": "workspace:*",
|
"@tldraw/tlstore": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
|
||||||
"@tldraw/ui": "workspace:*",
|
"@tldraw/ui": "workspace:*",
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
|
"@tldraw/validate": "workspace:*",
|
||||||
"lazyrepo": "0.0.0-alpha.26",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"ts-node": "^10.9.1"
|
"ts-node": "^10.9.1"
|
||||||
|
|
|
@ -49,8 +49,8 @@
|
||||||
"@tldraw/primitives": "workspace:*",
|
"@tldraw/primitives": "workspace:*",
|
||||||
"@tldraw/tlschema": "workspace:*",
|
"@tldraw/tlschema": "workspace:*",
|
||||||
"@tldraw/tlstore": "workspace:*",
|
"@tldraw/tlstore": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
|
"@tldraw/validate": "workspace:*",
|
||||||
"@use-gesture/react": "^10.2.27",
|
"@use-gesture/react": "^10.2.27",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"crc": "^4.3.2",
|
"crc": "^4.3.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { getDefaultTranslationLocale } from '@tldraw/tlschema'
|
import { getDefaultTranslationLocale } from '@tldraw/tlschema'
|
||||||
import { defineMigrations, migrate } from '@tldraw/tlstore'
|
import { defineMigrations, migrate } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { atom } from 'signia'
|
import { atom } from 'signia'
|
||||||
import { uniqueId } from '../utils/data'
|
import { uniqueId } from '../utils/data'
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{ "path": "../primitives" },
|
{ "path": "../primitives" },
|
||||||
{ "path": "../tlschema" },
|
{ "path": "../tlschema" },
|
||||||
{ "path": "../tlstore" },
|
{ "path": "../tlstore" },
|
||||||
{ "path": "../tlvalidate" },
|
{ "path": "../validate" },
|
||||||
{ "path": "../utils" },
|
{ "path": "../utils" },
|
||||||
{ "path": "../indices" }
|
{ "path": "../indices" }
|
||||||
]
|
]
|
||||||
|
|
|
@ -44,9 +44,9 @@
|
||||||
"@tldraw/editor": "workspace:*",
|
"@tldraw/editor": "workspace:*",
|
||||||
"@tldraw/primitives": "workspace:*",
|
"@tldraw/primitives": "workspace:*",
|
||||||
"@tldraw/tlstore": "workspace:*",
|
"@tldraw/tlstore": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
|
||||||
"@tldraw/ui": "workspace:*",
|
"@tldraw/ui": "workspace:*",
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*",
|
||||||
|
"@tldraw/validate": "workspace:*"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "config/jest/node",
|
"preset": "config/jest/node",
|
||||||
|
|
|
@ -16,9 +16,9 @@ import {
|
||||||
StoreSnapshot,
|
StoreSnapshot,
|
||||||
UnknownRecord,
|
UnknownRecord,
|
||||||
} from '@tldraw/tlstore'
|
} from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
|
||||||
import { TLUiToastsContextType, TLUiTranslationKey } from '@tldraw/ui'
|
import { TLUiToastsContextType, TLUiTranslationKey } from '@tldraw/ui'
|
||||||
import { exhaustiveSwitchError, Result } from '@tldraw/utils'
|
import { exhaustiveSwitchError, Result } from '@tldraw/utils'
|
||||||
|
import { T } from '@tldraw/validate'
|
||||||
import { buildFromV1Document } from './buildFromV1Document'
|
import { buildFromV1Document } from './buildFromV1Document'
|
||||||
|
|
||||||
/** @public */
|
/** @public */
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../editor" },
|
{ "path": "../editor" },
|
||||||
{ "path": "../tlstore" },
|
{ "path": "../tlstore" },
|
||||||
{ "path": "../tlvalidate" },
|
{ "path": "../validate" },
|
||||||
{ "path": "../primitives" },
|
{ "path": "../primitives" },
|
||||||
{ "path": "../utils" },
|
{ "path": "../utils" },
|
||||||
{ "path": "../ui" }
|
{ "path": "../ui" }
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { Store } from '@tldraw/tlstore';
|
||||||
import { StoreSchema } from '@tldraw/tlstore';
|
import { StoreSchema } from '@tldraw/tlstore';
|
||||||
import { StoreSchemaOptions } from '@tldraw/tlstore';
|
import { StoreSchemaOptions } from '@tldraw/tlstore';
|
||||||
import { StoreSnapshot } from '@tldraw/tlstore';
|
import { StoreSnapshot } from '@tldraw/tlstore';
|
||||||
import { T } from '@tldraw/tlvalidate';
|
import { T } from '@tldraw/validate';
|
||||||
import { UnknownRecord } from '@tldraw/tlstore';
|
import { UnknownRecord } from '@tldraw/tlstore';
|
||||||
|
|
||||||
// @internal (undocumented)
|
// @internal (undocumented)
|
||||||
|
|
|
@ -57,8 +57,8 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tldraw/tlstore": "workspace:*",
|
"@tldraw/tlstore": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
|
"@tldraw/validate": "workspace:*",
|
||||||
"nanoid": "4.0.2"
|
"nanoid": "4.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||||
|
|
||||||
// --- DEFINITION ---
|
// --- DEFINITION ---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||||
|
|
||||||
// --- DEFINITION ---
|
// --- DEFINITION ---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||||
|
|
||||||
// --- DEFINITION ---
|
// --- DEFINITION ---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord } from '@tldraw/tlstore'
|
import { BaseRecord } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLAssetId } from '../records/TLAsset'
|
import { TLAssetId } from '../records/TLAsset'
|
||||||
import { assetIdValidator } from '../validation'
|
import { assetIdValidator } from '../validation'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Migrations, StoreSchema, createRecordType, defineMigrations } from '@tldraw/tlstore'
|
import { Migrations, StoreSchema, createRecordType, defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLRecord } from './TLRecord'
|
import { TLRecord } from './TLRecord'
|
||||||
import { TLStoreProps, createIntegrityChecker, onValidationFailure } from './TLStore'
|
import { TLStoreProps, createIntegrityChecker, onValidationFailure } from './TLStore'
|
||||||
import { AssetRecordType } from './records/TLAsset'
|
import { AssetRecordType } from './records/TLAsset'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLBaseAsset } from '../assets/asset-validation'
|
import { TLBaseAsset } from '../assets/asset-validation'
|
||||||
import {
|
import {
|
||||||
bookmarkAssetMigrations,
|
bookmarkAssetMigrations,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { idValidator } from '../validation'
|
import { idValidator } from '../validation'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TLDocument
|
* TLDocument
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Box2dModel } from '../geometry-types'
|
import { Box2dModel } from '../geometry-types'
|
||||||
import { TL_STYLE_TYPES, TLStyleType } from '../style-types'
|
import { TL_STYLE_TYPES, TLStyleType } from '../style-types'
|
||||||
import { cursorValidator, scribbleTypeValidator, TLCursor, TLScribble } from '../ui-types'
|
import { cursorValidator, scribbleTypeValidator, TLCursor, TLScribble } from '../ui-types'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { idValidator, instanceIdValidator, pageIdValidator, shapeIdValidator } from '../validation'
|
import { idValidator, instanceIdValidator, pageIdValidator, shapeIdValidator } from '../validation'
|
||||||
import { TLCamera, TLCameraId } from './TLCamera'
|
import { TLCamera, TLCameraId } from './TLCamera'
|
||||||
import { TLInstance } from './TLInstance'
|
import { TLInstance } from './TLInstance'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Box2dModel } from '../geometry-types'
|
import { Box2dModel } from '../geometry-types'
|
||||||
import { cursorTypeValidator, scribbleTypeValidator, TLCursor, TLScribble } from '../ui-types'
|
import { cursorTypeValidator, scribbleTypeValidator, TLCursor, TLScribble } from '../ui-types'
|
||||||
import { idValidator } from '../validation'
|
import { idValidator } from '../validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { pageIdValidator } from '../validation'
|
import { pageIdValidator } from '../validation'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { idValidator } from '../validation'
|
import { idValidator } from '../validation'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { idValidator, instanceIdValidator, pageIdValidator } from '../validation'
|
import { idValidator, instanceIdValidator, pageIdValidator } from '../validation'
|
||||||
import { TLInstance } from './TLInstance'
|
import { TLInstance } from './TLInstance'
|
||||||
import { TLPage } from './TLPage'
|
import { TLPage } from './TLPage'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Vec2dModel } from '../geometry-types'
|
import { Vec2dModel } from '../geometry-types'
|
||||||
import { TLShapeId } from '../records/TLShape'
|
import { TLShapeId } from '../records/TLShape'
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLAssetId } from '../records/TLAsset'
|
import { TLAssetId } from '../records/TLAsset'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
import { assetIdValidator, opacityValidator } from '../validation'
|
import { assetIdValidator, opacityValidator } from '../validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Vec2dModel } from '../geometry-types'
|
import { Vec2dModel } from '../geometry-types'
|
||||||
import { TLColorType, TLDashType, TLFillType, TLOpacityType, TLSizeType } from '../style-types'
|
import { TLColorType, TLDashType, TLFillType, TLOpacityType, TLSizeType } from '../style-types'
|
||||||
import { SetValue } from '../util-types'
|
import { SetValue } from '../util-types'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
import { opacityValidator } from '../validation'
|
import { opacityValidator } from '../validation'
|
||||||
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
import { opacityValidator } from '../validation'
|
import { opacityValidator } from '../validation'
|
||||||
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import {
|
import {
|
||||||
TLAlignType,
|
TLAlignType,
|
||||||
TLColorType,
|
TLColorType,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
import { opacityValidator } from '../validation'
|
import { opacityValidator } from '../validation'
|
||||||
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
import { createShapeValidator, TLBaseShape } from './shape-validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLColorType, TLOpacityType, TLSizeType } from '../style-types'
|
import { TLColorType, TLOpacityType, TLSizeType } from '../style-types'
|
||||||
import { colorValidator, opacityValidator, sizeValidator } from '../validation'
|
import { colorValidator, opacityValidator, sizeValidator } from '../validation'
|
||||||
import { TLDrawShapeSegment, drawShapeSegmentValidator } from './TLDrawShape'
|
import { TLDrawShapeSegment, drawShapeSegmentValidator } from './TLDrawShape'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLColorType, TLDashType, TLIconType, TLOpacityType, TLSizeType } from '../style-types'
|
import { TLColorType, TLDashType, TLIconType, TLOpacityType, TLSizeType } from '../style-types'
|
||||||
import {
|
import {
|
||||||
colorValidator,
|
colorValidator,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Vec2dModel } from '../geometry-types'
|
import { Vec2dModel } from '../geometry-types'
|
||||||
import { TLAssetId } from '../records/TLAsset'
|
import { TLAssetId } from '../records/TLAsset'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLColorType, TLDashType, TLOpacityType, TLSizeType, TLSplineType } from '../style-types'
|
import { TLColorType, TLDashType, TLOpacityType, TLSizeType, TLSplineType } from '../style-types'
|
||||||
import { TLHandle, handleTypeValidator } from '../ui-types'
|
import { TLHandle, handleTypeValidator } from '../ui-types'
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
||||||
import {
|
import {
|
||||||
alignValidator,
|
alignValidator,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
||||||
import {
|
import {
|
||||||
alignValidator,
|
alignValidator,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { defineMigrations } from '@tldraw/tlstore'
|
import { defineMigrations } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLAssetId } from '../records/TLAsset'
|
import { TLAssetId } from '../records/TLAsset'
|
||||||
import { TLOpacityType } from '../style-types'
|
import { TLOpacityType } from '../style-types'
|
||||||
import { assetIdValidator, opacityValidator } from '../validation'
|
import { assetIdValidator, opacityValidator } from '../validation'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseRecord } from '@tldraw/tlstore'
|
import { BaseRecord } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { TLParentId, TLShapeId } from '../records/TLShape'
|
import { TLParentId, TLShapeId } from '../records/TLShape'
|
||||||
import { parentIdValidator, shapeIdValidator } from '../validation'
|
import { parentIdValidator, shapeIdValidator } from '../validation'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import { Vec2dModel } from './geometry-types'
|
import { Vec2dModel } from './geometry-types'
|
||||||
import { SetValue } from './util-types'
|
import { SetValue } from './util-types'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { ID, UnknownRecord } from '@tldraw/tlstore'
|
import type { ID, UnknownRecord } from '@tldraw/tlstore'
|
||||||
import { T } from '@tldraw/tlvalidate'
|
import { T } from '@tldraw/validate'
|
||||||
import type { TLAssetId } from './records/TLAsset'
|
import type { TLAssetId } from './records/TLAsset'
|
||||||
import type { TLInstanceId } from './records/TLInstance'
|
import type { TLInstanceId } from './records/TLInstance'
|
||||||
import type { TLPageId } from './records/TLPage'
|
import type { TLPageId } from './records/TLPage'
|
||||||
|
|
|
@ -6,5 +6,5 @@
|
||||||
"outDir": "./.tsbuild",
|
"outDir": "./.tsbuild",
|
||||||
"rootDir": "src"
|
"rootDir": "src"
|
||||||
},
|
},
|
||||||
"references": [{ "path": "../tlstore" }, { "path": "../tlvalidate" }, { "path": "../utils" }]
|
"references": [{ "path": "../tlstore" }, { "path": "../validate" }, { "path": "../utils" }]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## API Report File for "@tldraw/tlvalidate"
|
## API Report File for "@tldraw/validate"
|
||||||
|
|
||||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@tldraw/tlvalidate",
|
"name": "@tldraw/validate",
|
||||||
"description": "A tiny little drawing app (validation).",
|
"description": "A runtime validation library by tldraw.",
|
||||||
"version": "2.0.0-alpha.12",
|
"version": "2.0.0-alpha.12",
|
||||||
"packageManager": "yarn@3.5.0",
|
"packageManager": "yarn@3.5.0",
|
||||||
"author": {
|
"author": {
|
|
@ -4297,9 +4297,9 @@ __metadata:
|
||||||
"@tldraw/tldraw": "workspace:*"
|
"@tldraw/tldraw": "workspace:*"
|
||||||
"@tldraw/tlschema": "workspace:*"
|
"@tldraw/tlschema": "workspace:*"
|
||||||
"@tldraw/tlstore": "workspace:*"
|
"@tldraw/tlstore": "workspace:*"
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
|
||||||
"@tldraw/ui": "workspace:*"
|
"@tldraw/ui": "workspace:*"
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
|
"@tldraw/validate": "workspace:*"
|
||||||
"@types/node": 18.15.0
|
"@types/node": 18.15.0
|
||||||
"@types/react": ^18.0.24
|
"@types/react": ^18.0.24
|
||||||
"@types/react-dom": ^18.0.6
|
"@types/react-dom": ^18.0.6
|
||||||
|
@ -4335,8 +4335,8 @@ __metadata:
|
||||||
"@tldraw/primitives": "workspace:*"
|
"@tldraw/primitives": "workspace:*"
|
||||||
"@tldraw/tlschema": "workspace:*"
|
"@tldraw/tlschema": "workspace:*"
|
||||||
"@tldraw/tlstore": "workspace:*"
|
"@tldraw/tlstore": "workspace:*"
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
|
"@tldraw/validate": "workspace:*"
|
||||||
"@types/benchmark": ^2.1.2
|
"@types/benchmark": ^2.1.2
|
||||||
"@types/crc": ^3.8.0
|
"@types/crc": ^3.8.0
|
||||||
"@types/lodash.throttle": ^4.1.7
|
"@types/lodash.throttle": ^4.1.7
|
||||||
|
@ -4375,9 +4375,9 @@ __metadata:
|
||||||
"@tldraw/editor": "workspace:*"
|
"@tldraw/editor": "workspace:*"
|
||||||
"@tldraw/primitives": "workspace:*"
|
"@tldraw/primitives": "workspace:*"
|
||||||
"@tldraw/tlstore": "workspace:*"
|
"@tldraw/tlstore": "workspace:*"
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
|
||||||
"@tldraw/ui": "workspace:*"
|
"@tldraw/ui": "workspace:*"
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
|
"@tldraw/validate": "workspace:*"
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
@ -4496,8 +4496,8 @@ __metadata:
|
||||||
resolution: "@tldraw/tlschema@workspace:packages/tlschema"
|
resolution: "@tldraw/tlschema@workspace:packages/tlschema"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@tldraw/tlstore": "workspace:*"
|
"@tldraw/tlstore": "workspace:*"
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
|
"@tldraw/validate": "workspace:*"
|
||||||
kleur: ^4.1.5
|
kleur: ^4.1.5
|
||||||
lazyrepo: 0.0.0-alpha.26
|
lazyrepo: 0.0.0-alpha.26
|
||||||
nanoid: 4.0.2
|
nanoid: 4.0.2
|
||||||
|
@ -4522,15 +4522,6 @@ __metadata:
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"@tldraw/tlvalidate@workspace:*, @tldraw/tlvalidate@workspace:packages/tlvalidate":
|
|
||||||
version: 0.0.0-use.local
|
|
||||||
resolution: "@tldraw/tlvalidate@workspace:packages/tlvalidate"
|
|
||||||
dependencies:
|
|
||||||
"@tldraw/utils": "workspace:*"
|
|
||||||
lazyrepo: 0.0.0-alpha.26
|
|
||||||
languageName: unknown
|
|
||||||
linkType: soft
|
|
||||||
|
|
||||||
"@tldraw/ui@workspace:*, @tldraw/ui@workspace:packages/ui":
|
"@tldraw/ui@workspace:*, @tldraw/ui@workspace:packages/ui":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@tldraw/ui@workspace:packages/ui"
|
resolution: "@tldraw/ui@workspace:packages/ui"
|
||||||
|
@ -4576,6 +4567,15 @@ __metadata:
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
"@tldraw/validate@workspace:*, @tldraw/validate@workspace:packages/validate":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "@tldraw/validate@workspace:packages/validate"
|
||||||
|
dependencies:
|
||||||
|
"@tldraw/utils": "workspace:*"
|
||||||
|
lazyrepo: 0.0.0-alpha.26
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
"@tldraw/vscode-editor@workspace:apps/vscode/editor":
|
"@tldraw/vscode-editor@workspace:apps/vscode/editor":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@tldraw/vscode-editor@workspace:apps/vscode/editor"
|
resolution: "@tldraw/vscode-editor@workspace:apps/vscode/editor"
|
||||||
|
|
Loading…
Reference in a new issue