@floegence/floe-webapp-core 0.103.0 → 0.103.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.
@@ -1469,7 +1469,7 @@ function cn(t) {
1469
1469
  if (p && c === l.length - 1 && b && g && f && !/[\n\r]/u.test(h)) {
1470
1470
  const k = g, T = b.tokens.at(-1), I = T?.type === "text" && k.from === b.tokens.length - 1 && !W(h) && !k.extensionPending && !/[\\\x60*_[\]<>~&:/.@;|="'()-]/u.test(h) && !/[\\\x60*_[\]<>~&:/.@;|="'()-]$/u.test(k.lastChar);
1471
1471
  if (b.raw += h, b.text += h, I) {
1472
- const R = T, B = k.unresolved ? -1 : h.lastIndexOf(" "), D = B > 0 ? h.slice(0, B) : B === 0 ? "" : h, he = [], pe = b.tokens.length - 1;
1472
+ const R = T, B = !k.unresolved && k.source.length + h.length >= 256 ? h.lastIndexOf(" ") : -1, D = B > 0 ? h.slice(0, B) : B === 0 ? "" : h, he = [], pe = b.tokens.length - 1;
1473
1473
  if (D && (R.raw += D, R.text += D, he.push({
1474
1474
  kind: "append_text",
1475
1475
  id: p.id,
@@ -1,7 +1,7 @@
1
1
  function e() {
2
2
  return new Worker(new URL(
3
3
  /* @vite-ignore */
4
- "" + new URL("../../../assets/markdown.worker-CDm-uCXT.js", import.meta.url).href,
4
+ "" + new URL("../../../assets/markdown.worker-C0gQHRqQ.js", import.meta.url).href,
5
5
  import.meta.url
6
6
  ), { type: "module" });
7
7
  }
@@ -181,7 +181,7 @@ function X(k) {
181
181
  if (t && o === a.length - 1 && i && O && S && !/[\n\r]/u.test(e)) {
182
182
  const s = O, l = i.tokens.at(-1), p = l?.type === "text" && s.from === i.tokens.length - 1 && !z(e) && !s.extensionPending && !/[\\\x60*_[\]<>~&:/.@;|="'()-]/u.test(e) && !/[\\\x60*_[\]<>~&:/.@;|="'()-]$/u.test(s.lastChar);
183
183
  if (i.raw += e, i.text += e, p) {
184
- const c = l, h = s.unresolved ? -1 : e.lastIndexOf(" "), x = h > 0 ? e.slice(0, h) : h === 0 ? "" : e, T = [], A = i.tokens.length - 1;
184
+ const c = l, h = !s.unresolved && s.source.length + e.length >= 256 ? e.lastIndexOf(" ") : -1, x = h > 0 ? e.slice(0, h) : h === 0 ? "" : e, T = [], A = i.tokens.length - 1;
185
185
  if (x && (c.raw += x, c.text += x, T.push({
186
186
  kind: "append_text",
187
187
  id: t.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.103.0",
3
+ "version": "0.103.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",