querysub 0.494.0 → 0.496.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.494.0",
3
+ "version": "0.496.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,10 +67,11 @@
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.1",
71
- "socket-function": "^1.1.48",
70
+ "sliftutils": "^1.6.3",
71
+ "socket-function": "^1.2.4",
72
72
  "terser": "^5.31.0",
73
- "typesafecss": "^0.29.0",
73
+ "typenode": "^6.6.1",
74
+ "typesafecss": "*",
74
75
  "yaml": "^2.5.0",
75
76
  "yargs": "^15.3.1"
76
77
  },
@@ -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 {
@@ -2390,6 +2397,8 @@ export function noAtomicSchema<T>(code: () => T) {
2390
2397
 
2391
2398
  export const proxyWatcher = new PathValueProxyWatcher();
2392
2399
  if ((globalThis as any).proxyWatcher) {
2400
+ debugger;
2401
+ require("debugbreak")(2);
2393
2402
  debugger;
2394
2403
  console.error(`Loaded PathValueProxyWatcher twice. This will break this. In ${module.filename}`);
2395
2404
  }
@@ -69,7 +69,10 @@ export class PermissionsCheck {
69
69
  gitRef: "LOCAL_PERMISSIONS_HACK",
70
70
  };
71
71
  let modulePermissions = getDevelopmentModule(moduleId);
72
- if (!modulePermissions) throw new Error(`No development module found for ${moduleId}. Was it imported? Try restarting the edge server.`);
72
+ if (!modulePermissions) {
73
+ getDevelopmentModule(moduleId);
74
+ throw new Error(`No development module found for ${moduleId}. Was it imported? Try restarting the edge server.`);
75
+ }
73
76
  let schema = getSchemaObject(modulePermissions);
74
77
  if (!schema) throw new Error(`Module does not export a schema: ${moduleId}`);
75
78
  return {
@@ -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) {