tiptapify 0.0.28 → 0.0.29

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.
@@ -17401,18 +17401,18 @@ const xk2 = r1({
17401
17401
  l();
17402
17402
  function V(u) {
17403
17403
  switch (u) {
17404
- case "disc":
17404
+ case "bulletList":
17405
17405
  r.value.commands.toggleBulletList();
17406
17406
  break;
17407
- case "circle":
17407
+ case "bulletListCircle":
17408
17408
  r.value.commands.toggleBulletListCircle();
17409
17409
  break;
17410
- case "square":
17410
+ case "bulletListSquare":
17411
17411
  r.value.commands.toggleBulletListSquare();
17412
17412
  break;
17413
17413
  }
17414
17414
  }
17415
- const L = F(() => r.value.isActive("bulletList") || r.value.isActive("bulletListCircle") || r.value.isActive("bulletListSquare")), c = F(() => !r.value.can().chain().focus().toggleBulletList().run() && !r.value.can().chain().focus().toggleBulletListCircle().run() && !r.value.can().chain().focus().toggleBulletListSquare().run());
17415
+ const L = F(() => r.value.isActive("bulletList") || r.value.isActive("bulletListCircle") || r.value.isActive("bulletListSquare")), c = F(() => !r.value.can().chain().focus().toggleBulletList().run() && !r.value.can().chain().focus().toggleBulletListCircle().run() && !r.value.can().chain().focus().toggleBulletListSquare().run() && !r.value.can().chain().focus().toggleOrderedList().run() && !r.value.can().chain().focus().toggleTaskList().run());
17416
17416
  return y1(() => C.value, () => {
17417
17417
  l();
17418
17418
  }, { deep: !0, immediate: !0 }), (u, d) => H.value ? (X(), b1(z5, { key: 0 }, {
@@ -17443,7 +17443,7 @@ const xk2 = r1({
17443
17443
  key: m,
17444
17444
  link: "",
17445
17445
  active: Z(r).isActive(M.name),
17446
- onClick: (f) => V(m)
17446
+ onClick: (f) => V(M.name)
17447
17447
  }, {
17448
17448
  default: S(() => [
17449
17449
  p(B1, { activator: "parent" }, {
@@ -17496,12 +17496,12 @@ const xk2 = r1({
17496
17496
  variantBtn: { type: String, default: R1.variantBtn }
17497
17497
  },
17498
17498
  setup(e) {
17499
- const t = $("tiptapifyEditor"), { t: r } = $("tiptapifyI18n");
17500
- return (n, a) => (X(), b1(m1, {
17499
+ const t = $("tiptapifyEditor"), { t: r } = $("tiptapifyI18n"), n = F(() => !t.value.can().chain().focus().toggleBulletList().run() && !t.value.can().chain().focus().toggleBulletListCircle().run() && !t.value.can().chain().focus().toggleBulletListSquare().run() && !t.value.can().chain().focus().toggleOrderedList().run() && !t.value.can().chain().focus().toggleTaskList().run());
17500
+ return (a, i) => (X(), b1(m1, {
17501
17501
  color: Z(t).isActive("orderedList") ? "primary" : "",
17502
- disabled: !Z(t).can().chain().focus().toggleOrderedList().run(),
17502
+ disabled: n.value,
17503
17503
  variant: e.variantBtn,
17504
- onClick: a[0] || (a[0] = (i) => Z(t).commands.toggleOrderedList()),
17504
+ onClick: i[0] || (i[0] = (o) => Z(t).commands.toggleOrderedList()),
17505
17505
  size: "32"
17506
17506
  }, {
17507
17507
  default: S(() => [
@@ -17524,12 +17524,12 @@ const xk2 = r1({
17524
17524
  variantBtn: { type: String, default: R1.variantBtn }
17525
17525
  },
17526
17526
  setup(e) {
17527
- const t = $("tiptapifyEditor"), { t: r } = $("tiptapifyI18n");
17528
- return (n, a) => (X(), b1(m1, {
17527
+ const t = $("tiptapifyEditor"), { t: r } = $("tiptapifyI18n"), n = F(() => !t.value.can().chain().focus().toggleBulletList().run() && !t.value.can().chain().focus().toggleBulletListCircle().run() && !t.value.can().chain().focus().toggleBulletListSquare().run() && !t.value.can().chain().focus().toggleOrderedList().run() && !t.value.can().chain().focus().toggleTaskList().run());
17528
+ return (a, i) => (X(), b1(m1, {
17529
17529
  color: Z(t).isActive("taskList") ? "primary" : "",
17530
- disabled: !Z(t).can().chain().focus().toggleTaskList().run(),
17530
+ disabled: n.value,
17531
17531
  variant: e.variantBtn,
17532
- onClick: a[0] || (a[0] = (i) => Z(t).commands.toggleTaskList()),
17532
+ onClick: i[0] || (i[0] = (o) => Z(t).commands.toggleTaskList()),
17533
17533
  size: "32"
17534
17534
  }, {
17535
17535
  default: S(() => [