@fileverse-dev/ddoc 2.4.9 → 2.4.10

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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-BK1dRkFn.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-W6YIaN8P.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -89868,7 +89868,7 @@ async function Ak(e, t) {
89868
89868
  });
89869
89869
  return V === "0x" ? { data: void 0 } : { data: V };
89870
89870
  } catch (B) {
89871
- const L = IWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-C-eFDb9l.mjs");
89871
+ const L = IWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-BMMcelWH.mjs");
89872
89872
  if (e.ccipRead !== !1 && (L == null ? void 0 : L.slice(0, 10)) === N && b)
89873
89873
  return { data: await j(e, { data: L, to: b }) };
89874
89874
  throw S && (L == null ? void 0 : L.slice(0, 10)) === "0x101bb98d" ? new UVt({ factory: c }) : upe(B, {
@@ -101545,7 +101545,7 @@ ${v.map((x) => ` - ${x}`).join(`
101545
101545
  }),
101546
101546
  new Sa({
101547
101547
  // eslint-disable-next-line no-useless-escape
101548
- find: /(\S*)\^((?:[^\^]|\\\^)+)\^/,
101548
+ find: /(\S*)\^([^\s^]+)\^/,
101549
101549
  handler: ({ state: r, range: o, match: i }) => {
101550
101550
  const { tr: a } = r, s = o.from + i[1].length, l = o.to, u = i[2].replace(/\\\^/g, "^");
101551
101551
  a.replaceWith(
@@ -101608,7 +101608,7 @@ function uen(e) {
101608
101608
  e.match(/!\[.*\]\(.*\)/) !== null || // Images
101609
101609
  e.match(/\*\*(.*?)\*\*/g) !== null || // Bold
101610
101610
  e.match(/\*(.*?)\*/g) !== null || // Italic
101611
- e.match(/`{1,3}[^`]+`{1,3}/g) !== null || e.match(/<sup>(.*?)<\/sup>/g) !== null || e.match(/<sub>(.*?)<\/sub>/g) !== null || e.match(/\^(.*?)\^/g) !== null || // New superscript syntax
101611
+ e.match(/`{1,3}[^`]+`{1,3}/g) !== null || e.match(/<sup>(.*?)<\/sup>/g) !== null || e.match(/<sub>(.*?)<\/sub>/g) !== null || e.match(/\^[^\s^]+\^/g) !== null || // New superscript syntax
101612
101612
  e.match(/~(.*?)~/g) !== null || // New subscript syntax
101613
101613
  e.match(/^===\s*$/m) !== null;
101614
101614
  }
@@ -101694,7 +101694,7 @@ async function d2(e, t, n) {
101694
101694
  }
101695
101695
  }
101696
101696
  o = s.body.innerHTML;
101697
- const p = /<(sup|sub)>(.*?)<\/\1>/g, g = /\^(.*?)\^/g, m = /~(.*?)~/g, y = /===\s*$/gm;
101697
+ const p = /<(sup|sub)>(.*?)<\/\1>/g, g = /\^([^\s^]+)\^/g, m = /~(.*?)~/g, y = /===\s*$/gm;
101698
101698
  o = o.replace(p, (P) => `${P}`), o = o.replace(
101699
101699
  g,
101700
101700
  '<sup data-type="sup">$1</sup>'
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-BK1dRkFn.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-W6YIaN8P.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.4.9",
5
+ "version": "2.4.10",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {