@musaaj/simpleeditor 0.0.2 → 0.0.3

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.
@@ -45698,10 +45698,6 @@ function registerQuillMathBlot(e) {
45698
45698
  registered$2 = !0;
45699
45699
  let t = e.import("blots/embed");
45700
45700
  class n extends t {
45701
- static blotName = "math";
45702
- static tagName = "span";
45703
- static className = "qt-math-blot";
45704
- static quill = null;
45705
45701
  static create(e) {
45706
45702
  let n = t.create(), r = typeof e == "string" ? e : e?.latex ?? "", i = typeof e == "string" ? "" : e?.id ?? "";
45707
45703
  return n.setAttribute(DATA_LATEX, r), n.setAttribute("contenteditable", "false"), i && n.setAttribute("data-qt-id", i), n.__latex = r, n.appendChild(createMathSpanElement(r)), n.addEventListener("pointerdown", (e) => {
@@ -45717,7 +45713,7 @@ function registerQuillMathBlot(e) {
45717
45713
  return e.__latex ?? e.getAttribute("data-latex") ?? "";
45718
45714
  }
45719
45715
  }
45720
- e.register("formats/math", n, !0);
45716
+ n.blotName = "math", n.tagName = "span", n.className = "qt-math-blot", n.quill = null, e.register("formats/math", n, !0);
45721
45717
  }
45722
45718
  function setQuillMathBlotQuill(e) {
45723
45719
  let t = quill_default.import("formats/math");
@@ -45803,9 +45799,6 @@ function registerQuillImageBlot(e) {
45803
45799
  registered$1 = !0;
45804
45800
  let t = e.import("blots/embed");
45805
45801
  class n extends t {
45806
- static blotName = "image";
45807
- static tagName = IMG_BLOT_TAG;
45808
- static className = "qt-image-blot";
45809
45802
  static create(e) {
45810
45803
  return createImageBlot(typeof e == "string" ? e : e?.src ?? "", typeof e == "string" ? "" : e?.alt ?? "", typeof e == "string" ? null : e?.width ?? null, typeof e == "string" ? null : e?.height ?? null);
45811
45804
  }
@@ -45819,7 +45812,7 @@ function registerQuillImageBlot(e) {
45819
45812
  };
45820
45813
  }
45821
45814
  }
45822
- e.register("formats/image", n, !0);
45815
+ n.blotName = "image", n.tagName = IMG_BLOT_TAG, n.className = "qt-image-blot", e.register("formats/image", n, !0);
45823
45816
  }
45824
45817
  function buildTable(e, t) {
45825
45818
  let n = document.createElement("table");
@@ -46508,8 +46501,6 @@ function createTableBlot(e = 2, t = 2, n = "clean") {
46508
46501
  function registerQuillTableBlot(e) {
46509
46502
  let t = e.import("blots/block/embed");
46510
46503
  class n extends t {
46511
- static blotName = "table";
46512
- static tagName = "table-blot";
46513
46504
  static create(e) {
46514
46505
  let t = e?.theme ?? "clean", n = parseTableHtml(e?.html), r = createTableBlot(e?.rows ?? n?.rows.length ?? 2, e?.cols ?? getMaxCols(n) ?? 2, t);
46515
46506
  if (r.style.display = "inline-block", r.style.maxWidth = "100%", n) {
@@ -46528,7 +46519,7 @@ function registerQuillTableBlot(e) {
46528
46519
  };
46529
46520
  }
46530
46521
  }
46531
- e.register("formats/table", n, !0);
46522
+ n.blotName = "table", n.tagName = "table-blot", e.register("formats/table", n, !0);
46532
46523
  }
46533
46524
  function parseTableHtml(e) {
46534
46525
  if (!e) return null;
@@ -46566,9 +46557,6 @@ function registerQuillChemBlot(e) {
46566
46557
  registered = !0;
46567
46558
  let t = e.import("blots/embed");
46568
46559
  class n extends t {
46569
- static blotName = "chem";
46570
- static tagName = "span";
46571
- static className = "qt-chem-blot";
46572
46560
  static create(e) {
46573
46561
  let n = t.create(), r = typeof e == "string" ? e : e?.formula ?? "";
46574
46562
  return n.setAttribute(DATA_FORMULA, r), n.setAttribute("contenteditable", "false"), n.__formula = r, n.appendChild(createChemSpan(r)), n.addEventListener("pointerdown", (e) => {
@@ -46584,7 +46572,7 @@ function registerQuillChemBlot(e) {
46584
46572
  return e.__formula ?? e.getAttribute("data-formula") ?? "";
46585
46573
  }
46586
46574
  }
46587
- e.register("formats/chem", n, !0);
46575
+ n.blotName = "chem", n.tagName = "span", n.className = "qt-chem-blot", e.register("formats/chem", n, !0);
46588
46576
  }
46589
46577
  function createChemEditor(e, t) {
46590
46578
  let n = document.createElement(CHEM_SPAN_TAG);
@@ -1 +1 @@
1
- {"version":3,"file":"quill-chem-blot.d.ts","sourceRoot":"","sources":["../../src/quill-chem-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AAI9B,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAwCjE"}
1
+ {"version":3,"file":"quill-chem-blot.d.ts","sourceRoot":"","sources":["../../src/quill-chem-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AAI9B,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAuCjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"quill-image-blot.d.ts","sourceRoot":"","sources":["../../src/quill-image-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AA4C9B,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAmClE"}
1
+ {"version":3,"file":"quill-image-blot.d.ts","sourceRoot":"","sources":["../../src/quill-image-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AA4C9B,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CAkClE"}
@@ -1 +1 @@
1
- {"version":3,"file":"quill-math-blot.d.ts","sourceRoot":"","sources":["../../src/quill-math-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AAI9B,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CA4CjE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,CAMlE"}
1
+ {"version":3,"file":"quill-math-blot.d.ts","sourceRoot":"","sources":["../../src/quill-math-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,SAAS,GAAG,OAAO,KAAK,CAAC;AAI9B,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,GAAG,IAAI,CA2CjE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,CAMlE"}
@@ -1 +1 @@
1
- {"version":3,"file":"quill-table-blot.d.ts","sourceRoot":"","sources":["../../src/quill-table-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,OAAO,CAAC;AAanC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,SAAS,GAAG,IAAI,CA6CpE"}
1
+ {"version":3,"file":"quill-table-blot.d.ts","sourceRoot":"","sources":["../../src/quill-table-blot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,OAAO,CAAC;AAanC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,SAAS,GAAG,IAAI,CA4CpE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@musaaj/simpleeditor",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "type": "module",
6
6
  "main": "./dist/simpleeditor.js",
7
7
  "module": "./dist/simpleeditor.js",