@tldraw/editor 3.10.1 → 3.11.0-canary.3c3cc5246642

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.
Files changed (34) hide show
  1. package/dist-cjs/index.d.ts +7 -1
  2. package/dist-cjs/index.js +1 -1
  3. package/dist-cjs/lib/editor/Editor.js.map +2 -2
  4. package/dist-cjs/lib/editor/managers/FocusManager.js +15 -0
  5. package/dist-cjs/lib/editor/managers/FocusManager.js.map +2 -2
  6. package/dist-cjs/lib/exports/getSvgJsx.js +1 -1
  7. package/dist-cjs/lib/exports/getSvgJsx.js.map +2 -2
  8. package/dist-cjs/lib/license/Watermark.js +7 -1
  9. package/dist-cjs/lib/license/Watermark.js.map +2 -2
  10. package/dist-cjs/lib/options.js +2 -1
  11. package/dist-cjs/lib/options.js.map +2 -2
  12. package/dist-cjs/version.js +3 -3
  13. package/dist-cjs/version.js.map +1 -1
  14. package/dist-esm/index.d.mts +7 -1
  15. package/dist-esm/index.mjs +1 -1
  16. package/dist-esm/lib/editor/Editor.mjs.map +2 -2
  17. package/dist-esm/lib/editor/managers/FocusManager.mjs +15 -0
  18. package/dist-esm/lib/editor/managers/FocusManager.mjs.map +2 -2
  19. package/dist-esm/lib/exports/getSvgJsx.mjs +1 -1
  20. package/dist-esm/lib/exports/getSvgJsx.mjs.map +2 -2
  21. package/dist-esm/lib/license/Watermark.mjs +7 -1
  22. package/dist-esm/lib/license/Watermark.mjs.map +2 -2
  23. package/dist-esm/lib/options.mjs +2 -1
  24. package/dist-esm/lib/options.mjs.map +2 -2
  25. package/dist-esm/version.mjs +3 -3
  26. package/dist-esm/version.mjs.map +1 -1
  27. package/editor.css +1 -1
  28. package/package.json +7 -7
  29. package/src/lib/editor/Editor.ts +1 -1
  30. package/src/lib/editor/managers/FocusManager.ts +18 -0
  31. package/src/lib/exports/getSvgJsx.tsx +1 -1
  32. package/src/lib/license/Watermark.tsx +7 -1
  33. package/src/lib/options.ts +6 -0
  34. package/src/version.ts +3 -3
@@ -892,6 +892,7 @@ export declare const defaultTldrawOptions: {
892
892
  readonly maxPages: 40;
893
893
  readonly maxShapesPerPage: 4000;
894
894
  readonly multiClickDurationMs: 200;
895
+ readonly nonce: undefined;
895
896
  readonly temporaryAssetPreviewLifetimeMs: 180000;
896
897
  readonly textShadowLod: 0.35;
897
898
  };
@@ -2920,7 +2921,7 @@ export declare class Editor extends EventEmitter<TLEventMap> {
2920
2921
  * Create bindings from a list of partial bindings. You can omit the ID and most props of a
2921
2922
  * binding, but the `type`, `toId`, and `fromId` must all be provided.
2922
2923
  */
2923
- createBindings(partials: TLBindingCreate[]): this;
2924
+ createBindings<B extends TLBinding = TLBinding>(partials: TLBindingCreate<B>[]): this;
2924
2925
  /**
2925
2926
  * Create a single binding from a partial. You can omit the ID and most props of a binding, but
2926
2927
  * the `type`, `toId`, and `fromId` must all be provided.
@@ -6184,6 +6185,11 @@ export declare interface TldrawOptions {
6184
6185
  * away and let the fonts load in in the background.
6185
6186
  */
6186
6187
  readonly maxFontsToLoadBeforeRender: number;
6188
+ /**
6189
+ * If you have a CSP policy that blocks inline styles, you can use this prop to provide a
6190
+ * nonce to use in the editor's styles.
6191
+ */
6192
+ readonly nonce: string | undefined;
6187
6193
  }
6188
6194
 
6189
6195
  /** @public */
package/dist-cjs/index.js CHANGED
@@ -374,7 +374,7 @@ function debugEnableLicensing() {
374
374
  }
375
375
  (0, import_utils.registerTldrawLibraryVersion)(
376
376
  "@tldraw/editor",
377
- "3.10.1",
377
+ "3.11.0-canary.3c3cc5246642",
378
378
  "cjs"
379
379
  );
380
380
  //# sourceMappingURL=index.js.map