@algorisys/yappydraw 0.8.293 → 0.8.295

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 (32) hide show
  1. package/README.md +2 -2
  2. package/chunks/{canva-ai-B5NJGMGr.js → canva-ai-kg789_jz.js} +1 -1
  3. package/chunks/{choice-dialog-state-Cw0WShhc.js → choice-dialog-state-ByeMPVwB.js} +1 -1
  4. package/chunks/{custgeom-BeeylhzV.js → custgeom-CEAI2znd.js} +13 -10
  5. package/chunks/{design-generator-BSZ2XUOE.js → design-generator-zF-F-iCB.js} +1 -1
  6. package/chunks/{drawing-engine-DfASJ_gK.js → drawing-engine-U5zBcwtj.js} +1 -1
  7. package/chunks/{drawings-store-cl-M93Eh.js → drawings-store-CZSZCNqP.js} +1 -1
  8. package/chunks/{ds-operations-CXoS_Obn.js → ds-operations-_c-HiYjk.js} +1 -1
  9. package/chunks/{export-game-BTjE-uv-.js → export-game-CgMvNkoa.js} +1 -1
  10. package/chunks/{from-yappy-hUcG5auS.js → from-yappy-Dd2p9P6N.js} +116 -97
  11. package/chunks/{game-runtime-33Ly0Axb.js → game-runtime-CH3yVPDc.js} +37 -37
  12. package/chunks/import-C3P7glRz.js +1726 -0
  13. package/chunks/{index-OCtbNe3Y.js → index-B_V19zDs.js} +20563 -19834
  14. package/chunks/{index.es-m_qpxIjM.js → index.es-yTIj1Pnc.js} +1 -1
  15. package/chunks/{jspdf.es.min-DGjtdWau.js → jspdf.es.min-DFBFqtMo.js} +2 -2
  16. package/chunks/{lucide-solid-Btzt68l9.js → lucide-solid-DfQVDBtM.js} +1 -1
  17. package/chunks/markdown-to-slides-B5OASdqg.js +122 -0
  18. package/chunks/{morph-animator-CWLzpuUc.js → morph-animator-b1aFWI5O.js} +1 -1
  19. package/chunks/{onboarding-tour-eLES7UJM.js → onboarding-tour-j-RhQYNM.js} +1 -1
  20. package/chunks/{pdf-vector-C1l03NEO.js → pdf-vector-CzrRoyPR.js} +2 -2
  21. package/chunks/purify.es-B0KlbA1O.js +1520 -0
  22. package/chunks/{search-tbh5OqVp.js → search-B7AUhYCm.js} +2 -2
  23. package/chunks/{slide-generator-CZfB2tSO.js → slide-generator-AO60zi1f.js} +1 -1
  24. package/chunks/{svg2pdf.es.min-B6z21zR3.js → svg2pdf.es.min-4O9RYeoT.js} +1 -1
  25. package/chunks/{turntable-ai-CeD-w_eE.js → turntable-ai-DddsPGTo.js} +1 -1
  26. package/chunks/write-uweO04Cm.js +265 -0
  27. package/package.json +1 -1
  28. package/yappy.js +1 -1
  29. package/chunks/import-Dk___UKU.js +0 -1635
  30. package/chunks/markdown-to-slides-CNpwNPE8.js +0 -96
  31. package/chunks/purify.es-C2Qa7b4C.js +0 -906
  32. package/chunks/write-BUtbdS9L.js +0 -212
package/README.md CHANGED
@@ -20,7 +20,7 @@ Or with no install, from a CDN:
20
20
 
21
21
  ```html
22
22
  <script type="module">
23
- import { Yappy, mount } from 'https://cdn.jsdelivr.net/npm/@algorisys/yappydraw@0.8.293/yappy.js'
23
+ import { Yappy, mount } from 'https://cdn.jsdelivr.net/npm/@algorisys/yappydraw@0.8.295/yappy.js'
24
24
  </script>
25
25
  ```
26
26
 
@@ -42,4 +42,4 @@ Or with no install, from a CDN:
42
42
  - **Licence: AGPL-3.0-only**, as the rest of YappyDraw. Check that it suits your project before
43
43
  bundling it into software you distribute or run as a network service.
44
44
 
45
- Source: [algorisys-oss/yappydraw @ v0.8.293](https://github.com/algorisys-oss/yappydraw/tree/v0.8.293).
45
+ Source: [algorisys-oss/yappydraw @ v0.8.295](https://github.com/algorisys-oss/yappydraw/tree/v0.8.295).
@@ -1,5 +1,5 @@
1
1
  import { g as w, a as P, b as E, c as T } from "./ai-providers-CycU8sO1.js";
2
- import { s as u, b as r, p as y, u as b, C as B, g as v, f as j } from "./index-OCtbNe3Y.js";
2
+ import { s as u, b as r, p as y, u as b, C as B, g as v, f as j } from "./index-B_V19zDs.js";
3
3
  const z = {
4
4
  rewrite: "Rewrite this text to be clearer and more engaging while keeping its meaning and rough length.",
5
5
  shorten: "Shorten this text to roughly half its length while keeping the key message.",
@@ -1,4 +1,4 @@
1
- import { Q as r } from "./index-OCtbNe3Y.js";
1
+ import { Q as r } from "./index-B_V19zDs.js";
2
2
  const [s, t] = r(null);
3
3
  function a(e, n, i) {
4
4
  return s()?.resolve(null), new Promise((o) => t({ title: e, message: n, choices: i, resolve: o }));
@@ -1,4 +1,4 @@
1
- import { al as w } from "./index-OCtbNe3Y.js";
1
+ import { am as w } from "./index-B_V19zDs.js";
2
2
  import { s as z, z as X } from "./browser-DbZP-BrN.js";
3
3
  const Z = 9525, _ = 12700, U = (c) => {
4
4
  const o = ((Number.isFinite(c) ? c : 0) % 360 + 360) % 360;
@@ -23,7 +23,10 @@ const Z = 9525, _ = 12700, U = (c) => {
23
23
  image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
24
24
  presProps: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",
25
25
  viewProps: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",
26
- tableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"
26
+ tableStyles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles",
27
+ notesSlide: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",
28
+ notesMaster: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",
29
+ hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
27
30
  }, Q = (c) => N + `<Relationships xmlns="${R.rel}">` + c.map((o) => `<Relationship Id="${D(o.id)}" Type="${o.type}" Target="${D(o.target)}"${o.external ? ' TargetMode="External"' : ""}/>`).join("") + "</Relationships>";
28
31
  function Y(c) {
29
32
  const o = {}, i = [...c.keys()].sort((r, n) => r === "[Content_Types].xml" ? -1 : n === "[Content_Types].xml" ? 1 : 0);
@@ -54,7 +57,7 @@ function H(c) {
54
57
  h || (o.push({ op: "M", x: e, y: s }), h = !0, y = e, d = s);
55
58
  }, T = (f, b, p, m, x, t) => {
56
59
  L(), o.push({ op: "C", x1: f, y1: b, x2: p, y2: m, x, y: t }), u = p, a = m, e = x, s = t;
57
- }, k = (f, b, p, m) => {
60
+ }, S = (f, b, p, m) => {
58
61
  T(e + 2 / 3 * (f - e), s + 2 / 3 * (b - s), p + 2 / 3 * (f - p), m + 2 / 3 * (b - m), p, m), u = f, a = b;
59
62
  };
60
63
  for (; r < i.length; ) {
@@ -127,7 +130,7 @@ function H(c) {
127
130
  x = !1;
128
131
  break;
129
132
  }
130
- k(p + t[0], m + t[1], p + t[2], m + t[3]);
133
+ S(p + t[0], m + t[1], p + t[2], m + t[3]);
131
134
  break;
132
135
  }
133
136
  case "T": {
@@ -137,7 +140,7 @@ function H(c) {
137
140
  break;
138
141
  }
139
142
  const v = /[QT]/.test(g) ? { x: 2 * e - u, y: 2 * s - a } : { x: e, y: s };
140
- k(v.x, v.y, p + t[0], m + t[1]);
143
+ S(v.x, v.y, p + t[0], m + t[1]);
141
144
  break;
142
145
  }
143
146
  case "A": {
@@ -146,12 +149,12 @@ function H(c) {
146
149
  x = !1;
147
150
  break;
148
151
  }
149
- const v = p + t[5], P = m + t[6];
152
+ const v = p + t[5], k = m + t[6];
150
153
  L();
151
- const S = w.arcToCubics(e, s, t[0], t[1], t[2], t[3] !== 0, t[4] !== 0, v, P);
152
- if (S.length === 0)
153
- o.push({ op: "L", x: v, y: P }), e = v, s = P;
154
- else for (const C of S) T(C.c1.x, C.c1.y, C.c2.x, C.c2.y, C.end.x, C.end.y);
154
+ const P = w.arcToCubics(e, s, t[0], t[1], t[2], t[3] !== 0, t[4] !== 0, v, k);
155
+ if (P.length === 0)
156
+ o.push({ op: "L", x: v, y: k }), e = v, s = k;
157
+ else for (const C of P) T(C.c1.x, C.c1.y, C.c2.x, C.c2.y, C.end.x, C.end.y);
155
158
  break;
156
159
  }
157
160
  case "Z": {
@@ -1,5 +1,5 @@
1
1
  import { b as x, c as S } from "./ai-providers-CycU8sO1.js";
2
- import { b as u, E as A, s as C, g as y, z as M, f as D } from "./index-OCtbNe3Y.js";
2
+ import { b as u, E as A, s as C, g as y, z as M, f as D } from "./index-B_V19zDs.js";
3
3
  const P = 'You are a senior graphic designer. Reply with ONLY a JSON object, no markdown fences, matching exactly: {"headline": string (max 6 words), "subhead": string (max 12 words), "bullets": string[] (0-4 short items), "cta": string (max 5 words, optional), "palette": {"background": hex, "primary": hex, "accent": hex, "text": hex}}. The palette must be harmonious with strong text/background contrast.';
4
4
  function $(r) {
5
5
  try {
@@ -1,6 +1,6 @@
1
1
  import { l as w, g as v, c as g } from "./ai-providers-CycU8sO1.js";
2
2
  import { a as x } from "./image-utils-CJQBaGoQ.js";
3
- import { az as A, aA as N } from "./index-OCtbNe3Y.js";
3
+ import { aC as A, aD as N } from "./index-B_V19zDs.js";
4
4
  function y() {
5
5
  return `You are a diagram generation assistant for YappyDraw. You output ONLY valid JSON DSL — no markdown fences, no explanation, no commentary. Just the raw JSON object.
6
6
 
@@ -1,4 +1,4 @@
1
- import { k as I, l as u, m as l, n as m, o as S, q as U, r as w, D as E, b as N, v as y, w as O, x as p, y as T, A as C, B as G } from "./index-OCtbNe3Y.js";
1
+ import { k as I, l as u, m as l, n as m, o as S, q as U, r as w, D as E, b as N, v as y, w as O, x as p, y as T, A as C, B as G } from "./index-B_V19zDs.js";
2
2
  const f = "yappy:drawings:index", c = (t) => `yappy:drawing:${t}`;
3
3
  function $() {
4
4
  return `d-${typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.floor(Math.random() * 1e9)}`}`;
@@ -1,4 +1,4 @@
1
- import { s as p, u as d, a as g } from "./index-OCtbNe3Y.js";
1
+ import { s as p, u as d, a as g } from "./index-B_V19zDs.js";
2
2
  function x(n) {
3
3
  return n ? n.split(",").map((r) => r.trim()).filter((r) => r.length > 0) : [];
4
4
  }