@fileverse-dev/ddoc 2.1.1-patch-10 → 2.1.1-patch-11

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 (2) hide show
  1. package/dist/index.es.js +5 -5
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -80039,7 +80039,7 @@ const m5 = [
80039
80039
  onClick: () => {
80040
80040
  t == null || t.chain().focus().deleteRange(t.state.selection).run();
80041
80041
  const v = document.createElement("input");
80042
- v.type = "file", v.accept = "image/png, image/jpeg", v.onchange = async () => {
80042
+ v.type = "file", v.accept = "image/png, image/jpeg, image/gif", v.onchange = async () => {
80043
80043
  var k;
80044
80044
  if ((k = v.files) != null && k.length) {
80045
80045
  const b = v.files[0];
@@ -80161,7 +80161,7 @@ const m5 = [
80161
80161
  onClick: () => {
80162
80162
  t == null || t.chain().focus().deleteRange(t.state.selection).run();
80163
80163
  const v = document.createElement("input");
80164
- v.type = "file", v.accept = "image/png, image/jpeg", v.onchange = async () => {
80164
+ v.type = "file", v.accept = "image/png, image/jpeg, image/gif", v.onchange = async () => {
80165
80165
  var k;
80166
80166
  if ((k = v.files) != null && k.length) {
80167
80167
  const b = v.files[0];
@@ -100437,8 +100437,8 @@ const r3 = ({
100437
100437
  let x = !1, C = -1;
100438
100438
  if (i.descendants((E, L) => {
100439
100439
  if (C !== -1) return !1;
100440
- E.type.name === "pageBreak" && (x = !0, C = L);
100441
- }), x)
100440
+ E.type.name === "pageBreak" && L < n && (x = !0, C = L);
100441
+ }), x && d && n === C + 2)
100442
100442
  return !0;
100443
100443
  }
100444
100444
  const h = n > 4 ? ((g = i.nodeAt(n - 4)) == null ? void 0 : g.type.name) === "dBlock" : !1, p = n > 2 ? ((v = i.nodeAt(n - 2)) == null ? void 0 : v.type.name) === "listItem" || ((k = i.nodeAt(n - 2)) == null ? void 0 : k.type.name) === "taskItem" : !1, m = ((b = e.node(e.depth - 2)) == null ? void 0 : b.childCount) > 1 || ((w = e.node(e.depth - 1)) == null ? void 0 : w.childCount) > 1;
@@ -137101,7 +137101,7 @@ const Umt = async (t, e) => {
137101
137101
  command: ({ editor: r, range: i }) => {
137102
137102
  r.chain().focus().deleteRange(i).run();
137103
137103
  const s = document.createElement("input");
137104
- s.type = "file", s.accept = "image/png, image/jpeg", s.onchange = async () => {
137104
+ s.type = "file", s.accept = "image/png, image/jpeg, image/gif", s.onchange = async () => {
137105
137105
  var o;
137106
137106
  if ((o = s.files) != null && o.length) {
137107
137107
  const a = s.files[0];
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.1.1-patch-10",
5
+ "version": "2.1.1-patch-11",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {