mindoodb-app-sdk 0.0.61 → 0.0.63
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 +27 -1
- package/dist/{chunk-U4NXI7EH.js → chunk-BE7LLFFE.js} +96 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/testing/index.d.ts +22 -1
- package/dist/testing/index.js +123 -3
- package/dist/{types-BKN_Zh_l.d.ts → types-BeRUxGKN.d.ts} +56 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -447,6 +447,30 @@ hands its connection to Haven, so the host cannot reach into the component or it
|
|
|
447
447
|
channel. Haven tells the SDK where the container is (for the component's own menus);
|
|
448
448
|
the SDK follows the container's size and position by itself.
|
|
449
449
|
|
|
450
|
+
**Unsaved changes.** A component reports whether it has changes it has not saved yet,
|
|
451
|
+
and saves when its host asks:
|
|
452
|
+
|
|
453
|
+
```ts
|
|
454
|
+
// component
|
|
455
|
+
watch(isDirty, (dirty) => void session.embedding.setDirty(dirty));
|
|
456
|
+
session.embedding.onSaveRequest(() => saveFile()); // throw to report a failure
|
|
457
|
+
|
|
458
|
+
// host, e.g. when the user closes the tab
|
|
459
|
+
if (embed.dirty) {
|
|
460
|
+
const choice = await askSaveDiscardCancel();
|
|
461
|
+
if (choice === "cancel") return;
|
|
462
|
+
if (choice === "save") await embed.save(); // rejects with the component's error
|
|
463
|
+
await embed.close({ discard: choice === "discard" });
|
|
464
|
+
} else {
|
|
465
|
+
await embed.close(); // the component may still flush (onBeforeClose)
|
|
466
|
+
}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
`embed.dirty` is `undefined` until the component reports anything, so a component that
|
|
470
|
+
never does is closed without asking; `embed.onDirtyChange` lets the host mark it (e.g. a
|
|
471
|
+
dot in its tab). `embed.save()` rejects with `unsupported` when the component has no save
|
|
472
|
+
handler.
|
|
473
|
+
|
|
450
474
|
Havens that predate this lay the component over the container instead, above the host's
|
|
451
475
|
frame (`embed.placement === "overlay"`). The host then cannot draw on top of it: hide it
|
|
452
476
|
with `embed.setVisible(false)` while a menu or dialog of the host should be visible.
|
|
@@ -457,7 +481,9 @@ The first time a host embeds a component, Haven asks the user.
|
|
|
457
481
|
In tests, `createMockMindooDBAppSession({ components })` records embeds
|
|
458
482
|
(`listEmbeds`, `closeEmbed`), and the `/__haven-test/` page draws a stand-in with
|
|
459
483
|
Done/Cancel buttons over the container. `createFakeBridgeHost({ embedFrameUrl })`
|
|
460
|
-
answers like a current Haven, so the SDK frames that URL in the container.
|
|
484
|
+
answers like a current Haven, so the SDK frames that URL in the container. Both
|
|
485
|
+
controllers simulate unsaved changes: `setEmbedDirty`, `failNextEmbedSave`, and for an
|
|
486
|
+
app under test that is a component, `getEmbeddingDirty` and `requestEmbeddingSave`.
|
|
461
487
|
|
|
462
488
|
### Databases and capabilities
|
|
463
489
|
|
|
@@ -1342,6 +1342,9 @@ import { parseMindooDBFormulaBooleanExpression } from "mindoodb-view-language";
|
|
|
1342
1342
|
function isEmbedEventMessage(message) {
|
|
1343
1343
|
return message.kind === "embed-event";
|
|
1344
1344
|
}
|
|
1345
|
+
function isEmbeddingRequestMessage(message) {
|
|
1346
|
+
return message.kind === "embedding-request";
|
|
1347
|
+
}
|
|
1345
1348
|
function toRect(rect) {
|
|
1346
1349
|
return {
|
|
1347
1350
|
left: Number(rect.left) || 0,
|
|
@@ -1432,10 +1435,41 @@ var MindooDBAppEmbedImpl = class {
|
|
|
1432
1435
|
resolveClosed;
|
|
1433
1436
|
closedEvent = null;
|
|
1434
1437
|
listeners = /* @__PURE__ */ new Set();
|
|
1438
|
+
dirtyListeners = /* @__PURE__ */ new Set();
|
|
1439
|
+
dirtyState = void 0;
|
|
1435
1440
|
tracker = null;
|
|
1436
1441
|
get placement() {
|
|
1437
1442
|
return this.frame ? "frame" : "overlay";
|
|
1438
1443
|
}
|
|
1444
|
+
get dirty() {
|
|
1445
|
+
return this.dirtyState;
|
|
1446
|
+
}
|
|
1447
|
+
onDirtyChange(listener) {
|
|
1448
|
+
this.dirtyListeners.add(listener);
|
|
1449
|
+
return () => {
|
|
1450
|
+
this.dirtyListeners.delete(listener);
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
/** The component reported its unsaved-changes state. */
|
|
1454
|
+
setDirtyState(dirty) {
|
|
1455
|
+
if (this.closedEvent || this.dirtyState === dirty) {
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1458
|
+
this.dirtyState = dirty;
|
|
1459
|
+
this.dirtyListeners.forEach((listener) => {
|
|
1460
|
+
try {
|
|
1461
|
+
listener(dirty);
|
|
1462
|
+
} catch (error) {
|
|
1463
|
+
console.error("MindooDB embed dirty listener failed.", error);
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
async save() {
|
|
1468
|
+
if (this.closedEvent) {
|
|
1469
|
+
return;
|
|
1470
|
+
}
|
|
1471
|
+
await this.rpc.call("embeds.save", { embedId: this.embedId });
|
|
1472
|
+
}
|
|
1439
1473
|
async setRect(rect) {
|
|
1440
1474
|
if (this.closedEvent) {
|
|
1441
1475
|
return;
|
|
@@ -1448,13 +1482,15 @@ var MindooDBAppEmbedImpl = class {
|
|
|
1448
1482
|
}
|
|
1449
1483
|
if (this.frame) {
|
|
1450
1484
|
this.frame.style.visibility = visible ? "" : "hidden";
|
|
1451
|
-
return;
|
|
1452
1485
|
}
|
|
1453
1486
|
await this.rpc.call("embeds.setVisible", { embedId: this.embedId, visible: visible === true });
|
|
1454
1487
|
}
|
|
1455
|
-
async close() {
|
|
1488
|
+
async close(options) {
|
|
1456
1489
|
if (!this.closedEvent) {
|
|
1457
|
-
await this.rpc.call("embeds.close", {
|
|
1490
|
+
await this.rpc.call("embeds.close", {
|
|
1491
|
+
embedId: this.embedId,
|
|
1492
|
+
...options?.discard ? { discard: true } : {}
|
|
1493
|
+
});
|
|
1458
1494
|
}
|
|
1459
1495
|
return await this.closed;
|
|
1460
1496
|
}
|
|
@@ -1487,13 +1523,31 @@ var MindooDBAppEmbedImpl = class {
|
|
|
1487
1523
|
}
|
|
1488
1524
|
});
|
|
1489
1525
|
this.listeners.clear();
|
|
1526
|
+
this.dirtyListeners.clear();
|
|
1490
1527
|
}
|
|
1491
1528
|
};
|
|
1492
1529
|
var MindooDBAppEmbedsClient = class {
|
|
1493
1530
|
constructor(rpc) {
|
|
1494
1531
|
this.rpc = rpc;
|
|
1495
1532
|
this.stopListening = this.rpc.addMessageListener((message) => {
|
|
1496
|
-
if (
|
|
1533
|
+
if (isEmbeddingRequestMessage(message)) {
|
|
1534
|
+
void this.answerRequest(message);
|
|
1535
|
+
return;
|
|
1536
|
+
}
|
|
1537
|
+
if (!isEmbedEventMessage(message)) {
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
if (message.event?.type === "dirty") {
|
|
1541
|
+
const { embedId, dirty } = message.event;
|
|
1542
|
+
const embed2 = this.open.get(embedId);
|
|
1543
|
+
if (embed2) {
|
|
1544
|
+
embed2.setDirtyState(dirty === true);
|
|
1545
|
+
} else {
|
|
1546
|
+
this.earlyDirty.set(embedId, dirty === true);
|
|
1547
|
+
}
|
|
1548
|
+
return;
|
|
1549
|
+
}
|
|
1550
|
+
if (message.event?.type !== "closed") {
|
|
1497
1551
|
return;
|
|
1498
1552
|
}
|
|
1499
1553
|
const { type: _type, ...event } = message.event;
|
|
@@ -1532,6 +1586,11 @@ var MindooDBAppEmbedsClient = class {
|
|
|
1532
1586
|
frame,
|
|
1533
1587
|
container
|
|
1534
1588
|
);
|
|
1589
|
+
const earlyDirty = this.earlyDirty.get(embed.embedId);
|
|
1590
|
+
if (earlyDirty !== void 0) {
|
|
1591
|
+
this.earlyDirty.delete(embed.embedId);
|
|
1592
|
+
embed.setDirtyState(earlyDirty);
|
|
1593
|
+
}
|
|
1535
1594
|
const early = this.early.get(embed.embedId);
|
|
1536
1595
|
if (early) {
|
|
1537
1596
|
this.early.delete(embed.embedId);
|
|
@@ -1554,6 +1613,17 @@ var MindooDBAppEmbedsClient = class {
|
|
|
1554
1613
|
reason: "cancelled",
|
|
1555
1614
|
...message ? { message: String(message) } : {}
|
|
1556
1615
|
});
|
|
1616
|
+
},
|
|
1617
|
+
setDirty: async (dirty) => {
|
|
1618
|
+
await this.rpc.call("embedding.setDirty", { dirty: dirty === true });
|
|
1619
|
+
},
|
|
1620
|
+
onSaveRequest: (handler) => {
|
|
1621
|
+
this.saveHandler = handler;
|
|
1622
|
+
return () => {
|
|
1623
|
+
if (this.saveHandler === handler) {
|
|
1624
|
+
this.saveHandler = null;
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1557
1627
|
}
|
|
1558
1628
|
};
|
|
1559
1629
|
}
|
|
@@ -1564,7 +1634,29 @@ var MindooDBAppEmbedsClient = class {
|
|
|
1564
1634
|
open = /* @__PURE__ */ new Map();
|
|
1565
1635
|
/** Events that arrived before `embeds.open` resolved with their id. */
|
|
1566
1636
|
early = /* @__PURE__ */ new Map();
|
|
1637
|
+
earlyDirty = /* @__PURE__ */ new Map();
|
|
1567
1638
|
stopListening;
|
|
1639
|
+
/** This app as a component: what to do when its host asks it to save. */
|
|
1640
|
+
saveHandler = null;
|
|
1641
|
+
/** Runs the save handler and tells Haven how it went; Haven answers the host. */
|
|
1642
|
+
async answerRequest(message) {
|
|
1643
|
+
let response;
|
|
1644
|
+
if (message.request !== "save" || !this.saveHandler) {
|
|
1645
|
+
response = { ok: false, error: "unsupported" };
|
|
1646
|
+
} else {
|
|
1647
|
+
try {
|
|
1648
|
+
await this.saveHandler();
|
|
1649
|
+
response = { ok: true };
|
|
1650
|
+
} catch (error) {
|
|
1651
|
+
response = { ok: false, error: error instanceof Error ? error.message : String(error) };
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
try {
|
|
1655
|
+
await this.rpc.call("embedding.respond", { requestId: message.requestId, ...response });
|
|
1656
|
+
} catch (error) {
|
|
1657
|
+
console.warn("[mindoodb-app-sdk] Could not answer the host's request.", error);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1568
1660
|
dispose() {
|
|
1569
1661
|
this.stopListening();
|
|
1570
1662
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppHostShortcutBinding, h as MindooDBAppHostShortcutAction, i as MindooDBAppHostingMode, j as MindooDBAppDefinition, k as MindooDBAppDatabase, l as MindooDBAppDocument, m as MindooDBAppRichTextSpan, n as MindooDBAppRichTextSnapshot, o as MindooDBAppCreateDocumentInput } from './types-
|
|
2
|
-
export { p as MINDOODB_APP_ACCEPTS_MAX, q as MINDOODB_APP_COMPONENTS_MAX, r as MINDOODB_APP_DEFINITION_FILE_NAME, s as MINDOODB_APP_DEFINITION_FORMAT, t as MINDOODB_APP_DEFINITION_PERMISSIONS, u as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, v as MINDOODB_APP_DEFINITION_VERSION, w as MINDOODB_APP_LISTING_DESCRIPTION_MAX, x as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, y as MINDOODB_APP_LISTING_SUMMARY_MAX, z as MINDOODB_APP_SEAL_SIGNING_DOMAIN, A as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, B as MindooDBAppAcceptSpec, C as MindooDBAppAccessDecision, D as MindooDBAppAccessTier, E as MindooDBAppAgentApi, F as MindooDBAppAgentRegistration, G as MindooDBAppAgentTool, H as MindooDBAppAgentToolAnnotations, I as MindooDBAppAgentToolDescriptor, J as MindooDBAppAttachmentApi, K as MindooDBAppAttachmentChunk, L as MindooDBAppAttachmentInfo, N as MindooDBAppAttachmentPreviewOptions, O as MindooDBAppAttachmentPreviewSession, P as MindooDBAppAutomergeChangesPatch, Q as MindooDBAppAutomergeChangesSince, R as MindooDBAppAutomergeGetOptions, S as MindooDBAppAutomergePatchResult, T as MindooDBAppAutomergeSnapshot, U as MindooDBAppBridgeAgentInvokeMessage, V as MindooDBAppBridgeAgentResultMessage, W as MindooDBAppBridgeBeforeCloseAck, X as MindooDBAppBridgeBeforeCloseMessage, Y as MindooDBAppBridgeConnectMessage, Z as MindooDBAppBridgeConnectOptions, _ as MindooDBAppBridgeConnectedMessage, $ as MindooDBAppBridgeDragDropMessage, a0 as MindooDBAppBridgeDragLeaveMessage, a1 as MindooDBAppBridgeDragOverMessage, a2 as MindooDBAppBridgeEmbedEventMessage, a3 as
|
|
1
|
+
import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppHostShortcutBinding, h as MindooDBAppHostShortcutAction, i as MindooDBAppHostingMode, j as MindooDBAppDefinition, k as MindooDBAppDatabase, l as MindooDBAppDocument, m as MindooDBAppRichTextSpan, n as MindooDBAppRichTextSnapshot, o as MindooDBAppCreateDocumentInput } from './types-BeRUxGKN.js';
|
|
2
|
+
export { p as MINDOODB_APP_ACCEPTS_MAX, q as MINDOODB_APP_COMPONENTS_MAX, r as MINDOODB_APP_DEFINITION_FILE_NAME, s as MINDOODB_APP_DEFINITION_FORMAT, t as MINDOODB_APP_DEFINITION_PERMISSIONS, u as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, v as MINDOODB_APP_DEFINITION_VERSION, w as MINDOODB_APP_LISTING_DESCRIPTION_MAX, x as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, y as MINDOODB_APP_LISTING_SUMMARY_MAX, z as MINDOODB_APP_SEAL_SIGNING_DOMAIN, A as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, B as MindooDBAppAcceptSpec, C as MindooDBAppAccessDecision, D as MindooDBAppAccessTier, E as MindooDBAppAgentApi, F as MindooDBAppAgentRegistration, G as MindooDBAppAgentTool, H as MindooDBAppAgentToolAnnotations, I as MindooDBAppAgentToolDescriptor, J as MindooDBAppAttachmentApi, K as MindooDBAppAttachmentChunk, L as MindooDBAppAttachmentInfo, N as MindooDBAppAttachmentPreviewOptions, O as MindooDBAppAttachmentPreviewSession, P as MindooDBAppAutomergeChangesPatch, Q as MindooDBAppAutomergeChangesSince, R as MindooDBAppAutomergeGetOptions, S as MindooDBAppAutomergePatchResult, T as MindooDBAppAutomergeSnapshot, U as MindooDBAppBridgeAgentInvokeMessage, V as MindooDBAppBridgeAgentResultMessage, W as MindooDBAppBridgeBeforeCloseAck, X as MindooDBAppBridgeBeforeCloseMessage, Y as MindooDBAppBridgeConnectMessage, Z as MindooDBAppBridgeConnectOptions, _ as MindooDBAppBridgeConnectedMessage, $ as MindooDBAppBridgeDragDropMessage, a0 as MindooDBAppBridgeDragLeaveMessage, a1 as MindooDBAppBridgeDragOverMessage, a2 as MindooDBAppBridgeEmbedEventMessage, a3 as MindooDBAppBridgeEmbeddingRequestMessage, a4 as MindooDBAppBridgeErrorPayload, a5 as MindooDBAppBridgeHandshakeErrorMessage, a6 as MindooDBAppBridgeHostFocusChangedMessage, a7 as MindooDBAppBridgeIncomingContentMessage, a8 as MindooDBAppBridgeLocaleChangedMessage, a9 as MindooDBAppBridgePortMessage, aa as MindooDBAppBridgeQueryResultMessage, ab as MindooDBAppBridgeRpcError, ac as MindooDBAppBridgeRpcMessage, ad as MindooDBAppBridgeRpcRequest, ae as MindooDBAppBridgeRpcSuccess, af as MindooDBAppBridgeShortcutInvokedMessage, ag as MindooDBAppBridgeShortcutsChangedMessage, ah as MindooDBAppBridgeStreamAbortRequest, ai as MindooDBAppBridgeStreamAck, aj as MindooDBAppBridgeStreamCloseRequest, ak as MindooDBAppBridgeStreamError, al as MindooDBAppBridgeStreamMessage, am as MindooDBAppBridgeStreamOpenResult, an as MindooDBAppBridgeStreamReadRequest, ao as MindooDBAppBridgeStreamWriteRequest, ap as MindooDBAppBridgeThemeChangedMessage, aq as MindooDBAppBridgeUiPreferencesChangedMessage, ar as MindooDBAppBridgeViewChangedMessage, as as MindooDBAppBridgeViewportChangedMessage, at as MindooDBAppBridgeWorkspaceFocusRequestedMessage, au as MindooDBAppBrowserFeatures, av as MindooDBAppCapability, aw as MindooDBAppComponentChildren, ax as MindooDBAppComponentFieldValue, ay as MindooDBAppComponentInfo, az as MindooDBAppComponentIntent, aA as MindooDBAppComponentQuery, aB as MindooDBAppComponentSpec, aC as MindooDBAppComponentsApi, aD as MindooDBAppConfiguredViewCategorizationStyle, aE as MindooDBAppConfiguredViewColumn, aF as MindooDBAppConfiguredViewColumnRole, aG as MindooDBAppConfiguredViewExpressionMode, aH as MindooDBAppConfiguredViewFieldExpression, aI as MindooDBAppConfiguredViewFilterDefinition, aJ as MindooDBAppConfiguredViewFilterMode, aK as MindooDBAppConfiguredViewFilterRule, aL as MindooDBAppConfiguredViewFormulaExpression, aM as MindooDBAppConfiguredViewFormulaFilterDefinition, aN as MindooDBAppConfiguredViewPreviewMode, aO as MindooDBAppConfiguredViewRuleFilterDefinition, aP as MindooDBAppConfiguredViewRuleMatchMode, aQ as MindooDBAppConfiguredViewRuleOperator, aR as MindooDBAppConfiguredViewValueExpression, aS as MindooDBAppCreateKeyInfo, aT as MindooDBAppCreateViewInput, aU as MindooDBAppCreateViewNavigatorInput, aV as MindooDBAppDatabaseInfo, aW as MindooDBAppDefinitionDatabase, aX as MindooDBAppDefinitionListing, aY as MindooDBAppDefinitionPermission, aZ as MindooDBAppDefinitionRegistrationPermission, a_ as MindooDBAppDefinitionScreenshot, a$ as MindooDBAppDefinitionValidation, b0 as MindooDBAppDirectoryApi, b1 as MindooDBAppDirectoryEntry, b2 as MindooDBAppDocumentApi, b3 as MindooDBAppDocumentHeadCursorResult, b4 as MindooDBAppDocumentHistoryEntry, b5 as MindooDBAppDocumentListQuery, b6 as MindooDBAppDocumentListResult, b7 as MindooDBAppDocumentQuery, b8 as MindooDBAppDocumentRevisionId, b9 as MindooDBAppDocumentScanPreset, ba as MindooDBAppDocumentSummary, bb as MindooDBAppDragApi, bc as MindooDBAppDragCancelReason, bd as MindooDBAppDragDropEvent, be as MindooDBAppDragEffect, bf as MindooDBAppDragHoverResult, bg as MindooDBAppDragOffer, bh as MindooDBAppDragOverEvent, bi as MindooDBAppDragPointer, bj as MindooDBAppDragProfile, bk as MindooDBAppEmbed, bl as MindooDBAppEmbedCloseReason, bm as MindooDBAppEmbedClosedEvent, bn as MindooDBAppEmbedContext, bo as MindooDBAppEmbedDirtyEvent, bp as MindooDBAppEmbedOpenInput, bq as MindooDBAppEmbedRect, br as MindooDBAppEmbeddingApi, bs as MindooDBAppEmbedsApi, bt as MindooDBAppEntryAttachmentRef, bu as MindooDBAppEntryProvenance, bv as MindooDBAppExtractDocumentTextInput, bw as MindooDBAppExtractDocumentTextResult, bx as MindooDBAppExtractTextFormat, by as MindooDBAppExtractionSetup, bz as MindooDBAppFulltextSetup, bA as MindooDBAppHistoricalDocument, bB as MindooDBAppHistoryQuery, bC as MindooDBAppHostTheme, bD as MindooDBAppIdentityApi, bE as MindooDBAppInaccessibleDocument, bF as MindooDBAppInaccessibleDocumentListQuery, bG as MindooDBAppInaccessibleDocumentListResult, bH as MindooDBAppIncomingContent, bI as MindooDBAppIncomingContentHandler, bJ as MindooDBAppIncomingContentInfo, bK as MindooDBAppIncomingItem, bL as MindooDBAppIncomingItemInfo, bM as MindooDBAppIncomingResult, bN as MindooDBAppIncomingSource, bO as MindooDBAppJsonCounterIncrementPatch, bP as MindooDBAppJsonListDeletePatch, bQ as MindooDBAppJsonListInsertPatch, bR as MindooDBAppJsonPatch, bS as MindooDBAppJsonSetPatch, bT as MindooDBAppJsonTextMarkPatch, bU as MindooDBAppJsonTextSplicePatch, bV as MindooDBAppJsonTextUnmarkPatch, bW as MindooDBAppJsonUnsetPatch, bX as MindooDBAppLaunchContext, bY as MindooDBAppListUsersOptions, bZ as MindooDBAppListUsersPage, b_ as MindooDBAppLiveQuerySubscription, b$ as MindooDBAppLocalizedText, c0 as MindooDBAppMenuAnchor, c1 as MindooDBAppMenuApi, c2 as MindooDBAppMenuCommandItem, c3 as MindooDBAppMenuDismissReason, c4 as MindooDBAppMenuDismissedResult, c5 as MindooDBAppMenuItem, c6 as MindooDBAppMenuKind, c7 as MindooDBAppMenuPlacement, c8 as MindooDBAppMenuPointAnchor, c9 as MindooDBAppMenuRect, ca as MindooDBAppMenuRectAnchor, cb as MindooDBAppMenuSelectionResult, cc as MindooDBAppMenuSeparatorItem, cd as MindooDBAppNotificationSeverity, ce as MindooDBAppNotifyInput, cf as MindooDBAppNotifyResult, cg as MindooDBAppProposeAppInput, ch as MindooDBAppProposeAppResult, ci as MindooDBAppQueryCoverage, cj as MindooDBAppQueryInclude, ck as MindooDBAppQueryIncludeCardinality, cl as MindooDBAppQueryIncludeSlots, cm as MindooDBAppQueryResult, cn as MindooDBAppQueryRow, co as MindooDBAppQuerySortKey, cp as MindooDBAppQueryTextClause, cq as MindooDBAppReadableAttachmentStream, cr as MindooDBAppRecipientOptions, cs as MindooDBAppResolvedViewDefinition, ct as MindooDBAppResolvedViewSource, cu as MindooDBAppRevisionPhase, cv as MindooDBAppRevisionVerification, cw as MindooDBAppRichTextBlockSpan, cx as MindooDBAppRichTextGetOptions, cy as MindooDBAppRichTextImmutableString, cz as MindooDBAppRichTextMarkRange, cA as MindooDBAppRichTextMaterializeValue, cB as MindooDBAppRichTextPatch, cC as MindooDBAppRichTextScalar, cD as MindooDBAppRichTextSpliceStep, cE as MindooDBAppRichTextStep, cF as MindooDBAppRichTextStepPatch, cG as MindooDBAppRichTextTextSpan, cH as MindooDBAppRuntime, cI as MindooDBAppScanAttachmentOptions, cJ as MindooDBAppScanAttachmentResult, cK as MindooDBAppScopedDocId, cL as MindooDBAppScopedDocumentSummary, cM as MindooDBAppSealIntent, cN as MindooDBAppSealedChannelOpenInput, cO as MindooDBAppSealedChannelOpenResult, cP as MindooDBAppSealedChannelRequestInput, cQ as MindooDBAppSession, cR as MindooDBAppShowMenuInput, cS as MindooDBAppShowMenuResult, cT as MindooDBAppSignPreview, cU as MindooDBAppSignPreviewScope, cV as MindooDBAppSignStatementInput, cW as MindooDBAppSignStatementResult, cX as MindooDBAppStorageApi, cY as MindooDBAppSummarySetup, cZ as MindooDBAppTextCursorOptions, c_ as MindooDBAppTextCursorPosition, c$ as MindooDBAppTextCursorPositionsResult, d0 as MindooDBAppTextCursorsResult, d1 as MindooDBAppTextEdit, d2 as MindooDBAppTextPatch, d3 as MindooDBAppThemeMode, d4 as MindooDBAppTimestampApi, d5 as MindooDBAppTimestampInput, d6 as MindooDBAppTimestampProvider, d7 as MindooDBAppTimestampResult, d8 as MindooDBAppUiPreferences, d9 as MindooDBAppUpdateDocumentInput, da as MindooDBAppViewCursorDocumentListResult, db as MindooDBAppViewCursorResult, dc as MindooDBAppViewEntry, dd as MindooDBAppViewEntryKind, de as MindooDBAppViewNavigator, df as MindooDBAppViewNavigatorExpansionState, dg as MindooDBAppViewNavigatorOpenOptions, dh as MindooDBAppViewNavigatorPageOptions, di as MindooDBAppViewNavigatorPageResult, dj as MindooDBAppViewNavigatorRangeQuery, dk as MindooDBAppViewNavigatorSelectionState, dl as MindooDBAppViewUpdateStats, dm as MindooDBAppViewport, dn as MindooDBAppWellKnownDragType, dp as MindooDBAppWritableAttachmentStream, dq as mindooDBAppAcceptMatchesType, dr as mindooDBAppComponentFieldsMatch, ds as resolveMindooDBAppDefinitionUrl, dt as resolveMindooDBAppListingAssetUrl, du as resolveMindooDBAppLocalizedText, dv as validateMindooDBAppAccepts, dw as validateMindooDBAppComponents, dx as validateMindooDBAppDefinition } from './types-BeRUxGKN.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';
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
validateMindooDBAppAccepts,
|
|
48
48
|
validateMindooDBAppComponents,
|
|
49
49
|
validateMindooDBAppDefinition
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-BE7LLFFE.js";
|
|
51
51
|
import {
|
|
52
52
|
MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
|
|
53
53
|
MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ay as MindooDBAppComponentInfo, bq as MindooDBAppEmbedRect, aU as MindooDBAppCreateViewNavigatorInput, de as MindooDBAppViewNavigator, ad as MindooDBAppBridgeRpcRequest, bC as MindooDBAppHostTheme, av as MindooDBAppCapability, j as MindooDBAppDefinition, J as MindooDBAppAttachmentApi, e as MindooDBAppBridge, cQ as MindooDBAppSession, cg as MindooDBAppProposeAppInput, dm as MindooDBAppViewport, d8 as MindooDBAppUiPreferences, cm as MindooDBAppQueryResult, dl as MindooDBAppViewUpdateStats, a9 as MindooDBAppBridgePortMessage, aV as MindooDBAppDatabaseInfo, bl as MindooDBAppEmbedCloseReason, a4 as MindooDBAppBridgeErrorPayload, bX as MindooDBAppLaunchContext, b2 as MindooDBAppDocumentApi, dg as MindooDBAppViewNavigatorOpenOptions, bD as MindooDBAppIdentityApi, d4 as MindooDBAppTimestampApi, b0 as MindooDBAppDirectoryApi, l as MindooDBAppDocument, bz as MindooDBAppFulltextSetup, by as MindooDBAppExtractionSetup, cY as MindooDBAppSummarySetup, ch as MindooDBAppProposeAppResult, bN as MindooDBAppIncomingSource, c as MindooDBAppDragStartResult, bj as MindooDBAppDragProfile, bM as MindooDBAppIncomingResult } from '../types-BeRUxGKN.js';
|
|
2
2
|
import * as mindoodb from 'mindoodb';
|
|
3
3
|
import 'mindoodb-view-language';
|
|
4
4
|
|
|
@@ -11,6 +11,8 @@ interface MockEmbedState {
|
|
|
11
11
|
intent: "edit" | "view";
|
|
12
12
|
rect: MindooDBAppEmbedRect;
|
|
13
13
|
visible: boolean;
|
|
14
|
+
/** What the component last reported (`setEmbedDirty`); `undefined` until then. */
|
|
15
|
+
dirty?: boolean;
|
|
14
16
|
}
|
|
15
17
|
/** How an app running as an embedded component finished (`session.embedding`). */
|
|
16
18
|
interface MockEmbeddingFinish {
|
|
@@ -401,6 +403,14 @@ interface MockMindooDBAppSessionController {
|
|
|
401
403
|
setComponents(components: MindooDBAppComponentInfo[]): void;
|
|
402
404
|
/** For an app under test that runs as a component: its `session.embedding` call. */
|
|
403
405
|
getEmbeddingFinish(): MockEmbeddingFinish | null;
|
|
406
|
+
/** As if the embedded component reported (un)saved changes; the app's embed follows. */
|
|
407
|
+
setEmbedDirty(embedId: string, dirty: boolean): void;
|
|
408
|
+
/** Makes the app's next `embed.save()` fail with this message. */
|
|
409
|
+
failNextEmbedSave(message: string): void;
|
|
410
|
+
/** For an app under test that runs as a component: its last `embedding.setDirty`. */
|
|
411
|
+
getEmbeddingDirty(): boolean | undefined;
|
|
412
|
+
/** For an app under test that runs as a component: asks it to save, as its host would. */
|
|
413
|
+
requestEmbeddingSave(): Promise<void>;
|
|
404
414
|
}
|
|
405
415
|
|
|
406
416
|
/** Content for `emitIncomingContent`. */
|
|
@@ -498,6 +508,17 @@ interface FakeBridgeHostController {
|
|
|
498
508
|
closeEmbed(embedId: string, reason?: MindooDBAppEmbedCloseReason, result?: unknown): void;
|
|
499
509
|
/** For an app under test that runs as a component: its `session.embedding` call. */
|
|
500
510
|
getEmbeddingFinish(): MockEmbeddingFinish | null;
|
|
511
|
+
/** As if the embedded component reported (un)saved changes; pushes the `embed-event`. */
|
|
512
|
+
setEmbedDirty(embedId: string, dirty: boolean): void;
|
|
513
|
+
/** Makes the app's next `embed.save()` fail with this message. */
|
|
514
|
+
failNextEmbedSave(message: string): void;
|
|
515
|
+
/** For an app under test that runs as a component: its last `embedding.setDirty`. */
|
|
516
|
+
getEmbeddingDirty(): boolean | undefined;
|
|
517
|
+
/**
|
|
518
|
+
* For an app under test that runs as a component: pushes the host's save request
|
|
519
|
+
* over the port and resolves or rejects with the app's answer.
|
|
520
|
+
*/
|
|
521
|
+
requestEmbeddingSave(): Promise<void>;
|
|
501
522
|
}
|
|
502
523
|
declare function createFakeBridgeHost(options?: CreateFakeBridgeHostOptions): FakeBridgeHostController;
|
|
503
524
|
|
package/dist/testing/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
mindooDBAppComponentFieldsMatch,
|
|
5
5
|
pageUsers,
|
|
6
6
|
releaseMindooDBAppBridgeSessions
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-BE7LLFFE.js";
|
|
8
8
|
|
|
9
9
|
// src/testing/index.ts
|
|
10
10
|
import * as Automerge from "@automerge/automerge";
|
|
@@ -463,6 +463,10 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
463
463
|
const embeds = /* @__PURE__ */ new Map();
|
|
464
464
|
const handles = /* @__PURE__ */ new Map();
|
|
465
465
|
const closedListeners = /* @__PURE__ */ new Set();
|
|
466
|
+
const dirtyListeners = /* @__PURE__ */ new Set();
|
|
467
|
+
let nextSaveError = null;
|
|
468
|
+
let embeddingDirty;
|
|
469
|
+
let saveRequestHandler = null;
|
|
466
470
|
let embedCounter = 0;
|
|
467
471
|
let embeddingFinish = null;
|
|
468
472
|
function notifyChange() {
|
|
@@ -536,6 +540,24 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
536
540
|
placement = "overlay";
|
|
537
541
|
frame = null;
|
|
538
542
|
closed;
|
|
543
|
+
dirty = void 0;
|
|
544
|
+
dirtyListeners = /* @__PURE__ */ new Set();
|
|
545
|
+
onDirtyChange(listener) {
|
|
546
|
+
this.dirtyListeners.add(listener);
|
|
547
|
+
return () => {
|
|
548
|
+
this.dirtyListeners.delete(listener);
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
setDirtyState(dirty) {
|
|
552
|
+
if (this.settled || this.dirty === dirty) {
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
this.dirty = dirty;
|
|
556
|
+
this.dirtyListeners.forEach((listener) => listener(dirty));
|
|
557
|
+
}
|
|
558
|
+
async save() {
|
|
559
|
+
await saveEmbed(this.embedId);
|
|
560
|
+
}
|
|
539
561
|
resolve;
|
|
540
562
|
listeners = /* @__PURE__ */ new Set();
|
|
541
563
|
settled = null;
|
|
@@ -545,7 +567,7 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
545
567
|
async setVisible(visible) {
|
|
546
568
|
setVisible(this.embedId, visible);
|
|
547
569
|
}
|
|
548
|
-
async close() {
|
|
570
|
+
async close(_options) {
|
|
549
571
|
closeEmbed(this.embedId, "closed");
|
|
550
572
|
return await this.closed;
|
|
551
573
|
}
|
|
@@ -575,6 +597,27 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
575
597
|
notifyChange();
|
|
576
598
|
}
|
|
577
599
|
}
|
|
600
|
+
function setEmbedDirty(embedId, dirty) {
|
|
601
|
+
const entry = embeds.get(embedId);
|
|
602
|
+
if (!entry || entry.dirty === dirty) {
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
entry.dirty = dirty;
|
|
606
|
+
handles.get(embedId)?.setDirtyState(dirty);
|
|
607
|
+
dirtyListeners.forEach((listener) => listener({ embedId, dirty }));
|
|
608
|
+
notifyChange();
|
|
609
|
+
}
|
|
610
|
+
async function saveEmbed(embedId) {
|
|
611
|
+
if (!embeds.has(embedId)) {
|
|
612
|
+
throw new Error("Unknown embed.");
|
|
613
|
+
}
|
|
614
|
+
const error = nextSaveError;
|
|
615
|
+
nextSaveError = null;
|
|
616
|
+
if (error) {
|
|
617
|
+
throw new Error(error);
|
|
618
|
+
}
|
|
619
|
+
setEmbedDirty(embedId, false);
|
|
620
|
+
}
|
|
578
621
|
function setVisible(embedId, visible) {
|
|
579
622
|
const entry = embeds.get(embedId);
|
|
580
623
|
if (entry) {
|
|
@@ -605,6 +648,17 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
605
648
|
},
|
|
606
649
|
async cancel(message) {
|
|
607
650
|
embeddingFinish = { reason: "cancelled", ...message ? { message } : {} };
|
|
651
|
+
},
|
|
652
|
+
async setDirty(dirty) {
|
|
653
|
+
embeddingDirty = dirty === true;
|
|
654
|
+
},
|
|
655
|
+
onSaveRequest(handler) {
|
|
656
|
+
saveRequestHandler = handler;
|
|
657
|
+
return () => {
|
|
658
|
+
if (saveRequestHandler === handler) {
|
|
659
|
+
saveRequestHandler = null;
|
|
660
|
+
}
|
|
661
|
+
};
|
|
608
662
|
}
|
|
609
663
|
},
|
|
610
664
|
openEmbed,
|
|
@@ -628,6 +682,32 @@ function createMockEmbedHost(options, getDatabase) {
|
|
|
628
682
|
return () => {
|
|
629
683
|
closedListeners.delete(listener);
|
|
630
684
|
};
|
|
685
|
+
},
|
|
686
|
+
setEmbedDirty,
|
|
687
|
+
onDirty(listener) {
|
|
688
|
+
dirtyListeners.add(listener);
|
|
689
|
+
return () => {
|
|
690
|
+
dirtyListeners.delete(listener);
|
|
691
|
+
};
|
|
692
|
+
},
|
|
693
|
+
saveEmbed,
|
|
694
|
+
failNextSave(message) {
|
|
695
|
+
nextSaveError = message;
|
|
696
|
+
},
|
|
697
|
+
getEmbeddingDirty() {
|
|
698
|
+
return embeddingDirty;
|
|
699
|
+
},
|
|
700
|
+
setEmbeddingDirty(dirty) {
|
|
701
|
+
embeddingDirty = dirty;
|
|
702
|
+
},
|
|
703
|
+
async requestEmbeddingSave() {
|
|
704
|
+
if (!saveRequestHandler) {
|
|
705
|
+
throw new Error("unsupported");
|
|
706
|
+
}
|
|
707
|
+
await saveRequestHandler();
|
|
708
|
+
},
|
|
709
|
+
setSaveRequestHandler(handler) {
|
|
710
|
+
saveRequestHandler = handler;
|
|
631
711
|
}
|
|
632
712
|
};
|
|
633
713
|
}
|
|
@@ -4060,7 +4140,11 @@ function createMockMindooDBAppSession(options = {}) {
|
|
|
4060
4140
|
listEmbeds: () => state.embedHost.listEmbeds(),
|
|
4061
4141
|
closeEmbed: (embedId, reason, result) => state.embedHost.closeEmbed(embedId, reason, result),
|
|
4062
4142
|
setComponents: (components) => state.embedHost.setComponents(components),
|
|
4063
|
-
getEmbeddingFinish: () => state.embedHost.getEmbeddingFinish()
|
|
4143
|
+
getEmbeddingFinish: () => state.embedHost.getEmbeddingFinish(),
|
|
4144
|
+
setEmbedDirty: (embedId, dirty) => state.embedHost.setEmbedDirty(embedId, dirty),
|
|
4145
|
+
failNextEmbedSave: (message) => state.embedHost.failNextSave(message),
|
|
4146
|
+
getEmbeddingDirty: () => state.embedHost.getEmbeddingDirty(),
|
|
4147
|
+
requestEmbeddingSave: () => state.embedHost.requestEmbeddingSave()
|
|
4064
4148
|
};
|
|
4065
4149
|
}
|
|
4066
4150
|
function createMockMindooDBAppBridge(options = {}) {
|
|
@@ -4079,6 +4163,13 @@ function createFakeBridgeHost(options = {}) {
|
|
|
4079
4163
|
(port) => port.postMessage({ protocol: PROTOCOL, kind: "embed-event", event: { type: "closed", ...event } })
|
|
4080
4164
|
);
|
|
4081
4165
|
});
|
|
4166
|
+
state.embedHost.onDirty((event) => {
|
|
4167
|
+
connectedPorts.forEach(
|
|
4168
|
+
(port) => port.postMessage({ protocol: PROTOCOL, kind: "embed-event", event: { type: "dirty", ...event } })
|
|
4169
|
+
);
|
|
4170
|
+
});
|
|
4171
|
+
const embeddingRequests = /* @__PURE__ */ new Map();
|
|
4172
|
+
let embeddingRequestCounter = 0;
|
|
4082
4173
|
const beforeCloseWaiters = /* @__PURE__ */ new Map();
|
|
4083
4174
|
let beforeCloseCounter = 0;
|
|
4084
4175
|
const viewSessions = /* @__PURE__ */ new Map();
|
|
@@ -4325,6 +4416,22 @@ function createFakeBridgeHost(options = {}) {
|
|
|
4325
4416
|
case "embeds.close":
|
|
4326
4417
|
state.embedHost.closeEmbed(String(params.embedId), "closed");
|
|
4327
4418
|
return { ok: true };
|
|
4419
|
+
case "embeds.save":
|
|
4420
|
+
await state.embedHost.saveEmbed(String(params.embedId));
|
|
4421
|
+
return { ok: true };
|
|
4422
|
+
case "embedding.setDirty":
|
|
4423
|
+
state.embedHost.setEmbeddingDirty(params.dirty === true);
|
|
4424
|
+
return { ok: true };
|
|
4425
|
+
case "embedding.respond": {
|
|
4426
|
+
const pending = embeddingRequests.get(String(params.requestId));
|
|
4427
|
+
embeddingRequests.delete(String(params.requestId));
|
|
4428
|
+
if (params.ok === true) {
|
|
4429
|
+
pending?.resolve();
|
|
4430
|
+
} else {
|
|
4431
|
+
pending?.reject(new Error(typeof params.error === "string" ? params.error : "Save failed."));
|
|
4432
|
+
}
|
|
4433
|
+
return { ok: true };
|
|
4434
|
+
}
|
|
4328
4435
|
case "embedding.finish":
|
|
4329
4436
|
state.embedHost.finishEmbedding({
|
|
4330
4437
|
reason: params.reason === "cancelled" ? "cancelled" : "completed",
|
|
@@ -4939,6 +5046,19 @@ function createFakeBridgeHost(options = {}) {
|
|
|
4939
5046
|
listEmbeds: () => state.embedHost.listEmbeds(),
|
|
4940
5047
|
closeEmbed: (embedId, reason, result) => state.embedHost.closeEmbed(embedId, reason, result),
|
|
4941
5048
|
getEmbeddingFinish: () => state.embedHost.getEmbeddingFinish(),
|
|
5049
|
+
setEmbedDirty: (embedId, dirty) => state.embedHost.setEmbedDirty(embedId, dirty),
|
|
5050
|
+
failNextEmbedSave: (message) => state.embedHost.failNextSave(message),
|
|
5051
|
+
getEmbeddingDirty: () => state.embedHost.getEmbeddingDirty(),
|
|
5052
|
+
requestEmbeddingSave() {
|
|
5053
|
+
embeddingRequestCounter += 1;
|
|
5054
|
+
const requestId = `embedding-request-${embeddingRequestCounter}`;
|
|
5055
|
+
return new Promise((resolve, reject) => {
|
|
5056
|
+
embeddingRequests.set(requestId, { resolve, reject });
|
|
5057
|
+
connectedPorts.forEach(
|
|
5058
|
+
(port) => port.postMessage({ protocol: PROTOCOL, kind: "embedding-request", requestId, request: "save" })
|
|
5059
|
+
);
|
|
5060
|
+
});
|
|
5061
|
+
},
|
|
4942
5062
|
dispose() {
|
|
4943
5063
|
restoreWindow();
|
|
4944
5064
|
connectedPorts.forEach((port) => {
|
|
@@ -1671,10 +1671,34 @@ interface MindooDBAppEmbed {
|
|
|
1671
1671
|
* `container`, whose rectangle the SDK follows itself.
|
|
1672
1672
|
*/
|
|
1673
1673
|
setRect(rect: MindooDBAppEmbedRect): Promise<void>;
|
|
1674
|
-
/**
|
|
1674
|
+
/**
|
|
1675
|
+
* Hide without closing, e.g. while a dialog of the host covers it, or (also with
|
|
1676
|
+
* `frame` placement) while it sits in a background tab: a hidden component gets
|
|
1677
|
+
* no drops of host-owned drags.
|
|
1678
|
+
*/
|
|
1675
1679
|
setVisible(visible: boolean): Promise<void>;
|
|
1676
|
-
/**
|
|
1677
|
-
|
|
1680
|
+
/**
|
|
1681
|
+
* Whether the component has changes it has not saved yet, as it last reported
|
|
1682
|
+
* (`session.embedding.setDirty`). `undefined` until it reports anything: a
|
|
1683
|
+
* component that never does cannot tell, so close it without asking.
|
|
1684
|
+
*/
|
|
1685
|
+
readonly dirty: boolean | undefined;
|
|
1686
|
+
/** Called whenever the component reports a different `dirty` state. */
|
|
1687
|
+
onDirtyChange(listener: (dirty: boolean) => void): () => void;
|
|
1688
|
+
/**
|
|
1689
|
+
* Asks the component to save its pending changes (`session.embedding.onSaveRequest`),
|
|
1690
|
+
* e.g. after the user chose "Save" when closing it. Resolves once it saved; rejects
|
|
1691
|
+
* with the component's error, or with `unsupported` when it does not save on request.
|
|
1692
|
+
*/
|
|
1693
|
+
save(): Promise<void>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Let the component save, then close it. Resolves with the closed event.
|
|
1696
|
+
* `discard: true` closes without giving the component that chance, after the user
|
|
1697
|
+
* chose not to keep its unsaved changes.
|
|
1698
|
+
*/
|
|
1699
|
+
close(options?: {
|
|
1700
|
+
discard?: boolean;
|
|
1701
|
+
}): Promise<MindooDBAppEmbedClosedEvent>;
|
|
1678
1702
|
/** Called once when the component closes, whoever closed it. */
|
|
1679
1703
|
onClosed(listener: (event: MindooDBAppEmbedClosedEvent) => void): () => void;
|
|
1680
1704
|
/** Settles with the closed event. */
|
|
@@ -1703,16 +1727,41 @@ interface MindooDBAppEmbeddingApi {
|
|
|
1703
1727
|
complete(result?: unknown): Promise<void>;
|
|
1704
1728
|
/** Closes without a result, e.g. when the user cancels. */
|
|
1705
1729
|
cancel(message?: string): Promise<void>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Tells the host whether there are changes not saved yet, so it can mark the
|
|
1732
|
+
* component (e.g. a dot in its tab) and ask before closing it. Report every change
|
|
1733
|
+
* of the state; Haven passes the latest one on.
|
|
1734
|
+
*/
|
|
1735
|
+
setDirty(dirty: boolean): Promise<void>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Handles the host's request to save (`embed.save()`). Resolve once saved, throw to
|
|
1738
|
+
* report why it failed. One handler at a time; returns the unregister function.
|
|
1739
|
+
*/
|
|
1740
|
+
onSaveRequest(handler: () => void | Promise<void>): () => void;
|
|
1741
|
+
}
|
|
1742
|
+
/** Haven → component: the host asked for something (`embed.save()`). */
|
|
1743
|
+
interface MindooDBAppBridgeEmbeddingRequestMessage {
|
|
1744
|
+
protocol: "mindoodb-app-bridge";
|
|
1745
|
+
kind: "embedding-request";
|
|
1746
|
+
requestId: string;
|
|
1747
|
+
request: "save";
|
|
1748
|
+
}
|
|
1749
|
+
/** The component reported whether it has unsaved changes. */
|
|
1750
|
+
interface MindooDBAppEmbedDirtyEvent {
|
|
1751
|
+
embedId: string;
|
|
1752
|
+
dirty: boolean;
|
|
1706
1753
|
}
|
|
1707
1754
|
/** Host → app: something happened to an embed this app opened. */
|
|
1708
1755
|
interface MindooDBAppBridgeEmbedEventMessage {
|
|
1709
1756
|
protocol: "mindoodb-app-bridge";
|
|
1710
1757
|
kind: "embed-event";
|
|
1711
|
-
event: {
|
|
1758
|
+
event: ({
|
|
1712
1759
|
type: "closed";
|
|
1713
|
-
} & MindooDBAppEmbedClosedEvent
|
|
1760
|
+
} & MindooDBAppEmbedClosedEvent) | ({
|
|
1761
|
+
type: "dirty";
|
|
1762
|
+
} & MindooDBAppEmbedDirtyEvent);
|
|
1714
1763
|
}
|
|
1715
|
-
type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeEmbedEventMessage;
|
|
1764
|
+
type MindooDBAppBridgePortMessage = MindooDBAppBridgeRpcMessage | MindooDBAppBridgeStreamMessage | MindooDBAppBridgeThemeChangedMessage | MindooDBAppBridgeViewportChangedMessage | MindooDBAppBridgeUiPreferencesChangedMessage | MindooDBAppBridgeLocaleChangedMessage | MindooDBAppBridgeQueryResultMessage | MindooDBAppBridgeViewChangedMessage | MindooDBAppBridgeBeforeCloseMessage | MindooDBAppBridgeBeforeCloseAck | MindooDBAppBridgeShortcutsChangedMessage | MindooDBAppBridgeShortcutInvokedMessage | MindooDBAppBridgeWorkspaceFocusRequestedMessage | MindooDBAppBridgeHostFocusChangedMessage | MindooDBAppBridgeAgentInvokeMessage | MindooDBAppBridgeAgentResultMessage | MindooDBAppBridgeDragOverMessage | MindooDBAppBridgeDragLeaveMessage | MindooDBAppBridgeDragDropMessage | MindooDBAppBridgeIncomingContentMessage | MindooDBAppBridgeEmbedEventMessage | MindooDBAppBridgeEmbeddingRequestMessage;
|
|
1716
1765
|
/** Placement hint for a host-rendered overlay menu. */
|
|
1717
1766
|
type MindooDBAppMenuPlacement = "auto" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | "right-start" | "left-start";
|
|
1718
1767
|
/** Semantic hint allowing Haven to tune menu behavior or styling. */
|
|
@@ -3416,4 +3465,4 @@ interface MindooDBAppBridge {
|
|
|
3416
3465
|
connect(options?: MindooDBAppBridgeConnectOptions): Promise<MindooDBAppSession>;
|
|
3417
3466
|
}
|
|
3418
3467
|
|
|
3419
|
-
export { type MindooDBAppBridgeDragDropMessage as $, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as A, type MindooDBAppAcceptSpec as B, type MindooDBAppAccessDecision as C, type MindooDBAppAccessTier as D, type MindooDBAppAgentApi as E, type MindooDBAppAgentRegistration as F, type MindooDBAppAgentTool as G, type MindooDBAppAgentToolAnnotations as H, type MindooDBAppAgentToolDescriptor as I, type MindooDBAppAttachmentApi as J, type MindooDBAppAttachmentChunk as K, type MindooDBAppAttachmentInfo as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAttachmentPreviewOptions as N, type MindooDBAppAttachmentPreviewSession as O, type MindooDBAppAutomergeChangesPatch as P, type MindooDBAppAutomergeChangesSince as Q, type MindooDBAppAutomergeGetOptions as R, type MindooDBAppAutomergePatchResult as S, type MindooDBAppAutomergeSnapshot as T, type MindooDBAppBridgeAgentInvokeMessage as U, type MindooDBAppBridgeAgentResultMessage as V, type MindooDBAppBridgeBeforeCloseAck as W, type MindooDBAppBridgeBeforeCloseMessage as X, type MindooDBAppBridgeConnectMessage as Y, type MindooDBAppBridgeConnectOptions as Z, type MindooDBAppBridgeConnectedMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppDirectoryApi as a$, type MindooDBAppBridgeDragLeaveMessage as a0, type MindooDBAppBridgeDragOverMessage as a1, type MindooDBAppBridgeEmbedEventMessage as a2, type MindooDBAppBridgeErrorPayload as a3, type MindooDBAppBridgeHandshakeErrorMessage as a4, type MindooDBAppBridgeHostFocusChangedMessage as a5, type MindooDBAppBridgeIncomingContentMessage as a6, type MindooDBAppBridgeLocaleChangedMessage as a7, type MindooDBAppBridgePortMessage as a8, type MindooDBAppBridgeQueryResultMessage as a9, type MindooDBAppComponentSpec as aA, type MindooDBAppComponentsApi as aB, type MindooDBAppConfiguredViewCategorizationStyle as aC, type MindooDBAppConfiguredViewColumn as aD, type MindooDBAppConfiguredViewColumnRole as aE, type MindooDBAppConfiguredViewExpressionMode as aF, type MindooDBAppConfiguredViewFieldExpression as aG, type MindooDBAppConfiguredViewFilterDefinition as aH, type MindooDBAppConfiguredViewFilterMode as aI, type MindooDBAppConfiguredViewFilterRule as aJ, type MindooDBAppConfiguredViewFormulaExpression as aK, type MindooDBAppConfiguredViewFormulaFilterDefinition as aL, type MindooDBAppConfiguredViewPreviewMode as aM, type MindooDBAppConfiguredViewRuleFilterDefinition as aN, type MindooDBAppConfiguredViewRuleMatchMode as aO, type MindooDBAppConfiguredViewRuleOperator as aP, type MindooDBAppConfiguredViewValueExpression as aQ, type MindooDBAppCreateKeyInfo as aR, type MindooDBAppCreateViewInput as aS, type MindooDBAppCreateViewNavigatorInput as aT, type MindooDBAppDatabaseInfo as aU, type MindooDBAppDefinitionDatabase as aV, type MindooDBAppDefinitionListing as aW, type MindooDBAppDefinitionPermission as aX, type MindooDBAppDefinitionRegistrationPermission as aY, type MindooDBAppDefinitionScreenshot as aZ, type MindooDBAppDefinitionValidation as a_, type MindooDBAppBridgeRpcError as aa, type MindooDBAppBridgeRpcMessage as ab, type MindooDBAppBridgeRpcRequest as ac, type MindooDBAppBridgeRpcSuccess as ad, type MindooDBAppBridgeShortcutInvokedMessage as ae, type MindooDBAppBridgeShortcutsChangedMessage as af, type MindooDBAppBridgeStreamAbortRequest as ag, type MindooDBAppBridgeStreamAck as ah, type MindooDBAppBridgeStreamCloseRequest as ai, type MindooDBAppBridgeStreamError as aj, type MindooDBAppBridgeStreamMessage as ak, type MindooDBAppBridgeStreamOpenResult as al, type MindooDBAppBridgeStreamReadRequest as am, type MindooDBAppBridgeStreamWriteRequest as an, type MindooDBAppBridgeThemeChangedMessage as ao, type MindooDBAppBridgeUiPreferencesChangedMessage as ap, type MindooDBAppBridgeViewChangedMessage as aq, type MindooDBAppBridgeViewportChangedMessage as ar, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as as, type MindooDBAppBrowserFeatures as at, type MindooDBAppCapability as au, type MindooDBAppComponentChildren as av, type MindooDBAppComponentFieldValue as aw, type MindooDBAppComponentInfo as ax, type MindooDBAppComponentIntent as ay, type MindooDBAppComponentQuery as az, type MindooDBAppDragStartInput as b, type MindooDBAppMenuApi as b$, type MindooDBAppDirectoryEntry as b0, type MindooDBAppDocumentApi as b1, type MindooDBAppDocumentHeadCursorResult as b2, type MindooDBAppDocumentHistoryEntry as b3, type MindooDBAppDocumentListQuery as b4, type MindooDBAppDocumentListResult as b5, type MindooDBAppDocumentQuery as b6, type MindooDBAppDocumentRevisionId as b7, type MindooDBAppDocumentScanPreset as b8, type MindooDBAppDocumentSummary as b9, type MindooDBAppHostTheme as bA, type MindooDBAppIdentityApi as bB, type MindooDBAppInaccessibleDocument as bC, type MindooDBAppInaccessibleDocumentListQuery as bD, type MindooDBAppInaccessibleDocumentListResult as bE, type MindooDBAppIncomingContent as bF, type MindooDBAppIncomingContentHandler as bG, type MindooDBAppIncomingContentInfo as bH, type MindooDBAppIncomingItem as bI, type MindooDBAppIncomingItemInfo as bJ, type MindooDBAppIncomingResult as bK, type MindooDBAppIncomingSource as bL, type MindooDBAppJsonCounterIncrementPatch as bM, type MindooDBAppJsonListDeletePatch as bN, type MindooDBAppJsonListInsertPatch as bO, type MindooDBAppJsonPatch as bP, type MindooDBAppJsonSetPatch as bQ, type MindooDBAppJsonTextMarkPatch as bR, type MindooDBAppJsonTextSplicePatch as bS, type MindooDBAppJsonTextUnmarkPatch as bT, type MindooDBAppJsonUnsetPatch as bU, type MindooDBAppLaunchContext as bV, type MindooDBAppListUsersOptions as bW, type MindooDBAppListUsersPage as bX, type MindooDBAppLiveQuerySubscription as bY, type MindooDBAppLocalizedText as bZ, type MindooDBAppMenuAnchor as b_, type MindooDBAppDragApi as ba, type MindooDBAppDragCancelReason as bb, type MindooDBAppDragDropEvent as bc, type MindooDBAppDragEffect as bd, type MindooDBAppDragHoverResult as be, type MindooDBAppDragOffer as bf, type MindooDBAppDragOverEvent as bg, type MindooDBAppDragPointer as bh, type MindooDBAppDragProfile as bi, type MindooDBAppEmbed as bj, type MindooDBAppEmbedCloseReason as bk, type MindooDBAppEmbedClosedEvent as bl, type MindooDBAppEmbedContext as bm, type MindooDBAppEmbedOpenInput as bn, type MindooDBAppEmbedRect as bo, type MindooDBAppEmbeddingApi as bp, type MindooDBAppEmbedsApi as bq, type MindooDBAppEntryAttachmentRef as br, type MindooDBAppEntryProvenance as bs, type MindooDBAppExtractDocumentTextInput as bt, type MindooDBAppExtractDocumentTextResult as bu, type MindooDBAppExtractTextFormat as bv, type MindooDBAppExtractionSetup as bw, type MindooDBAppFulltextSetup as bx, type MindooDBAppHistoricalDocument as by, type MindooDBAppHistoryQuery as bz, type MindooDBAppDragStartResult as c, type MindooDBAppTextEdit as c$, type MindooDBAppMenuCommandItem as c0, type MindooDBAppMenuDismissReason as c1, type MindooDBAppMenuDismissedResult as c2, type MindooDBAppMenuItem as c3, type MindooDBAppMenuKind as c4, type MindooDBAppMenuPlacement as c5, type MindooDBAppMenuPointAnchor as c6, type MindooDBAppMenuRect as c7, type MindooDBAppMenuRectAnchor as c8, type MindooDBAppMenuSelectionResult as c9, type MindooDBAppRichTextScalar as cA, type MindooDBAppRichTextSpliceStep as cB, type MindooDBAppRichTextStep as cC, type MindooDBAppRichTextStepPatch as cD, type MindooDBAppRichTextTextSpan as cE, type MindooDBAppRuntime as cF, type MindooDBAppScanAttachmentOptions as cG, type MindooDBAppScanAttachmentResult as cH, type MindooDBAppScopedDocId as cI, type MindooDBAppScopedDocumentSummary as cJ, type MindooDBAppSealIntent as cK, type MindooDBAppSealedChannelOpenInput as cL, type MindooDBAppSealedChannelOpenResult as cM, type MindooDBAppSealedChannelRequestInput as cN, type MindooDBAppSession as cO, type MindooDBAppShowMenuInput as cP, type MindooDBAppShowMenuResult as cQ, type MindooDBAppSignPreview as cR, type MindooDBAppSignPreviewScope as cS, type MindooDBAppSignStatementInput as cT, type MindooDBAppSignStatementResult as cU, type MindooDBAppStorageApi as cV, type MindooDBAppSummarySetup as cW, type MindooDBAppTextCursorOptions as cX, type MindooDBAppTextCursorPosition as cY, type MindooDBAppTextCursorPositionsResult as cZ, type MindooDBAppTextCursorsResult as c_, type MindooDBAppMenuSeparatorItem as ca, type MindooDBAppNotificationSeverity as cb, type MindooDBAppNotifyInput as cc, type MindooDBAppNotifyResult as cd, type MindooDBAppProposeAppInput as ce, type MindooDBAppProposeAppResult as cf, type MindooDBAppQueryCoverage as cg, type MindooDBAppQueryInclude as ch, type MindooDBAppQueryIncludeCardinality as ci, type MindooDBAppQueryIncludeSlots as cj, type MindooDBAppQueryResult as ck, type MindooDBAppQueryRow as cl, type MindooDBAppQuerySortKey as cm, type MindooDBAppQueryTextClause as cn, type MindooDBAppReadableAttachmentStream as co, type MindooDBAppRecipientOptions as cp, type MindooDBAppResolvedViewDefinition as cq, type MindooDBAppResolvedViewSource as cr, type MindooDBAppRevisionPhase as cs, type MindooDBAppRevisionVerification as ct, type MindooDBAppRichTextBlockSpan as cu, type MindooDBAppRichTextGetOptions as cv, type MindooDBAppRichTextImmutableString as cw, type MindooDBAppRichTextMarkRange as cx, type MindooDBAppRichTextMaterializeValue as cy, type MindooDBAppRichTextPatch as cz, type MindooDBAppDragPreview as d, type MindooDBAppTextPatch as d0, type MindooDBAppThemeMode as d1, type MindooDBAppTimestampApi as d2, type MindooDBAppTimestampInput as d3, type MindooDBAppTimestampProvider as d4, type MindooDBAppTimestampResult as d5, type MindooDBAppUiPreferences as d6, type MindooDBAppUpdateDocumentInput as d7, type MindooDBAppViewCursorDocumentListResult as d8, type MindooDBAppViewCursorResult as d9, type MindooDBAppViewEntry as da, type MindooDBAppViewEntryKind as db, type MindooDBAppViewNavigator as dc, type MindooDBAppViewNavigatorExpansionState as dd, type MindooDBAppViewNavigatorOpenOptions as de, type MindooDBAppViewNavigatorPageOptions as df, type MindooDBAppViewNavigatorPageResult as dg, type MindooDBAppViewNavigatorRangeQuery as dh, type MindooDBAppViewNavigatorSelectionState as di, type MindooDBAppViewUpdateStats as dj, type MindooDBAppViewport as dk, type MindooDBAppWellKnownDragType as dl, type MindooDBAppWritableAttachmentStream as dm, mindooDBAppAcceptMatchesType as dn, mindooDBAppComponentFieldsMatch as dp, resolveMindooDBAppDefinitionUrl as dq, resolveMindooDBAppListingAssetUrl as dr, resolveMindooDBAppLocalizedText as ds, validateMindooDBAppAccepts as dt, validateMindooDBAppComponents as du, validateMindooDBAppDefinition as dv, type MindooDBAppBridge as e, type MindooDBAppAgentToolErrorCode as f, type MindooDBAppHostShortcutBinding as g, type MindooDBAppHostShortcutAction as h, type MindooDBAppHostingMode as i, type MindooDBAppDefinition as j, type MindooDBAppDatabase as k, type MindooDBAppDocument as l, type MindooDBAppRichTextSpan as m, type MindooDBAppRichTextSnapshot as n, type MindooDBAppCreateDocumentInput as o, MINDOODB_APP_ACCEPTS_MAX as p, MINDOODB_APP_COMPONENTS_MAX as q, MINDOODB_APP_DEFINITION_FILE_NAME as r, MINDOODB_APP_DEFINITION_FORMAT as s, MINDOODB_APP_DEFINITION_PERMISSIONS as t, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as u, MINDOODB_APP_DEFINITION_VERSION as v, MINDOODB_APP_LISTING_DESCRIPTION_MAX as w, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as x, MINDOODB_APP_LISTING_SUMMARY_MAX as y, MINDOODB_APP_SEAL_SIGNING_DOMAIN as z };
|
|
3468
|
+
export { type MindooDBAppBridgeDragDropMessage as $, MINDOODB_APP_WELL_KNOWN_DRAG_TYPES as A, type MindooDBAppAcceptSpec as B, type MindooDBAppAccessDecision as C, type MindooDBAppAccessTier as D, type MindooDBAppAgentApi as E, type MindooDBAppAgentRegistration as F, type MindooDBAppAgentTool as G, type MindooDBAppAgentToolAnnotations as H, type MindooDBAppAgentToolDescriptor as I, type MindooDBAppAttachmentApi as J, type MindooDBAppAttachmentChunk as K, type MindooDBAppAttachmentInfo as L, type MindooDBAppAttachmentPreviewMode as M, type MindooDBAppAttachmentPreviewOptions as N, type MindooDBAppAttachmentPreviewSession as O, type MindooDBAppAutomergeChangesPatch as P, type MindooDBAppAutomergeChangesSince as Q, type MindooDBAppAutomergeGetOptions as R, type MindooDBAppAutomergePatchResult as S, type MindooDBAppAutomergeSnapshot as T, type MindooDBAppBridgeAgentInvokeMessage as U, type MindooDBAppBridgeAgentResultMessage as V, type MindooDBAppBridgeBeforeCloseAck as W, type MindooDBAppBridgeBeforeCloseMessage as X, type MindooDBAppBridgeConnectMessage as Y, type MindooDBAppBridgeConnectOptions as Z, type MindooDBAppBridgeConnectedMessage as _, type MindooDBAppDragBindSourceOptions as a, type MindooDBAppDefinitionValidation as a$, type MindooDBAppBridgeDragLeaveMessage as a0, type MindooDBAppBridgeDragOverMessage as a1, type MindooDBAppBridgeEmbedEventMessage as a2, type MindooDBAppBridgeEmbeddingRequestMessage as a3, type MindooDBAppBridgeErrorPayload as a4, type MindooDBAppBridgeHandshakeErrorMessage as a5, type MindooDBAppBridgeHostFocusChangedMessage as a6, type MindooDBAppBridgeIncomingContentMessage as a7, type MindooDBAppBridgeLocaleChangedMessage as a8, type MindooDBAppBridgePortMessage as a9, type MindooDBAppComponentQuery as aA, type MindooDBAppComponentSpec as aB, type MindooDBAppComponentsApi as aC, type MindooDBAppConfiguredViewCategorizationStyle as aD, type MindooDBAppConfiguredViewColumn as aE, type MindooDBAppConfiguredViewColumnRole as aF, type MindooDBAppConfiguredViewExpressionMode as aG, type MindooDBAppConfiguredViewFieldExpression as aH, type MindooDBAppConfiguredViewFilterDefinition as aI, type MindooDBAppConfiguredViewFilterMode as aJ, type MindooDBAppConfiguredViewFilterRule as aK, type MindooDBAppConfiguredViewFormulaExpression as aL, type MindooDBAppConfiguredViewFormulaFilterDefinition as aM, type MindooDBAppConfiguredViewPreviewMode as aN, type MindooDBAppConfiguredViewRuleFilterDefinition as aO, type MindooDBAppConfiguredViewRuleMatchMode as aP, type MindooDBAppConfiguredViewRuleOperator as aQ, type MindooDBAppConfiguredViewValueExpression as aR, type MindooDBAppCreateKeyInfo as aS, type MindooDBAppCreateViewInput as aT, type MindooDBAppCreateViewNavigatorInput as aU, type MindooDBAppDatabaseInfo as aV, type MindooDBAppDefinitionDatabase as aW, type MindooDBAppDefinitionListing as aX, type MindooDBAppDefinitionPermission as aY, type MindooDBAppDefinitionRegistrationPermission as aZ, type MindooDBAppDefinitionScreenshot as a_, type MindooDBAppBridgeQueryResultMessage as aa, type MindooDBAppBridgeRpcError as ab, type MindooDBAppBridgeRpcMessage as ac, type MindooDBAppBridgeRpcRequest as ad, type MindooDBAppBridgeRpcSuccess as ae, type MindooDBAppBridgeShortcutInvokedMessage as af, type MindooDBAppBridgeShortcutsChangedMessage as ag, type MindooDBAppBridgeStreamAbortRequest as ah, type MindooDBAppBridgeStreamAck as ai, type MindooDBAppBridgeStreamCloseRequest as aj, type MindooDBAppBridgeStreamError as ak, type MindooDBAppBridgeStreamMessage as al, type MindooDBAppBridgeStreamOpenResult as am, type MindooDBAppBridgeStreamReadRequest as an, type MindooDBAppBridgeStreamWriteRequest as ao, type MindooDBAppBridgeThemeChangedMessage as ap, type MindooDBAppBridgeUiPreferencesChangedMessage as aq, type MindooDBAppBridgeViewChangedMessage as ar, type MindooDBAppBridgeViewportChangedMessage as as, type MindooDBAppBridgeWorkspaceFocusRequestedMessage as at, type MindooDBAppBrowserFeatures as au, type MindooDBAppCapability as av, type MindooDBAppComponentChildren as aw, type MindooDBAppComponentFieldValue as ax, type MindooDBAppComponentInfo as ay, type MindooDBAppComponentIntent as az, type MindooDBAppDragStartInput as b, type MindooDBAppLocalizedText as b$, type MindooDBAppDirectoryApi as b0, type MindooDBAppDirectoryEntry as b1, type MindooDBAppDocumentApi as b2, type MindooDBAppDocumentHeadCursorResult as b3, type MindooDBAppDocumentHistoryEntry as b4, type MindooDBAppDocumentListQuery as b5, type MindooDBAppDocumentListResult as b6, type MindooDBAppDocumentQuery as b7, type MindooDBAppDocumentRevisionId as b8, type MindooDBAppDocumentScanPreset as b9, type MindooDBAppHistoricalDocument as bA, type MindooDBAppHistoryQuery as bB, type MindooDBAppHostTheme as bC, type MindooDBAppIdentityApi as bD, type MindooDBAppInaccessibleDocument as bE, type MindooDBAppInaccessibleDocumentListQuery as bF, type MindooDBAppInaccessibleDocumentListResult as bG, type MindooDBAppIncomingContent as bH, type MindooDBAppIncomingContentHandler as bI, type MindooDBAppIncomingContentInfo as bJ, type MindooDBAppIncomingItem as bK, type MindooDBAppIncomingItemInfo as bL, type MindooDBAppIncomingResult as bM, type MindooDBAppIncomingSource as bN, type MindooDBAppJsonCounterIncrementPatch as bO, type MindooDBAppJsonListDeletePatch as bP, type MindooDBAppJsonListInsertPatch as bQ, type MindooDBAppJsonPatch as bR, type MindooDBAppJsonSetPatch as bS, type MindooDBAppJsonTextMarkPatch as bT, type MindooDBAppJsonTextSplicePatch as bU, type MindooDBAppJsonTextUnmarkPatch as bV, type MindooDBAppJsonUnsetPatch as bW, type MindooDBAppLaunchContext as bX, type MindooDBAppListUsersOptions as bY, type MindooDBAppListUsersPage as bZ, type MindooDBAppLiveQuerySubscription as b_, type MindooDBAppDocumentSummary as ba, type MindooDBAppDragApi as bb, type MindooDBAppDragCancelReason as bc, type MindooDBAppDragDropEvent as bd, type MindooDBAppDragEffect as be, type MindooDBAppDragHoverResult as bf, type MindooDBAppDragOffer as bg, type MindooDBAppDragOverEvent as bh, type MindooDBAppDragPointer as bi, type MindooDBAppDragProfile as bj, type MindooDBAppEmbed as bk, type MindooDBAppEmbedCloseReason as bl, type MindooDBAppEmbedClosedEvent as bm, type MindooDBAppEmbedContext as bn, type MindooDBAppEmbedDirtyEvent as bo, type MindooDBAppEmbedOpenInput as bp, type MindooDBAppEmbedRect as bq, type MindooDBAppEmbeddingApi as br, type MindooDBAppEmbedsApi as bs, type MindooDBAppEntryAttachmentRef as bt, type MindooDBAppEntryProvenance as bu, type MindooDBAppExtractDocumentTextInput as bv, type MindooDBAppExtractDocumentTextResult as bw, type MindooDBAppExtractTextFormat as bx, type MindooDBAppExtractionSetup as by, type MindooDBAppFulltextSetup as bz, type MindooDBAppDragStartResult as c, type MindooDBAppTextCursorPositionsResult as c$, type MindooDBAppMenuAnchor as c0, type MindooDBAppMenuApi as c1, type MindooDBAppMenuCommandItem as c2, type MindooDBAppMenuDismissReason as c3, type MindooDBAppMenuDismissedResult as c4, type MindooDBAppMenuItem as c5, type MindooDBAppMenuKind as c6, type MindooDBAppMenuPlacement as c7, type MindooDBAppMenuPointAnchor as c8, type MindooDBAppMenuRect as c9, type MindooDBAppRichTextMaterializeValue as cA, type MindooDBAppRichTextPatch as cB, type MindooDBAppRichTextScalar as cC, type MindooDBAppRichTextSpliceStep as cD, type MindooDBAppRichTextStep as cE, type MindooDBAppRichTextStepPatch as cF, type MindooDBAppRichTextTextSpan as cG, type MindooDBAppRuntime as cH, type MindooDBAppScanAttachmentOptions as cI, type MindooDBAppScanAttachmentResult as cJ, type MindooDBAppScopedDocId as cK, type MindooDBAppScopedDocumentSummary as cL, type MindooDBAppSealIntent as cM, type MindooDBAppSealedChannelOpenInput as cN, type MindooDBAppSealedChannelOpenResult as cO, type MindooDBAppSealedChannelRequestInput as cP, type MindooDBAppSession as cQ, type MindooDBAppShowMenuInput as cR, type MindooDBAppShowMenuResult as cS, type MindooDBAppSignPreview as cT, type MindooDBAppSignPreviewScope as cU, type MindooDBAppSignStatementInput as cV, type MindooDBAppSignStatementResult as cW, type MindooDBAppStorageApi as cX, type MindooDBAppSummarySetup as cY, type MindooDBAppTextCursorOptions as cZ, type MindooDBAppTextCursorPosition as c_, type MindooDBAppMenuRectAnchor as ca, type MindooDBAppMenuSelectionResult as cb, type MindooDBAppMenuSeparatorItem as cc, type MindooDBAppNotificationSeverity as cd, type MindooDBAppNotifyInput as ce, type MindooDBAppNotifyResult as cf, type MindooDBAppProposeAppInput as cg, type MindooDBAppProposeAppResult as ch, type MindooDBAppQueryCoverage as ci, type MindooDBAppQueryInclude as cj, type MindooDBAppQueryIncludeCardinality as ck, type MindooDBAppQueryIncludeSlots as cl, type MindooDBAppQueryResult as cm, type MindooDBAppQueryRow as cn, type MindooDBAppQuerySortKey as co, type MindooDBAppQueryTextClause as cp, type MindooDBAppReadableAttachmentStream as cq, type MindooDBAppRecipientOptions as cr, type MindooDBAppResolvedViewDefinition as cs, type MindooDBAppResolvedViewSource as ct, type MindooDBAppRevisionPhase as cu, type MindooDBAppRevisionVerification as cv, type MindooDBAppRichTextBlockSpan as cw, type MindooDBAppRichTextGetOptions as cx, type MindooDBAppRichTextImmutableString as cy, type MindooDBAppRichTextMarkRange as cz, type MindooDBAppDragPreview as d, type MindooDBAppTextCursorsResult as d0, type MindooDBAppTextEdit as d1, type MindooDBAppTextPatch as d2, type MindooDBAppThemeMode as d3, type MindooDBAppTimestampApi as d4, type MindooDBAppTimestampInput as d5, type MindooDBAppTimestampProvider as d6, type MindooDBAppTimestampResult as d7, type MindooDBAppUiPreferences as d8, type MindooDBAppUpdateDocumentInput as d9, type MindooDBAppViewCursorDocumentListResult as da, type MindooDBAppViewCursorResult as db, type MindooDBAppViewEntry as dc, type MindooDBAppViewEntryKind as dd, type MindooDBAppViewNavigator as de, type MindooDBAppViewNavigatorExpansionState as df, type MindooDBAppViewNavigatorOpenOptions as dg, type MindooDBAppViewNavigatorPageOptions as dh, type MindooDBAppViewNavigatorPageResult as di, type MindooDBAppViewNavigatorRangeQuery as dj, type MindooDBAppViewNavigatorSelectionState as dk, type MindooDBAppViewUpdateStats as dl, type MindooDBAppViewport as dm, type MindooDBAppWellKnownDragType as dn, type MindooDBAppWritableAttachmentStream as dp, mindooDBAppAcceptMatchesType as dq, mindooDBAppComponentFieldsMatch as dr, resolveMindooDBAppDefinitionUrl as ds, resolveMindooDBAppListingAssetUrl as dt, resolveMindooDBAppLocalizedText as du, validateMindooDBAppAccepts as dv, validateMindooDBAppComponents as dw, validateMindooDBAppDefinition as dx, type MindooDBAppBridge as e, type MindooDBAppAgentToolErrorCode as f, type MindooDBAppHostShortcutBinding as g, type MindooDBAppHostShortcutAction as h, type MindooDBAppHostingMode as i, type MindooDBAppDefinition as j, type MindooDBAppDatabase as k, type MindooDBAppDocument as l, type MindooDBAppRichTextSpan as m, type MindooDBAppRichTextSnapshot as n, type MindooDBAppCreateDocumentInput as o, MINDOODB_APP_ACCEPTS_MAX as p, MINDOODB_APP_COMPONENTS_MAX as q, MINDOODB_APP_DEFINITION_FILE_NAME as r, MINDOODB_APP_DEFINITION_FORMAT as s, MINDOODB_APP_DEFINITION_PERMISSIONS as t, MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS as u, MINDOODB_APP_DEFINITION_VERSION as v, MINDOODB_APP_LISTING_DESCRIPTION_MAX as w, MINDOODB_APP_LISTING_MAX_SCREENSHOTS as x, MINDOODB_APP_LISTING_SUMMARY_MAX as y, MINDOODB_APP_SEAL_SIGNING_DOMAIN as z };
|