ryugi-artifacts 1.41.1 → 1.42.2

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/cli.cjs CHANGED
@@ -1532,7 +1532,7 @@ async function main(argv) {
1532
1532
  return await monitor({ json: !!values.json }, emit);
1533
1533
  }
1534
1534
  if (command === "--version" || command === "-v") {
1535
- console.log("1.41.1");
1535
+ console.log("1.42.2");
1536
1536
  return 0;
1537
1537
  }
1538
1538
  if (command === "--help" || command === "-h") {
package/dist/server.cjs CHANGED
@@ -88724,6 +88724,9 @@ function installSnapshot(win, serialize) {
88724
88724
  };
88725
88725
  if (doc.readyState === "complete") void settle();
88726
88726
  else win.addEventListener("load", () => void settle(), { once: true });
88727
+ const interacted = () => post("interacted");
88728
+ win.addEventListener("pointerdown", interacted, true);
88729
+ win.addEventListener("keydown", interacted, true);
88727
88730
  const own = (node) => !!node && (node.nodeType === 1 ? node : node.parentElement)?.closest?.("[data-ryugi-inspector]") != null;
88728
88731
  let changed = 0;
88729
88732
  const observer = new win.MutationObserver((records) => {
@@ -88866,6 +88869,9 @@ async function serializeBoard(win) {
88866
88869
  }
88867
88870
  await Promise.all(jobs);
88868
88871
  for (const element of clone.querySelectorAll("script, noscript, link, [data-ryugi-inspector]")) element.remove();
88872
+ const settled = doc.createElement("style");
88873
+ settled.textContent = "*, *::before, *::after { animation-delay: -99999s !important; animation-play-state: paused !important; transition: none !important }";
88874
+ clone.append(settled);
88869
88875
  const width = win.innerWidth, height = win.innerHeight;
88870
88876
  const xhtml = new win.XMLSerializer().serializeToString(clone);
88871
88877
  return { svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}"><foreignObject x="0" y="0" width="100%" height="100%">${xhtml}</foreignObject></svg>`, width, height };
@@ -90190,7 +90196,7 @@ function sharedComments(file) {
90190
90196
  function publishPayload(ref, dir, title, payload, comments = emptyComments()) {
90191
90197
  if (ref.type === "artboard") {
90192
90198
  const { canvas, layout, versions } = payload;
90193
- return { canvas, layout, versions };
90199
+ return { canvas, layout, versions, snapshots: true };
90194
90200
  }
90195
90201
  if (ref.type === "document") return { title, state: parseDocument2(import_node_fs18.default.readFileSync(import_node_path18.default.join(dir, "doc.xml"), "utf8")), comments: sharedComments(comments) };
90196
90202
  return { title };
@@ -92369,7 +92375,7 @@ function touchEntry(dir, entry) {
92369
92375
  }
92370
92376
 
92371
92377
  // package.json
92372
- var version = "1.41.1";
92378
+ var version = "1.42.2";
92373
92379
 
92374
92380
  // src/server/main.ts
92375
92381
  async function main() {