@snowcone-app/canvas 0.44.0 → 0.44.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/embed.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as a, g as t, h as o, K as r, N as i, O as n, P as d, Q as m, R as u, b as l, a as E, j as c, k as p, l as g } from "./useCommands-BrkGKdXr.js";
2
- import { E as x, R as C, a as S, b as T, S as P, c as R, d as b, e as B, f as v, g as y, i as F, h as k, p as h, s as D, j as I, k as K, l as L, v as w } from "./embed-DnjyfavG.js";
2
+ import { E as x, R as C, a as S, b as T, S as P, c as R, d as b, e as B, f as v, g as y, i as F, h as k, p as h, s as D, j as I, k as K, l as L, v as w } from "./embed-DNWM7gZL.js";
3
3
  import { t as M, Z as j } from "./FontAnalyzer-Ds3Wdba7.js";
4
4
  import { D as N, f as _, n as z, m as H, b as J } from "./design-builder-DCHVrEFV.js";
5
5
  import { D as Q, T as V, r as Y, u as Z, a as q, b as U, c as W, d as X, e as $, w as ee } from "./template-fields-CK7Uvvc8.js";
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { e as u } from "./useCommands-BrkGKdXr.js";
2
2
  import { C as l, f as x, g as A, h as I, b as g, a as v, j as T, k as L, l as B } from "./useCommands-BrkGKdXr.js";
3
- import { E as P, S as _, S as y, u as R, a as O } from "./SnowconeCanvas-C-AGGT44.js";
3
+ import { E as P, S as _, S as y, u as R, a as O } from "./SnowconeCanvas-DjszZvte.js";
4
4
  import { E as z, c as w } from "./adjust-CDVzlVBY.js";
5
5
  import { b as m, e as d } from "./design-builder-DCHVrEFV.js";
6
6
  import { C as N, D as V, f as D, s as b } from "./design-builder-DCHVrEFV.js";
7
7
  import { T as G, r as H, u as U, a as Y, b as Z, c as j, d as k, e as J, w as q } from "./template-fields-CK7Uvvc8.js";
8
- import { A as W, C as X, E as $, M as ee, P as se, r as ae, v as te } from "./validation-DETfj7tg.js";
8
+ import { A as W, C as X, E as $, M as ee, P as se, r as ae, v as te } from "./validation-CaBO9Iw-.js";
9
9
  import { G as re, H as ne, J as ie, K as ue } from "./ExportManager-xRsXgyNo.js";
10
10
  import { c as de, e as Ee } from "./compose-DtQL_oit.js";
11
11
  import { d as Ce, m as fe, s as ce, v as pe } from "./CanvasStateV1-BlDWgOzV.js";
@@ -25,7 +25,15 @@ export interface AutoExportStats {
25
25
  lastExportTime: number | null;
26
26
  /** Average time between exports (ms) */
27
27
  avgExportInterval: number;
28
+ /** Exports whose callback threw (their changes are exported again: never counted as exported) */
29
+ failedExports: number;
30
+ /** The last export failure's message, or null once an export succeeds */
31
+ lastExportError: string | null;
28
32
  }
33
+ /** A failed export is tried again this many times in a row (then on the next change) */
34
+ export declare const AUTO_EXPORT_MAX_RETRIES = 3;
35
+ /** Wait before retry n (n = 1, 2, 3): n x this */
36
+ export declare const AUTO_EXPORT_RETRY_MS = 500;
29
37
  /**
30
38
  * Manages automatic export triggered by editor state changes.
31
39
  *
@@ -52,6 +60,11 @@ export declare class AutoExportManager {
52
60
  private lastExportedRevision;
53
61
  private stats;
54
62
  private exportTimestamps;
63
+ /** Failed exports in a row (a success resets it) and the retry waiting for its turn */
64
+ private consecutiveFailures;
65
+ private retryTimer;
66
+ /** A change made inside the 200 ms after an export: exported when that window ends */
67
+ private windowTimer;
55
68
  constructor(config?: Partial<AutoExportConfig>);
56
69
  /**
57
70
  * Schedule an export (will be debounced)