kopia lustrzana https://github.com/Tldraw/Tldraw
Rename tlstore to store (#1507)
This PR renames the `@tldraw/tlstore` package to `@tldraw/store`, mainly to avoid confusion between `TLStore`. Will be doing the same with other packages. ### Change Type - [x] `major` — Breaking Change ### Release Notes - Replace @tldraw/tlstore with @tldraw/storepull/1512/head
rodzic
7307282f1f
commit
c1b84bf246
|
@ -61,9 +61,9 @@
|
|||
"@tldraw/editor": "workspace:*",
|
||||
"@tldraw/file-format": "workspace:*",
|
||||
"@tldraw/primitives": "workspace:*",
|
||||
"@tldraw/store": "workspace:*",
|
||||
"@tldraw/tldraw": "workspace:*",
|
||||
"@tldraw/tlschema": "workspace:*",
|
||||
"@tldraw/tlstore": "workspace:*",
|
||||
"@tldraw/ui": "workspace:*",
|
||||
"@tldraw/utils": "workspace:*",
|
||||
"@tldraw/validate": "workspace:*",
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
"devDependencies": {
|
||||
"@tldraw/editor": "workspace:*",
|
||||
"@tldraw/file-format": "workspace:*",
|
||||
"@tldraw/tlstore": "workspace:*",
|
||||
"@tldraw/store": "workspace:*",
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"@types/node-fetch": "^2.6.2",
|
||||
"@types/vscode": "^1.75.1",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { UnknownRecord } from '@tldraw/tlstore'
|
||||
import { UnknownRecord } from '@tldraw/store'
|
||||
import { isEqual } from 'lodash'
|
||||
import fetch from 'node-fetch'
|
||||
import * as vscode from 'vscode'
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Atom } from 'signia';
|
|||
import { Box2d } from '@tldraw/primitives';
|
||||
import { Box2dModel } from '@tldraw/tlschema';
|
||||
import { Computed } from 'signia';
|
||||
import { ComputedCache } from '@tldraw/tlstore';
|
||||
import { ComputedCache } from '@tldraw/store';
|
||||
import { CubicSpline2d } from '@tldraw/primitives';
|
||||
import { EASINGS } from '@tldraw/primitives';
|
||||
import { EmbedDefinition } from '@tldraw/tlschema';
|
||||
|
@ -23,11 +23,11 @@ import { getIndices } from '@tldraw/indices';
|
|||
import { getIndicesAbove } from '@tldraw/indices';
|
||||
import { getIndicesBelow } from '@tldraw/indices';
|
||||
import { getIndicesBetween } from '@tldraw/indices';
|
||||
import { HistoryEntry } from '@tldraw/tlstore';
|
||||
import { HistoryEntry } from '@tldraw/store';
|
||||
import { MatLike } from '@tldraw/primitives';
|
||||
import { Matrix2d } from '@tldraw/primitives';
|
||||
import { Matrix2dModel } from '@tldraw/primitives';
|
||||
import { Migrations } from '@tldraw/tlstore';
|
||||
import { Migrations } from '@tldraw/store';
|
||||
import { Polyline2d } from '@tldraw/primitives';
|
||||
import { default as React_2 } from 'react';
|
||||
import * as React_3 from 'react';
|
||||
|
@ -35,10 +35,10 @@ import { RotateCorner } from '@tldraw/primitives';
|
|||
import { SelectionCorner } from '@tldraw/primitives';
|
||||
import { SelectionEdge } from '@tldraw/primitives';
|
||||
import { SelectionHandle } from '@tldraw/primitives';
|
||||
import { SerializedSchema } from '@tldraw/tlstore';
|
||||
import { SerializedSchema } from '@tldraw/store';
|
||||
import { Signal } from 'signia';
|
||||
import { sortByIndex } from '@tldraw/indices';
|
||||
import { StoreSnapshot } from '@tldraw/tlstore';
|
||||
import { StoreSnapshot } from '@tldraw/store';
|
||||
import { StrokePoint } from '@tldraw/primitives';
|
||||
import { TLAlignType } from '@tldraw/tlschema';
|
||||
import { TLArrowheadType } from '@tldraw/tlschema';
|
||||
|
@ -93,7 +93,7 @@ import { TLUnknownShape } from '@tldraw/tlschema';
|
|||
import { TLUserDocument } from '@tldraw/tlschema';
|
||||
import { TLVideoAsset } from '@tldraw/tlschema';
|
||||
import { TLVideoShape } from '@tldraw/tlschema';
|
||||
import { UnknownRecord } from '@tldraw/tlstore';
|
||||
import { UnknownRecord } from '@tldraw/store';
|
||||
import { Vec2d } from '@tldraw/primitives';
|
||||
import { Vec2dModel } from '@tldraw/tlschema';
|
||||
import { VecLike } from '@tldraw/primitives';
|
||||
|
|
|
@ -47,8 +47,8 @@
|
|||
"dependencies": {
|
||||
"@tldraw/indices": "workspace:*",
|
||||
"@tldraw/primitives": "workspace:*",
|
||||
"@tldraw/store": "workspace:*",
|
||||
"@tldraw/tlschema": "workspace:*",
|
||||
"@tldraw/tlstore": "workspace:*",
|
||||
"@tldraw/utils": "workspace:*",
|
||||
"@tldraw/validate": "workspace:*",
|
||||
"@use-gesture/react": "^10.2.27",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Store, StoreSnapshot } from '@tldraw/store'
|
||||
import { TLAsset, TLInstanceId, TLRecord, TLStore } from '@tldraw/tlschema'
|
||||
import { Store, StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { annotateError } from '@tldraw/utils'
|
||||
import React, { memo, useCallback, useLayoutEffect, useState, useSyncExternalStore } from 'react'
|
||||
import { Editor } from './app/Editor'
|
||||
|
|
|
@ -21,6 +21,7 @@ import {
|
|||
intersectPolygonPolygon,
|
||||
pointInPolygon,
|
||||
} from '@tldraw/primitives'
|
||||
import { ComputedCache, HistoryEntry, RecordType, UnknownRecord } from '@tldraw/store'
|
||||
import {
|
||||
Box2dModel,
|
||||
CameraRecordType,
|
||||
|
@ -65,7 +66,6 @@ import {
|
|||
isShape,
|
||||
isShapeId,
|
||||
} from '@tldraw/tlschema'
|
||||
import { ComputedCache, HistoryEntry, RecordType, UnknownRecord } from '@tldraw/tlstore'
|
||||
import {
|
||||
annotateError,
|
||||
compact,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { RecordsDiff } from '@tldraw/store'
|
||||
import { isShape, TLParentId, TLRecord, TLShapeId, TLStore } from '@tldraw/tlschema'
|
||||
import { RecordsDiff } from '@tldraw/tlstore'
|
||||
import { computed, isUninitialized, RESET_VALUE } from 'signia'
|
||||
|
||||
type Parents2Children = Record<TLParentId, [id: TLShapeId, index: string][]>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { IncrementalSetConstructor } from '@tldraw/store'
|
||||
import {
|
||||
isPageId,
|
||||
isShape,
|
||||
|
@ -7,7 +8,6 @@ import {
|
|||
TLShapeId,
|
||||
TLStore,
|
||||
} from '@tldraw/tlschema'
|
||||
import { IncrementalSetConstructor } from '@tldraw/tlstore'
|
||||
import { computed, isUninitialized, RESET_VALUE, withDiff } from 'signia'
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { devFreeze } from '@tldraw/tlstore'
|
||||
import { devFreeze } from '@tldraw/store'
|
||||
import { atom, transact } from 'signia'
|
||||
import { uniqueId } from '../../utils/data'
|
||||
import { TLCommandHandler, TLHistoryEntry } from '../types/history-types'
|
||||
|
|
|
@ -10,6 +10,7 @@ import {
|
|||
Vec2d,
|
||||
VecLike,
|
||||
} from '@tldraw/primitives'
|
||||
import { ComputedCache } from '@tldraw/store'
|
||||
import {
|
||||
TLArrowheadType,
|
||||
TLArrowShape,
|
||||
|
@ -20,7 +21,6 @@ import {
|
|||
TLShapePartial,
|
||||
Vec2dModel,
|
||||
} from '@tldraw/tlschema'
|
||||
import { ComputedCache } from '@tldraw/tlstore'
|
||||
import { deepCopy, last, minBy } from '@tldraw/utils'
|
||||
import * as React from 'react'
|
||||
import { computed, EMPTY_ARRAY } from 'signia'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { Box2d, linesIntersect, Matrix2d, VecLike } from '@tldraw/primitives'
|
||||
import { ComputedCache } from '@tldraw/store'
|
||||
import {
|
||||
TLBaseShape,
|
||||
TLHandle,
|
||||
|
@ -8,7 +9,6 @@ import {
|
|||
TLUnknownShape,
|
||||
Vec2dModel,
|
||||
} from '@tldraw/tlschema'
|
||||
import { ComputedCache } from '@tldraw/tlstore'
|
||||
import { computed, EMPTY_ARRAY } from 'signia'
|
||||
import { WeakMapCache } from '../../utils/WeakMapCache'
|
||||
import type { Editor } from '../Editor'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { SerializedSchema } from '@tldraw/store'
|
||||
import { TLAsset, TLShape, TLShapeId } from '@tldraw/tlschema'
|
||||
import { SerializedSchema } from '@tldraw/tlstore'
|
||||
|
||||
/** @public */
|
||||
export interface TLClipboardModel {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { defineMigrations, migrate } from '@tldraw/store'
|
||||
import { getDefaultTranslationLocale } from '@tldraw/tlschema'
|
||||
import { defineMigrations, migrate } from '@tldraw/tlstore'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { atom } from 'signia'
|
||||
import { uniqueId } from '../utils/data'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { Migrations, Store, StoreSnapshot } from '@tldraw/store'
|
||||
import {
|
||||
InstanceRecordType,
|
||||
TLDOCUMENT_ID,
|
||||
|
@ -6,7 +7,6 @@ import {
|
|||
TLStore,
|
||||
createTLSchema,
|
||||
} from '@tldraw/tlschema'
|
||||
import { Migrations, Store, StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { TLShapeUtilConstructor } from '../app/shapeutils/TLShapeUtil'
|
||||
|
||||
/** @public */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { RecordsDiff, SerializedSchema, compareSchemas, squashRecordDiffs } from '@tldraw/store'
|
||||
import { TLInstanceId, TLRecord, TLStore } from '@tldraw/tlschema'
|
||||
import { RecordsDiff, SerializedSchema, compareSchemas, squashRecordDiffs } from '@tldraw/tlstore'
|
||||
import { assert, hasOwnProperty } from '@tldraw/utils'
|
||||
import { transact } from 'signia'
|
||||
import { showCantReadFromIndexDbAlert, showCantWriteToIndexDbAlert } from './alerts'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { RecordsDiff, SerializedSchema, StoreSnapshot } from '@tldraw/store'
|
||||
import { TLRecord, TLStoreSchema } from '@tldraw/tlschema'
|
||||
import { RecordsDiff, SerializedSchema, StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { IDBPDatabase, openDB } from 'idb'
|
||||
import { STORE_PREFIX, addDbName, getAllIndexDbNames } from './persistence-constants'
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"references": [
|
||||
{ "path": "../primitives" },
|
||||
{ "path": "../tlschema" },
|
||||
{ "path": "../tlstore" },
|
||||
{ "path": "../store" },
|
||||
{ "path": "../validate" },
|
||||
{ "path": "../utils" },
|
||||
{ "path": "../indices" }
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
```ts
|
||||
|
||||
import { Editor } from '@tldraw/editor';
|
||||
import { MigrationFailureReason } from '@tldraw/tlstore';
|
||||
import { MigrationFailureReason } from '@tldraw/store';
|
||||
import { Result } from '@tldraw/utils';
|
||||
import { SerializedSchema } from '@tldraw/tlstore';
|
||||
import { SerializedSchema } from '@tldraw/store';
|
||||
import { TLInstanceId } from '@tldraw/editor';
|
||||
import { TLStore } from '@tldraw/editor';
|
||||
import { TLUiToastsContextType } from '@tldraw/ui';
|
||||
import { TLUiTranslationKey } from '@tldraw/ui';
|
||||
import { UnknownRecord } from '@tldraw/tlstore';
|
||||
import { UnknownRecord } from '@tldraw/store';
|
||||
|
||||
// @internal (undocumented)
|
||||
export function buildFromV1Document(editor: Editor, document: LegacyTldrawDocument): void;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"dependencies": {
|
||||
"@tldraw/editor": "workspace:*",
|
||||
"@tldraw/primitives": "workspace:*",
|
||||
"@tldraw/tlstore": "workspace:*",
|
||||
"@tldraw/store": "workspace:*",
|
||||
"@tldraw/ui": "workspace:*",
|
||||
"@tldraw/utils": "workspace:*",
|
||||
"@tldraw/validate": "workspace:*"
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
SerializedSchema,
|
||||
StoreSnapshot,
|
||||
UnknownRecord,
|
||||
} from '@tldraw/tlstore'
|
||||
} from '@tldraw/store'
|
||||
import { TLUiToastsContextType, TLUiTranslationKey } from '@tldraw/ui'
|
||||
import { exhaustiveSwitchError, Result } from '@tldraw/utils'
|
||||
import { T } from '@tldraw/validate'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { createCustomShapeId, createTLStore, InstanceRecordType, TLStore } from '@tldraw/editor'
|
||||
import { MigrationFailureReason, UnknownRecord } from '@tldraw/tlstore'
|
||||
import { MigrationFailureReason, UnknownRecord } from '@tldraw/store'
|
||||
import { assert } from '@tldraw/utils'
|
||||
import { parseTldrawJsonFile as _parseTldrawJsonFile, TldrawFile } from '../lib/file'
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"references": [
|
||||
{ "path": "../editor" },
|
||||
{ "path": "../tlstore" },
|
||||
{ "path": "../store" },
|
||||
{ "path": "../validate" },
|
||||
{ "path": "../primitives" },
|
||||
{ "path": "../utils" },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## API Report File for "@tldraw/tlstore"
|
||||
## API Report File for "@tldraw/store"
|
||||
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@tldraw/tlstore",
|
||||
"name": "@tldraw/store",
|
||||
"description": "A tiny little drawing app (store).",
|
||||
"version": "2.0.0-alpha.12",
|
||||
"packageManager": "yarn@3.5.0",
|
|
@ -4,17 +4,17 @@
|
|||
|
||||
```ts
|
||||
|
||||
import { BaseRecord } from '@tldraw/tlstore';
|
||||
import { ID } from '@tldraw/tlstore';
|
||||
import { Migrations } from '@tldraw/tlstore';
|
||||
import { RecordType } from '@tldraw/tlstore';
|
||||
import { BaseRecord } from '@tldraw/store';
|
||||
import { ID } from '@tldraw/store';
|
||||
import { Migrations } from '@tldraw/store';
|
||||
import { RecordType } from '@tldraw/store';
|
||||
import { Signal } from 'signia';
|
||||
import { Store } from '@tldraw/tlstore';
|
||||
import { StoreSchema } from '@tldraw/tlstore';
|
||||
import { StoreSchemaOptions } from '@tldraw/tlstore';
|
||||
import { StoreSnapshot } from '@tldraw/tlstore';
|
||||
import { Store } from '@tldraw/store';
|
||||
import { StoreSchema } from '@tldraw/store';
|
||||
import { StoreSchemaOptions } from '@tldraw/store';
|
||||
import { StoreSnapshot } from '@tldraw/store';
|
||||
import { T } from '@tldraw/validate';
|
||||
import { UnknownRecord } from '@tldraw/tlstore';
|
||||
import { UnknownRecord } from '@tldraw/store';
|
||||
|
||||
// @internal (undocumented)
|
||||
export const alignValidator: T.Validator<"end" | "middle" | "start">;
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@tldraw/tlstore": "workspace:*",
|
||||
"@tldraw/store": "workspace:*",
|
||||
"@tldraw/utils": "workspace:*",
|
||||
"@tldraw/validate": "workspace:*",
|
||||
"nanoid": "4.0.2"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Store, StoreSchema, StoreSchemaOptions, StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { Store, StoreSchema, StoreSchemaOptions, StoreSnapshot } from '@tldraw/store'
|
||||
import { annotateError, structuredClone } from '@tldraw/utils'
|
||||
import { TLRecord } from './TLRecord'
|
||||
import { CameraRecordType } from './records/TLCamera'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { createAssetValidator, TLBaseAsset } from './asset-validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord } from '@tldraw/tlstore'
|
||||
import { BaseRecord } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLAssetId } from '../records/TLAsset'
|
||||
import { assetIdValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Migrations, StoreSchema, createRecordType, defineMigrations } from '@tldraw/tlstore'
|
||||
import { Migrations, StoreSchema, createRecordType, defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLRecord } from './TLRecord'
|
||||
import { TLStoreProps, createIntegrityChecker, onValidationFailure } from './TLStore'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { StoreSnapshot } from '@tldraw/store'
|
||||
import { TLRecord } from './TLRecord'
|
||||
import { Vec2dModel } from './geometry-types'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createRecordType, Migrations, Store } from '@tldraw/tlstore'
|
||||
import { createRecordType, Migrations, Store } from '@tldraw/store'
|
||||
import { structuredClone } from '@tldraw/utils'
|
||||
import fs from 'fs'
|
||||
import { imageAssetMigrations } from './assets/TLImageAsset'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLBaseAsset } from '../assets/asset-validation'
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { idValidator } from '../validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { Box2dModel } from '../geometry-types'
|
||||
import { TL_STYLE_TYPES, TLStyleType } from '../style-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { idValidator, instanceIdValidator, pageIdValidator, shapeIdValidator } from '../validation'
|
||||
import { TLCamera, TLCameraId } from './TLCamera'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { Box2dModel } from '../geometry-types'
|
||||
import { cursorTypeValidator, scribbleTypeValidator, TLCursor, TLScribble } from '../ui-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { pageIdValidator } from '../validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { idValidator } from '../validation'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations, ID, UnknownRecord } from '@tldraw/tlstore'
|
||||
import { defineMigrations, ID, UnknownRecord } from '@tldraw/store'
|
||||
import { nanoid } from 'nanoid'
|
||||
import { TLBaseShape } from '../shapes/shape-validation'
|
||||
import { TLArrowShape } from '../shapes/TLArrowShape'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/tlstore'
|
||||
import { BaseRecord, createRecordType, defineMigrations, ID } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { idValidator, instanceIdValidator, pageIdValidator } from '../validation'
|
||||
import { TLInstance } from './TLInstance'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations, StoreSnapshot } from '@tldraw/tlstore'
|
||||
import { defineMigrations, StoreSnapshot } from '@tldraw/store'
|
||||
import { TLRecord } from './TLRecord'
|
||||
|
||||
const Versions = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { Vec2dModel } from '../geometry-types'
|
||||
import { TLShapeId } from '../records/TLShape'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLAssetId } from '../records/TLAsset'
|
||||
import { TLOpacityType } from '../style-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { Vec2dModel } from '../geometry-types'
|
||||
import { TLColorType, TLDashType, TLFillType, TLOpacityType, TLSizeType } from '../style-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLOpacityType } from '../style-types'
|
||||
import { opacityValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLOpacityType } from '../style-types'
|
||||
import { opacityValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import {
|
||||
TLAlignType,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLOpacityType } from '../style-types'
|
||||
import { opacityValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLColorType, TLOpacityType, TLSizeType } from '../style-types'
|
||||
import { colorValidator, opacityValidator, sizeValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLColorType, TLDashType, TLIconType, TLOpacityType, TLSizeType } from '../style-types'
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { Vec2dModel } from '../geometry-types'
|
||||
import { TLAssetId } from '../records/TLAsset'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLColorType, TLDashType, TLOpacityType, TLSizeType, TLSplineType } from '../style-types'
|
||||
import { TLHandle, handleTypeValidator } from '../ui-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLAlignType, TLColorType, TLFontType, TLOpacityType, TLSizeType } from '../style-types'
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { defineMigrations } from '@tldraw/tlstore'
|
||||
import { defineMigrations } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLAssetId } from '../records/TLAsset'
|
||||
import { TLOpacityType } from '../style-types'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseRecord } from '@tldraw/tlstore'
|
||||
import { BaseRecord } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import { TLParentId, TLShapeId } from '../records/TLShape'
|
||||
import { parentIdValidator, shapeIdValidator } from '../validation'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { ID, UnknownRecord } from '@tldraw/tlstore'
|
||||
import type { ID, UnknownRecord } from '@tldraw/store'
|
||||
import { T } from '@tldraw/validate'
|
||||
import type { TLAssetId } from './records/TLAsset'
|
||||
import type { TLInstanceId } from './records/TLInstance'
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"outDir": "./.tsbuild",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"references": [{ "path": "../tlstore" }, { "path": "../validate" }, { "path": "../utils" }]
|
||||
"references": [{ "path": "../store" }, { "path": "../validate" }, { "path": "../utils" }]
|
||||
}
|
||||
|
|
|
@ -4294,9 +4294,9 @@ __metadata:
|
|||
"@tldraw/editor": "workspace:*"
|
||||
"@tldraw/file-format": "workspace:*"
|
||||
"@tldraw/primitives": "workspace:*"
|
||||
"@tldraw/store": "workspace:*"
|
||||
"@tldraw/tldraw": "workspace:*"
|
||||
"@tldraw/tlschema": "workspace:*"
|
||||
"@tldraw/tlstore": "workspace:*"
|
||||
"@tldraw/ui": "workspace:*"
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@tldraw/validate": "workspace:*"
|
||||
|
@ -4333,8 +4333,8 @@ __metadata:
|
|||
"@testing-library/react": ^14.0.0
|
||||
"@tldraw/indices": "workspace:*"
|
||||
"@tldraw/primitives": "workspace:*"
|
||||
"@tldraw/store": "workspace:*"
|
||||
"@tldraw/tlschema": "workspace:*"
|
||||
"@tldraw/tlstore": "workspace:*"
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@tldraw/validate": "workspace:*"
|
||||
"@types/benchmark": ^2.1.2
|
||||
|
@ -4374,7 +4374,7 @@ __metadata:
|
|||
dependencies:
|
||||
"@tldraw/editor": "workspace:*"
|
||||
"@tldraw/primitives": "workspace:*"
|
||||
"@tldraw/tlstore": "workspace:*"
|
||||
"@tldraw/store": "workspace:*"
|
||||
"@tldraw/ui": "workspace:*"
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@tldraw/validate": "workspace:*"
|
||||
|
@ -4470,6 +4470,22 @@ __metadata:
|
|||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@tldraw/store@workspace:*, @tldraw/store@workspace:packages/store":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@tldraw/store@workspace:packages/store"
|
||||
dependencies:
|
||||
"@peculiar/webcrypto": ^1.4.0
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@types/lodash.isequal": ^4.5.6
|
||||
lazyrepo: 0.0.0-alpha.26
|
||||
lodash.isequal: ^4.5.0
|
||||
nanoid: 4.0.2
|
||||
raf: ^3.4.1
|
||||
peerDependencies:
|
||||
signia: "*"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@tldraw/tldraw@workspace:*, @tldraw/tldraw@workspace:packages/tldraw":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@tldraw/tldraw@workspace:packages/tldraw"
|
||||
|
@ -4495,7 +4511,7 @@ __metadata:
|
|||
version: 0.0.0-use.local
|
||||
resolution: "@tldraw/tlschema@workspace:packages/tlschema"
|
||||
dependencies:
|
||||
"@tldraw/tlstore": "workspace:*"
|
||||
"@tldraw/store": "workspace:*"
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@tldraw/validate": "workspace:*"
|
||||
kleur: ^4.1.5
|
||||
|
@ -4506,22 +4522,6 @@ __metadata:
|
|||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@tldraw/tlstore@workspace:*, @tldraw/tlstore@workspace:packages/tlstore":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@tldraw/tlstore@workspace:packages/tlstore"
|
||||
dependencies:
|
||||
"@peculiar/webcrypto": ^1.4.0
|
||||
"@tldraw/utils": "workspace:*"
|
||||
"@types/lodash.isequal": ^4.5.6
|
||||
lazyrepo: 0.0.0-alpha.26
|
||||
lodash.isequal: ^4.5.0
|
||||
nanoid: 4.0.2
|
||||
raf: ^3.4.1
|
||||
peerDependencies:
|
||||
signia: "*"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@tldraw/ui@workspace:*, @tldraw/ui@workspace:packages/ui":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@tldraw/ui@workspace:packages/ui"
|
||||
|
@ -17033,7 +17033,7 @@ __metadata:
|
|||
dependencies:
|
||||
"@tldraw/editor": "workspace:*"
|
||||
"@tldraw/file-format": "workspace:*"
|
||||
"@tldraw/tlstore": "workspace:*"
|
||||
"@tldraw/store": "workspace:*"
|
||||
"@types/fs-extra": ^11.0.1
|
||||
"@types/node-fetch": ^2.6.2
|
||||
"@types/vscode": ^1.75.1
|
||||
|
|
Ładowanie…
Reference in New Issue