@tldraw/sync-core 4.3.0-next.705b6ec94f43 → 4.3.0-next.7f179bd04d6c

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.js CHANGED
@@ -51,7 +51,7 @@ var import_TLSyncClient = require("./lib/TLSyncClient");
51
51
  var import_TLSyncRoom = require("./lib/TLSyncRoom");
52
52
  (0, import_utils.registerTldrawLibraryVersion)(
53
53
  "@tldraw/sync-core",
54
- "4.3.0-next.705b6ec94f43",
54
+ "4.3.0-next.7f179bd04d6c",
55
55
  "cjs"
56
56
  );
57
57
  //# sourceMappingURL=index.js.map
@@ -26,7 +26,7 @@ import {
26
26
  } from "./lib/TLSyncRoom.mjs";
27
27
  registerTldrawLibraryVersion(
28
28
  "@tldraw/sync-core",
29
- "4.3.0-next.705b6ec94f43",
29
+ "4.3.0-next.7f179bd04d6c",
30
30
  "esm"
31
31
  );
32
32
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/sync-core",
3
3
  "description": "tldraw infinite canvas SDK (multiplayer sync).",
4
- "version": "4.3.0-next.705b6ec94f43",
4
+ "version": "4.3.0-next.7f179bd04d6c",
5
5
  "author": {
6
6
  "name": "tldraw GB Ltd.",
7
7
  "email": "hello@tldraw.com"
@@ -48,17 +48,17 @@
48
48
  "@types/uuid-readable": "^0.0.3",
49
49
  "react": "^18.3.1",
50
50
  "react-dom": "^18.3.1",
51
- "tldraw": "4.3.0-next.705b6ec94f43",
51
+ "tldraw": "4.3.0-next.7f179bd04d6c",
52
52
  "typescript": "^5.8.3",
53
53
  "uuid-by-string": "^4.0.0",
54
54
  "uuid-readable": "^0.0.2",
55
55
  "vitest": "^3.2.4"
56
56
  },
57
57
  "dependencies": {
58
- "@tldraw/state": "4.3.0-next.705b6ec94f43",
59
- "@tldraw/store": "4.3.0-next.705b6ec94f43",
60
- "@tldraw/tlschema": "4.3.0-next.705b6ec94f43",
61
- "@tldraw/utils": "4.3.0-next.705b6ec94f43",
58
+ "@tldraw/state": "4.3.0-next.7f179bd04d6c",
59
+ "@tldraw/store": "4.3.0-next.7f179bd04d6c",
60
+ "@tldraw/tlschema": "4.3.0-next.7f179bd04d6c",
61
+ "@tldraw/utils": "4.3.0-next.7f179bd04d6c",
62
62
  "nanoevents": "^7.0.1",
63
63
  "ws": "^8.18.0"
64
64
  },
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Editor,
3
3
  PageRecordType,
4
- TLArrowBinding,
5
4
  TLPage,
6
5
  TLPageId,
7
6
  TLShape,
@@ -41,8 +40,8 @@ export type Op =
41
40
  }
42
41
  | {
43
42
  type: 'create-arrow'
44
- start: TLArrowBinding | VecModel
45
- end: TLArrowBinding | VecModel
43
+ start: VecModel
44
+ end: VecModel
46
45
  }
47
46
  | {
48
47
  type: 'delete-shape'
@@ -315,8 +314,8 @@ export class FuzzEditor extends RandomSource {
315
314
  x: 0,
316
315
  y: 0,
317
316
  props: {
318
- start: op.start,
319
- end: op.end,
317
+ start: op.start as any,
318
+ end: op.end as any,
320
319
  },
321
320
  })
322
321
  break
@@ -169,7 +169,7 @@ describe('TLSyncRoom', () => {
169
169
 
170
170
  const room = new TLSyncRoom({
171
171
  schema,
172
- snapshot: makeSnapshot([...records, oldArrow], {
172
+ snapshot: makeSnapshot([...records, oldArrow as any], {
173
173
  schema: oldSerializedSchema,
174
174
  }),
175
175
  })
@@ -1,7 +1,5 @@
1
1
  import {
2
2
  Editor,
3
- TLArrowBinding,
4
- TLArrowShape,
5
3
  TLRecord,
6
4
  TLStore,
7
5
  computed,
@@ -111,9 +109,9 @@ let totalNumShapes = 0
111
109
  let totalNumPages = 0
112
110
 
113
111
  function arrowsAreSound(editor: Editor) {
114
- const arrows = editor.getCurrentPageShapes().filter((s): s is TLArrowShape => s.type === 'arrow')
112
+ const arrows = editor.getCurrentPageShapes().filter((s) => s.type === 'arrow')
115
113
  for (const arrow of arrows) {
116
- const bindings = editor.getBindingsFromShape<TLArrowBinding>(arrow, 'arrow')
114
+ const bindings = editor.getBindingsFromShape(arrow, 'arrow')
117
115
  const terminalsSeen = new Set()
118
116
  for (const binding of bindings) {
119
117
  if (terminalsSeen.has(binding.props.terminal)) {