@markgrafhq/markgraf-react 0.0.30 → 0.0.32

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.
@@ -137,7 +137,7 @@ const Xn = (t) => (n) => t, D = function(t) {
137
137
  return (e) => Yt.foldr((r) => (o) => t.Semigroup0().append(e(r))(o))(n);
138
138
  }
139
139
  }, wi = null;
140
- function Sn(t, n, e) {
140
+ function kn(t, n, e) {
141
141
  return t == null ? n : e(t);
142
142
  }
143
143
  const b = (t, n) => ({ tag: "Tuple", _1: t, _2: n }), Vn = (t) => (n) => b(t, n), Ga = (t) => t._2, Ia = (t) => t._1, E$ = function(t) {
@@ -18248,7 +18248,7 @@ const h_ = (t) => (n) => (e) => (r) => {
18248
18248
  return !1;
18249
18249
  f();
18250
18250
  })(),
18251
- halftoneShadows: !0,
18251
+ halftoneShadows: !1,
18252
18252
  watermark: "",
18253
18253
  theme: t,
18254
18254
  outputAspect: r.width <= 0 || r.height <= 0 ? v : w("Just", r.width / r.height)
@@ -19115,7 +19115,7 @@ const h_ = (t) => (n) => (e) => (r) => {
19115
19115
  return !1;
19116
19116
  f();
19117
19117
  })(),
19118
- halftoneShadows: !0,
19118
+ halftoneShadows: !1,
19119
19119
  watermark: "",
19120
19120
  theme: e,
19121
19121
  outputAspect: t
@@ -20698,7 +20698,7 @@ const h_ = (t) => (n) => (e) => (r) => {
20698
20698
  }, li = (t) => ({ pure: (n) => (e) => t.Applicative0().pure(b(n, e)), Apply0: () => $m(t) }), ym = (t) => {
20699
20699
  const n = { Applicative0: () => li(t), Bind1: () => fi(t) };
20700
20700
  return { state: (e) => (r) => t.Applicative0().pure(e(r)), Monad0: () => n };
20701
- }, Mo = (t, n) => ({ tag: t, _1: n }), kr = (t, n) => ({ tag: t, _1: n }), _c = (t) => t, pr = (t, n) => ({ tag: t, _1: n }), Pl = (t) => t, kn = /* @__PURE__ */ ym(Fe), H5 = (t) => (e) => {
20701
+ }, Mo = (t, n) => ({ tag: t, _1: n }), kr = (t, n) => ({ tag: t, _1: n }), _c = (t) => t, pr = (t, n) => ({ tag: t, _1: n }), Pl = (t) => t, Sn = /* @__PURE__ */ ym(Fe), H5 = (t) => (e) => {
20702
20702
  let r = e, o = !0, i;
20703
20703
  for (; o; ) {
20704
20704
  const s = r;
@@ -20750,7 +20750,7 @@ const h_ = (t) => (n) => (e) => (r) => {
20750
20750
  f();
20751
20751
  }
20752
20752
  return i;
20753
- }, O5 = /* @__PURE__ */ T((t) => (n) => tt(F)(n)()(t))(G), Ut = /* @__PURE__ */ fi(Fe), te = kn.state((t) => b(t, t)), _n = /* @__PURE__ */ li(Fe), xm = (t) => (e) => {
20753
+ }, O5 = /* @__PURE__ */ T((t) => (n) => tt(F)(n)()(t))(G), Ut = /* @__PURE__ */ fi(Fe), te = Sn.state((t) => b(t, t)), _n = /* @__PURE__ */ li(Fe), xm = (t) => (e) => {
20754
20754
  let r = e, o = !0, i;
20755
20755
  for (; o; ) {
20756
20756
  const s = r;
@@ -20943,7 +20943,7 @@ const h_ = (t) => (n) => (e) => (r) => {
20943
20943
  return (e) => T((r) => (o) => Yn(n, Xn, r, e(o)))(G);
20944
20944
  }, Zf = /* @__PURE__ */ Nm(F), t0 = /* @__PURE__ */ Nm(F), aL = (t) => {
20945
20945
  const n = t.span;
20946
- return kn.state((e) => b(void 0, { ...e, currentSpan: n }));
20946
+ return Sn.state((e) => b(void 0, { ...e, currentSpan: n }));
20947
20947
  }, of = (t) => (n) => ({ structural: [...t.structural, ...n.structural], flow: t.flow || n.flow, dives: [...t.dives, ...n.dives] }), cL = (t) => (n) => n.kind === "Animated" || H5(n.id)(t), hc = {
20948
20948
  graphNodes: [],
20949
20949
  graphEdges: G,
@@ -20991,7 +20991,7 @@ const h_ = (t) => (n) => (e) => (r) => {
20991
20991
  if (t.kind.tag === "FillNodeWithoutTransition")
20992
20992
  return G;
20993
20993
  f();
20994
- }, hL = (t) => t0(dL)(t.events), dr = (t) => kn.state((n) => b(
20994
+ }, hL = (t) => t0(dL)(t.events), dr = (t) => Sn.state((n) => b(
20995
20995
  void 0,
20996
20996
  (() => {
20997
20997
  if (n.error.tag === "Just")
@@ -21007,7 +21007,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21007
21007
  if (n.error.tag === "Just")
21008
21008
  return _n.pure();
21009
21009
  if (n.error.tag === "Nothing")
21010
- return xm(t.node)(n.interiorOf) ? dr("node " + t.node + " has more than one `inside` block") : kn.state((e) => b(void 0, { ...e, interiorOf: tt(F)(t.node)(t.doc)(e.interiorOf) }));
21010
+ return xm(t.node)(n.interiorOf) ? dr("node " + t.node + " has more than one `inside` block") : Sn.state((e) => b(void 0, { ...e, interiorOf: tt(F)(t.node)(t.doc)(e.interiorOf) }));
21011
21011
  f();
21012
21012
  })), mL = (t) => Ut.bind(te)((n) => {
21013
21013
  const e = t.tag === "Just" && t._1 !== "" ? t._1 : "kf-" + an(n.kfCounter);
@@ -21019,8 +21019,8 @@ const h_ = (t) => (n) => (e) => (r) => {
21019
21019
  kfCounter: n.kfCounter + 1 | 0,
21020
21020
  currentKf: w("Just", e)
21021
21021
  };
21022
- return kn.state((o) => b(void 0, r));
21023
- }), we = (t) => (n) => Ut.bind(kn.state((e) => b(void 0, { ...e, currentSpan: t })))(() => dr(n)), V_ = (t) => (n) => Ut.bind(te)((e) => W5(n)(e.stepNames) ? we(t)("duplicate step name " + n) : kn.state((r) => b(
21022
+ return Sn.state((o) => b(void 0, r));
21023
+ }), we = (t) => (n) => Ut.bind(Sn.state((e) => b(void 0, { ...e, currentSpan: t })))(() => dr(n)), V_ = (t) => (n) => Ut.bind(te)((e) => W5(n)(e.stepNames) ? we(t)("duplicate step name " + n) : Sn.state((r) => b(
21024
21024
  void 0,
21025
21025
  {
21026
21026
  ...r,
@@ -21032,20 +21032,20 @@ const h_ = (t) => (n) => (e) => (r) => {
21032
21032
  const n = t.ops._1;
21033
21033
  return Ut.bind((() => {
21034
21034
  const e = n.span;
21035
- return kn.state((r) => b(void 0, { ...r, currentSpan: e }));
21035
+ return Sn.state((r) => b(void 0, { ...r, currentSpan: e }));
21036
21036
  })())(() => n.op.tag === "Step" ? V_(n.span)(n.op._1.name) : dr("step marker frame did not contain a step"));
21037
21037
  }
21038
21038
  if (t.ops.tag === "Seq" && t.ops._1.length === 1 && t.ops._1[0].tag === "Leaf") {
21039
21039
  const n = t.ops._1[0]._1;
21040
21040
  return Ut.bind((() => {
21041
21041
  const e = n.span;
21042
- return kn.state((r) => b(void 0, { ...r, currentSpan: e }));
21042
+ return Sn.state((r) => b(void 0, { ...r, currentSpan: e }));
21043
21043
  })())(() => n.op.tag === "Step" ? V_(n.span)(n.op._1.name) : dr("step marker frame did not contain a step"));
21044
21044
  }
21045
21045
  return dr("step marker frame did not contain a step");
21046
21046
  }, yL = (t) => Ut.bind((() => {
21047
21047
  const n = t.span;
21048
- return kn.state((e) => b(void 0, { ...e, currentSpan: n }));
21048
+ return Sn.state((e) => b(void 0, { ...e, currentSpan: n }));
21049
21049
  })())(() => Ut.bind(te)((n) => {
21050
21050
  if (n.error.tag === "Just")
21051
21051
  return _n.pure();
@@ -21058,7 +21058,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21058
21058
  + detail: Detail
21059
21059
  }`);
21060
21060
  const e = t.op._1;
21061
- return kn.state((r) => b(
21061
+ return Sn.state((r) => b(
21062
21062
  void 0,
21063
21063
  { ...r, enterStack: Lt(r.enterStack)(e.id), scenes: Lt(r.scenes)(rs("EnterNode", e.id)) }
21064
21064
  ));
@@ -21069,7 +21069,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21069
21069
  return dr("`out` without a matching `into`");
21070
21070
  if (e.tag === "Just") {
21071
21071
  const r = e._1.init;
21072
- return kn.state((o) => b(void 0, { ...o, enterStack: r, scenes: Lt(o.scenes)(Oy) }));
21072
+ return Sn.state((o) => b(void 0, { ...o, enterStack: r, scenes: Lt(o.scenes)(Oy) }));
21073
21073
  }
21074
21074
  f();
21075
21075
  }
@@ -21082,7 +21082,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21082
21082
  if (t.error.tag === "Nothing") {
21083
21083
  if (t.currentKf.tag === "Just") {
21084
21084
  const n = t.currentKf._1;
21085
- return kn.state((e) => b(void 0, { ...e, scenes: Lt(e.scenes)(rs("Hold", n)) }));
21085
+ return Sn.state((e) => b(void 0, { ...e, scenes: Lt(e.scenes)(rs("Hold", n)) }));
21086
21086
  }
21087
21087
  if (t.currentKf.tag === "Nothing")
21088
21088
  return _n.pure();
@@ -21092,7 +21092,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21092
21092
  const r = "ev-" + an(e.eventCounter);
21093
21093
  return Ut.bind((() => {
21094
21094
  const o = { ...e, eventCounter: e.eventCounter + 1 | 0 };
21095
- return kn.state((i) => b(void 0, o));
21095
+ return Sn.state((i) => b(void 0, o));
21096
21096
  })())(() => _n.pure({ events: [{ id: r, kind: n, when: t }], firstId: w("Just", r), lastId: w("Just", r) }));
21097
21097
  }), wL = (t) => t.tag === "DataFlow" ? w("Just", t._1) : v, TL = (t) => bt((n) => Al(n)(t.graphEdges))(jt(Gi, q5(t.currEdges))), NL = (t) => (n) => {
21098
21098
  const e = ht((o) => o.from.node === n.id || o.to.node === n.id, TL(t)), r = dc(H1)((o) => (i) => {
@@ -21218,7 +21218,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21218
21218
  return gr(r)(e.currEdges) ? Jr(n.newFrom)(e.currNodes) ? Jr(n.newTo)(e.currNodes) ? r !== o && gr(o)(e.currEdges) ? we((() => {
21219
21219
  const i = 2 < t.operands.length ? t.operands[2] : t.span, s = 3 < t.operands.length ? t.operands[3] : t.span;
21220
21220
  return { line: i.line, column: i.column, endLine: s.endLine, endColumn: s.endColumn };
21221
- })())("cannot repoint " + n.from + "→" + n.to + " to " + n.newFrom + "→" + n.newTo + ": target edge already exists") : kn.state((i) => b(
21221
+ })())("cannot repoint " + n.from + "→" + n.to + " to " + n.newFrom + "→" + n.newTo + ": target edge already exists") : Sn.state((i) => b(
21222
21222
  void 0,
21223
21223
  {
21224
21224
  ...i,
@@ -21237,7 +21237,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21237
21237
  }), SL = (t) => {
21238
21238
  if (t.op.tag === "AddNode") {
21239
21239
  const n = t.op._1;
21240
- return Ut.bind(te)((e) => Jr(n.id)(e.currNodes) ? we(0 < t.operands.length ? t.operands[0] : t.span)("cannot add node " + n.id + ": already exists") : kn.state((r) => b(
21240
+ return Ut.bind(te)((e) => Jr(n.id)(e.currNodes) ? we(0 < t.operands.length ? t.operands[0] : t.span)("cannot add node " + n.id + ": already exists") : Sn.state((r) => b(
21241
21241
  void 0,
21242
21242
  {
21243
21243
  ...r,
@@ -21256,7 +21256,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21256
21256
  return we(0 < t.operands.length ? t.operands[0] : t.span)(r._1);
21257
21257
  if (r.tag === "Right") {
21258
21258
  const o = r._1;
21259
- return kn.state((i) => b(
21259
+ return Sn.state((i) => b(
21260
21260
  void 0,
21261
21261
  {
21262
21262
  ...i,
@@ -21276,7 +21276,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21276
21276
  return we(0 < t.operands.length ? t.operands[0] : t.span)("cannot modify node " + n.id + ": does not exist");
21277
21277
  if (n.label.tag === "Just") {
21278
21278
  const r = n.label._1;
21279
- return kn.state((o) => b(void 0, { ...o, graphNodes: uL(n.id)(r)(o.graphNodes) }));
21279
+ return Sn.state((o) => b(void 0, { ...o, graphNodes: uL(n.id)(r)(o.graphNodes) }));
21280
21280
  }
21281
21281
  if (n.label.tag === "Nothing")
21282
21282
  return _n.pure();
@@ -21293,7 +21293,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21293
21293
  return gr(i)(e.currEdges) ? we((() => {
21294
21294
  const s = 0 < t.operands.length ? t.operands[0] : t.span, u = 1 < t.operands.length ? t.operands[1] : t.span;
21295
21295
  return { line: s.line, column: s.column, endLine: u.endLine, endColumn: u.endColumn };
21296
- })())((n.directed ? "cannot add edge " : "cannot add connection ") + (n.directed ? n.from + "→" + n.to : n.from + "--" + n.to) + ": already exists") : kn.state((s) => b(
21296
+ })())((n.directed ? "cannot add edge " : "cannot add connection ") + (n.directed ? n.from + "→" + n.to : n.from + "--" + n.to) + ": already exists") : Sn.state((s) => b(
21297
21297
  void 0,
21298
21298
  {
21299
21299
  ...s,
@@ -21312,7 +21312,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21312
21312
  const n = t.op._1;
21313
21313
  return Ut.bind(te)((e) => {
21314
21314
  const r = n.directed ? n.from + "->" + n.to : n.from <= n.to ? "conn:" + n.from + "--" + n.to : "conn:" + n.to + "--" + n.from;
21315
- return gr(r)(e.currEdges) ? kn.state((o) => b(void 0, { ...o, currEdges: Hi(F)(r)(o.currEdges) })) : we((() => {
21315
+ return gr(r)(e.currEdges) ? Sn.state((o) => b(void 0, { ...o, currEdges: Hi(F)(r)(o.currEdges) })) : we((() => {
21316
21316
  const o = 0 < t.operands.length ? t.operands[0] : t.span, i = 1 < t.operands.length ? t.operands[1] : t.span;
21317
21317
  return { line: o.line, column: o.column, endLine: i.endLine, endColumn: i.endColumn };
21318
21318
  })())((n.directed ? "cannot delete edge " : "cannot delete connection ") + (n.directed ? n.from + "→" + n.to : n.from + "--" + n.to) + ": does not exist");
@@ -21321,7 +21321,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21321
21321
  return t.op.tag === "RepointEdge" ? kL(t)(t.op._1) : _n.pure();
21322
21322
  }, LL = (t) => Ut.bind((() => {
21323
21323
  const n = t.span;
21324
- return kn.state((e) => b(void 0, { ...e, currentSpan: n }));
21324
+ return Sn.state((e) => b(void 0, { ...e, currentSpan: n }));
21325
21325
  })())(() => SL(t)), Cm = (t) => (n) => (e) => Ut.bind(Rl(LL)(e))(() => Ut.bind(te)((r) => {
21326
21326
  const o = n.tag === "Just" && n._1 !== "" ? n._1 : "kf-" + an(r.kfCounter);
21327
21327
  if (En((s) => s.id === o, r.keyframes))
@@ -21339,7 +21339,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21339
21339
  f();
21340
21340
  })()
21341
21341
  };
21342
- return kn.state((s) => b(void 0, i));
21342
+ return Sn.state((s) => b(void 0, i));
21343
21343
  })), j_ = (t) => (n) => {
21344
21344
  const e = Du(n.ops), r = ht(
21345
21345
  (i) => i.op.tag === "AddNode" || i.op.tag === "DelNode" || i.op.tag === "ModNode" || i.op.tag === "AddEdge" || i.op.tag === "DelEdge" || i.op.tag === "RepointEdge",
@@ -21350,7 +21350,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21350
21350
  );
21351
21351
  return 0 < o.length ? Ut.bind((() => {
21352
21352
  const i = o[0].span;
21353
- return kn.state((s) => b(void 0, { ...s, currentSpan: i }));
21353
+ return Sn.state((s) => b(void 0, { ...s, currentSpan: i }));
21354
21354
  })())(() => dr("still/title blocks hold a still snapshot; they cannot contain movement tokens (`api ~> db`) or dive commands (`into`/`out`)")) : t === "TitleCard" && r.length === 0 ? dr(n.name.tag === "Just" && n.name._1 !== "" ? 'title "' + n.name._1 + '" has an empty body; give it nodes/edges to title, or use a still' : "title has an empty body; give it nodes/edges to title, or use a still") : Ut.bind(Cm(t)(n.name)(r))(() => xL);
21355
21355
  }, EL = (t) => (n) => {
21356
21356
  const e = bt(wL)(n.scenes), r = ht(cL(K5(D((s) => s.keyframe)(e))), n.keyframes), o = cr(F.compare, Zf((s) => s.nodes)(r), Zf(_L)(e)), i = cr(F.compare, t0((s) => s.edges)(r), t0(hL)(e));
@@ -21457,7 +21457,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21457
21457
  const e = n._1;
21458
21458
  return Ut.bind((() => {
21459
21459
  const r = e.span;
21460
- return kn.state((o) => b(void 0, { ...o, currentSpan: r }));
21460
+ return Sn.state((o) => b(void 0, { ...o, currentSpan: r }));
21461
21461
  })())(() => AL(t)(e));
21462
21462
  }
21463
21463
  if (n.tag === "Seq" || n.tag === "GroupSeq")
@@ -21491,7 +21491,7 @@ const h_ = (t) => (n) => (e) => (r) => {
21491
21491
  const e = n.currentKf._1;
21492
21492
  return Ut.bind(Ys(Qy)(t))((r) => Ut.bind(te)((o) => {
21493
21493
  const i = { ...o, scenes: Lt(o.scenes)(rs("DataFlow", { keyframe: e, events: r.events, focus: v })) };
21494
- return kn.state((s) => b(void 0, i));
21494
+ return Sn.state((s) => b(void 0, i));
21495
21495
  }));
21496
21496
  }
21497
21497
  f();
@@ -25154,9 +25154,9 @@ const Vm = (t) => t, Sa = (t) => () => {
25154
25154
  return () => (n(), r());
25155
25155
  })(() => {
25156
25156
  }), l1 = (t) => (n) => {
25157
- const e = Sn(t, v, qt);
25157
+ const e = kn(t, v, qt);
25158
25158
  if (e.tag === "Just") {
25159
- const r = Sn(e._1.stopAt, v, qt);
25159
+ const r = kn(e._1.stopAt, v, qt);
25160
25160
  if (r.tag === "Nothing")
25161
25161
  return n;
25162
25162
  if (r.tag === "Just")
@@ -25271,9 +25271,9 @@ const Vm = (t) => t, Sa = (t) => () => {
25271
25271
  destroy: () => (o = !0, i())
25272
25272
  };
25273
25273
  }, o$ = () => O2() / 1e3, xA = (t) => (n) => {
25274
- const e = Sn(t, v, qt);
25274
+ const e = kn(t, v, qt);
25275
25275
  if (e.tag === "Just") {
25276
- const r = Sn(e._1.loop, v, qt);
25276
+ const r = kn(e._1.loop, v, qt);
25277
25277
  if (r.tag === "Nothing")
25278
25278
  return n;
25279
25279
  if (r.tag === "Just")
@@ -25327,7 +25327,7 @@ const Vm = (t) => t, Sa = (t) => () => {
25327
25327
  f();
25328
25328
  };
25329
25329
  }, wA = (t) => (n) => (() => {
25330
- const e = Sn(t, v, qt);
25330
+ const e = kn(t, v, qt);
25331
25331
  if (e.tag === "Just")
25332
25332
  return { ...e._1, direction: n < 0 ? "backward" : "forward" };
25333
25333
  if (e.tag === "Nothing")
@@ -25340,9 +25340,9 @@ const Vm = (t) => t, Sa = (t) => () => {
25340
25340
  };
25341
25341
  f();
25342
25342
  })(), g1 = (t) => (n) => {
25343
- const e = Sn(t, v, qt);
25343
+ const e = kn(t, v, qt);
25344
25344
  if (e.tag === "Just") {
25345
- const r = Sn(e._1.direction, v, qt);
25345
+ const r = kn(e._1.direction, v, qt);
25346
25346
  if (r.tag === "Just") {
25347
25347
  if (r._1 === "backward" || r._1 === "reverse")
25348
25348
  return -1;
@@ -25465,15 +25465,15 @@ const Vm = (t) => t, Sa = (t) => () => {
25465
25465
  ), i = o.length - 1 | 0;
25466
25466
  return i >= 0 && i < o.length ? w("Just", o[i]) : v;
25467
25467
  }, lf = (t) => (n) => (e) => {
25468
- const r = Sn(n, v, qt);
25468
+ const r = kn(n, v, qt);
25469
25469
  if (r.tag === "Just") {
25470
- const o = Sn(r._1.speed, v, qt);
25470
+ const o = kn(r._1.speed, v, qt);
25471
25471
  if (o.tag === "Just") {
25472
25472
  const i = Qo(1e-4)(o._1 < 0 ? -o._1 : o._1);
25473
25473
  return () => t.value = i;
25474
25474
  }
25475
25475
  if (o.tag === "Nothing") {
25476
- const i = Sn(r._1.duration, v, qt);
25476
+ const i = kn(r._1.duration, v, qt);
25477
25477
  if (i.tag === "Just" && e.tag === "Just") {
25478
25478
  const s = e._1 / i._1, u = Qo(1e-4)(s < 0 ? -s : s);
25479
25479
  if (i._1 > 0)
@@ -25489,9 +25489,9 @@ const Vm = (t) => t, Sa = (t) => () => {
25489
25489
  };
25490
25490
  f();
25491
25491
  }, SA = (t) => (n) => (e) => (r) => {
25492
- const o = r.time - n, i = o < 0 ? -o <= 1e-4 : o <= 1e-4, s = r.time < n - 1e-4 || i && r.index < e, u = s ? -1 : 1, a = r.time > n + 1e-4 || i && r.index > e, c = Sn(t, v, qt);
25492
+ const o = r.time - n, i = o < 0 ? -o <= 1e-4 : o <= 1e-4, s = r.time < n - 1e-4 || i && r.index < e, u = s ? -1 : 1, a = r.time > n + 1e-4 || i && r.index > e, c = kn(t, v, qt);
25493
25493
  if (c.tag === "Just") {
25494
- const l = Sn(c._1.direction, v, qt);
25494
+ const l = kn(c._1.direction, v, qt);
25495
25495
  if (l.tag === "Just") {
25496
25496
  if (l._1 === "forward")
25497
25497
  return i || a ? w("Just", 1) : v;
@@ -27181,12 +27181,12 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27181
27181
  (N, C) => N === C,
27182
27182
  t.source,
27183
27183
  () => {
27184
- const N = J(), C = Sn(N, v, qt);
27184
+ const N = J(), C = kn(N, v, qt);
27185
27185
  if (C.tag === "Nothing")
27186
27186
  return () => {
27187
27187
  };
27188
27188
  if (C.tag === "Just") {
27189
- const S = sR(C._1)(), P = Sn(S, v, qt);
27189
+ const S = sR(C._1)(), P = kn(S, v, qt);
27190
27190
  if (P.tag === "Nothing")
27191
27191
  return () => {
27192
27192
  };
@@ -27294,7 +27294,7 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27294
27294
  }))();
27295
27295
  }
27296
27296
  ), b6 = /* @__PURE__ */ bo(C6), k6 = /* @__PURE__ */ bo(a$), S6 = /* @__PURE__ */ f$({ eq: (t) => (n) => t._1 === n._1 && t._2 === n._2 }), L6 = /* @__PURE__ */ f$({ eq: (t) => (n) => t._1 === n._1 && t._2 === n._2 }), De = /* @__PURE__ */ Fr(oi)(Fa), Ra = l$().pure, E6 = /* @__PURE__ */ bo(c$), P6 = {
27297
- eq: (t) => (n) => (t.renderer === "CanvasRenderer" ? n.renderer === "CanvasRenderer" : t.renderer === "SvgRenderer" && n.renderer === "SvgRenderer") && (t.sizing.tag === "AutoSize" ? n.sizing.tag === "AutoSize" : t.sizing.tag === "FixedSize" && n.sizing.tag === "FixedSize" && t.sizing._1 === n.sizing._1 && t.sizing._2 === n.sizing._2) && t.source === n.source && (t.theme === "Light" ? n.theme === "Light" : t.theme === "Dark" ? n.theme === "Dark" : t.theme === "Blueprint" ? n.theme === "Blueprint" : t.theme === "Whiteboard" ? n.theme === "Whiteboard" : t.theme === "Isometric" && n.theme === "Isometric") && (t.transparency === "PaintBackground" ? n.transparency === "PaintBackground" : t.transparency === "TransparentBackground" && n.transparency === "TransparentBackground")
27297
+ eq: (t) => (n) => (t.renderer === "CanvasRenderer" ? n.renderer === "CanvasRenderer" : t.renderer === "SvgRenderer" && n.renderer === "SvgRenderer") && t.showTitle === n.showTitle && (t.sizing.tag === "AutoSize" ? n.sizing.tag === "AutoSize" : t.sizing.tag === "FixedSize" && n.sizing.tag === "FixedSize" && t.sizing._1 === n.sizing._1 && t.sizing._2 === n.sizing._2) && t.source === n.source && (t.theme === "Light" ? n.theme === "Light" : t.theme === "Dark" ? n.theme === "Dark" : t.theme === "Blueprint" ? n.theme === "Blueprint" : t.theme === "Whiteboard" ? n.theme === "Whiteboard" : t.theme === "Isometric" && n.theme === "Isometric") && (t.transparency === "PaintBackground" ? n.transparency === "PaintBackground" : t.transparency === "TransparentBackground" && n.transparency === "TransparentBackground")
27298
27298
  }, A6 = /* @__PURE__ */ Xl("svg")(), G1 = (t) => k6({
27299
27299
  className: "markgraf-player",
27300
27300
  style: { position: "relative", width: "100%", height: "100%" },
@@ -27303,7 +27303,7 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27303
27303
  source: t.src,
27304
27304
  speed: 1,
27305
27305
  playing: (() => {
27306
- const n = Sn(t.paused, v, qt);
27306
+ const n = kn(t.paused, v, qt);
27307
27307
  if (n.tag === "Nothing")
27308
27308
  return !0;
27309
27309
  if (n.tag === "Just")
@@ -27313,19 +27313,19 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27313
27313
  })
27314
27314
  ]
27315
27315
  }), p$ = (t) => (n) => {
27316
- const e = Sn(n.theme, v, qt), r = (() => {
27316
+ const e = kn(n.theme, v, qt), r = (() => {
27317
27317
  if (e.tag === "Nothing")
27318
27318
  return "light";
27319
27319
  if (e.tag === "Just")
27320
27320
  return e._1;
27321
27321
  f();
27322
- })(), o = Sn(n.renderer, v, qt), i = (() => {
27322
+ })(), o = kn(n.renderer, v, qt), i = (() => {
27323
27323
  if (o.tag === "Nothing")
27324
27324
  return "canvas";
27325
27325
  if (o.tag === "Just")
27326
27326
  return o._1;
27327
27327
  f();
27328
- })(), s = Sn(n.paused, v, qt), u = (() => {
27328
+ })(), s = kn(n.paused, v, qt), u = (() => {
27329
27329
  if (s.tag === "Nothing")
27330
27330
  return !1;
27331
27331
  if (s.tag === "Just")
@@ -27341,9 +27341,9 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27341
27341
  f();
27342
27342
  })(),
27343
27343
  sizing: (() => {
27344
- const _ = Sn(n.width, v, qt);
27344
+ const _ = kn(n.width, v, qt);
27345
27345
  if (_.tag === "Just") {
27346
- const d = Sn(n.height, v, qt);
27346
+ const d = kn(n.height, v, qt);
27347
27347
  if (d.tag === "Just")
27348
27348
  return e$("FixedSize", _._1, d._1);
27349
27349
  }
@@ -27357,13 +27357,21 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27357
27357
  f();
27358
27358
  })(),
27359
27359
  transparency: (() => {
27360
- const _ = Sn(n.transparent, v, qt);
27360
+ const _ = kn(n.transparent, v, qt);
27361
27361
  if (_.tag === "Nothing")
27362
27362
  return !1;
27363
27363
  if (_.tag === "Just")
27364
27364
  return _._1;
27365
27365
  f();
27366
- })() ? Kk : Uk
27366
+ })() ? Kk : Uk,
27367
+ showTitle: (() => {
27368
+ const _ = kn(n.showTitle, v, qt);
27369
+ if (_.tag === "Nothing")
27370
+ return !0;
27371
+ if (_.tag === "Just")
27372
+ return _._1;
27373
+ f();
27374
+ })()
27367
27375
  };
27368
27376
  return () => {
27369
27377
  const _ = re(wi), d = T1((h, $) => b(h, $), v), g = d._1, p = T1((h, $) => b(h, $), { time: 0, keyframe: "", playing: !1 });
@@ -27394,7 +27402,7 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27394
27402
  (h, $) => P6.eq(h)($),
27395
27403
  l,
27396
27404
  () => {
27397
- const h = m(), $ = Sn(h, v, qt), x = (() => {
27405
+ const h = m(), $ = kn(h, v, qt), x = (() => {
27398
27406
  if ($.tag === "Just")
27399
27407
  return iA(v, qt, "Element", $._1);
27400
27408
  if ($.tag === "Nothing")
@@ -27405,7 +27413,7 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27405
27413
  return () => {
27406
27414
  };
27407
27415
  if (x.tag === "Just") {
27408
- const y = EA(x._1)(l.source)(l.renderer)(l.sizing)(l.theme)(l.transparency)(!0)();
27416
+ const y = EA(x._1)(l.source)(l.renderer)(l.sizing)(l.theme)(l.transparency)(l.showTitle)();
27409
27417
  if (y.tag === "Left")
27410
27418
  return R$("[markgraf] " + y._1)(), () => {
27411
27419
  };
@@ -27491,7 +27499,15 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27491
27499
  }, R6 = /* @__PURE__ */ Yl(
27492
27500
  "MarkgrafHeadlessPlayer",
27493
27501
  (t) => {
27494
- const n = p$(t.src)({ renderer: t.renderer, width: t.width, height: t.height, theme: t.theme, transparent: t.transparent, paused: t.paused })(), e = Sn(t.renderer, v, qt);
27502
+ const n = p$(t.src)({
27503
+ renderer: t.renderer,
27504
+ width: t.width,
27505
+ height: t.height,
27506
+ theme: t.theme,
27507
+ transparent: t.transparent,
27508
+ showTitle: t.showTitle,
27509
+ paused: t.paused
27510
+ })(), e = kn(t.renderer, v, qt);
27495
27511
  return (() => {
27496
27512
  if (e.tag === "Nothing")
27497
27513
  return "canvas";
@@ -27503,7 +27519,7 @@ const wn = /* @__PURE__ */ Vs(GR), f$ = (t) => (n) => (e) => () => ks((r, o) =>
27503
27519
  ), F6 = /* @__PURE__ */ Yl(
27504
27520
  "MarkgrafPlayer",
27505
27521
  (t) => Ra((() => {
27506
- const n = Sn(t.renderer, v, qt), e = (() => {
27522
+ const n = kn(t.renderer, v, qt), e = (() => {
27507
27523
  if (n.tag === "Nothing")
27508
27524
  return "canvas";
27509
27525
  if (n.tag === "Just")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markgrafhq/markgraf-react",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "React hook + component for embedding markgraf animations. Drives play/pause/seek and exposes time + keyframe as reactive state.",
5
5
  "type": "module",
6
6
  "main": "./dist/markgraf-react.js",