mindoodb-app-sdk 0.0.42 → 0.0.43

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/README.md CHANGED
@@ -1488,7 +1488,7 @@ export default defineConfig({
1488
1488
  });
1489
1489
  ```
1490
1490
 
1491
- After `vite build`, `dist/` additionally contains `haven-bundle.json` (app id, version, a SHA-256 for every file, and one for the bundle as a whole) and `haven-bundle.zip` (all of it in one archive). The app's own service worker files are left out — Haven serves the bundle and a second service worker would only fight it for the scope. The user pastes the URL of `haven-bundle.json` into Haven's application settings; Haven downloads the archive, rejects it unless every hash matches the manifest, and installs it.
1491
+ After `vite build`, `dist/` additionally contains `haven-bundle.json` (app id, version, a SHA-256 for every file, and one for the bundle as a whole) and `haven-bundle.zip` (all of it in one archive). The app's own service worker files are left out — Haven serves the bundle and a second service worker would only fight it for the scope. The user pastes the app origin into Haven's application settings (the same URL as for external hosting); Haven fetches `/haven-bundle.json` from there, downloads the archive, rejects it unless every hash matches the manifest, and installs it.
1492
1492
 
1493
1493
  Haven then owns updates. It re-reads the manifest before launches and on a slow background timer, and installs a new version when the `contentHash` changes — which means an app in hosted mode should **not** run its own update logic:
1494
1494
 
@@ -1,3 +1,89 @@
1
+ // src/hostShortcuts.ts
2
+ var DEFAULT_HAVEN_HOST_SHORTCUTS = [
3
+ { action: "open-workspace", code: "Enter", shiftKey: true, metaOrCtrl: true },
4
+ { action: "toggle-app-drawer", code: "Space", shiftKey: true, metaOrCtrl: true }
5
+ ];
6
+ var HOST_SHORTCUT_ACTIONS = /* @__PURE__ */ new Set([
7
+ "open-workspace",
8
+ "toggle-app-drawer"
9
+ ]);
10
+ function normalizeShortcutCode(code) {
11
+ return code === "NumpadEnter" ? "Enter" : code;
12
+ }
13
+ function matchHostShortcut(event, shortcuts = DEFAULT_HAVEN_HOST_SHORTCUTS) {
14
+ if (event.repeat || event.altKey) {
15
+ return null;
16
+ }
17
+ const primary = event.metaKey || event.ctrlKey;
18
+ const code = normalizeShortcutCode(event.code);
19
+ for (const binding of shortcuts) {
20
+ if (code !== binding.code) {
21
+ continue;
22
+ }
23
+ if (Boolean(event.shiftKey) !== Boolean(binding.shiftKey)) {
24
+ continue;
25
+ }
26
+ if (Boolean(binding.metaOrCtrl) !== primary) {
27
+ continue;
28
+ }
29
+ return binding.action;
30
+ }
31
+ return null;
32
+ }
33
+ function isHostShortcutAction(value) {
34
+ return typeof value === "string" && HOST_SHORTCUT_ACTIONS.has(value);
35
+ }
36
+ function sanitizeHostShortcutBindings(value) {
37
+ if (!Array.isArray(value)) {
38
+ return null;
39
+ }
40
+ const bindings = [];
41
+ for (const entry of value) {
42
+ if (!entry || typeof entry !== "object") {
43
+ return null;
44
+ }
45
+ const candidate = entry;
46
+ if (!isHostShortcutAction(candidate.action) || typeof candidate.code !== "string" || !candidate.code) {
47
+ return null;
48
+ }
49
+ bindings.push({
50
+ action: candidate.action,
51
+ code: candidate.code,
52
+ shiftKey: Boolean(candidate.shiftKey),
53
+ metaOrCtrl: Boolean(candidate.metaOrCtrl)
54
+ });
55
+ }
56
+ return bindings;
57
+ }
58
+ function applyHostedDocumentOverscrollContain(doc = globalThis.document) {
59
+ if (!doc?.documentElement) {
60
+ return;
61
+ }
62
+ doc.documentElement.style.overscrollBehavior = "contain";
63
+ if (doc.body) {
64
+ doc.body.style.overscrollBehavior = "contain";
65
+ }
66
+ }
67
+ function installHostShortcutCapture(options) {
68
+ const target = options.target ?? (typeof document === "undefined" ? void 0 : document);
69
+ if (!target) {
70
+ return () => void 0;
71
+ }
72
+ const onKeyDown = (event) => {
73
+ const action = matchHostShortcut(event, options.getShortcuts());
74
+ if (!action) {
75
+ return;
76
+ }
77
+ event.preventDefault();
78
+ event.stopPropagation();
79
+ options.onInvoke(action);
80
+ };
81
+ target.addEventListener("keydown", onKeyDown, true);
82
+ return () => {
83
+ target.removeEventListener("keydown", onKeyDown, true);
84
+ };
85
+ }
86
+
1
87
  // src/client/createMindooDBAppBridge.ts
2
88
  import { parseMindooDBFormulaBooleanExpression } from "mindoodb-view-language";
3
89
 
@@ -755,11 +841,11 @@ var MindooDBAppDatabaseImpl = class {
755
841
  }
756
842
  const ids = [];
757
843
  for (const input of inputs) {
758
- const document = await this.rpc.call("documents.create", {
844
+ const document2 = await this.rpc.call("documents.create", {
759
845
  databaseId: this.databaseId,
760
846
  input
761
847
  });
762
- ids.push(document.id);
848
+ ids.push(document2.id);
763
849
  }
764
850
  return { ids };
765
851
  }
@@ -1078,7 +1164,7 @@ var MindooDBAppDatabaseImpl = class {
1078
1164
  }
1079
1165
  };
1080
1166
  var MindooDBAppSessionImpl = class {
1081
- constructor(rpc, onDisconnect) {
1167
+ constructor(rpc, onDisconnect, hostShortcutsEnabled = true) {
1082
1168
  this.rpc = rpc;
1083
1169
  this.onDisconnect = onDisconnect;
1084
1170
  this.menus = {
@@ -1107,13 +1193,38 @@ var MindooDBAppSessionImpl = class {
1107
1193
  if (message.kind === "before-close") {
1108
1194
  void this.handleBeforeClose(message.closeId);
1109
1195
  }
1196
+ if (message.kind === "shortcuts-changed") {
1197
+ const next = sanitizeHostShortcutBindings(message.shortcuts);
1198
+ if (next) {
1199
+ this.hostShortcuts = next;
1200
+ }
1201
+ }
1110
1202
  });
1203
+ this.stopHostShortcuts = hostShortcutsEnabled ? installHostShortcutCapture({
1204
+ getShortcuts: () => this.hostShortcuts,
1205
+ onInvoke: (action) => {
1206
+ if (!isHostShortcutAction(action)) {
1207
+ return;
1208
+ }
1209
+ try {
1210
+ this.rpc.postMessage({
1211
+ protocol: PROTOCOL2,
1212
+ kind: "shortcut-invoked",
1213
+ action
1214
+ });
1215
+ } catch (error) {
1216
+ console.warn("[mindoodb-app-sdk] Could not report a host shortcut.", error);
1217
+ }
1218
+ }
1219
+ }) : () => void 0;
1111
1220
  }
1112
1221
  rpc;
1113
1222
  onDisconnect;
1114
1223
  menus;
1115
1224
  storage;
1116
1225
  beforeCloseListeners = /* @__PURE__ */ new Set();
1226
+ hostShortcuts = DEFAULT_HAVEN_HOST_SHORTCUTS;
1227
+ stopHostShortcuts;
1117
1228
  /**
1118
1229
  * Lets every listener finish, then tells the host it may proceed.
1119
1230
  *
@@ -1251,6 +1362,7 @@ var MindooDBAppSessionImpl = class {
1251
1362
  }
1252
1363
  /** Disconnects from the host and always disposes the underlying port client. */
1253
1364
  async disconnect() {
1365
+ this.stopHostShortcuts();
1254
1366
  try {
1255
1367
  await this.rpc.call("session.disconnect", {});
1256
1368
  } finally {
@@ -1277,12 +1389,17 @@ function createMindooDBAppBridge() {
1277
1389
  }
1278
1390
  const pending = (async () => {
1279
1391
  const port = await waitForConnectedPort(options, launchId);
1392
+ applyHostedDocumentOverscrollContain();
1280
1393
  const rpc = new PortRpcClient(port);
1281
- return new MindooDBAppSessionImpl(rpc, () => {
1282
- if (sessionsByLaunchId.get(launchId) === pending) {
1283
- sessionsByLaunchId.delete(launchId);
1284
- }
1285
- });
1394
+ return new MindooDBAppSessionImpl(
1395
+ rpc,
1396
+ () => {
1397
+ if (sessionsByLaunchId.get(launchId) === pending) {
1398
+ sessionsByLaunchId.delete(launchId);
1399
+ }
1400
+ },
1401
+ options?.hostShortcuts !== false
1402
+ );
1286
1403
  })();
1287
1404
  sessionsByLaunchId.set(launchId, pending);
1288
1405
  try {
@@ -1298,6 +1415,12 @@ function createMindooDBAppBridge() {
1298
1415
  }
1299
1416
 
1300
1417
  export {
1418
+ DEFAULT_HAVEN_HOST_SHORTCUTS,
1419
+ matchHostShortcut,
1420
+ isHostShortcutAction,
1421
+ sanitizeHostShortcutBindings,
1422
+ applyHostedDocumentOverscrollContain,
1423
+ installHostShortcutCapture,
1301
1424
  releaseMindooDBAppBridgeSessions,
1302
1425
  createMindooDBAppBridge
1303
1426
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppBridge, b as MindooDBAppHostingMode, c as MindooDBAppDatabase, d as MindooDBAppDocument, e as MindooDBAppRichTextSpan, f as MindooDBAppRichTextSnapshot } from './types-DxnCg5IW.js';
2
- export { g as MINDOODB_APP_SEAL_SIGNING_DOMAIN, h as MindooDBAppAccessDecision, i as MindooDBAppAccessTier, j as MindooDBAppAttachmentApi, k as MindooDBAppAttachmentChunk, l as MindooDBAppAttachmentInfo, m as MindooDBAppAttachmentPreviewOptions, n as MindooDBAppAttachmentPreviewSession, o as MindooDBAppAutomergeChangesPatch, p as MindooDBAppAutomergeChangesSince, q as MindooDBAppAutomergeGetOptions, r as MindooDBAppAutomergePatchResult, s as MindooDBAppAutomergeSnapshot, t as MindooDBAppBridgeBeforeCloseAck, u as MindooDBAppBridgeBeforeCloseMessage, v as MindooDBAppBridgeConnectMessage, w as MindooDBAppBridgeConnectOptions, x as MindooDBAppBridgeConnectedMessage, y as MindooDBAppBridgeErrorPayload, z as MindooDBAppBridgeHandshakeErrorMessage, A as MindooDBAppBridgeLocaleChangedMessage, B as MindooDBAppBridgePortMessage, C as MindooDBAppBridgeQueryResultMessage, D as MindooDBAppBridgeRpcError, E as MindooDBAppBridgeRpcMessage, F as MindooDBAppBridgeRpcRequest, G as MindooDBAppBridgeRpcSuccess, H as MindooDBAppBridgeStreamAbortRequest, I as MindooDBAppBridgeStreamAck, J as MindooDBAppBridgeStreamCloseRequest, K as MindooDBAppBridgeStreamError, L as MindooDBAppBridgeStreamMessage, N as MindooDBAppBridgeStreamOpenResult, O as MindooDBAppBridgeStreamReadRequest, P as MindooDBAppBridgeStreamWriteRequest, Q as MindooDBAppBridgeThemeChangedMessage, R as MindooDBAppBridgeUiPreferencesChangedMessage, S as MindooDBAppBridgeViewChangedMessage, T as MindooDBAppBridgeViewportChangedMessage, U as MindooDBAppCapability, V as MindooDBAppConfiguredViewCategorizationStyle, W as MindooDBAppConfiguredViewColumn, X as MindooDBAppConfiguredViewColumnRole, Y as MindooDBAppConfiguredViewExpressionMode, Z as MindooDBAppConfiguredViewFieldExpression, _ as MindooDBAppConfiguredViewFilterDefinition, $ as MindooDBAppConfiguredViewFilterMode, a0 as MindooDBAppConfiguredViewFilterRule, a1 as MindooDBAppConfiguredViewFormulaExpression, a2 as MindooDBAppConfiguredViewFormulaFilterDefinition, a3 as MindooDBAppConfiguredViewPreviewMode, a4 as MindooDBAppConfiguredViewRuleFilterDefinition, a5 as MindooDBAppConfiguredViewRuleMatchMode, a6 as MindooDBAppConfiguredViewRuleOperator, a7 as MindooDBAppConfiguredViewValueExpression, a8 as MindooDBAppCreateDocumentInput, a9 as MindooDBAppCreateKeyInfo, aa as MindooDBAppCreateViewInput, ab as MindooDBAppCreateViewNavigatorInput, ac as MindooDBAppDatabaseInfo, ad as MindooDBAppDirectoryApi, ae as MindooDBAppDirectoryEntry, af as MindooDBAppDocumentApi, ag as MindooDBAppDocumentHeadCursorResult, ah as MindooDBAppDocumentHistoryEntry, ai as MindooDBAppDocumentListQuery, aj as MindooDBAppDocumentListResult, ak as MindooDBAppDocumentQuery, al as MindooDBAppDocumentRevisionId, am as MindooDBAppDocumentScanPreset, an as MindooDBAppDocumentSummary, ao as MindooDBAppEntryAttachmentRef, ap as MindooDBAppEntryProvenance, aq as MindooDBAppExtractDocumentTextInput, ar as MindooDBAppExtractDocumentTextResult, as as MindooDBAppExtractTextFormat, at as MindooDBAppExtractionSetup, au as MindooDBAppFulltextSetup, av as MindooDBAppHistoricalDocument, aw as MindooDBAppHistoryQuery, ax as MindooDBAppHostTheme, ay as MindooDBAppIdentityApi, az as MindooDBAppInaccessibleDocument, aA as MindooDBAppInaccessibleDocumentListQuery, aB as MindooDBAppInaccessibleDocumentListResult, aC as MindooDBAppJsonListDeletePatch, aD as MindooDBAppJsonListInsertPatch, aE as MindooDBAppJsonPatch, aF as MindooDBAppJsonSetPatch, aG as MindooDBAppJsonTextMarkPatch, aH as MindooDBAppJsonTextSplicePatch, aI as MindooDBAppJsonTextUnmarkPatch, aJ as MindooDBAppJsonUnsetPatch, aK as MindooDBAppLaunchContext, aL as MindooDBAppLiveQuerySubscription, aM as MindooDBAppMenuAnchor, aN as MindooDBAppMenuApi, aO as MindooDBAppMenuCommandItem, aP as MindooDBAppMenuDismissReason, aQ as MindooDBAppMenuDismissedResult, aR as MindooDBAppMenuItem, aS as MindooDBAppMenuKind, aT as MindooDBAppMenuPlacement, aU as MindooDBAppMenuPointAnchor, aV as MindooDBAppMenuRect, aW as MindooDBAppMenuRectAnchor, aX as MindooDBAppMenuSelectionResult, aY as MindooDBAppMenuSeparatorItem, aZ as MindooDBAppQueryCoverage, a_ as MindooDBAppQueryResult, a$ as MindooDBAppQueryRow, b0 as MindooDBAppQuerySortKey, b1 as MindooDBAppQueryTextClause, b2 as MindooDBAppReadableAttachmentStream, b3 as MindooDBAppRecipientOptions, b4 as MindooDBAppResolvedViewDefinition, b5 as MindooDBAppResolvedViewSource, b6 as MindooDBAppRevisionPhase, b7 as MindooDBAppRevisionVerification, b8 as MindooDBAppRichTextBlockSpan, b9 as MindooDBAppRichTextGetOptions, ba as MindooDBAppRichTextImmutableString, bb as MindooDBAppRichTextMarkRange, bc as MindooDBAppRichTextMaterializeValue, bd as MindooDBAppRichTextPatch, be as MindooDBAppRichTextScalar, bf as MindooDBAppRichTextSpliceStep, bg as MindooDBAppRichTextStep, bh as MindooDBAppRichTextStepPatch, bi as MindooDBAppRichTextTextSpan, bj as MindooDBAppRuntime, bk as MindooDBAppScanAttachmentOptions, bl as MindooDBAppScanAttachmentResult, bm as MindooDBAppScopedDocId, bn as MindooDBAppScopedDocumentSummary, bo as MindooDBAppSealIntent, bp as MindooDBAppSealedChannelOpenInput, bq as MindooDBAppSealedChannelOpenResult, br as MindooDBAppSealedChannelRequestInput, bs as MindooDBAppSession, bt as MindooDBAppShowMenuInput, bu as MindooDBAppShowMenuResult, bv as MindooDBAppSignPreview, bw as MindooDBAppSignPreviewScope, bx as MindooDBAppSignStatementInput, by as MindooDBAppSignStatementResult, bz as MindooDBAppStorageApi, bA as MindooDBAppTextEdit, bB as MindooDBAppTextPatch, bC as MindooDBAppThemeMode, bD as MindooDBAppTimestampApi, bE as MindooDBAppTimestampInput, bF as MindooDBAppTimestampProvider, bG as MindooDBAppTimestampResult, bH as MindooDBAppUiPreferences, bI as MindooDBAppUpdateDocumentInput, bJ as MindooDBAppViewCursorDocumentListResult, bK as MindooDBAppViewCursorResult, bL as MindooDBAppViewEntry, bM as MindooDBAppViewEntryKind, bN as MindooDBAppViewNavigator, bO as MindooDBAppViewNavigatorExpansionState, bP as MindooDBAppViewNavigatorOpenOptions, bQ as MindooDBAppViewNavigatorPageOptions, bR as MindooDBAppViewNavigatorPageResult, bS as MindooDBAppViewNavigatorRangeQuery, bT as MindooDBAppViewNavigatorSelectionState, bU as MindooDBAppViewUpdateStats, bV as MindooDBAppViewport, bW as MindooDBAppWritableAttachmentStream } from './types-DxnCg5IW.js';
1
+ import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppBridge, b as MindooDBAppHostShortcutBinding, c as MindooDBAppHostShortcutAction, d as MindooDBAppHostingMode, e as MindooDBAppDatabase, f as MindooDBAppDocument, g as MindooDBAppRichTextSpan, h as MindooDBAppRichTextSnapshot } from './types-DALNnPXo.js';
2
+ export { i as MINDOODB_APP_SEAL_SIGNING_DOMAIN, j as MindooDBAppAccessDecision, k as MindooDBAppAccessTier, l as MindooDBAppAttachmentApi, m as MindooDBAppAttachmentChunk, n as MindooDBAppAttachmentInfo, o as MindooDBAppAttachmentPreviewOptions, p as MindooDBAppAttachmentPreviewSession, q as MindooDBAppAutomergeChangesPatch, r as MindooDBAppAutomergeChangesSince, s as MindooDBAppAutomergeGetOptions, t as MindooDBAppAutomergePatchResult, u as MindooDBAppAutomergeSnapshot, v as MindooDBAppBridgeBeforeCloseAck, w as MindooDBAppBridgeBeforeCloseMessage, x as MindooDBAppBridgeConnectMessage, y as MindooDBAppBridgeConnectOptions, z as MindooDBAppBridgeConnectedMessage, A as MindooDBAppBridgeErrorPayload, B as MindooDBAppBridgeHandshakeErrorMessage, C as MindooDBAppBridgeLocaleChangedMessage, D as MindooDBAppBridgePortMessage, E as MindooDBAppBridgeQueryResultMessage, F as MindooDBAppBridgeRpcError, G as MindooDBAppBridgeRpcMessage, H as MindooDBAppBridgeRpcRequest, I as MindooDBAppBridgeRpcSuccess, J as MindooDBAppBridgeShortcutInvokedMessage, K as MindooDBAppBridgeShortcutsChangedMessage, L as MindooDBAppBridgeStreamAbortRequest, N as MindooDBAppBridgeStreamAck, O as MindooDBAppBridgeStreamCloseRequest, P as MindooDBAppBridgeStreamError, Q as MindooDBAppBridgeStreamMessage, R as MindooDBAppBridgeStreamOpenResult, S as MindooDBAppBridgeStreamReadRequest, T as MindooDBAppBridgeStreamWriteRequest, U as MindooDBAppBridgeThemeChangedMessage, V as MindooDBAppBridgeUiPreferencesChangedMessage, W as MindooDBAppBridgeViewChangedMessage, X as MindooDBAppBridgeViewportChangedMessage, Y as MindooDBAppCapability, Z as MindooDBAppConfiguredViewCategorizationStyle, _ as MindooDBAppConfiguredViewColumn, $ as MindooDBAppConfiguredViewColumnRole, a0 as MindooDBAppConfiguredViewExpressionMode, a1 as MindooDBAppConfiguredViewFieldExpression, a2 as MindooDBAppConfiguredViewFilterDefinition, a3 as MindooDBAppConfiguredViewFilterMode, a4 as MindooDBAppConfiguredViewFilterRule, a5 as MindooDBAppConfiguredViewFormulaExpression, a6 as MindooDBAppConfiguredViewFormulaFilterDefinition, a7 as MindooDBAppConfiguredViewPreviewMode, a8 as MindooDBAppConfiguredViewRuleFilterDefinition, a9 as MindooDBAppConfiguredViewRuleMatchMode, aa as MindooDBAppConfiguredViewRuleOperator, ab as MindooDBAppConfiguredViewValueExpression, ac as MindooDBAppCreateDocumentInput, ad as MindooDBAppCreateKeyInfo, ae as MindooDBAppCreateViewInput, af as MindooDBAppCreateViewNavigatorInput, ag as MindooDBAppDatabaseInfo, ah as MindooDBAppDirectoryApi, ai as MindooDBAppDirectoryEntry, aj as MindooDBAppDocumentApi, ak as MindooDBAppDocumentHeadCursorResult, al as MindooDBAppDocumentHistoryEntry, am as MindooDBAppDocumentListQuery, an as MindooDBAppDocumentListResult, ao as MindooDBAppDocumentQuery, ap as MindooDBAppDocumentRevisionId, aq as MindooDBAppDocumentScanPreset, ar as MindooDBAppDocumentSummary, as as MindooDBAppEntryAttachmentRef, at as MindooDBAppEntryProvenance, au as MindooDBAppExtractDocumentTextInput, av as MindooDBAppExtractDocumentTextResult, aw as MindooDBAppExtractTextFormat, ax as MindooDBAppExtractionSetup, ay as MindooDBAppFulltextSetup, az as MindooDBAppHistoricalDocument, aA as MindooDBAppHistoryQuery, aB as MindooDBAppHostTheme, aC as MindooDBAppIdentityApi, aD as MindooDBAppInaccessibleDocument, aE as MindooDBAppInaccessibleDocumentListQuery, aF as MindooDBAppInaccessibleDocumentListResult, aG as MindooDBAppJsonListDeletePatch, aH as MindooDBAppJsonListInsertPatch, aI as MindooDBAppJsonPatch, aJ as MindooDBAppJsonSetPatch, aK as MindooDBAppJsonTextMarkPatch, aL as MindooDBAppJsonTextSplicePatch, aM as MindooDBAppJsonTextUnmarkPatch, aN as MindooDBAppJsonUnsetPatch, aO as MindooDBAppLaunchContext, aP as MindooDBAppLiveQuerySubscription, aQ as MindooDBAppMenuAnchor, aR as MindooDBAppMenuApi, aS as MindooDBAppMenuCommandItem, aT as MindooDBAppMenuDismissReason, aU as MindooDBAppMenuDismissedResult, aV as MindooDBAppMenuItem, aW as MindooDBAppMenuKind, aX as MindooDBAppMenuPlacement, aY as MindooDBAppMenuPointAnchor, aZ as MindooDBAppMenuRect, a_ as MindooDBAppMenuRectAnchor, a$ as MindooDBAppMenuSelectionResult, b0 as MindooDBAppMenuSeparatorItem, b1 as MindooDBAppQueryCoverage, b2 as MindooDBAppQueryResult, b3 as MindooDBAppQueryRow, b4 as MindooDBAppQuerySortKey, b5 as MindooDBAppQueryTextClause, b6 as MindooDBAppReadableAttachmentStream, b7 as MindooDBAppRecipientOptions, b8 as MindooDBAppResolvedViewDefinition, b9 as MindooDBAppResolvedViewSource, ba as MindooDBAppRevisionPhase, bb as MindooDBAppRevisionVerification, bc as MindooDBAppRichTextBlockSpan, bd as MindooDBAppRichTextGetOptions, be as MindooDBAppRichTextImmutableString, bf as MindooDBAppRichTextMarkRange, bg as MindooDBAppRichTextMaterializeValue, bh as MindooDBAppRichTextPatch, bi as MindooDBAppRichTextScalar, bj as MindooDBAppRichTextSpliceStep, bk as MindooDBAppRichTextStep, bl as MindooDBAppRichTextStepPatch, bm as MindooDBAppRichTextTextSpan, bn as MindooDBAppRuntime, bo as MindooDBAppScanAttachmentOptions, bp as MindooDBAppScanAttachmentResult, bq as MindooDBAppScopedDocId, br as MindooDBAppScopedDocumentSummary, bs as MindooDBAppSealIntent, bt as MindooDBAppSealedChannelOpenInput, bu as MindooDBAppSealedChannelOpenResult, bv as MindooDBAppSealedChannelRequestInput, bw as MindooDBAppSession, bx as MindooDBAppShowMenuInput, by as MindooDBAppShowMenuResult, bz as MindooDBAppSignPreview, bA as MindooDBAppSignPreviewScope, bB as MindooDBAppSignStatementInput, bC as MindooDBAppSignStatementResult, bD as MindooDBAppStorageApi, bE as MindooDBAppTextEdit, bF as MindooDBAppTextPatch, bG as MindooDBAppThemeMode, bH as MindooDBAppTimestampApi, bI as MindooDBAppTimestampInput, bJ as MindooDBAppTimestampProvider, bK as MindooDBAppTimestampResult, bL as MindooDBAppUiPreferences, bM as MindooDBAppUpdateDocumentInput, bN as MindooDBAppViewCursorDocumentListResult, bO as MindooDBAppViewCursorResult, bP as MindooDBAppViewEntry, bQ as MindooDBAppViewEntryKind, bR as MindooDBAppViewNavigator, bS as MindooDBAppViewNavigatorExpansionState, bT as MindooDBAppViewNavigatorOpenOptions, bU as MindooDBAppViewNavigatorPageOptions, bV as MindooDBAppViewNavigatorPageResult, bW as MindooDBAppViewNavigatorRangeQuery, bX as MindooDBAppViewNavigatorSelectionState, bY as MindooDBAppViewUpdateStats, bZ as MindooDBAppViewport, b_ as MindooDBAppWritableAttachmentStream } from './types-DALNnPXo.js';
3
3
  export { M as MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME, a as MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME, b as MINDOODB_APP_BUNDLE_MANIFEST_FORMAT, c as MINDOODB_APP_BUNDLE_MANIFEST_VERSION, d as MindooDBAppBundleArchive, e as MindooDBAppBundleFileEntry, f as MindooDBAppBundleHash, g as MindooDBAppBundleManifest, h as MindooDBAppBundleManifestValidation, i as buildMindooDBAppBundleContentHashInput, j as isMindooDBAppBundleHash, n as normalizeMindooDBAppBundlePath, v as validateMindooDBAppBundleManifest } from './appBundleManifest-B0xfpaXG.js';
4
4
  import { MindooDBAppBooleanExpression } from 'mindoodb-view-language';
5
5
  export { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppFilterDefinition, MindooDBAppViewCategoryChildrenPageRequest, MindooDBAppViewColumn, MindooDBAppViewColumnRole, MindooDBAppViewDefinition, MindooDBAppViewExpansionState, MindooDBAppViewExpressionBase, MindooDBAppViewExpressionDatePart, MindooDBAppViewExpressionOperation, MindooDBAppViewFieldExpression, MindooDBAppViewIfExpression, MindooDBAppViewLetExpression, MindooDBAppViewLiteralExpression, MindooDBAppViewLookupByPath, MindooDBAppViewOperationExpression, MindooDBAppViewOriginExpression, MindooDBAppViewPageRequest, MindooDBAppViewPageResult, MindooDBAppViewRow, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewValueExpressionRef, MindooDBAppViewVariableExpression, createViewLanguage } from 'mindoodb-view-language';
@@ -54,6 +54,38 @@ declare function releaseMindooDBAppBridgeSessions(launchId?: string): void;
54
54
  */
55
55
  declare function createMindooDBAppBridge(): MindooDBAppBridge;
56
56
 
57
+ /**
58
+ * Haven's default host chords. Both sides of the bridge use this table so a
59
+ * key that Haven handles on its own pages is the same key an iframe reports.
60
+ *
61
+ * `code` is the physical {@link KeyboardEvent.code}: layout-independent, so
62
+ * AltGr on a German keyboard cannot turn these into `@` or a nbsp.
63
+ */
64
+ declare const DEFAULT_HAVEN_HOST_SHORTCUTS: readonly MindooDBAppHostShortcutBinding[];
65
+ /**
66
+ * Returns the host action for this key event, or `null` when it is not one
67
+ * of the registered chords. `Alt` is rejected so AltGr (`Ctrl+Alt` on
68
+ * European Windows layouts) never fires a shortcut while typing.
69
+ */
70
+ declare function matchHostShortcut(event: Pick<KeyboardEvent, "code" | "shiftKey" | "metaKey" | "ctrlKey" | "altKey" | "repeat">, shortcuts?: readonly MindooDBAppHostShortcutBinding[]): MindooDBAppHostShortcutAction | null;
71
+ declare function isHostShortcutAction(value: unknown): value is MindooDBAppHostShortcutAction;
72
+ /** Accepts a host-pushed table; anything malformed is ignored. */
73
+ declare function sanitizeHostShortcutBindings(value: unknown): MindooDBAppHostShortcutBinding[] | null;
74
+ /**
75
+ * Stops wheel chaining out of a hosted app document into Haven's workspace
76
+ * scroller once the app page (or its `body`) has reached its end.
77
+ */
78
+ declare function applyHostedDocumentOverscrollContain(doc?: Document | undefined): void;
79
+ /**
80
+ * Capture-phase listener that reports a matched host chord. Returns a disposer.
81
+ * No-ops when `document` is missing (Node tests that stub only `window`).
82
+ */
83
+ declare function installHostShortcutCapture(options: {
84
+ getShortcuts: () => readonly MindooDBAppHostShortcutBinding[];
85
+ onInvoke: (action: MindooDBAppHostShortcutAction) => void;
86
+ target?: Document;
87
+ }): () => void;
88
+
57
89
  /**
58
90
  * Query parameter the host appends to the app URL so the app can tell how it is being
59
91
  * delivered before any asynchronous work has happened.
@@ -274,4 +306,4 @@ declare function createMindooDBTextBuffer(options: CreateMindooDBTextBufferOptio
274
306
  */
275
307
  declare function queryDocuments(db: Pick<MindooDB, "query">, filter: MindooDBAppBooleanExpression | string, sortBy?: MindooQuerySortKey[], options?: MindooQueryOptions): Promise<MindooQueryResult>;
276
308
 
277
- export { type CreateMindooDBRichTextHandleOptions, type CreateMindooDBTextBufferOptions, type HavenStorageShimHandle, type InstallHavenStorageShimOptions, MINDOODB_APP_HOSTING_QUERY_PARAM, MindooDBAppAttachmentPreviewMode, MindooDBAppBridge, MindooDBAppDatabase, MindooDBAppDocument, MindooDBAppHostingMode, MindooDBAppRichTextSnapshot, MindooDBAppRichTextSpan, MindooDBRichTextHandle, type MindooDBRichTextHandleChangeListener, type MindooDBRichTextHandleFlushResult, MindooDBTextBuffer, type MindooDBTextBufferFlushResult, abbreviateCanonicalName, canPreviewAttachment, createMindooDBAppBridge, createMindooDBRichTextHandle, createMindooDBTextBuffer, expandAbbreviatedName, installHavenStorageShim, isHostedBundleRuntime, queryDocuments, readMindooDBAppHostingMode, releaseMindooDBAppBridgeSessions };
309
+ export { type CreateMindooDBRichTextHandleOptions, type CreateMindooDBTextBufferOptions, DEFAULT_HAVEN_HOST_SHORTCUTS, type HavenStorageShimHandle, type InstallHavenStorageShimOptions, MINDOODB_APP_HOSTING_QUERY_PARAM, MindooDBAppAttachmentPreviewMode, MindooDBAppBridge, MindooDBAppDatabase, MindooDBAppDocument, MindooDBAppHostShortcutAction, MindooDBAppHostShortcutBinding, MindooDBAppHostingMode, MindooDBAppRichTextSnapshot, MindooDBAppRichTextSpan, MindooDBRichTextHandle, type MindooDBRichTextHandleChangeListener, type MindooDBRichTextHandleFlushResult, MindooDBTextBuffer, type MindooDBTextBufferFlushResult, abbreviateCanonicalName, applyHostedDocumentOverscrollContain, canPreviewAttachment, createMindooDBAppBridge, createMindooDBRichTextHandle, createMindooDBTextBuffer, expandAbbreviatedName, installHavenStorageShim, installHostShortcutCapture, isHostShortcutAction, isHostedBundleRuntime, matchHostShortcut, queryDocuments, readMindooDBAppHostingMode, releaseMindooDBAppBridgeSessions, sanitizeHostShortcutBindings };
package/dist/index.js CHANGED
@@ -1,7 +1,13 @@
1
1
  import {
2
+ DEFAULT_HAVEN_HOST_SHORTCUTS,
3
+ applyHostedDocumentOverscrollContain,
2
4
  createMindooDBAppBridge,
3
- releaseMindooDBAppBridgeSessions
4
- } from "./chunk-6433L6TE.js";
5
+ installHostShortcutCapture,
6
+ isHostShortcutAction,
7
+ matchHostShortcut,
8
+ releaseMindooDBAppBridgeSessions,
9
+ sanitizeHostShortcutBindings
10
+ } from "./chunk-7RAKZZA6.js";
5
11
  import {
6
12
  MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
7
13
  MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
@@ -747,6 +753,7 @@ async function queryDocuments(db, filter, sortBy, options) {
747
753
  return db.query({ filter: expression, sortBy }, options);
748
754
  }
749
755
  export {
756
+ DEFAULT_HAVEN_HOST_SHORTCUTS,
750
757
  MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
751
758
  MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
752
759
  MINDOODB_APP_BUNDLE_MANIFEST_FORMAT,
@@ -756,6 +763,7 @@ export {
756
763
  MindooDBRichTextHandle,
757
764
  MindooDBTextBuffer,
758
765
  abbreviateCanonicalName,
766
+ applyHostedDocumentOverscrollContain,
759
767
  buildMindooDBAppBundleContentHashInput,
760
768
  canPreviewAttachment,
761
769
  createMindooDBAppBridge,
@@ -764,11 +772,15 @@ export {
764
772
  createViewLanguage,
765
773
  expandAbbreviatedName,
766
774
  installHavenStorageShim,
775
+ installHostShortcutCapture,
776
+ isHostShortcutAction,
767
777
  isHostedBundleRuntime,
768
778
  isMindooDBAppBundleHash,
779
+ matchHostShortcut,
769
780
  normalizeMindooDBAppBundlePath,
770
781
  queryDocuments,
771
782
  readMindooDBAppHostingMode,
772
783
  releaseMindooDBAppBridgeSessions,
784
+ sanitizeHostShortcutBindings,
773
785
  validateMindooDBAppBundleManifest
774
786
  };
@@ -1,4 +1,4 @@
1
- import { ab as MindooDBAppCreateViewNavigatorInput, bN as MindooDBAppViewNavigator, aK as MindooDBAppLaunchContext, ac as MindooDBAppDatabaseInfo, af as MindooDBAppDocumentApi, bP as MindooDBAppViewNavigatorOpenOptions, j as MindooDBAppAttachmentApi, ay as MindooDBAppIdentityApi, bD as MindooDBAppTimestampApi, ad as MindooDBAppDirectoryApi, d as MindooDBAppDocument, au as MindooDBAppFulltextSetup, at as MindooDBAppExtractionSetup, a as MindooDBAppBridge, bs as MindooDBAppSession, F as MindooDBAppBridgeRpcRequest, ax as MindooDBAppHostTheme, bV as MindooDBAppViewport, bH as MindooDBAppUiPreferences, a_ as MindooDBAppQueryResult, bU as MindooDBAppViewUpdateStats, B as MindooDBAppBridgePortMessage } from '../types-DxnCg5IW.js';
1
+ import { af as MindooDBAppCreateViewNavigatorInput, bR as MindooDBAppViewNavigator, aO as MindooDBAppLaunchContext, ag as MindooDBAppDatabaseInfo, aj as MindooDBAppDocumentApi, bT as MindooDBAppViewNavigatorOpenOptions, l as MindooDBAppAttachmentApi, aC as MindooDBAppIdentityApi, bH as MindooDBAppTimestampApi, ah as MindooDBAppDirectoryApi, f as MindooDBAppDocument, ay as MindooDBAppFulltextSetup, ax as MindooDBAppExtractionSetup, a as MindooDBAppBridge, bw as MindooDBAppSession, H as MindooDBAppBridgeRpcRequest, aB as MindooDBAppHostTheme, bZ as MindooDBAppViewport, bL as MindooDBAppUiPreferences, b2 as MindooDBAppQueryResult, bY as MindooDBAppViewUpdateStats, D as MindooDBAppBridgePortMessage } from '../types-DALNnPXo.js';
2
2
  import * as mindoodb from 'mindoodb';
3
3
  import 'mindoodb-view-language';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  releaseMindooDBAppBridgeSessions
3
- } from "../chunk-6433L6TE.js";
3
+ } from "../chunk-7RAKZZA6.js";
4
4
 
5
5
  // src/testing/index.ts
6
6
  import * as Automerge from "@automerge/automerge";
@@ -779,6 +779,12 @@ interface MindooDBAppBridgeConnectOptions {
779
779
  targetOrigin?: string;
780
780
  /** How long to wait for the host to answer the handshake before rejecting (default 10000 ms). */
781
781
  connectTimeoutMs?: number;
782
+ /**
783
+ * When `false`, the SDK does not listen for Haven's host keyboard shortcuts
784
+ * (workspace / app drawer). Default is on: the same chords Haven handles
785
+ * on its own pages are reported from inside the iframe.
786
+ */
787
+ hostShortcuts?: boolean;
782
788
  }
783
789
  /** Initial postMessage handshake sent from the app to the Haven. */
784
790
  interface MindooDBAppBridgeConnectMessage {
@@ -949,8 +955,31 @@ interface MindooDBAppBridgeBeforeCloseAck {
949
955
  kind: "before-close-ack";
950
956
  closeId: string;
951
957
  }
958
+ /** A Haven-owned keyboard chord the iframe should recognise. */
959
+ type MindooDBAppHostShortcutAction = "open-workspace" | "toggle-app-drawer";
960
+ /** One host shortcut, matched against {@link KeyboardEvent.code} plus modifiers. */
961
+ interface MindooDBAppHostShortcutBinding {
962
+ action: MindooDBAppHostShortcutAction;
963
+ /** Physical key, e.g. `"Space"` or `"Enter"`. */
964
+ code: string;
965
+ shiftKey: boolean;
966
+ /** Meta (macOS) or Control (Windows/Linux); Alt is never part of the chord. */
967
+ metaOrCtrl: boolean;
968
+ }
969
+ /** Host-pushed table of chords. The iframe replaces its local copy. */
970
+ interface MindooDBAppBridgeShortcutsChangedMessage {
971
+ protocol: "mindoodb-app-bridge";
972
+ kind: "shortcuts-changed";
973
+ shortcuts: MindooDBAppHostShortcutBinding[];
974
+ }
975
+ /** App → host: a host shortcut was pressed inside the iframe. */
976
+ interface MindooDBAppBridgeShortcutInvokedMessage {
977
+ protocol: "mindoodb-app-bridge";
978
+ kind: "shortcut-invoked";
979
+ action: MindooDBAppHostShortcutAction;
980
+ }
952
981
  /** Any message that can travel across the dedicated bridge MessagePort. */
953
- type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck;
982
+ type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage;
954
983
  /** Placement hint for a host-rendered overlay menu. */
955
984
  type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
956
985
  /** Semantic hint allowing Haven to tune menu behavior or styling. */
@@ -2219,4 +2248,4 @@ interface MindooDBAppBridge {
2219
2248
  connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
2220
2249
  }
2221
2250
 
2222
- export { type MindooDBAppConfiguredViewFilterMode as $, type MindooDBAppBridgeLocaleChangedMessage as A, type MindooDBAppBridgePortMessage as B, type MindooDBAppBridgeQueryResultMessage as C, type MindooDBAppBridgeRpcError as D, type MindooDBAppBridgeRpcMessage as E, type MindooDBAppBridgeRpcRequest as F, type MindooDBAppBridgeRpcSuccess as G, type MindooDBAppBridgeStreamAbortRequest as H, type MindooDBAppBridgeStreamAck as I, type MindooDBAppBridgeStreamCloseRequest as J, type MindooDBAppBridgeStreamError as K, type MindooDBAppBridgeStreamMessage as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeStreamOpenResult as N, type MindooDBAppBridgeStreamReadRequest as O, type MindooDBAppBridgeStreamWriteRequest as P, type MindooDBAppBridgeThemeChangedMessage as Q, type MindooDBAppBridgeUiPreferencesChangedMessage as R, type MindooDBAppBridgeViewChangedMessage as S, type MindooDBAppBridgeViewportChangedMessage as T, type MindooDBAppCapability as U, type MindooDBAppConfiguredViewCategorizationStyle as V, type MindooDBAppConfiguredViewColumn as W, type MindooDBAppConfiguredViewColumnRole as X, type MindooDBAppConfiguredViewExpressionMode as Y, type MindooDBAppConfiguredViewFieldExpression as Z, type MindooDBAppConfiguredViewFilterDefinition as _, type MindooDBAppBridge as a, type MindooDBAppQueryRow as a$, type MindooDBAppConfiguredViewFilterRule as a0, type MindooDBAppConfiguredViewFormulaExpression as a1, type MindooDBAppConfiguredViewFormulaFilterDefinition as a2, type MindooDBAppConfiguredViewPreviewMode as a3, type MindooDBAppConfiguredViewRuleFilterDefinition as a4, type MindooDBAppConfiguredViewRuleMatchMode as a5, type MindooDBAppConfiguredViewRuleOperator as a6, type MindooDBAppConfiguredViewValueExpression as a7, type MindooDBAppCreateDocumentInput as a8, type MindooDBAppCreateKeyInfo as a9, type MindooDBAppInaccessibleDocumentListQuery as aA, type MindooDBAppInaccessibleDocumentListResult as aB, type MindooDBAppJsonListDeletePatch as aC, type MindooDBAppJsonListInsertPatch as aD, type MindooDBAppJsonPatch as aE, type MindooDBAppJsonSetPatch as aF, type MindooDBAppJsonTextMarkPatch as aG, type MindooDBAppJsonTextSplicePatch as aH, type MindooDBAppJsonTextUnmarkPatch as aI, type MindooDBAppJsonUnsetPatch as aJ, type MindooDBAppLaunchContext as aK, type MindooDBAppLiveQuerySubscription as aL, type MindooDBAppMenuAnchor as aM, type MindooDBAppMenuApi as aN, type MindooDBAppMenuCommandItem as aO, type MindooDBAppMenuDismissReason as aP, type MindooDBAppMenuDismissedResult as aQ, type MindooDBAppMenuItem as aR, type MindooDBAppMenuKind as aS, type MindooDBAppMenuPlacement as aT, type MindooDBAppMenuPointAnchor as aU, type MindooDBAppMenuRect as aV, type MindooDBAppMenuRectAnchor as aW, type MindooDBAppMenuSelectionResult as aX, type MindooDBAppMenuSeparatorItem as aY, type MindooDBAppQueryCoverage as aZ, type MindooDBAppQueryResult as a_, type MindooDBAppCreateViewInput as aa, type MindooDBAppCreateViewNavigatorInput as ab, type MindooDBAppDatabaseInfo as ac, type MindooDBAppDirectoryApi as ad, type MindooDBAppDirectoryEntry as ae, type MindooDBAppDocumentApi as af, type MindooDBAppDocumentHeadCursorResult as ag, type MindooDBAppDocumentHistoryEntry as ah, type MindooDBAppDocumentListQuery as ai, type MindooDBAppDocumentListResult as aj, type MindooDBAppDocumentQuery as ak, type MindooDBAppDocumentRevisionId as al, type MindooDBAppDocumentScanPreset as am, type MindooDBAppDocumentSummary as an, type MindooDBAppEntryAttachmentRef as ao, type MindooDBAppEntryProvenance as ap, type MindooDBAppExtractDocumentTextInput as aq, type MindooDBAppExtractDocumentTextResult as ar, type MindooDBAppExtractTextFormat as as, type MindooDBAppExtractionSetup as at, type MindooDBAppFulltextSetup as au, type MindooDBAppHistoricalDocument as av, type MindooDBAppHistoryQuery as aw, type MindooDBAppHostTheme as ax, type MindooDBAppIdentityApi as ay, type MindooDBAppInaccessibleDocument as az, type MindooDBAppHostingMode as b, type MindooDBAppQuerySortKey as b0, type MindooDBAppQueryTextClause as b1, type MindooDBAppReadableAttachmentStream as b2, type MindooDBAppRecipientOptions as b3, type MindooDBAppResolvedViewDefinition as b4, type MindooDBAppResolvedViewSource as b5, type MindooDBAppRevisionPhase as b6, type MindooDBAppRevisionVerification as b7, type MindooDBAppRichTextBlockSpan as b8, type MindooDBAppRichTextGetOptions as b9, type MindooDBAppTextEdit as bA, type MindooDBAppTextPatch as bB, type MindooDBAppThemeMode as bC, type MindooDBAppTimestampApi as bD, type MindooDBAppTimestampInput as bE, type MindooDBAppTimestampProvider as bF, type MindooDBAppTimestampResult as bG, type MindooDBAppUiPreferences as bH, type MindooDBAppUpdateDocumentInput as bI, type MindooDBAppViewCursorDocumentListResult as bJ, type MindooDBAppViewCursorResult as bK, type MindooDBAppViewEntry as bL, type MindooDBAppViewEntryKind as bM, type MindooDBAppViewNavigator as bN, type MindooDBAppViewNavigatorExpansionState as bO, type MindooDBAppViewNavigatorOpenOptions as bP, type MindooDBAppViewNavigatorPageOptions as bQ, type MindooDBAppViewNavigatorPageResult as bR, type MindooDBAppViewNavigatorRangeQuery as bS, type MindooDBAppViewNavigatorSelectionState as bT, type MindooDBAppViewUpdateStats as bU, type MindooDBAppViewport as bV, type MindooDBAppWritableAttachmentStream as bW, type MindooDBAppRichTextImmutableString as ba, type MindooDBAppRichTextMarkRange as bb, type MindooDBAppRichTextMaterializeValue as bc, type MindooDBAppRichTextPatch as bd, type MindooDBAppRichTextScalar as be, type MindooDBAppRichTextSpliceStep as bf, type MindooDBAppRichTextStep as bg, type MindooDBAppRichTextStepPatch as bh, type MindooDBAppRichTextTextSpan as bi, type MindooDBAppRuntime as bj, type MindooDBAppScanAttachmentOptions as bk, type MindooDBAppScanAttachmentResult as bl, type MindooDBAppScopedDocId as bm, type MindooDBAppScopedDocumentSummary as bn, type MindooDBAppSealIntent as bo, type MindooDBAppSealedChannelOpenInput as bp, type MindooDBAppSealedChannelOpenResult as bq, type MindooDBAppSealedChannelRequestInput as br, type MindooDBAppSession as bs, type MindooDBAppShowMenuInput as bt, type MindooDBAppShowMenuResult as bu, type MindooDBAppSignPreview as bv, type MindooDBAppSignPreviewScope as bw, type MindooDBAppSignStatementInput as bx, type MindooDBAppSignStatementResult as by, type MindooDBAppStorageApi as bz, type MindooDBAppDatabase as c, type MindooDBAppDocument as d, type MindooDBAppRichTextSpan as e, type MindooDBAppRichTextSnapshot as f, MINDOODB_APP_SEAL_SIGNING_DOMAIN as g, type MindooDBAppAccessDecision as h, type MindooDBAppAccessTier as i, type MindooDBAppAttachmentApi as j, type MindooDBAppAttachmentChunk as k, type MindooDBAppAttachmentInfo as l, type MindooDBAppAttachmentPreviewOptions as m, type MindooDBAppAttachmentPreviewSession as n, type MindooDBAppAutomergeChangesPatch as o, type MindooDBAppAutomergeChangesSince as p, type MindooDBAppAutomergeGetOptions as q, type MindooDBAppAutomergePatchResult as r, type MindooDBAppAutomergeSnapshot as s, type MindooDBAppBridgeBeforeCloseAck as t, type MindooDBAppBridgeBeforeCloseMessage as u, type MindooDBAppBridgeConnectMessage as v, type MindooDBAppBridgeConnectOptions as w, type MindooDBAppBridgeConnectedMessage as x, type MindooDBAppBridgeErrorPayload as y, type MindooDBAppBridgeHandshakeErrorMessage as z };
2251
+ export { type MindooDBAppConfiguredViewColumnRole as $, type MindooDBAppBridgeErrorPayload as A, type MindooDBAppBridgeHandshakeErrorMessage as B, type MindooDBAppBridgeLocaleChangedMessage as C, type MindooDBAppBridgePortMessage as D, type MindooDBAppBridgeQueryResultMessage as E, type MindooDBAppBridgeRpcError as F, type MindooDBAppBridgeRpcMessage as G, type MindooDBAppBridgeRpcRequest as H, type MindooDBAppBridgeRpcSuccess as I, type MindooDBAppBridgeShortcutInvokedMessage as J, type MindooDBAppBridgeShortcutsChangedMessage as K, type MindooDBAppBridgeStreamAbortRequest as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppBridgeStreamAck as N, type MindooDBAppBridgeStreamCloseRequest as O, type MindooDBAppBridgeStreamError as P, type MindooDBAppBridgeStreamMessage as Q, type MindooDBAppBridgeStreamOpenResult as R, type MindooDBAppBridgeStreamReadRequest as S, type MindooDBAppBridgeStreamWriteRequest as T, type MindooDBAppBridgeThemeChangedMessage as U, type MindooDBAppBridgeUiPreferencesChangedMessage as V, type MindooDBAppBridgeViewChangedMessage as W, type MindooDBAppBridgeViewportChangedMessage as X, type MindooDBAppCapability as Y, type MindooDBAppConfiguredViewCategorizationStyle as Z, type MindooDBAppConfiguredViewColumn as _, type MindooDBAppBridge as a, type MindooDBAppMenuSelectionResult as a$, type MindooDBAppConfiguredViewExpressionMode as a0, type MindooDBAppConfiguredViewFieldExpression as a1, type MindooDBAppConfiguredViewFilterDefinition as a2, type MindooDBAppConfiguredViewFilterMode as a3, type MindooDBAppConfiguredViewFilterRule as a4, type MindooDBAppConfiguredViewFormulaExpression as a5, type MindooDBAppConfiguredViewFormulaFilterDefinition as a6, type MindooDBAppConfiguredViewPreviewMode as a7, type MindooDBAppConfiguredViewRuleFilterDefinition as a8, type MindooDBAppConfiguredViewRuleMatchMode as a9, type MindooDBAppHistoryQuery as aA, type MindooDBAppHostTheme as aB, type MindooDBAppIdentityApi as aC, type MindooDBAppInaccessibleDocument as aD, type MindooDBAppInaccessibleDocumentListQuery as aE, type MindooDBAppInaccessibleDocumentListResult as aF, type MindooDBAppJsonListDeletePatch as aG, type MindooDBAppJsonListInsertPatch as aH, type MindooDBAppJsonPatch as aI, type MindooDBAppJsonSetPatch as aJ, type MindooDBAppJsonTextMarkPatch as aK, type MindooDBAppJsonTextSplicePatch as aL, type MindooDBAppJsonTextUnmarkPatch as aM, type MindooDBAppJsonUnsetPatch as aN, type MindooDBAppLaunchContext as aO, type MindooDBAppLiveQuerySubscription as aP, type MindooDBAppMenuAnchor as aQ, type MindooDBAppMenuApi as aR, type MindooDBAppMenuCommandItem as aS, type MindooDBAppMenuDismissReason as aT, type MindooDBAppMenuDismissedResult as aU, type MindooDBAppMenuItem as aV, type MindooDBAppMenuKind as aW, type MindooDBAppMenuPlacement as aX, type MindooDBAppMenuPointAnchor as aY, type MindooDBAppMenuRect as aZ, type MindooDBAppMenuRectAnchor as a_, type MindooDBAppConfiguredViewRuleOperator as aa, type MindooDBAppConfiguredViewValueExpression as ab, type MindooDBAppCreateDocumentInput as ac, type MindooDBAppCreateKeyInfo as ad, type MindooDBAppCreateViewInput as ae, type MindooDBAppCreateViewNavigatorInput as af, type MindooDBAppDatabaseInfo as ag, type MindooDBAppDirectoryApi as ah, type MindooDBAppDirectoryEntry as ai, type MindooDBAppDocumentApi as aj, type MindooDBAppDocumentHeadCursorResult as ak, type MindooDBAppDocumentHistoryEntry as al, type MindooDBAppDocumentListQuery as am, type MindooDBAppDocumentListResult as an, type MindooDBAppDocumentQuery as ao, type MindooDBAppDocumentRevisionId as ap, type MindooDBAppDocumentScanPreset as aq, type MindooDBAppDocumentSummary as ar, type MindooDBAppEntryAttachmentRef as as, type MindooDBAppEntryProvenance as at, type MindooDBAppExtractDocumentTextInput as au, type MindooDBAppExtractDocumentTextResult as av, type MindooDBAppExtractTextFormat as aw, type MindooDBAppExtractionSetup as ax, type MindooDBAppFulltextSetup as ay, type MindooDBAppHistoricalDocument as az, type MindooDBAppHostShortcutBinding as b, type MindooDBAppMenuSeparatorItem as b0, type MindooDBAppQueryCoverage as b1, type MindooDBAppQueryResult as b2, type MindooDBAppQueryRow as b3, type MindooDBAppQuerySortKey as b4, type MindooDBAppQueryTextClause as b5, type MindooDBAppReadableAttachmentStream as b6, type MindooDBAppRecipientOptions as b7, type MindooDBAppResolvedViewDefinition as b8, type MindooDBAppResolvedViewSource as b9, type MindooDBAppSignPreviewScope as bA, type MindooDBAppSignStatementInput as bB, type MindooDBAppSignStatementResult as bC, type MindooDBAppStorageApi as bD, type MindooDBAppTextEdit as bE, type MindooDBAppTextPatch as bF, type MindooDBAppThemeMode as bG, type MindooDBAppTimestampApi as bH, type MindooDBAppTimestampInput as bI, type MindooDBAppTimestampProvider as bJ, type MindooDBAppTimestampResult as bK, type MindooDBAppUiPreferences as bL, type MindooDBAppUpdateDocumentInput as bM, type MindooDBAppViewCursorDocumentListResult as bN, type MindooDBAppViewCursorResult as bO, type MindooDBAppViewEntry as bP, type MindooDBAppViewEntryKind as bQ, type MindooDBAppViewNavigator as bR, type MindooDBAppViewNavigatorExpansionState as bS, type MindooDBAppViewNavigatorOpenOptions as bT, type MindooDBAppViewNavigatorPageOptions as bU, type MindooDBAppViewNavigatorPageResult as bV, type MindooDBAppViewNavigatorRangeQuery as bW, type MindooDBAppViewNavigatorSelectionState as bX, type MindooDBAppViewUpdateStats as bY, type MindooDBAppViewport as bZ, type MindooDBAppWritableAttachmentStream as b_, type MindooDBAppRevisionPhase as ba, type MindooDBAppRevisionVerification as bb, type MindooDBAppRichTextBlockSpan as bc, type MindooDBAppRichTextGetOptions as bd, type MindooDBAppRichTextImmutableString as be, type MindooDBAppRichTextMarkRange as bf, type MindooDBAppRichTextMaterializeValue as bg, type MindooDBAppRichTextPatch as bh, type MindooDBAppRichTextScalar as bi, type MindooDBAppRichTextSpliceStep as bj, type MindooDBAppRichTextStep as bk, type MindooDBAppRichTextStepPatch as bl, type MindooDBAppRichTextTextSpan as bm, type MindooDBAppRuntime as bn, type MindooDBAppScanAttachmentOptions as bo, type MindooDBAppScanAttachmentResult as bp, type MindooDBAppScopedDocId as bq, type MindooDBAppScopedDocumentSummary as br, type MindooDBAppSealIntent as bs, type MindooDBAppSealedChannelOpenInput as bt, type MindooDBAppSealedChannelOpenResult as bu, type MindooDBAppSealedChannelRequestInput as bv, type MindooDBAppSession as bw, type MindooDBAppShowMenuInput as bx, type MindooDBAppShowMenuResult as by, type MindooDBAppSignPreview as bz, type MindooDBAppHostShortcutAction as c, type MindooDBAppHostingMode as d, type MindooDBAppDatabase as e, type MindooDBAppDocument as f, type MindooDBAppRichTextSpan as g, type MindooDBAppRichTextSnapshot as h, MINDOODB_APP_SEAL_SIGNING_DOMAIN as i, type MindooDBAppAccessDecision as j, type MindooDBAppAccessTier as k, type MindooDBAppAttachmentApi as l, type MindooDBAppAttachmentChunk as m, type MindooDBAppAttachmentInfo as n, type MindooDBAppAttachmentPreviewOptions as o, type MindooDBAppAttachmentPreviewSession as p, type MindooDBAppAutomergeChangesPatch as q, type MindooDBAppAutomergeChangesSince as r, type MindooDBAppAutomergeGetOptions as s, type MindooDBAppAutomergePatchResult as t, type MindooDBAppAutomergeSnapshot as u, type MindooDBAppBridgeBeforeCloseAck as v, type MindooDBAppBridgeBeforeCloseMessage as w, type MindooDBAppBridgeConnectMessage as x, type MindooDBAppBridgeConnectOptions as y, type MindooDBAppBridgeConnectedMessage as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindoodb-app-sdk",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "engines": {
5
5
  "node": ">=22.13.0"
6
6
  },
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@automerge/automerge": "^3.3.2",
48
- "mindoodb": ">=0.0.57"
48
+ "mindoodb": ">=0.0.58"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@automerge/automerge": {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@automerge/automerge": "^3.3.2",
60
- "mindoodb": "^0.0.57",
60
+ "mindoodb": "^0.0.58",
61
61
  "@types/node": "25.5.0",
62
62
  "tsup": "^8.5.1",
63
63
  "typescript": "^6.0.2",