@opul/cli 0.1.4 → 0.1.5

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 (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -274,6 +274,9 @@ function overlayInitSource() {
274
274
  }
275
275
  function build() {
276
276
  ensureFont();
277
+ const stale = document.getElementById("__opul_root");
278
+ if (stale)
279
+ stale.remove();
277
280
  root = document.createElement("div");
278
281
  root.id = "__opul_root";
279
282
  root.style.cssText = "position:fixed;inset:0;z-index:2147483647;pointer-events:none;font-family:'Plus Jakarta Sans',system-ui,sans-serif;";
@@ -293,11 +296,11 @@ function overlayInitSource() {
293
296
  function ready() {
294
297
  return new Promise((res) => {
295
298
  if (document.body) {
296
- build();
299
+ ensure();
297
300
  res();
298
301
  } else {
299
302
  document.addEventListener("DOMContentLoaded", () => {
300
- build();
303
+ ensure();
301
304
  res();
302
305
  });
303
306
  }
@@ -1481,7 +1484,7 @@ function fail4(msg) {
1481
1484
 
1482
1485
  // src/index.ts
1483
1486
  var program = new Command();
1484
- program.name("opul").description("Record a product demo from your running web app.").version("0.1.4");
1487
+ program.name("opul").description("Record a product demo from your running web app.").version("0.1.5");
1485
1488
  program.command("init").description("Create an opul.steps.json stub").option("--out <file>", "output path", "opul.steps.json").action(initCommand);
1486
1489
  program.command("doctor").description("Check that Chrome and ffmpeg are installed").action(doctorCommand);
1487
1490
  program.command("record").description("Click through your app to generate a steps file").option("--url <url>", "app URL to open").option("--out <file>", "steps file to write", "opul.steps.json").option("--name <name>", "product/demo name").option("--chrome <path>", "path to Chrome executable").action(recordCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opul/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Record a polished product-demo video from your running web app — from the terminal.",
5
5
  "type": "module",
6
6
  "bin": {