@kitschpatrol/tldraw-cli 4.6.0 → 4.6.1

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/bin/cli.js CHANGED
@@ -786,7 +786,7 @@ var require_irregular_plurals2 = __commonJS({
786
786
  });
787
787
 
788
788
  // package.json
789
- var version = "4.6.0";
789
+ var version = "4.6.1";
790
790
 
791
791
  // node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/vendor/ansi-styles/index.js
792
792
  var ANSI_BACKGROUND_OFFSET = 10;
@@ -17230,6 +17230,7 @@ var TldrawController = class {
17230
17230
  });
17231
17231
  log_default.info(`Navigating to: ${this.href}`);
17232
17232
  await this.page.goto(this.href, { waitUntil: "networkidle0" });
17233
+ await this.page.waitForFunction("editor !== undefined");
17233
17234
  const shapeCount = await this.page.evaluate("editor.getCurrentPageShapes().length");
17234
17235
  this.isEmpty = shapeCount === 0;
17235
17236
  }
@@ -17310,6 +17311,7 @@ var TldrawController = class {
17310
17311
  await this.setCurrentPage(download.pageId);
17311
17312
  pageChanged = true;
17312
17313
  }
17314
+ await this.page.waitForFunction("editor !== undefined");
17313
17315
  if (download.frameId === void 0) {
17314
17316
  await this.page.evaluate("editor.selectAll()");
17315
17317
  } else {
package/dist/lib/index.js CHANGED
@@ -17036,6 +17036,7 @@ var TldrawController = class {
17036
17036
  });
17037
17037
  log_default.info(`Navigating to: ${this.href}`);
17038
17038
  await this.page.goto(this.href, { waitUntil: "networkidle0" });
17039
+ await this.page.waitForFunction("editor !== undefined");
17039
17040
  const shapeCount = await this.page.evaluate("editor.getCurrentPageShapes().length");
17040
17041
  this.isEmpty = shapeCount === 0;
17041
17042
  }
@@ -17116,6 +17117,7 @@ var TldrawController = class {
17116
17117
  await this.setCurrentPage(download.pageId);
17117
17118
  pageChanged = true;
17118
17119
  }
17120
+ await this.page.waitForFunction("editor !== undefined");
17119
17121
  if (download.frameId === void 0) {
17120
17122
  await this.page.evaluate("editor.selectAll()");
17121
17123
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/tldraw-cli",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "type": "module",
5
5
  "description": "A CLI tool for exporting tldraw sketch URLs and local .tldr files to SVG or PNG images.",
6
6
  "repository": {