@qontinui/ui-bridge-native 0.6.11 → 0.6.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.
@@ -1355,6 +1355,7 @@ function createServerHandlers(registry, executor, config) {
1355
1355
  return {
1356
1356
  // Elements
1357
1357
  getElements: async (ctx) => {
1358
+ await registry.refreshMeasurements();
1358
1359
  const visibleOnly = ctx.query?.visibleOnly === "true" || ctx.body?.visibleOnly === true;
1359
1360
  const forRoute = ctx.query?.route || ctx.body?.route;
1360
1361
  let allElements = visibleOnly ? registry.getMountedVisibleElements() : registry.getAllElements();
@@ -1548,6 +1549,7 @@ function createServerHandlers(registry, executor, config) {
1548
1549
  });
1549
1550
  },
1550
1551
  getSnapshot: async (ctx) => {
1552
+ await registry.refreshMeasurements();
1551
1553
  const visibleOnly = ctx.query?.visibleOnly === "true" || ctx.body?.visibleOnly === true;
1552
1554
  const currentRouteOnly = ctx.query?.currentRouteOnly === "true" || ctx.body?.currentRouteOnly === true;
1553
1555
  const snapshot = registry.createSnapshot(void 0, { visibleOnly, currentRouteOnly });
@@ -1863,6 +1865,7 @@ function createServerHandlers(registry, executor, config) {
1863
1865
  // that don't measure (the fallback only matches single-rooted screens but
1864
1866
  // is good enough for the unit suite).
1865
1867
  tapAt: async (ctx) => {
1868
+ await registry.refreshMeasurements();
1866
1869
  const body = ctx.body;
1867
1870
  const x = body?.x;
1868
1871
  const y = body?.y;
@@ -2070,7 +2073,7 @@ function createServerHandlers(registry, executor, config) {
2070
2073
  };
2071
2074
  if (config?.appInfo) {
2072
2075
  response.uiBridge = {
2073
- version: "0.6.11",
2076
+ version: "0.6.12",
2074
2077
  ...config.appInfo,
2075
2078
  capabilities: ["elements", "components", "actions", "design"],
2076
2079
  elementCount: stats.elements,