@fileverse-dev/ddoc 3.0.25 → 3.0.26-patch-1

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-Cpnx8I4r.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-BxbCfjcJ.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;
@@ -93963,7 +93963,7 @@ async function SF(e, t) {
93963
93963
  });
93964
93964
  return ne === "0x" ? { data: void 0 } : { data: ne };
93965
93965
  } catch (I) {
93966
- const B = IKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-BoYbj5QE.mjs");
93966
+ const B = IKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-eeShpFAc.mjs");
93967
93967
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
93968
93968
  return { data: await H(e, { data: B, to: x }) };
93969
93969
  throw O && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new pZt({ factory: f }) : Tge(I, {
@@ -105523,16 +105523,15 @@ const v3e = (e) => e && (e.length > 20 ? e.slice(0, 5) + "..." + e.slice(e.lengt
105523
105523
  "inlineMath",
105524
105524
  "markdownTightLists",
105525
105525
  "markdownClipboard"
105526
- ], qF = (e, t) => new tk({
105527
- extensions: e.extensionManager.extensions.filter(
105528
- (r) => ![
105529
- "collaboration",
105530
- "collaborationCursor",
105531
- ...x3e
105532
- ].includes(r.name)
105533
- ),
105534
- content: t
105535
- }), uon = (e) => {
105526
+ ], qF = (e, t) => {
105527
+ const n = (o) => o.toLowerCase().startsWith("collaboration");
105528
+ return new tk({
105529
+ extensions: e.extensionManager.extensions.filter(
105530
+ (o) => !n(o.name) && !x3e.includes(o.name)
105531
+ ),
105532
+ content: t
105533
+ });
105534
+ }, uon = (e) => {
105536
105535
  const t = lon(/* @__PURE__ */ new Date());
105537
105536
  return son(e, t) ? aon(e, { addSuffix: !0 }) : /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
105538
105537
  e.toLocaleTimeString([], {
@@ -106614,10 +106613,19 @@ const zon = (e) => {
106614
106613
  async function j2(e, t, n) {
106615
106614
  var F, C, D, S, _;
106616
106615
  let r = zon(t);
106617
- r = r.replace(/^.*$/gm, (O) => {
106618
- const T = O.trim(), L = /[\[\]()]/.test(T), M = /\d/.test(T), j = /[*/]/.test(T);
106619
- return L && M && j ? O.replace(/\*/g, "\\*") : O;
106620
- });
106616
+ r = r.replace(
106617
+ /(\d)\*(\d)/g,
106618
+ // Match digit*digit (e.g., 4*6)
106619
+ "$1\\*$2"
106620
+ ), r = r.replace(
106621
+ /(\])\*(\[)/g,
106622
+ // Match ]*[ (e.g., [1,2]*[3,4])
106623
+ "$1\\*$2"
106624
+ ), r = r.replace(
106625
+ /(\))\*(\()/g,
106626
+ // Match )*( (e.g., (a+b)*(c+d))
106627
+ "$1\\*$2"
106628
+ );
106621
106629
  let o = _on.render(r);
106622
106630
  const i = document.createElement("textarea");
106623
106631
  i.innerHTML = o, o = i.value;
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-Cpnx8I4r.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-BxbCfjcJ.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": "3.0.25",
5
+ "version": "3.0.26-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {