querysub 0.494.0 → 0.495.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "querysub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.495.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
|
|
68
68
|
"pako": "^2.1.0",
|
|
69
69
|
"peggy": "^5.0.6",
|
|
70
|
-
"sliftutils": "^1.6.
|
|
71
|
-
"socket-function": "^1.
|
|
70
|
+
"sliftutils": "^1.6.3",
|
|
71
|
+
"socket-function": "^1.2.4",
|
|
72
72
|
"terser": "^5.31.0",
|
|
73
73
|
"typesafecss": "^0.29.0",
|
|
74
74
|
"yaml": "^2.5.0",
|
|
@@ -691,6 +691,13 @@ export class PathValueProxyWatcher {
|
|
|
691
691
|
if (readTransparent) {
|
|
692
692
|
return { value: pendingValue };
|
|
693
693
|
} else {
|
|
694
|
+
let schema2 = getMatchingSchema(pathStr);
|
|
695
|
+
if (schema2) {
|
|
696
|
+
let atomicObj = Schema2Fncs.isAtomic(schema2.schema, "read", schema2.nestedPath);
|
|
697
|
+
if (atomicObj) {
|
|
698
|
+
return { value: atomicObj.defaultValue };
|
|
699
|
+
}
|
|
700
|
+
}
|
|
694
701
|
return undefined;
|
|
695
702
|
}
|
|
696
703
|
} else {
|
|
@@ -18,6 +18,7 @@ const data = Querysub.createLocalSchema<{
|
|
|
18
18
|
|
|
19
19
|
const ensureRendering = lazy(() => {
|
|
20
20
|
document.addEventListener("mousedown", (e) => {
|
|
21
|
+
if (e.button !== 0) return;
|
|
21
22
|
// If inside of a .keepModalsOpen, allow it
|
|
22
23
|
let element = e.target as HTMLElement | null | undefined;
|
|
23
24
|
while (element) {
|