fubi 1.0.0-beta.10 → 1.0.0-beta.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.
package/dist/index.es.js CHANGED
@@ -18804,7 +18804,7 @@ var root_6$7 = /* @__PURE__ */ from_html(`<div><!> <!></div>`);
18804
18804
  var root_15 = /* @__PURE__ */ from_html(`<div class="h-120 w-full flex-center"><!></div>`);
18805
18805
  var root_20 = /* @__PURE__ */ from_html(`<a target="_blank" class="text-sky-400 hover:underline">Create a folder</a>.`, 1);
18806
18806
  var root_18 = /* @__PURE__ */ from_html(`<p>There are no folders in this project.<br/> <!></p>`);
18807
- var root_17 = /* @__PURE__ */ from_html(`<p class="p-4 text-center text-sm text-gray-500">No folders</p> <!>`, 1);
18807
+ var root_17$1 = /* @__PURE__ */ from_html(`<p class="p-4 text-center text-sm text-gray-500">No folders</p> <!>`, 1);
18808
18808
  var root_22 = /* @__PURE__ */ from_html(`<p class="p-4 text-center text-sm text-red-500">Error loading folders</p>`);
18809
18809
  var root_10$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
18810
18810
  var root_5$4 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
@@ -19004,7 +19004,7 @@ function Folders($$anchor, $$props) {
19004
19004
  var node_16 = first_child(fragment_10);
19005
19005
  {
19006
19006
  var consequent_4 = ($$anchor6) => {
19007
- var fragment_11 = root_17();
19007
+ var fragment_11 = root_17$1();
19008
19008
  var node_17 = sibling(first_child(fragment_11), 2);
19009
19009
  StatusMessage(node_17, {
19010
19010
  get icon() {
@@ -19094,7 +19094,7 @@ var root_11$2 = /* @__PURE__ */ from_html(`<div><div class="flex flex-col items-
19094
19094
  var root_10$3 = /* @__PURE__ */ from_html(`<a><!></a>`);
19095
19095
  var root_6$6 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
19096
19096
  var root_4$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
19097
- var root_16$1 = /* @__PURE__ */ from_html(`<div class="flex-center h-full"><!></div>`);
19097
+ var root_16 = /* @__PURE__ */ from_html(`<div class="flex-center h-full"><!></div>`);
19098
19098
  var root_2$f = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
19099
19099
  var root_1$o = /* @__PURE__ */ from_html(`<!> <!>`, 1);
19100
19100
  function Pages($$anchor, $$props) {
@@ -19331,7 +19331,7 @@ function Pages($$anchor, $$props) {
19331
19331
  var node_12 = sibling(node_3, 2);
19332
19332
  {
19333
19333
  var consequent_5 = ($$anchor4) => {
19334
- var div_4 = root_16$1();
19334
+ var div_4 = root_16();
19335
19335
  var node_13 = child(div_4);
19336
19336
  Spinner(node_13);
19337
19337
  append($$anchor4, div_4);
@@ -19749,7 +19749,7 @@ function DropdownMenu_1($$anchor, $$props) {
19749
19749
  var root_2$c = /* @__PURE__ */ from_html(`<div class="flex-center h-36 group-aria-disabled/item:opacity-30"><!></div>`);
19750
19750
  var root_3$4 = /* @__PURE__ */ from_html(`<div><!></div>`);
19751
19751
  var root_4$7 = /* @__PURE__ */ from_html(`<p> </p>`);
19752
- var root_1$k = /* @__PURE__ */ from_html(`<!> <!> <div><p> </p> <!></div> <div class="flex-center pr-8"><!></div>`, 1);
19752
+ var root_1$k = /* @__PURE__ */ from_html(`<!> <!> <div><p> </p> <!></div> <div class="flex-center pr-8 group-aria-disabled/item:opacity-30"><!></div>`, 1);
19753
19753
  function DropdownItem($$anchor, $$props) {
19754
19754
  push($$props, true);
19755
19755
  let component2 = prop($$props, "component", 19, () => Menu_item), type = prop($$props, "type", 3, "default"), rest = /* @__PURE__ */ rest_props($$props, [
@@ -21090,7 +21090,7 @@ function SearchInput($$anchor, $$props) {
21090
21090
  append($$anchor2, div);
21091
21091
  };
21092
21092
  if_block(node, ($$render) => {
21093
- if (settings.appearance.searchVisible && !hide2()) $$render(consequent);
21093
+ if (settings.data.appearance.searchVisible && !hide2()) $$render(consequent);
21094
21094
  });
21095
21095
  }
21096
21096
  append($$anchor, fragment);
@@ -21119,18 +21119,21 @@ function DropdownSubmenu($$anchor, $$props) {
21119
21119
  children: ($$anchor3, $$slotProps) => {
21120
21120
  var fragment_1 = root_1$e();
21121
21121
  var node_1 = first_child(fragment_1);
21122
- DropdownItem(node_1, {
21123
- get component() {
21124
- return Menu_sub_trigger;
21125
- },
21126
- get title() {
21127
- return $$props.title;
21128
- },
21129
- get icon() {
21130
- return $$props.icon;
21122
+ DropdownItem(node_1, spread_props(
21123
+ {
21124
+ get component() {
21125
+ return Menu_sub_trigger;
21126
+ },
21127
+ get title() {
21128
+ return $$props.title;
21129
+ },
21130
+ get icon() {
21131
+ return $$props.icon;
21132
+ },
21133
+ chevron: true
21131
21134
  },
21132
- chevron: true
21133
- });
21135
+ () => rest
21136
+ ));
21134
21137
  var node_2 = sibling(node_1, 2);
21135
21138
  component(node_2, () => Portal, ($$anchor4, DropdownMenu_Portal) => {
21136
21139
  DropdownMenu_Portal($$anchor4, {
@@ -21325,16 +21328,17 @@ function DeleteCommentDialog($$anchor, $$props) {
21325
21328
  }
21326
21329
  pop();
21327
21330
  }
21328
- var root_6$3 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
21329
- var root_7$2 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
21330
- var root_5$2 = /* @__PURE__ */ from_html(`<!> <!> <!> <div class="list-divider"></div> <!> <div class="list-divider"></div> <!>`, 1);
21331
+ var root_7$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
21332
+ var root_8$2 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
21333
+ var root_6$3 = /* @__PURE__ */ from_html(`<div class="list-divider"></div> <!> <div class="list-divider"></div> <!>`, 1);
21334
+ var root_5$2 = /* @__PURE__ */ from_html(`<!> <!> <!> <!>`, 1);
21331
21335
  var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
21332
- var root_9$2 = /* @__PURE__ */ from_html(`<p class="text-base/none"> <span class="text-white"> </span></p>`);
21333
- var root_8$2 = /* @__PURE__ */ from_html(`<!> <div class="flex-[1.5] flex"><!> <!> <!></div>`, 1);
21334
- var root_12$1 = /* @__PURE__ */ from_html(`<div><!></div>`);
21335
- var root_11$1 = /* @__PURE__ */ from_html(`<div class="flex flex-col gap-6"><!> <!></div>`);
21336
- var root_16 = /* @__PURE__ */ from_html(`<p>Error loading</p>`);
21337
- var root_10$2 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
21336
+ var root_10$2 = /* @__PURE__ */ from_html(`<p class="text-base/none"> <span class="text-white"> </span></p>`);
21337
+ var root_9$2 = /* @__PURE__ */ from_html(`<!> <div class="flex-[1.5] flex"><!> <!> <!></div>`, 1);
21338
+ var root_13 = /* @__PURE__ */ from_html(`<div><!></div>`);
21339
+ var root_12$1 = /* @__PURE__ */ from_html(`<div class="flex flex-col gap-6"><!> <!></div>`);
21340
+ var root_17 = /* @__PURE__ */ from_html(`<p>Error loading</p>`);
21341
+ var root_11$1 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
21338
21342
  var root_1$d = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
21339
21343
  function Comments$1($$anchor, $$props) {
21340
21344
  push($$props, true);
@@ -21351,6 +21355,10 @@ function Comments$1($$anchor, $$props) {
21351
21355
  return Math.round(get$2(doneThreads) / totalThreads * 100);
21352
21356
  });
21353
21357
  let dropdownOpened = /* @__PURE__ */ state(false);
21358
+ let noComments = /* @__PURE__ */ user_derived(() => {
21359
+ var _a2, _b2;
21360
+ return pages.ready && pages.valid && (((_a2 = comments.data) == null ? void 0 : _a2.length) === 0 || pages.isNew || ((_b2 = comments == null ? void 0 : comments.threadsWithStatus) == null ? void 0 : _b2.length) === 0 && meta.visible);
21361
+ });
21354
21362
  Page($$anchor, {
21355
21363
  name: "comments",
21356
21364
  children: ($$anchor2, $$slotProps) => {
@@ -21443,63 +21451,74 @@ function Comments$1($$anchor, $$props) {
21443
21451
  onclick: () => {
21444
21452
  }
21445
21453
  });
21446
- var node_6 = sibling(node_5, 4);
21447
- DropdownSubmenu(node_6, {
21448
- title: "Show",
21449
- get icon() {
21450
- return tm;
21451
- },
21452
- children: ($$anchor5, $$slotProps3) => {
21454
+ var node_6 = sibling(node_5, 2);
21455
+ {
21456
+ var consequent = ($$anchor5) => {
21453
21457
  var fragment_6 = root_6$3();
21454
- var node_7 = first_child(fragment_6);
21455
- {
21456
- let $02 = /* @__PURE__ */ user_derived(() => !!settings.appearance.searchVisible);
21457
- DropdownItem(node_7, {
21458
- title: "Search",
21459
- get checked() {
21460
- return get$2($02);
21461
- },
21462
- onclick: () => settings.appearance.searchVisible = !settings.appearance.searchVisible,
21463
- closeOnSelect: false
21464
- });
21465
- }
21466
- var node_8 = sibling(node_7, 2);
21467
- {
21468
- let $02 = /* @__PURE__ */ user_derived(() => !!settings.overviews.overviewCommentsVisible);
21469
- DropdownItem(node_8, {
21470
- title: "Overview",
21471
- get checked() {
21472
- return get$2($02);
21473
- },
21474
- onclick: () => settings.overviews.overviewCommentsVisible = !settings.overviews.overviewCommentsVisible,
21475
- closeOnSelect: false
21476
- });
21477
- }
21478
- append($$anchor5, fragment_6);
21479
- },
21480
- $$slots: { default: true }
21481
- });
21482
- var node_9 = sibling(node_6, 4);
21483
- DropdownSubmenu(node_9, {
21484
- title: "Sort by",
21485
- get icon() {
21486
- return noC;
21487
- },
21488
- children: ($$anchor5, $$slotProps3) => {
21489
- var fragment_7 = root_7$2();
21490
- var node_10 = first_child(fragment_7);
21491
- DropdownItem(node_10, { title: "Date" });
21492
- var node_11 = sibling(node_10, 2);
21493
- DropdownItem(node_11, { title: "Priority" });
21494
- var node_12 = sibling(node_11, 2);
21495
- DropdownItem(node_12, {
21496
- title: "Importance",
21497
- subtitle: "Mentions, Yours, Other, Done"
21458
+ var node_7 = sibling(first_child(fragment_6), 2);
21459
+ DropdownSubmenu(node_7, {
21460
+ title: "Show",
21461
+ get icon() {
21462
+ return tm;
21463
+ },
21464
+ disabled: true,
21465
+ children: ($$anchor6, $$slotProps3) => {
21466
+ var fragment_7 = root_7$2();
21467
+ var node_8 = first_child(fragment_7);
21468
+ {
21469
+ let $02 = /* @__PURE__ */ user_derived(() => !!settings.data.appearance.searchVisible);
21470
+ DropdownItem(node_8, {
21471
+ title: "Search",
21472
+ get checked() {
21473
+ return get$2($02);
21474
+ },
21475
+ onclick: () => settings.data.appearance.searchVisible = !settings.data.appearance.searchVisible,
21476
+ closeOnSelect: false
21477
+ });
21478
+ }
21479
+ var node_9 = sibling(node_8, 2);
21480
+ {
21481
+ let $02 = /* @__PURE__ */ user_derived(() => !!settings.data.overviews.overviewCommentsVisible);
21482
+ DropdownItem(node_9, {
21483
+ title: "Overview",
21484
+ get checked() {
21485
+ return get$2($02);
21486
+ },
21487
+ onclick: () => settings.data.overviews.overviewCommentsVisible = !settings.data.overviews.overviewCommentsVisible,
21488
+ closeOnSelect: false
21489
+ });
21490
+ }
21491
+ append($$anchor6, fragment_7);
21492
+ },
21493
+ $$slots: { default: true }
21498
21494
  });
21499
- append($$anchor5, fragment_7);
21500
- },
21501
- $$slots: { default: true }
21502
- });
21495
+ var node_10 = sibling(node_7, 4);
21496
+ DropdownSubmenu(node_10, {
21497
+ title: "Sort by",
21498
+ get icon() {
21499
+ return noC;
21500
+ },
21501
+ children: ($$anchor6, $$slotProps3) => {
21502
+ var fragment_8 = root_8$2();
21503
+ var node_11 = first_child(fragment_8);
21504
+ DropdownItem(node_11, { title: "Date" });
21505
+ var node_12 = sibling(node_11, 2);
21506
+ DropdownItem(node_12, { title: "Priority" });
21507
+ var node_13 = sibling(node_12, 2);
21508
+ DropdownItem(node_13, {
21509
+ title: "Importance",
21510
+ subtitle: "Mentions, Yours, Other, Done"
21511
+ });
21512
+ append($$anchor6, fragment_8);
21513
+ },
21514
+ $$slots: { default: true }
21515
+ });
21516
+ append($$anchor5, fragment_6);
21517
+ };
21518
+ if_block(node_6, ($$render) => {
21519
+ if (!get$2(noComments)) $$render(consequent);
21520
+ });
21521
+ }
21503
21522
  append($$anchor4, fragment_5);
21504
21523
  },
21505
21524
  $$slots: { child: true, default: true }
@@ -21525,71 +21544,74 @@ function Comments$1($$anchor, $$props) {
21525
21544
  $$slots: { after: true }
21526
21545
  });
21527
21546
  }
21528
- var node_13 = sibling(node, 2);
21529
- Overview(node_13, {
21530
- get visible() {
21531
- return can.displayCommentsOverview;
21532
- },
21533
- children: ($$anchor3, $$slotProps2) => {
21534
- var fragment_8 = root_8$2();
21535
- var node_14 = first_child(fragment_8);
21536
- Stat(node_14, {
21537
- get progress() {
21538
- return get$2(commentsProgress);
21539
- },
21540
- radius: 12,
21541
- title: "Progress",
21542
- class: "border-white/10 border-r-[0.5px]"
21543
- });
21544
- var div = sibling(node_14, 2);
21545
- var node_15 = child(div);
21546
- Stat(node_15, {
21547
- title: "Done",
21548
- class: "pl-12",
21549
- children: ($$anchor4, $$slotProps3) => {
21550
- var p = root_9$2();
21551
- var text2 = child(p);
21552
- var span = sibling(text2);
21553
- var text_1 = child(span);
21554
- template_effect(() => {
21555
- var _a2;
21556
- set_text(text2, get$2(doneThreads));
21557
- set_text(text_1, `/${(((_a2 = comments.threadsWithStatus) == null ? void 0 : _a2.length) || 0) ?? ""}`);
21558
- });
21559
- append($$anchor4, p);
21560
- },
21561
- $$slots: { default: true }
21562
- });
21563
- var node_16 = sibling(node_15, 2);
21564
- Stat(node_16, { title: "Todo", class: "pl-12", content: 24 });
21565
- var node_17 = sibling(node_16, 2);
21566
- Stat(node_17, { title: "Priority", class: "pl-12", content: 24 });
21567
- append($$anchor3, fragment_8);
21568
- },
21569
- $$slots: { default: true }
21570
- });
21571
- var node_18 = sibling(node_13, 2);
21572
- PageContent(node_18, {
21547
+ var node_14 = sibling(node, 2);
21548
+ {
21549
+ let $0 = /* @__PURE__ */ user_derived(() => !!can.displayCommentsOverview);
21550
+ Overview(node_14, {
21551
+ get visible() {
21552
+ return get$2($0);
21553
+ },
21554
+ children: ($$anchor3, $$slotProps2) => {
21555
+ var fragment_9 = root_9$2();
21556
+ var node_15 = first_child(fragment_9);
21557
+ Stat(node_15, {
21558
+ get progress() {
21559
+ return get$2(commentsProgress);
21560
+ },
21561
+ radius: 12,
21562
+ title: "Progress",
21563
+ class: "border-white/10 border-r-[0.5px]"
21564
+ });
21565
+ var div = sibling(node_15, 2);
21566
+ var node_16 = child(div);
21567
+ Stat(node_16, {
21568
+ title: "Done",
21569
+ class: "pl-12",
21570
+ children: ($$anchor4, $$slotProps3) => {
21571
+ var p = root_10$2();
21572
+ var text2 = child(p);
21573
+ var span = sibling(text2);
21574
+ var text_1 = child(span);
21575
+ template_effect(() => {
21576
+ var _a2;
21577
+ set_text(text2, get$2(doneThreads));
21578
+ set_text(text_1, `/${(((_a2 = comments.threadsWithStatus) == null ? void 0 : _a2.length) || 0) ?? ""}`);
21579
+ });
21580
+ append($$anchor4, p);
21581
+ },
21582
+ $$slots: { default: true }
21583
+ });
21584
+ var node_17 = sibling(node_16, 2);
21585
+ Stat(node_17, { title: "Todo", class: "pl-12", content: 24 });
21586
+ var node_18 = sibling(node_17, 2);
21587
+ Stat(node_18, { title: "Priority", class: "pl-12", content: 24 });
21588
+ append($$anchor3, fragment_9);
21589
+ },
21590
+ $$slots: { default: true }
21591
+ });
21592
+ }
21593
+ var node_19 = sibling(node_14, 2);
21594
+ PageContent(node_19, {
21573
21595
  children: ($$anchor3, $$slotProps2) => {
21574
- var fragment_9 = root_10$2();
21575
- var node_19 = first_child(fragment_9);
21596
+ var fragment_10 = root_11$1();
21597
+ var node_20 = first_child(fragment_10);
21576
21598
  {
21577
- var consequent_1 = ($$anchor4) => {
21578
- var div_1 = root_11$1();
21579
- var node_20 = child(div_1);
21580
- SearchInput(node_20, {});
21581
- var node_21 = sibling(node_20, 2);
21599
+ var consequent_2 = ($$anchor4) => {
21600
+ var div_1 = root_12$1();
21601
+ var node_21 = child(div_1);
21602
+ SearchInput(node_21, {});
21603
+ var node_22 = sibling(node_21, 2);
21582
21604
  each(
21583
- node_21,
21605
+ node_22,
21584
21606
  25,
21585
21607
  () => (comments == null ? void 0 : comments.threadsWithStatus) ?? [],
21586
21608
  (comment2) => comment2.id,
21587
21609
  ($$anchor5, comment2) => {
21588
- var div_2 = root_12$1();
21589
- var node_22 = child(div_2);
21610
+ var div_2 = root_13();
21611
+ var node_23 = child(div_2);
21590
21612
  {
21591
21613
  let $0 = /* @__PURE__ */ user_derived(() => hover.mode.selector === get$2(comment2).selector);
21592
- CommentCard(node_22, spread_props(
21614
+ CommentCard(node_23, spread_props(
21593
21615
  {
21594
21616
  get focused() {
21595
21617
  return get$2($0);
@@ -21604,10 +21626,10 @@ function Comments$1($$anchor, $$props) {
21604
21626
  append($$anchor5, div_2);
21605
21627
  },
21606
21628
  ($$anchor5) => {
21607
- var fragment_10 = comment();
21608
- var node_23 = first_child(fragment_10);
21629
+ var fragment_11 = comment();
21630
+ var node_24 = first_child(fragment_11);
21609
21631
  {
21610
- var consequent = ($$anchor6) => {
21632
+ var consequent_1 = ($$anchor6) => {
21611
21633
  {
21612
21634
  let $0 = /* @__PURE__ */ user_derived(() => `No results for: "<strong>${comments.filters.search}</strong>"`);
21613
21635
  StatusMessage($$anchor6, {
@@ -21622,43 +21644,43 @@ function Comments$1($$anchor, $$props) {
21622
21644
  });
21623
21645
  }
21624
21646
  };
21625
- if_block(node_23, ($$render) => {
21626
- if (comments.filters.search) $$render(consequent);
21647
+ if_block(node_24, ($$render) => {
21648
+ if (comments.filters.search) $$render(consequent_1);
21627
21649
  });
21628
21650
  }
21629
- append($$anchor5, fragment_10);
21651
+ append($$anchor5, fragment_11);
21630
21652
  }
21631
21653
  );
21632
21654
  transition(3, div_1, () => slide, () => ({ axis: "y", duration: 200 }));
21633
21655
  append($$anchor4, div_1);
21634
21656
  };
21635
21657
  var alternate = ($$anchor4) => {
21636
- var fragment_12 = comment();
21637
- var node_24 = first_child(fragment_12);
21658
+ var fragment_13 = comment();
21659
+ var node_25 = first_child(fragment_13);
21638
21660
  {
21639
- var consequent_2 = ($$anchor5) => {
21640
- var p_1 = root_16();
21661
+ var consequent_3 = ($$anchor5) => {
21662
+ var p_1 = root_17();
21641
21663
  append($$anchor5, p_1);
21642
21664
  };
21643
21665
  if_block(
21644
- node_24,
21666
+ node_25,
21645
21667
  ($$render) => {
21646
- if (comments == null ? void 0 : comments.error) $$render(consequent_2);
21668
+ if (comments == null ? void 0 : comments.error) $$render(consequent_3);
21647
21669
  },
21648
21670
  true
21649
21671
  );
21650
21672
  }
21651
- append($$anchor4, fragment_12);
21673
+ append($$anchor4, fragment_13);
21652
21674
  };
21653
- if_block(node_19, ($$render) => {
21675
+ if_block(node_20, ($$render) => {
21654
21676
  var _a2;
21655
- if (pages.ready && pages.valid && (comments == null ? void 0 : comments.filteredThreads) && ((_a2 = comments.data) == null ? void 0 : _a2.length) !== 0) $$render(consequent_1);
21677
+ if (pages.ready && pages.valid && (comments == null ? void 0 : comments.filteredThreads) && ((_a2 = comments.data) == null ? void 0 : _a2.length) !== 0) $$render(consequent_2);
21656
21678
  else $$render(alternate, false);
21657
21679
  });
21658
21680
  }
21659
- var node_25 = sibling(node_19, 2);
21681
+ var node_26 = sibling(node_20, 2);
21660
21682
  {
21661
- var consequent_3 = ($$anchor4) => {
21683
+ var consequent_4 = ($$anchor4) => {
21662
21684
  {
21663
21685
  let $0 = /* @__PURE__ */ user_derived(() => comments.filters.search ? `No results for: "${comments.filters.search}"` : `Be the first to comment`);
21664
21686
  StatusMessage($$anchor4, {
@@ -21673,14 +21695,13 @@ function Comments$1($$anchor, $$props) {
21673
21695
  });
21674
21696
  }
21675
21697
  };
21676
- if_block(node_25, ($$render) => {
21677
- var _a2, _b2;
21678
- if (pages.ready && pages.valid && (((_a2 = comments.data) == null ? void 0 : _a2.length) === 0 || pages.isNew || ((_b2 = comments == null ? void 0 : comments.threadsWithStatus) == null ? void 0 : _b2.length) === 0 && meta.visible)) $$render(consequent_3);
21698
+ if_block(node_26, ($$render) => {
21699
+ if (get$2(noComments)) $$render(consequent_4);
21679
21700
  });
21680
21701
  }
21681
- var node_26 = sibling(node_25, 2);
21682
- DeleteCommentDialog(node_26, {});
21683
- append($$anchor3, fragment_9);
21702
+ var node_27 = sibling(node_26, 2);
21703
+ DeleteCommentDialog(node_27, {});
21704
+ append($$anchor3, fragment_10);
21684
21705
  },
21685
21706
  $$slots: { default: true }
21686
21707
  });
@@ -21983,7 +22004,7 @@ function CommentForm($$anchor, $$props) {
21983
22004
  const selector = hover.mode.selector;
21984
22005
  if (!selector) return;
21985
22006
  const meta = !!((_a2 = hover.info) == null ? void 0 : _a2.meta);
21986
- bus.emit("comment-input:submit", "CommentForm", {
22007
+ bus.emit("comment-input:submit", {
21987
22008
  page: pages.current.id,
21988
22009
  parent: parent(),
21989
22010
  selector,
@@ -22720,7 +22741,7 @@ function Settings2($$anchor, $$props) {
22720
22741
  append($$anchor4, fragment_3);
22721
22742
  });
22722
22743
  var div = sibling(node_2, 2);
22723
- div.textContent = `Version ${"1.0.0-beta.10"}`;
22744
+ div.textContent = `Version ${"1.0.0-beta.11"}`;
22724
22745
  append($$anchor3, fragment_2);
22725
22746
  },
22726
22747
  $$slots: { default: true }
@@ -23907,6 +23928,7 @@ class Comments extends CollectionModule {
23907
23928
  info,
23908
23929
  createdBy: this.modules.auth.user.id
23909
23930
  };
23931
+ this.log.info("Creating comment:", data);
23910
23932
  await this.create(data);
23911
23933
  this.emit("comments:created", { data });
23912
23934
  });
@@ -24829,7 +24851,7 @@ let Meta$1 = (_i = class extends Module {
24829
24851
  class Can extends Module {
24830
24852
  constructor() {
24831
24853
  super(...arguments);
24832
- __privateAdd(this, _enableHover, /* @__PURE__ */ user_derived(() => !!this.modules.auth.user));
24854
+ __privateAdd(this, _enableHover, /* @__PURE__ */ user_derived(() => !!this.modules.auth.user && this.modules.folders.canAccess));
24833
24855
  __privateAdd(this, _trackHover, /* @__PURE__ */ user_derived(() => this.modules.hover.enabled && !this.modules.hover.isIsolated));
24834
24856
  __privateAdd(this, _hoverElement, /* @__PURE__ */ user_derived(() => this.modules.hover.enabled && !this.modules.hover.isIsolated && !this.modules.hover.insideFubi));
24835
24857
  __privateAdd(this, _isolateFromHover, /* @__PURE__ */ user_derived(() => !this.modules.hover.isIsolated && !this.modules.hover.emptyHover && !!this.modules.hover.info && !!this.modules.hover.current));