@inkandswitch/patchwork-pkg-base 0.0.83 → 0.0.85
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/module-settings-url +1 -1
- package/package.json +1 -1
- package/packages/llm-host/dist/LlmConfigTray-CkM9XUX1.js +600 -0
- package/packages/llm-host/dist/index.js +1 -1
- package/packages/tldraw4/dist/tool.js +5 -6
- package/packages/tldraw4/dist/tool.js.map +2 -2
- package/packages/tldraw5/dist/tool.js +5 -6
- package/packages/tldraw5/dist/tool.js.map +2 -2
- package/plugin-registry-url +1 -1
- package/packages/llm-host/dist/LlmConfigTray-Ck7LaNf9.js +0 -595
|
@@ -3211,12 +3211,11 @@ function TldrawInner(props) {
|
|
|
3211
3211
|
const bytes = new Uint8Array(await file.arrayBuffer());
|
|
3212
3212
|
const ext = extensionForMimeType(file.type);
|
|
3213
3213
|
const name = file.name && file.name !== "image.png" ? file.name : `Pasted image on ${(/* @__PURE__ */ new Date()).toLocaleDateString()}.${ext}`;
|
|
3214
|
-
const fileHandle = repo.
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
doc.name = name;
|
|
3214
|
+
const fileHandle = await repo.create2({
|
|
3215
|
+
content: bytes,
|
|
3216
|
+
extension: ext,
|
|
3217
|
+
mimeType: file.type,
|
|
3218
|
+
name
|
|
3220
3219
|
});
|
|
3221
3220
|
const asset = await getAssetInfo(editor, file, id);
|
|
3222
3221
|
if (!asset) throw new Error(`unsupported asset type: ${file.type}`);
|