datafolder 1.0.10 → 1.0.12
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/{internal.md → Internal.md} +8 -1
- package/README.md +15 -1
- package/SKILL.md +191 -0
- package/SSD.md +3 -3
- package/package.json +2 -2
- package/scripts/flights2.js +2 -0
- package/src/QyAcl.d.ts +13 -7
- package/src/QyAcl.js +122 -138
- package/src/QyAclSaver.js +2 -2
- package/src/QyAclSaver_Worker.d.ts +2 -2
- package/src/QyAclWriter.d.ts +1 -1
- package/src/QyBatch.d.ts +8 -11
- package/src/QyBatch.js +239 -211
- package/src/QyBinWriter.d.ts +2 -2
- package/src/QyBinWriter.js +15 -15
- package/src/QyCD.d.ts +2 -2
- package/src/QyCD.js +29 -29
- package/src/QyCache.d.ts +6 -1
- package/src/QyCache.js +72 -53
- package/src/QyCompressor.d.ts +2 -2
- package/src/QyCompressor.js +13 -13
- package/src/QyDB.d.ts +1 -22
- package/src/QyDB.js +23 -78
- package/src/QyDefaultOptions.js +5 -0
- package/src/QyDir.js +26 -27
- package/src/QyExpire.d.ts +21 -0
- package/src/QyExpire.js +113 -0
- package/src/QyExpireClock.d.ts +15 -0
- package/src/QyExpireClock.js +53 -0
- package/src/QyExpire_Worker.d.ts +20 -0
- package/src/QyExpire_Worker.js +127 -0
- package/src/QyFile.js +36 -25
- package/src/QyFileContentUtils.js +21 -21
- package/src/QyItem.d.ts +1 -0
- package/src/QyItem.js +15 -9
- package/src/QyJsonSaver.d.ts +1 -1
- package/src/QyJsonSaver.js +1 -1
- package/src/QyKVData.d.ts +5 -2
- package/src/QyKVData.js +126 -114
- package/src/QyKVDataCleaner.js +2 -2
- package/src/QyKVDataCleaner_Worker.js +37 -37
- package/src/QyKVDataSaver.js +2 -2
- package/src/QyKVDataSaver_Worker.d.ts +2 -2
- package/src/QyKVDataSaver_Worker.js +5 -5
- package/src/QyLogFileSaver.js +2 -2
- package/src/QyLogger.d.ts +1 -0
- package/src/QyLogger.js +1 -0
- package/src/QyMessageWorker.d.ts +1 -1
- package/src/QyMessageWorker.js +10 -10
- package/src/QyMessager.d.ts +1 -1
- package/src/QyMessager.js +37 -36
- package/src/QyMessager_Run.js +12 -8
- package/src/QyQueue.js +8 -12
- package/src/QySaver.d.ts +1 -1
- package/src/QySaver.js +1 -1
- package/src/QySnapshotCompactor.js +2 -2
- package/src/QySnapshotCompactor_Worker.d.ts +1 -1
- package/src/QySnapshotCompactor_Worker.js +5 -5
- package/src/QySnapshotSaver.js +2 -2
- package/src/QySnapshotSaver_Worker.js +4 -4
- package/src/QySnapshots.d.ts +2 -2
- package/src/QySnapshots.js +38 -38
- package/src/QyTrigger.d.ts +1 -1
- package/src/QyTrigger.js +20 -21
- package/src/QyUtils.d.ts +3 -2
- package/src/QyUtils.js +93 -86
- package/src/hackernews.js +1 -1
- package/src/simulate.js +6 -6
- package/src/simulate2.js +5 -5
- package/src/soc_pokec.js +1 -1
- package/static/codemirror.bundle/editor.bundle.js +43 -9
- package/static/datafolderui/QyUIFolderViewer.js +1 -5
|
@@ -4315,6 +4315,7 @@
|
|
|
4315
4315
|
chrome_version: chrome ? +chrome[1] : 0,
|
|
4316
4316
|
ios,
|
|
4317
4317
|
android: /*@__PURE__*//Android\b/.test(nav.userAgent),
|
|
4318
|
+
webkit,
|
|
4318
4319
|
webkit_version: webkit ? +(/*@__PURE__*//\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
4319
4320
|
safari,
|
|
4320
4321
|
safari_version: safari ? +(/*@__PURE__*//\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
@@ -4833,12 +4834,12 @@
|
|
|
4833
4834
|
}
|
|
4834
4835
|
let moveX = 0, moveY = 0;
|
|
4835
4836
|
if (y == "nearest") {
|
|
4836
|
-
if (rect.top < bounding.top) {
|
|
4837
|
+
if (rect.top < bounding.top + yMargin) {
|
|
4837
4838
|
moveY = rect.top - (bounding.top + yMargin);
|
|
4838
4839
|
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
|
4839
4840
|
moveY = rect.bottom - bounding.bottom + yMargin;
|
|
4840
4841
|
}
|
|
4841
|
-
else if (rect.bottom > bounding.bottom) {
|
|
4842
|
+
else if (rect.bottom > bounding.bottom - yMargin) {
|
|
4842
4843
|
moveY = rect.bottom - bounding.bottom + yMargin;
|
|
4843
4844
|
if (side < 0 && (rect.top - moveY) < bounding.top)
|
|
4844
4845
|
moveY = rect.top - (bounding.top + yMargin);
|
|
@@ -4852,12 +4853,12 @@
|
|
|
4852
4853
|
moveY = targetTop - bounding.top;
|
|
4853
4854
|
}
|
|
4854
4855
|
if (x == "nearest") {
|
|
4855
|
-
if (rect.left < bounding.left) {
|
|
4856
|
+
if (rect.left < bounding.left + xMargin) {
|
|
4856
4857
|
moveX = rect.left - (bounding.left + xMargin);
|
|
4857
4858
|
if (side > 0 && rect.right > bounding.right + moveX)
|
|
4858
4859
|
moveX = rect.right - bounding.right + xMargin;
|
|
4859
4860
|
}
|
|
4860
|
-
else if (rect.right > bounding.right) {
|
|
4861
|
+
else if (rect.right > bounding.right - xMargin) {
|
|
4861
4862
|
moveX = rect.right - bounding.right + xMargin;
|
|
4862
4863
|
if (side < 0 && rect.left < bounding.left + moveX)
|
|
4863
4864
|
moveX = rect.left - (bounding.left + xMargin);
|
|
@@ -5597,7 +5598,7 @@
|
|
|
5597
5598
|
});
|
|
5598
5599
|
const scrollHandler = /*@__PURE__*/Facet.define();
|
|
5599
5600
|
class ScrollTarget {
|
|
5600
|
-
constructor(range, y
|
|
5601
|
+
constructor(range, y, x, yMargin, xMargin,
|
|
5601
5602
|
// This data structure is abused to also store precise scroll
|
|
5602
5603
|
// snapshots, instead of a `scrollIntoView` request. When this
|
|
5603
5604
|
// flag is `true`, `range` points at a position in the reference
|
|
@@ -8194,6 +8195,18 @@
|
|
|
8194
8195
|
this.y = (side.top + side.bottom) / 2;
|
|
8195
8196
|
return this.scan(positions, getRects);
|
|
8196
8197
|
}
|
|
8198
|
+
// Handle the case where closest matched a higher element on the
|
|
8199
|
+
// same line as an element below/above the coords
|
|
8200
|
+
if (closestDx) {
|
|
8201
|
+
if (above && above.bottom > closestRect.top) {
|
|
8202
|
+
this.y = above.bottom - 1;
|
|
8203
|
+
return this.scan(positions, getRects);
|
|
8204
|
+
}
|
|
8205
|
+
if (below && below.top < closestRect.bottom) {
|
|
8206
|
+
this.y = below.top + 1;
|
|
8207
|
+
return this.scan(positions, getRects);
|
|
8208
|
+
}
|
|
8209
|
+
}
|
|
8197
8210
|
let ltr = (bidi ? this.dirAt(positions[closestI], 1) : this.baseDir) == Direction.LTR;
|
|
8198
8211
|
return {
|
|
8199
8212
|
i: closestI,
|
|
@@ -12210,7 +12223,8 @@
|
|
|
12210
12223
|
scrollTarget = scrollTarget.map(tr.changes);
|
|
12211
12224
|
if (tr.scrollIntoView) {
|
|
12212
12225
|
let { main } = tr.state.selection;
|
|
12213
|
-
|
|
12226
|
+
let { x, y } = this.state.facet(EditorView.cursorScrollMargin);
|
|
12227
|
+
scrollTarget = new ScrollTarget(main.empty ? main : EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1), "nearest", "nearest", y, x);
|
|
12214
12228
|
}
|
|
12215
12229
|
for (let e of tr.effects)
|
|
12216
12230
|
if (e.is(scrollIntoView$1))
|
|
@@ -12867,7 +12881,8 @@
|
|
|
12867
12881
|
cause it to scroll the given position or range into view.
|
|
12868
12882
|
*/
|
|
12869
12883
|
static scrollIntoView(pos, options = {}) {
|
|
12870
|
-
|
|
12884
|
+
var _a, _b, _c, _d;
|
|
12885
|
+
return scrollIntoView$1.of(new ScrollTarget(typeof pos == "number" ? EditorSelection.cursor(pos) : pos, (_a = options.y) !== null && _a !== void 0 ? _a : "nearest", (_b = options.x) !== null && _b !== void 0 ? _b : "nearest", (_c = options.yMargin) !== null && _c !== void 0 ? _c : 5, (_d = options.xMargin) !== null && _d !== void 0 ? _d : 5));
|
|
12871
12886
|
}
|
|
12872
12887
|
/**
|
|
12873
12888
|
Return an effect that resets the editor to its current (at the
|
|
@@ -13126,11 +13141,30 @@
|
|
|
13126
13141
|
*/
|
|
13127
13142
|
EditorView.bidiIsolatedRanges = bidiIsolatedRanges;
|
|
13128
13143
|
/**
|
|
13144
|
+
Can be used to specify the distance that scrolling cursor into
|
|
13145
|
+
view keeps it away from the sides of the editor, either as a
|
|
13146
|
+
single pixel number or two different values for the different
|
|
13147
|
+
axes. Defaults to 5 pixels on both axes.
|
|
13148
|
+
*/
|
|
13149
|
+
EditorView.cursorScrollMargin = /*@__PURE__*/Facet.define({
|
|
13150
|
+
combine: inputs => {
|
|
13151
|
+
let x = 5, y = 5;
|
|
13152
|
+
for (let i of inputs) {
|
|
13153
|
+
if (typeof i == "number")
|
|
13154
|
+
x = y = i;
|
|
13155
|
+
else
|
|
13156
|
+
({ x, y } = i);
|
|
13157
|
+
}
|
|
13158
|
+
return { x, y };
|
|
13159
|
+
}
|
|
13160
|
+
});
|
|
13161
|
+
/**
|
|
13129
13162
|
Facet that allows extensions to provide additional scroll
|
|
13130
13163
|
margins (space around the sides of the scrolling element that
|
|
13131
13164
|
should be considered invisible). This can be useful when the
|
|
13132
13165
|
plugin introduces elements that cover part of that element (for
|
|
13133
|
-
example a horizontally fixed gutter).
|
|
13166
|
+
example a horizontally fixed gutter). Not to be confused with
|
|
13167
|
+
[`cursorScrollMargin`](https://codemirror.net/6/docs/ref/#view.EditorView^cursorScrollMargin).
|
|
13134
13168
|
*/
|
|
13135
13169
|
EditorView.scrollMargins = scrollMargins;
|
|
13136
13170
|
/**
|
|
@@ -13666,7 +13700,7 @@
|
|
|
13666
13700
|
old = next;
|
|
13667
13701
|
}
|
|
13668
13702
|
this.drawn = markers;
|
|
13669
|
-
if (browser.
|
|
13703
|
+
if (browser.webkit) // Issue #1600, 1627, 1686
|
|
13670
13704
|
this.dom.style.display = this.dom.firstChild ? "" : "none";
|
|
13671
13705
|
}
|
|
13672
13706
|
}
|
|
@@ -160,11 +160,7 @@ class t extends HTMLElement {
|
|
|
160
160
|
} = n = this;
|
|
161
161
|
i.hidden = !0, r.hidden = !1, e || n.codeMirrorDiv.append(e = n.code_mirror = c("code-mirror")),
|
|
162
162
|
t || n.codeMirrorDiv.append(t = n.code_mirror2 = c("code-mirror"));
|
|
163
|
-
var
|
|
164
|
-
fileNamePath: n,
|
|
165
|
-
propNamePathList: s,
|
|
166
|
-
modCode: l
|
|
167
|
-
} = s;
|
|
163
|
+
var [ n, s, l ] = s;
|
|
168
164
|
e.text = JSON.stringify({
|
|
169
165
|
fileNamePath: n,
|
|
170
166
|
propNamePathList: s
|