@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.
- package/dist-cjs/index.d.ts +7 -1
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/editor/managers/FocusManager.js +15 -0
- package/dist-cjs/lib/editor/managers/FocusManager.js.map +2 -2
- package/dist-cjs/lib/exports/getSvgJsx.js +1 -1
- package/dist-cjs/lib/exports/getSvgJsx.js.map +2 -2
- package/dist-cjs/lib/license/Watermark.js +7 -1
- package/dist-cjs/lib/license/Watermark.js.map +2 -2
- package/dist-cjs/lib/options.js +2 -1
- package/dist-cjs/lib/options.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +7 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/editor/managers/FocusManager.mjs +15 -0
- package/dist-esm/lib/editor/managers/FocusManager.mjs.map +2 -2
- package/dist-esm/lib/exports/getSvgJsx.mjs +1 -1
- package/dist-esm/lib/exports/getSvgJsx.mjs.map +2 -2
- package/dist-esm/lib/license/Watermark.mjs +7 -1
- package/dist-esm/lib/license/Watermark.mjs.map +2 -2
- package/dist-esm/lib/options.mjs +2 -1
- package/dist-esm/lib/options.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/editor.css +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +1 -1
- package/src/lib/editor/managers/FocusManager.ts +18 -0
- package/src/lib/exports/getSvgJsx.tsx +1 -1
- package/src/lib/license/Watermark.tsx +7 -1
- package/src/lib/options.ts +6 -0
- package/src/version.ts +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -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 */
|