@bitcobblers/wod-wiki-ui 0.57.2213 → 0.59.2235
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/{chunk-W23ZR6NQ.mjs → chunk-Y7FAKA4S.mjs} +20 -3
- package/dist/chunk-Y7FAKA4S.mjs.map +1 -0
- package/dist/extensions/index.cjs +18 -1
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.d.cts +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.mjs +1 -1
- package/dist/{index-DUNwBTpa.d.cts → index-eCc_R4QK.d.cts} +1 -0
- package/dist/{index-DUNwBTpa.d.ts → index-eCc_R4QK.d.ts} +1 -0
- package/dist/index.cjs +25 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-W23ZR6NQ.mjs.map +0 -1
|
@@ -1183,17 +1183,25 @@ var SectionGeometryPlugin = class {
|
|
|
1183
1183
|
constructor(view) {
|
|
1184
1184
|
this.view = view;
|
|
1185
1185
|
this.measure();
|
|
1186
|
+
if (typeof ResizeObserver !== "undefined" && this.view.contentDOM) {
|
|
1187
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
1188
|
+
this.view.requestMeasure();
|
|
1189
|
+
this.measure();
|
|
1190
|
+
});
|
|
1191
|
+
this.resizeObserver.observe(this.view.contentDOM);
|
|
1192
|
+
}
|
|
1186
1193
|
}
|
|
1187
1194
|
view;
|
|
1188
1195
|
rects = [];
|
|
1189
1196
|
docVersion = 0;
|
|
1190
1197
|
listeners = /* @__PURE__ */ new Set();
|
|
1191
1198
|
pendingNotify = null;
|
|
1199
|
+
resizeObserver = null;
|
|
1192
1200
|
update(update) {
|
|
1193
1201
|
if (update.docChanged) {
|
|
1194
1202
|
this.docVersion++;
|
|
1195
1203
|
}
|
|
1196
|
-
if (update.docChanged || update.geometryChanged) {
|
|
1204
|
+
if (update.docChanged || update.geometryChanged || update.viewportChanged) {
|
|
1197
1205
|
this.measure();
|
|
1198
1206
|
}
|
|
1199
1207
|
}
|
|
@@ -1257,6 +1265,8 @@ var SectionGeometryPlugin = class {
|
|
|
1257
1265
|
if (this.pendingNotify !== null && typeof cancelAnimationFrame === "function") {
|
|
1258
1266
|
cancelAnimationFrame(this.pendingNotify);
|
|
1259
1267
|
}
|
|
1268
|
+
this.resizeObserver?.disconnect();
|
|
1269
|
+
this.resizeObserver = null;
|
|
1260
1270
|
this.listeners.clear();
|
|
1261
1271
|
}
|
|
1262
1272
|
};
|
|
@@ -2215,6 +2225,7 @@ function createTagDraftRow(view, root, key, onCommit) {
|
|
|
2215
2225
|
const discard = () => settle(false);
|
|
2216
2226
|
attachSuggestions(input, view, root, "value", key, [], commit);
|
|
2217
2227
|
input.addEventListener("keydown", (e) => {
|
|
2228
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
2218
2229
|
if (e.key === "Escape") {
|
|
2219
2230
|
e.preventDefault();
|
|
2220
2231
|
discard();
|
|
@@ -2334,6 +2345,7 @@ function createMetricDraftRow(view, root, referenceProvider, commit) {
|
|
|
2334
2345
|
customKeyInput.setAttribute("aria-label", "Metric key");
|
|
2335
2346
|
customKeyInput.dataset.frontmatterField = "key";
|
|
2336
2347
|
customKeyInput.addEventListener("keydown", (e) => {
|
|
2348
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
2337
2349
|
if (e.key === "Escape") {
|
|
2338
2350
|
e.preventDefault();
|
|
2339
2351
|
settle(false);
|
|
@@ -2358,6 +2370,7 @@ function createMetricDraftRow(view, root, referenceProvider, commit) {
|
|
|
2358
2370
|
attachFor();
|
|
2359
2371
|
select.addEventListener("change", attachFor);
|
|
2360
2372
|
input.addEventListener("keydown", (e) => {
|
|
2373
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
2361
2374
|
if (e.defaultPrevented && e.key !== "Escape") return;
|
|
2362
2375
|
if (e.key === "Escape") {
|
|
2363
2376
|
e.preventDefault();
|
|
@@ -2428,6 +2441,7 @@ function createSummaryDraftRow(view, commit) {
|
|
|
2428
2441
|
view.requestMeasure();
|
|
2429
2442
|
};
|
|
2430
2443
|
keyInput.addEventListener("keydown", (e) => {
|
|
2444
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
2431
2445
|
if (e.key === "Escape") {
|
|
2432
2446
|
e.preventDefault();
|
|
2433
2447
|
settle(false);
|
|
@@ -2440,6 +2454,7 @@ function createSummaryDraftRow(view, commit) {
|
|
|
2440
2454
|
}
|
|
2441
2455
|
});
|
|
2442
2456
|
valInput.addEventListener("keydown", (e) => {
|
|
2457
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
2443
2458
|
if (e.key === "Escape") {
|
|
2444
2459
|
e.preventDefault();
|
|
2445
2460
|
settle(false);
|
|
@@ -4213,6 +4228,7 @@ var MarkdownTableWidget = class extends view.WidgetType {
|
|
|
4213
4228
|
input.addEventListener("click", (e) => e.stopPropagation());
|
|
4214
4229
|
input.addEventListener("keydown", (e) => {
|
|
4215
4230
|
e.stopPropagation();
|
|
4231
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
4216
4232
|
if (e.key === "Tab") {
|
|
4217
4233
|
e.preventDefault();
|
|
4218
4234
|
const dir = e.shiftKey ? -1 : 1;
|
|
@@ -4608,6 +4624,7 @@ function openLinkEditPopover(anchorEl, view, match) {
|
|
|
4608
4624
|
});
|
|
4609
4625
|
const handleKeyDown = (e) => {
|
|
4610
4626
|
e.stopPropagation();
|
|
4627
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
4611
4628
|
if (e.key === "Enter") {
|
|
4612
4629
|
e.preventDefault();
|
|
4613
4630
|
applyChanges();
|