@wildwinter/app-shell 0.19.0 → 0.21.0

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.cjs CHANGED
@@ -49,7 +49,7 @@ function tagChips(holder, onChange) {
49
49
  const chip = el("span", "shell-tag", v);
50
50
  const x = el("button", "shell-tag-x", "\u2715");
51
51
  x.type = "button";
52
- x.title = `remove ${v}`;
52
+ x.dataset["tip"] = `remove ${v}`;
53
53
  x.setAttribute("aria-label", `remove ${v}`);
54
54
  x.addEventListener("click", () => {
55
55
  holder.values = (holder.values ?? []).filter((o) => o !== v);
@@ -319,7 +319,7 @@ function expandableRow(opts) {
319
319
  for (const d of opts.details) details.append(d);
320
320
  const toggle = el("button", "set-expand");
321
321
  toggle.type = "button";
322
- toggle.title = "More";
322
+ toggle.dataset.tip = "More";
323
323
  toggle.setAttribute("aria-label", "More");
324
324
  toggle.setAttribute("aria-expanded", "false");
325
325
  toggle.addEventListener("click", () => {
@@ -717,7 +717,8 @@ function openGameIdEditor(opts) {
717
717
  className: "shell-id-editor",
718
718
  title: opts.title ?? "Game ID",
719
719
  width: 260,
720
- ...opts.prefer !== void 0 ? { prefer: opts.prefer } : {}
720
+ ...opts.prefer !== void 0 ? { prefer: opts.prefer } : {},
721
+ ...opts.keepClear !== void 0 ? { keepClear: opts.keepClear } : {}
721
722
  });
722
723
  if (!panel) return false;
723
724
  const input = el("input", "shell-id-input");
@@ -1016,7 +1017,7 @@ function openComments(opts) {
1016
1017
  // want it to the left; and never over the problems bar, which an author may
1017
1018
  // be stepping through while reading the thread.
1018
1019
  prefer: opts.prefer ?? "below",
1019
- keepClear: [".problembar"]
1020
+ keepClear: opts.keepClear ?? [".problembar"]
1020
1021
  });
1021
1022
  if (!panel) return;
1022
1023
  const { body, close } = panel;
@@ -1064,7 +1065,8 @@ function openComments(opts) {
1064
1065
  );
1065
1066
  if (opts.deleteMessage && message.deleted !== true) {
1066
1067
  const bin = el("button", { className: "shell-cmt-del", text: "\u2715" });
1067
- bin.title = "Delete this comment";
1068
+ bin.dataset.tip = "Delete this comment";
1069
+ bin.setAttribute("aria-label", "Delete this comment");
1068
1070
  bin.addEventListener("click", () => opts.deleteMessage?.(thread.id, index));
1069
1071
  head.append(bin);
1070
1072
  }