@lobu/runtime-server 24.5.0 → 24.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalogs/connectors.json +342 -4
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/linkedin-identity.ts +43 -0
- package/dist/connectors/linkedin.ts +154 -3
- package/dist/connectors/x-like-follow.ts +329 -0
- package/dist/connectors/x.ts +709 -80
- package/dist/dependencies.bun.lock +18 -18
- package/dist/owletto/dist/assets/_-DT3E3BmS.js +3 -0
- package/dist/owletto/dist/assets/_-c1xy7bLu.js +2 -0
- package/dist/owletto/dist/assets/_agentId-CTfoi0-7.js +2 -0
- package/dist/owletto/dist/assets/_agentId-DV8utajn.js +2 -0
- package/dist/owletto/dist/assets/_automationId-DvP3qyYL.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CL5SivCn.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-tnMwC67b.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-DXN_8m88.js +2 -0
- package/dist/owletto/dist/assets/_eventId-SdpFT7jB.js +2 -0
- package/dist/owletto/dist/assets/_name-CM1AMywz.js +2 -0
- package/dist/owletto/dist/assets/_owner-CaGsXXBW.js +3 -0
- package/dist/owletto/dist/assets/_shape-DGAkETDp.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Dd4ZHPY8.js +2 -0
- package/dist/owletto/dist/assets/_slug-cRvJQtNo.js +2 -0
- package/dist/owletto/dist/assets/_view-B5I7mmkl.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Bwn0dyLo.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-YjSYD0wc.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CQZQ0wwC.js} +2 -2
- package/dist/owletto/dist/assets/{activity-route-view-DN0ZEAzr.js → activity-route-view-CZykJXQp.js} +2 -2
- package/dist/owletto/dist/assets/{agent-card-controls-C5jNWgfq.js → agent-card-controls-DuQJhtqp.js} +2 -2
- package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-CpUTAjXf.js} +2 -2
- package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-Br_ycC0z.js} +2 -2
- package/dist/owletto/dist/assets/agent-editor-form-BXQBFHSv.js +2 -0
- package/dist/owletto/dist/assets/{agent-guardrails-route-BJyfalBY.js → agent-guardrails-route-CN7vpC0X.js} +2 -2
- package/dist/owletto/dist/assets/{agent-list-row-rF5LH-3k.js → agent-list-row-BnP6r4pm.js} +2 -2
- package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-_18OREnx.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-bP1Qihv7.js → agent-permissions-matrix-DSjidWHL.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-1DBn7Xc_.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skills-route-Bv5luNdw.js → agent-skills-route-d5jh3oBR.js} +2 -2
- package/dist/owletto/dist/assets/{agent-tab-intro-ednTs4WF.js → agent-tab-intro-DKrC3SQt.js} +2 -2
- package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-FyEO-y44.js} +3 -3
- package/dist/owletto/dist/assets/agents-kXojozTU.js +2 -0
- package/dist/owletto/dist/assets/{agents-workbench-bPTjdVS1.js → agents-workbench-CDpJmUVN.js} +2 -2
- package/dist/owletto/dist/assets/{app._appId-DrL5H5lB.js → app._appId-DwNeXRJp.js} +2 -2
- package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-Mn9EfX4X.js} +2 -2
- package/dist/owletto/dist/assets/automation-detail-content-Bs3vwAPd.js +2 -0
- package/dist/owletto/dist/assets/{automation-row-DCHM--aD.js → automation-row-B5Q1B10y.js} +2 -2
- package/dist/owletto/dist/assets/automation-source-list-Dhucq1sI.js +2 -0
- package/dist/owletto/dist/assets/automations-kXojozTU.js +2 -0
- package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-9xSHyA12.js} +2 -2
- package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-g4yxo4Hr.js} +2 -2
- package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-DeuXQEpb.js} +2 -2
- package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-B98IhDra.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-BD2HBo-_.js} +2 -2
- package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-x_CxeWkP.js} +2 -2
- package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-Cmp0LmOp.js} +2 -2
- package/dist/owletto/dist/assets/connect-menu-CezOH3s7.js +2 -0
- package/dist/owletto/dist/assets/connect-zUot_0kG.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-nsGxe6yO.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DnclRRXk.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-CDB8atTX.js +2 -0
- package/dist/owletto/dist/assets/{connected._clientId.index-jSnGvzYs.js → connected._clientId.index-DBNP2mZo.js} +2 -2
- package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-B6fM2KHN.js} +2 -2
- package/dist/owletto/dist/assets/{connection-feed-detail-BIlkK0Pd.js → connection-feed-detail-Ckq-qEbD.js} +2 -2
- package/dist/owletto/dist/assets/{connections-browser-V-3td9DB.js → connections-browser-BXsJqieG.js} +2 -2
- package/dist/owletto/dist/assets/{connector-boxes-lFc-WP83.js → connector-boxes-CbqSFeVm.js} +2 -2
- package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-Di6XzkVo.js} +2 -2
- package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-BrnasBW4.js} +2 -2
- package/dist/owletto/dist/assets/{connector-scope-lists--vNdbOn0.js → connector-scope-lists-dQnZARCD.js} +2 -2
- package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-DnOUxX_U.js} +2 -2
- package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-Byli4yMs.js} +2 -2
- package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-Ddf7lBjZ.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BsXtvNoI.js} +2 -2
- package/dist/owletto/dist/assets/create-B34eskZ_.js +2 -0
- package/dist/owletto/dist/assets/create-DLB9sXgU.js +2 -0
- package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-YdAnh3ml.js} +2 -2
- package/dist/owletto/dist/assets/create-automation-form-C9PMX7N8.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-Bz4OYRiC.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-B5WgZILB.js +2 -0
- package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-DdCoCj-Q.js} +2 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-B06J7Af1.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-Bh9S4bFp.js +2 -0
- package/dist/owletto/dist/assets/dynamic-schema-form-qWSRtOAv.js +2 -0
- package/dist/owletto/dist/assets/{entity-options-daOOQo7O.js → entity-options-BkU_En_f.js} +2 -2
- package/dist/owletto/dist/assets/entity-page-BPFDHY8q.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-DxgbjLMt.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-D0ghgRgq.js +2 -0
- package/dist/owletto/dist/assets/event-card-CjA_dLzq.js +2 -0
- package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-CmC-DVrK.js} +2 -2
- package/dist/owletto/dist/assets/{events-feed-B9CZHI_P.js → events-feed-CGzA1w3R.js} +2 -2
- package/dist/owletto/dist/assets/filter-bar-CQ_oE7a9.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-B5xXnKtV.js} +2 -2
- package/dist/owletto/dist/assets/guardrails-DkXatmea.js +2 -0
- package/dist/owletto/dist/assets/identity-BwJy3ixB.js +2 -0
- package/dist/owletto/dist/assets/{index--ZWegctR.js → index-35ehGReZ.js} +2 -2
- package/dist/owletto/dist/assets/index-B9hYiwBw.js +2 -0
- package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-BDl1_w6U.js} +2 -2
- package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BdNR51Ua.js} +2 -2
- package/dist/owletto/dist/assets/{index-DdBTTN3y.js → index-BjcZVe7n.js} +52 -52
- package/dist/owletto/dist/assets/{index-CsrT07TJ.js → index-BqAVebvY.js} +2 -2
- package/dist/owletto/dist/assets/index-BvK1fS1J.js +2 -0
- package/dist/owletto/dist/assets/{index-DdYWarql.css → index-CNEpTkgw.css} +1 -1
- package/dist/owletto/dist/assets/index-CRc73k1t.js +2 -0
- package/dist/owletto/dist/assets/index-CYGaSD3y.js +2 -0
- package/dist/owletto/dist/assets/index-CfZGe-zn.js +2 -0
- package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-CkiyxW4w.js} +2 -2
- package/dist/owletto/dist/assets/index-CzLDNB2E.js +2 -0
- package/dist/owletto/dist/assets/{index-BKrdVwW9.js → index-D-o5iOVd.js} +2 -2
- package/dist/owletto/dist/assets/index-DjYVV1Ml.js +2 -0
- package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-TkPy_P_u.js} +2 -2
- package/dist/owletto/dist/assets/index-VyAX-asP.js +2 -0
- package/dist/owletto/dist/assets/json-diff-DtZtra_g.js +28 -0
- package/dist/owletto/dist/assets/{list-skeleton-CXDLkYTg.js → list-skeleton-CIHWCi2a.js} +2 -2
- package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-TWR0vF4_.js} +2 -2
- package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-BA5kojS0.js} +2 -2
- package/dist/owletto/dist/assets/{manage-gear-D8LMhehh.js → manage-gear-C-0BAMbC.js} +2 -2
- package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-BQiRAqtx.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-Ba32-vVL.js +74 -0
- package/dist/owletto/dist/assets/{model-jL871x2J.js → model-C2q7WDcS.js} +2 -2
- package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-B2cjCn0V.js} +2 -2
- package/dist/owletto/dist/assets/models-CZkH5gtj.js +2 -0
- package/dist/owletto/dist/assets/{nav-pill-DrFkuyUQ.js → nav-pill-Bam6s3jj.js} +2 -2
- package/dist/owletto/dist/assets/new-BJst6K0b.js +2 -0
- package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-Dc5Bbotb.js} +2 -2
- package/dist/owletto/dist/assets/new-DgbivfDe.js +2 -0
- package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9U1L-56.js} +2 -2
- package/dist/owletto/dist/assets/peek-pane-content-Cq8P38s3.js +2 -0
- package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-BP3xHM2d.js} +2 -2
- package/dist/owletto/dist/assets/{permissions-BvA9SATv.js → permissions-BVlbeY4u.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-BED-DO9C.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-Diq15_QW.js +2 -0
- package/dist/owletto/dist/assets/{record-activity-C9gVBbF0.js → record-activity-CTLwq8s1.js} +2 -2
- package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-DOFgdd43.js} +2 -2
- package/dist/owletto/dist/assets/renderer-CHPS-1vD.js +96 -0
- package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-BmNM-apc.js} +2 -2
- package/dist/owletto/dist/assets/{run-activity-link-CaIBSRQj.js → run-activity-link-Dh1YyCfk.js} +2 -2
- package/dist/owletto/dist/assets/{run-initiator-BvzQJYW9.js → run-initiator-CCxNv0rK.js} +2 -2
- package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BntGAKQG.js} +2 -2
- package/dist/owletto/dist/assets/{runs-panel-DEnZHTa5.js → runs-panel-BwTVaRsE.js} +2 -2
- package/dist/owletto/dist/assets/{runs-table-XGnxJl7S.js → runs-table-CYS1jDdL.js} +2 -2
- package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-v3nR2Oa2.js} +2 -2
- package/dist/owletto/dist/assets/schema-value-BFb7jCBo.js +3 -0
- package/dist/owletto/dist/assets/settings-DBgT60nY.js +2 -0
- package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DubSpJfg.js} +2 -2
- package/dist/owletto/dist/assets/skills-DDoeRGhJ.js +2 -0
- package/dist/owletto/dist/assets/{source-record-panels-Bh0n4gGw.js → source-record-panels-m8gECt82.js} +2 -2
- package/dist/owletto/dist/assets/{status-dot-Cpq63I7p.js → status-dot-BnQPFrcU.js} +2 -2
- package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-DALHuXPE.js} +2 -2
- package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-D9hKpufo.js} +2 -2
- package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-ciwfc-7A.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-CJGCatFS.js} +2 -2
- package/dist/owletto/dist/assets/{use-scroll-sentinel-DRyBMueA.js → use-scroll-sentinel-BWCrmNIB.js} +2 -2
- package/dist/owletto/dist/assets/view-param-filters-CDvwie_f.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-CZ1fvAks.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +5596 -4000
- package/npm-shrinkwrap.json +99 -99
- package/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +9 -4
- package/vendor/views/dist/api.js +33 -2
- package/vendor/views/dist/bridge.d.ts +8 -0
- package/vendor/views/dist/bridge.js +12 -2
- package/vendor/views/dist/components.d.ts +4 -2
- package/vendor/views/dist/components.js +29 -14
- package/vendor/views/dist/index.d.ts +1 -1
- package/vendor/views/dist/index.js +1 -1
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
- package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
- package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
- package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
- package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
- package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
- package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
- package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
- package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
- package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
- package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
- package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
- package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
- package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
- package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
- package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
- package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
- package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
- package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
- package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
- package/dist/owletto/dist/assets/event-card-DVUB8my6.js +0 -2
- package/dist/owletto/dist/assets/filter-bar-wPaR12SS.js +0 -2
- package/dist/owletto/dist/assets/guardrails-Csusrok2.js +0 -2
- package/dist/owletto/dist/assets/identity-Dmg3STO8.js +0 -2
- package/dist/owletto/dist/assets/index-BUBcNNUY.js +0 -2
- package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
- package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
- package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
- package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
- package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
- package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
- package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
- package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
- package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
- package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
- package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
- package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
- package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
- package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
- package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
package/vendor/views/dist/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Component, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react";
|
|
3
3
|
import { createRoot } from "react-dom/client";
|
|
4
|
-
import { ViewBridge } from "./bridge.js";
|
|
4
|
+
import { ViewBridge, ViewBridgeError, } from "./bridge.js";
|
|
5
5
|
export function defineView(def) {
|
|
6
6
|
if (!def || typeof def.key !== "string" || def.key.length === 0) {
|
|
7
7
|
throw new Error("defineView({ key, attach, ... }) requires a non-empty key");
|
|
@@ -32,6 +32,7 @@ export function useHost() {
|
|
|
32
32
|
ready: rt.ready,
|
|
33
33
|
theme: rt.theme,
|
|
34
34
|
openLink: rt.openLink,
|
|
35
|
+
openRecord: rt.openRecord,
|
|
35
36
|
displayMode: rt.displayMode,
|
|
36
37
|
container: rt.container,
|
|
37
38
|
requestDisplayMode: rt.requestDisplayMode,
|
|
@@ -511,7 +512,7 @@ class RenderBoundary extends Component {
|
|
|
511
512
|
render() {
|
|
512
513
|
if (!this.state.error)
|
|
513
514
|
return this.props.children;
|
|
514
|
-
return (_jsxs("div", { role: "alert", style: { padding: 12, color: "var(--fg)" }, children: ["This view failed to render: ", this.state.error.message] }));
|
|
515
|
+
return (_jsxs("div", { role: "alert", "data-lobu-render-error": "true", style: { padding: 12, color: "var(--fg)" }, children: ["This view failed to render: ", this.state.error.message] }));
|
|
515
516
|
}
|
|
516
517
|
}
|
|
517
518
|
/**
|
|
@@ -631,6 +632,34 @@ export function Provider({ def, bridge, children, }) {
|
|
|
631
632
|
if (error)
|
|
632
633
|
throw new Error(error);
|
|
633
634
|
}, []);
|
|
635
|
+
const openRecord = useCallback(async (record, options) => {
|
|
636
|
+
const b = bridgeRef.current;
|
|
637
|
+
if (!b?.isConnected())
|
|
638
|
+
throw new Error("Not connected to a host");
|
|
639
|
+
try {
|
|
640
|
+
return await b.openRecord(record, options?.mode ?? "peek");
|
|
641
|
+
}
|
|
642
|
+
catch (error) {
|
|
643
|
+
// Only an unsupported extension falls back. A host refusal stays a refusal.
|
|
644
|
+
if (!(error instanceof ViewBridgeError) || error.code !== -32601)
|
|
645
|
+
throw error;
|
|
646
|
+
}
|
|
647
|
+
const response = await b.callTool("manage_entity", {
|
|
648
|
+
...record,
|
|
649
|
+
action: "get",
|
|
650
|
+
});
|
|
651
|
+
const error = resultError(response);
|
|
652
|
+
if (error)
|
|
653
|
+
throw new Error(error);
|
|
654
|
+
const result = (response.structuredContent ??
|
|
655
|
+
parseTextJson(response));
|
|
656
|
+
if (!result?.entity?.view_url)
|
|
657
|
+
throw new Error("The host did not return a record URL.");
|
|
658
|
+
const failed = resultError(await b.openLink(result.entity.view_url));
|
|
659
|
+
if (failed)
|
|
660
|
+
throw new Error(failed);
|
|
661
|
+
return { mode: "page" };
|
|
662
|
+
}, []);
|
|
634
663
|
const requestDisplayMode = useCallback(async (mode) => {
|
|
635
664
|
const b = bridgeRef.current;
|
|
636
665
|
if (!b?.isConnected())
|
|
@@ -649,6 +678,7 @@ export function Provider({ def, bridge, children, }) {
|
|
|
649
678
|
dataVersion,
|
|
650
679
|
callTool,
|
|
651
680
|
openLink,
|
|
681
|
+
openRecord,
|
|
652
682
|
displayMode,
|
|
653
683
|
container,
|
|
654
684
|
requestDisplayMode,
|
|
@@ -663,6 +693,7 @@ export function Provider({ def, bridge, children, }) {
|
|
|
663
693
|
dataVersion,
|
|
664
694
|
callTool,
|
|
665
695
|
openLink,
|
|
696
|
+
openRecord,
|
|
666
697
|
displayMode,
|
|
667
698
|
container,
|
|
668
699
|
requestDisplayMode,
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
* "2.0", method, params }`. Anything else in the inbox is ignored, exactly
|
|
14
14
|
* like the SDK's transport.
|
|
15
15
|
*/
|
|
16
|
+
import type { EntityGetInput } from "@lobu/core/contracts/tools/manage-entity";
|
|
17
|
+
export declare class ViewBridgeError extends Error {
|
|
18
|
+
readonly code: number;
|
|
19
|
+
constructor(message: string, code: number);
|
|
20
|
+
}
|
|
16
21
|
export interface ToolResult {
|
|
17
22
|
isError?: boolean;
|
|
18
23
|
structuredContent?: unknown;
|
|
@@ -117,6 +122,9 @@ export declare class ViewBridge {
|
|
|
117
122
|
* reads `structuredContent`; the boolean-only hook on the card path is
|
|
118
123
|
* what this deliberately does not copy). */
|
|
119
124
|
callTool(name: string, args: Record<string, unknown>): Promise<ToolResult>;
|
|
125
|
+
openRecord(record: EntityGetInput, mode: "peek" | "page"): Promise<{
|
|
126
|
+
mode: "peek" | "page";
|
|
127
|
+
}>;
|
|
120
128
|
/** Read one `resources/read` URI and return the first text payload. The
|
|
121
129
|
* generic loader uses this to fetch `ui://lobu/views/<key>` through the
|
|
122
130
|
* host instead of a custom message. */
|
|
@@ -13,7 +13,14 @@
|
|
|
13
13
|
* "2.0", method, params }`. Anything else in the inbox is ignored, exactly
|
|
14
14
|
* like the SDK's transport.
|
|
15
15
|
*/
|
|
16
|
-
import { VIEW_WORKSPACE_META_KEY } from "@lobu/core/contracts/tools/view-
|
|
16
|
+
import { VIEW_OPEN_RECORD_METHOD, VIEW_WORKSPACE_META_KEY, } from "@lobu/core/contracts/tools/view-host";
|
|
17
|
+
export class ViewBridgeError extends Error {
|
|
18
|
+
code;
|
|
19
|
+
constructor(message, code) {
|
|
20
|
+
super(message);
|
|
21
|
+
this.code = code;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
17
24
|
/** Event notifications worth replaying to the mounted guest (context merges
|
|
18
25
|
* into adopted state instead; anything else is ignored). */
|
|
19
26
|
const HANDOFF_NOTIFICATIONS = new Set([
|
|
@@ -192,6 +199,9 @@ export class ViewBridge {
|
|
|
192
199
|
: {}),
|
|
193
200
|
});
|
|
194
201
|
}
|
|
202
|
+
openRecord(record, mode) {
|
|
203
|
+
return this.request(VIEW_OPEN_RECORD_METHOD, { record, mode });
|
|
204
|
+
}
|
|
195
205
|
/** Read one `resources/read` URI and return the first text payload. The
|
|
196
206
|
* generic loader uses this to fetch `ui://lobu/views/<key>` through the
|
|
197
207
|
* host instead of a custom message. */
|
|
@@ -304,7 +314,7 @@ export class ViewBridge {
|
|
|
304
314
|
this.pending.delete(id);
|
|
305
315
|
clearTimeout(pending.timer);
|
|
306
316
|
if ("error" in data && isRecord(data.error)) {
|
|
307
|
-
pending.reject(new
|
|
317
|
+
pending.reject(new ViewBridgeError(String(data.error.message ?? "Host request failed"), Number(data.error.code)));
|
|
308
318
|
return;
|
|
309
319
|
}
|
|
310
320
|
pending.resolve(data.result);
|
|
@@ -135,8 +135,9 @@ export declare function Sparkline({ values, width, height, label, }: {
|
|
|
135
135
|
/**
|
|
136
136
|
* A link the host opens: `href="deal/acme-renewal"` opens that record
|
|
137
137
|
* (relative links resolve against the workspace root, see
|
|
138
|
-
* `useHost().openLink`)
|
|
139
|
-
*
|
|
138
|
+
* `useHost().openLink`). On Lobu hosts, supported same-workspace links open
|
|
139
|
+
* the peek pane; other app links navigate normally and external URLs open a new
|
|
140
|
+
* tab. The sandboxed frame cannot navigate itself, so every click goes through the host, modifier
|
|
140
141
|
* clicks included; the anchor still shows the resolved address on hover.
|
|
141
142
|
*/
|
|
142
143
|
export declare function Link({ href, children, }: {
|
|
@@ -167,4 +168,5 @@ export declare function TruncatedNotice({ shown, total, }: {
|
|
|
167
168
|
}): import("react/jsx-runtime").JSX.Element;
|
|
168
169
|
/** Format large counts compactly (1.2K, 3.4M). Plain numbers pass through. */
|
|
169
170
|
export declare function formatCompact(value: number): string;
|
|
171
|
+
export * from "./native.js";
|
|
170
172
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -22,7 +22,10 @@ export function Card({ title, description, actions, children }) {
|
|
|
22
22
|
justifyContent: "space-between",
|
|
23
23
|
gap: 12,
|
|
24
24
|
marginBottom: description || children ? 4 : 0,
|
|
25
|
-
}, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: {
|
|
25
|
+
}, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: {
|
|
26
|
+
margin: "0 0 8px",
|
|
27
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
28
|
+
}, children: description })), children] }));
|
|
26
29
|
}
|
|
27
30
|
const CELL = {
|
|
28
31
|
padding: "6px 8px",
|
|
@@ -42,7 +45,10 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
42
45
|
const pageCount = pagination && pagination.total != null
|
|
43
46
|
? Math.max(1, Math.ceil(pagination.total / pagination.pageSize))
|
|
44
47
|
: null;
|
|
45
|
-
return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: {
|
|
48
|
+
return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: {
|
|
49
|
+
margin: "0 0 6px",
|
|
50
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
51
|
+
}, children: caption })), _jsx("div", { style: { overflowX: "auto" }, children: _jsxs("table", { "aria-labelledby": caption ? labelId : undefined, style: { borderCollapse: "collapse", width: "100%" }, children: [_jsx("thead", { children: _jsx("tr", { children: columns.map((col) => (_jsx("th", { "aria-sort": sort?.key === col.key
|
|
46
52
|
? sort.dir === "asc"
|
|
47
53
|
? "ascending"
|
|
48
54
|
: "descending"
|
|
@@ -57,7 +63,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
57
63
|
background: "transparent",
|
|
58
64
|
font: "inherit",
|
|
59
65
|
cursor: "pointer",
|
|
60
|
-
color: "var(--
|
|
66
|
+
color: "var(--color-text-info, #2563eb)",
|
|
61
67
|
}, children: [col.header, sort?.key === col.key
|
|
62
68
|
? sort.dir === "asc"
|
|
63
69
|
? " ▲"
|
|
@@ -70,7 +76,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
70
76
|
alignItems: "center",
|
|
71
77
|
gap: 8,
|
|
72
78
|
marginTop: 8,
|
|
73
|
-
}, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--
|
|
79
|
+
}, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--color-text-secondary, #6b7280)" }, children: ["Page ", pagination.page, pageCount != null ? ` of ${pageCount}` : ""] }), _jsx(PageButton, { disabled: pageCount == null
|
|
74
80
|
? rows.length < pagination.pageSize
|
|
75
81
|
: pagination.page >= pageCount, onClick: () => pagination.onPage(pagination.page + 1), label: "Next page" })] }))] }));
|
|
76
82
|
}
|
|
@@ -102,7 +108,7 @@ export function FilterBar({ children }) {
|
|
|
102
108
|
const FIELD_LABEL = {
|
|
103
109
|
display: "block",
|
|
104
110
|
fontSize: 12,
|
|
105
|
-
color: "var(--
|
|
111
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
106
112
|
marginBottom: 2,
|
|
107
113
|
};
|
|
108
114
|
const FIELD_BOX = {
|
|
@@ -128,9 +134,9 @@ export function SelectField({ label, value, options, onChange, }) {
|
|
|
128
134
|
const id = useId();
|
|
129
135
|
return (_jsxs("label", { style: { ...INK, display: "block" }, children: [_jsx("span", { style: FIELD_LABEL, children: label }), _jsxs("select", { id: id, value: value, onChange: (e) => onChange(e.target.value), style: FIELD_BOX, children: [_jsx("option", { value: "", children: "All" }), options.map((o) => (_jsx("option", { value: o.value, children: o.label }, o.value)))] })] }));
|
|
130
136
|
}
|
|
131
|
-
const CHART_BAR = "var(--
|
|
137
|
+
const CHART_BAR = "var(--color-text-info, #2563eb)";
|
|
132
138
|
const CHART_GRID = "var(--border, #e5e7eb)";
|
|
133
|
-
const CHART_TEXT = "var(--
|
|
139
|
+
const CHART_TEXT = "var(--color-text-secondary, #6b7280)";
|
|
134
140
|
function niceMax(value) {
|
|
135
141
|
if (!Number.isFinite(value) || value <= 0)
|
|
136
142
|
return 1;
|
|
@@ -295,8 +301,9 @@ export function Sparkline({ values, width = 120, height = 32, label, }) {
|
|
|
295
301
|
/**
|
|
296
302
|
* A link the host opens: `href="deal/acme-renewal"` opens that record
|
|
297
303
|
* (relative links resolve against the workspace root, see
|
|
298
|
-
* `useHost().openLink`)
|
|
299
|
-
*
|
|
304
|
+
* `useHost().openLink`). On Lobu hosts, supported same-workspace links open
|
|
305
|
+
* the peek pane; other app links navigate normally and external URLs open a new
|
|
306
|
+
* tab. The sandboxed frame cannot navigate itself, so every click goes through the host, modifier
|
|
300
307
|
* clicks included; the anchor still shows the resolved address on hover.
|
|
301
308
|
*/
|
|
302
309
|
export function Link({ href, children, }) {
|
|
@@ -308,16 +315,19 @@ export function Link({ href, children, }) {
|
|
|
308
315
|
return (_jsx("a", { href: resolveViewHref(href), onClick: open, onAuxClick: (event) => {
|
|
309
316
|
if (event.button === 1)
|
|
310
317
|
open(event);
|
|
311
|
-
}, style: {
|
|
318
|
+
}, style: {
|
|
319
|
+
color: "var(--color-text-info, #2563eb)",
|
|
320
|
+
textDecoration: "none",
|
|
321
|
+
}, children: children }));
|
|
312
322
|
}
|
|
313
323
|
/* ------------------------------------------------------------------ */
|
|
314
324
|
/* Query states — render `useQuery` honestly */
|
|
315
325
|
/* ------------------------------------------------------------------ */
|
|
316
326
|
export function LoadingState({ text = "Loading…" }) {
|
|
317
|
-
return (_jsx("p", { role: "status", style: { ...INK, color: "var(--
|
|
327
|
+
return (_jsx("p", { role: "status", style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: text }));
|
|
318
328
|
}
|
|
319
329
|
export function EmptyState({ title, hint }) {
|
|
320
|
-
return (_jsxs("div", { style: { ...INK, color: "var(--
|
|
330
|
+
return (_jsxs("div", { style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: [_jsx("p", { style: { margin: "4px 0" }, children: title }), hint && _jsx("p", { style: { margin: "0 0 4px", fontSize: 12 }, children: hint })] }));
|
|
321
331
|
}
|
|
322
332
|
export function ErrorState({ message, errorCode, onRetry, }) {
|
|
323
333
|
return (_jsxs("div", { role: "alert", style: {
|
|
@@ -328,7 +338,7 @@ export function ErrorState({ message, errorCode, onRetry, }) {
|
|
|
328
338
|
}, children: [_jsx("p", { style: { margin: "0 0 4px" }, children: message }), errorCode && (_jsxs("p", { style: {
|
|
329
339
|
margin: "0 0 4px",
|
|
330
340
|
fontSize: 12,
|
|
331
|
-
color: "var(--
|
|
341
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
332
342
|
}, children: ["Code: ", errorCode] })), onRetry && (_jsx("button", { type: "button", onClick: onRetry, style: {
|
|
333
343
|
cursor: "pointer",
|
|
334
344
|
border: "1px solid var(--border, #e5e7eb)",
|
|
@@ -345,7 +355,11 @@ export function ErrorState({ message, errorCode, onRetry, }) {
|
|
|
345
355
|
* construction — narrow the query instead of treating it as complete.
|
|
346
356
|
*/
|
|
347
357
|
export function TruncatedNotice({ shown, total, }) {
|
|
348
|
-
return (_jsxs("p", { style: {
|
|
358
|
+
return (_jsxs("p", { style: {
|
|
359
|
+
...INK,
|
|
360
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
361
|
+
fontSize: 12,
|
|
362
|
+
}, children: ["Showing ", shown, total != null ? ` of ${total}` : "", " rows \u2014 refine filters to see the rest."] }));
|
|
349
363
|
}
|
|
350
364
|
/** Format large counts compactly (1.2K, 3.4M). Plain numbers pass through. */
|
|
351
365
|
export function formatCompact(value) {
|
|
@@ -358,4 +372,5 @@ export function formatCompact(value) {
|
|
|
358
372
|
return `${(value / 1_000).toFixed(1)}K`;
|
|
359
373
|
return String(value);
|
|
360
374
|
}
|
|
375
|
+
export * from "./native.js";
|
|
361
376
|
//# sourceMappingURL=components.js.map
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
export type { AttributeFilter, CollectionSelection, } from "@lobu/core/contracts/tools/collection-selection";
|
|
9
9
|
export { ViewBridge } from "./bridge.js";
|
|
10
10
|
export type { BridgeOptions, HostContext, ToolResult, ViewHandoff, } from "./bridge.js";
|
|
11
|
-
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
11
|
+
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
12
12
|
export type { ActionResult, Attachment, Container, DisplayMode, MountOptions, ParamDef, Params, ParamValue, QueryOptions, QueryState, Scope, SqlQuery, ToolQuery, ViewDefinition, } from "./api.js";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ViewBridge } from "./bridge.js";
|
|
2
|
-
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
2
|
+
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/** Public prop contracts for the native components built by Owletto.
|
|
2
|
+
* Implementations are supplied by the host artifact, using the shell's React. */
|
|
3
|
+
import { type ComponentType, type ReactNode, type ComponentProps } from "react";
|
|
4
|
+
import type { ValueFormat } from "@lobu/core/json-template";
|
|
5
|
+
export interface ViewEntity {
|
|
6
|
+
id: number | string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
entity_type: string;
|
|
9
|
+
parent_id?: number | null;
|
|
10
|
+
slug: string;
|
|
11
|
+
parent_slug?: string | null;
|
|
12
|
+
parent_entity_type?: string | null;
|
|
13
|
+
domain?: string;
|
|
14
|
+
organization_id?: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
relationships?: Record<string, Array<{
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
entity_type: string;
|
|
21
|
+
}>>;
|
|
22
|
+
created_at?: string;
|
|
23
|
+
total_content?: number | null;
|
|
24
|
+
active_connections?: number | null;
|
|
25
|
+
automations_count?: number | null;
|
|
26
|
+
children_count?: number | null;
|
|
27
|
+
parent_name?: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface SchemaProperty {
|
|
30
|
+
type?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
enum?: Array<string | number>;
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
format?: string;
|
|
36
|
+
items?: SchemaProperty;
|
|
37
|
+
minItems?: number;
|
|
38
|
+
maxItems?: number;
|
|
39
|
+
properties?: Record<string, SchemaProperty>;
|
|
40
|
+
required?: string[];
|
|
41
|
+
"x-image"?: boolean;
|
|
42
|
+
"x-email"?: boolean;
|
|
43
|
+
"x-table-column"?: boolean;
|
|
44
|
+
"x-table-label"?: string;
|
|
45
|
+
"x-currency"?: boolean;
|
|
46
|
+
"x-link-entity-type"?: string;
|
|
47
|
+
"x-link-lookup-field"?: string;
|
|
48
|
+
/** Display labels keyed by stringified enum value. */
|
|
49
|
+
"x-enum-labels"?: Record<string, string>;
|
|
50
|
+
/** Omitted from schema-driven field lists without clearing the stored value. */
|
|
51
|
+
"x-hidden"?: boolean;
|
|
52
|
+
"x-measure"?: unknown;
|
|
53
|
+
"x-dimension"?: unknown;
|
|
54
|
+
}
|
|
55
|
+
interface MetadataTableProperty {
|
|
56
|
+
title?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
enum?: string[];
|
|
59
|
+
format?: string;
|
|
60
|
+
"x-table-column"?: boolean;
|
|
61
|
+
"x-table-label"?: string;
|
|
62
|
+
"x-image"?: boolean;
|
|
63
|
+
"x-link-entity-type"?: string;
|
|
64
|
+
"x-link-lookup-field"?: string;
|
|
65
|
+
"x-currency"?: boolean;
|
|
66
|
+
"x-hidden"?: boolean;
|
|
67
|
+
"x-enum-labels"?: Record<string, string>;
|
|
68
|
+
}
|
|
69
|
+
export interface EntityTableSchema {
|
|
70
|
+
properties?: Record<string, MetadataTableProperty>;
|
|
71
|
+
"x-table-relationships"?: Array<{
|
|
72
|
+
relationship_type: string;
|
|
73
|
+
label: string;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
export interface EntityTableViewProps {
|
|
77
|
+
entities: ViewEntity[];
|
|
78
|
+
owner: string;
|
|
79
|
+
schema?: EntityTableSchema;
|
|
80
|
+
entityTypeIcon?: string;
|
|
81
|
+
isDerived: boolean;
|
|
82
|
+
measureColumns: string[];
|
|
83
|
+
linkedEntityLookups: Record<string, Record<string, {
|
|
84
|
+
slug: string;
|
|
85
|
+
entity_type: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}>>;
|
|
88
|
+
hasAnyParents: boolean;
|
|
89
|
+
sorting: Array<{
|
|
90
|
+
id: string;
|
|
91
|
+
desc: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
onSortingChange: (update: Array<{
|
|
94
|
+
id: string;
|
|
95
|
+
desc: boolean;
|
|
96
|
+
}> | ((previous: Array<{
|
|
97
|
+
id: string;
|
|
98
|
+
desc: boolean;
|
|
99
|
+
}>) => Array<{
|
|
100
|
+
id: string;
|
|
101
|
+
desc: boolean;
|
|
102
|
+
}>)) => void;
|
|
103
|
+
visibleColumns?: string[];
|
|
104
|
+
/** Columns the header's picker offers; no picker without it. */
|
|
105
|
+
columnChoices?: {
|
|
106
|
+
field: string;
|
|
107
|
+
label: string;
|
|
108
|
+
}[];
|
|
109
|
+
onVisibleColumnsChange?: (visible: string[]) => void;
|
|
110
|
+
page: number;
|
|
111
|
+
pageSize: number;
|
|
112
|
+
totalCount: number;
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
pageTitle: string;
|
|
115
|
+
onPrevPage: () => void;
|
|
116
|
+
onNextPage: () => void;
|
|
117
|
+
}
|
|
118
|
+
export interface SpecField {
|
|
119
|
+
key: string;
|
|
120
|
+
prop: SchemaProperty;
|
|
121
|
+
/** Overrides the schema label (derived columns keep their source names). */
|
|
122
|
+
label?: string;
|
|
123
|
+
/** Right-aligned digits for scanning measures. */
|
|
124
|
+
numeric?: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface SpecSheetContext {
|
|
127
|
+
ownerSlug: string;
|
|
128
|
+
orgContext?: {
|
|
129
|
+
organizationId?: string | null;
|
|
130
|
+
slug?: string | null;
|
|
131
|
+
};
|
|
132
|
+
controls?: Record<string, {
|
|
133
|
+
set_by?: string | null;
|
|
134
|
+
set_at?: string;
|
|
135
|
+
note?: string | null;
|
|
136
|
+
}>;
|
|
137
|
+
/** Opens an object-array field in the peek pane; without it the count is plain text. */
|
|
138
|
+
openField?: (field: SpecField) => void;
|
|
139
|
+
/** The field the peek pane shows now. */
|
|
140
|
+
openFieldKey?: string;
|
|
141
|
+
/** Fields with unsaved edits. */
|
|
142
|
+
dirtyKeys?: readonly string[];
|
|
143
|
+
}
|
|
144
|
+
/** Controlled collection page. Reads and actions remain with its caller. */
|
|
145
|
+
export interface EntityListPageProps {
|
|
146
|
+
title: ReactNode;
|
|
147
|
+
actions?: ReactNode;
|
|
148
|
+
controls?: ReactNode;
|
|
149
|
+
table?: EntityTableViewProps;
|
|
150
|
+
/** Overrides the table, including for generic SQL/TypeScript rows. */
|
|
151
|
+
children?: ReactNode;
|
|
152
|
+
loading?: boolean;
|
|
153
|
+
error?: string | null;
|
|
154
|
+
onRetry?: () => void;
|
|
155
|
+
empty?: ReactNode;
|
|
156
|
+
}
|
|
157
|
+
/** Shared record body; callers provide activity, views and authorized actions. */
|
|
158
|
+
export interface EntityRecordPageProps {
|
|
159
|
+
entity: ViewEntity;
|
|
160
|
+
owner: string;
|
|
161
|
+
schema?: EntityTableSchema;
|
|
162
|
+
title?: ReactNode;
|
|
163
|
+
actions?: ReactNode;
|
|
164
|
+
details?: ReactNode;
|
|
165
|
+
summary?: ReactNode;
|
|
166
|
+
children?: ReactNode;
|
|
167
|
+
/** Content mode keeps the header and lets children own the body layout. */
|
|
168
|
+
layout?: "record" | "content";
|
|
169
|
+
}
|
|
170
|
+
/** Saved identities are resolved through the visiting user's existing reads.
|
|
171
|
+
* Authored names, status and callbacks are never accepted as identity. */
|
|
172
|
+
interface LiveReference {
|
|
173
|
+
mode: "live";
|
|
174
|
+
workspace: string;
|
|
175
|
+
appearance?: "inline" | "row";
|
|
176
|
+
}
|
|
177
|
+
export interface AutomationReferenceProps extends LiveReference {
|
|
178
|
+
automationId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface AgentReferenceProps extends LiveReference {
|
|
181
|
+
agentId: string;
|
|
182
|
+
}
|
|
183
|
+
export interface ConnectorReferenceProps extends LiveReference {
|
|
184
|
+
connectorKey: string;
|
|
185
|
+
connectionId?: number;
|
|
186
|
+
}
|
|
187
|
+
export interface JsonDiffProps {
|
|
188
|
+
before: Record<string, unknown> | null;
|
|
189
|
+
after: Record<string, unknown> | null;
|
|
190
|
+
}
|
|
191
|
+
/** Read-only native definition body. Pass a saved object or an authored snapshot.
|
|
192
|
+
* No fetching, code execution, saving or approval is performed by the body. */
|
|
193
|
+
export interface DefinitionProps {
|
|
194
|
+
value: Record<string, unknown>;
|
|
195
|
+
}
|
|
196
|
+
export interface NativeComponentProps {
|
|
197
|
+
AutomationDefinition: DefinitionProps;
|
|
198
|
+
AgentDefinition: DefinitionProps;
|
|
199
|
+
ConnectorDefinition: DefinitionProps;
|
|
200
|
+
AutomationReference: AutomationReferenceProps;
|
|
201
|
+
AgentReference: AgentReferenceProps;
|
|
202
|
+
ConnectorReference: ConnectorReferenceProps;
|
|
203
|
+
JsonDiff: JsonDiffProps;
|
|
204
|
+
EntityListPage: EntityListPageProps;
|
|
205
|
+
EntityRecordPage: EntityRecordPageProps;
|
|
206
|
+
EntityTableView: EntityTableViewProps;
|
|
207
|
+
RecordSpecSheet: {
|
|
208
|
+
fields: SpecField[];
|
|
209
|
+
values: Record<string, unknown>;
|
|
210
|
+
context: SpecSheetContext;
|
|
211
|
+
fieldLimit?: number;
|
|
212
|
+
};
|
|
213
|
+
SchemaValue: {
|
|
214
|
+
value: unknown;
|
|
215
|
+
prop?: SchemaProperty;
|
|
216
|
+
format?: ValueFormat;
|
|
217
|
+
resolveLink?: (raw: string) => {
|
|
218
|
+
label: string;
|
|
219
|
+
to: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
empty?: ReactNode;
|
|
222
|
+
className?: string;
|
|
223
|
+
};
|
|
224
|
+
EntityAvatar: {
|
|
225
|
+
metadata: Record<string, unknown> | null | undefined;
|
|
226
|
+
metadataSchema: Record<string, unknown> | null | undefined;
|
|
227
|
+
name: string;
|
|
228
|
+
typeIcon?: string | null;
|
|
229
|
+
className?: string;
|
|
230
|
+
iconClassName?: string;
|
|
231
|
+
initialsFallback?: boolean;
|
|
232
|
+
};
|
|
233
|
+
Button: ComponentProps<"button"> & {
|
|
234
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
235
|
+
size?: "default" | "sm" | "lg" | "icon" | null;
|
|
236
|
+
asChild?: boolean;
|
|
237
|
+
};
|
|
238
|
+
Badge: ComponentProps<"span"> & {
|
|
239
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
240
|
+
};
|
|
241
|
+
Tabs: {
|
|
242
|
+
defaultValue: string;
|
|
243
|
+
children?: ReactNode;
|
|
244
|
+
};
|
|
245
|
+
TabsList: {
|
|
246
|
+
label?: string;
|
|
247
|
+
children?: ReactNode;
|
|
248
|
+
};
|
|
249
|
+
TabsTrigger: {
|
|
250
|
+
value: string;
|
|
251
|
+
children?: ReactNode;
|
|
252
|
+
};
|
|
253
|
+
TabsContent: {
|
|
254
|
+
value: string;
|
|
255
|
+
children?: ReactNode;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
export type NativeComponents = {
|
|
259
|
+
[K in keyof NativeComponentProps]: ComponentType<NativeComponentProps[K]>;
|
|
260
|
+
};
|
|
261
|
+
export declare const NATIVE_COMPONENT_NAMES: readonly ["AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
|
|
262
|
+
export declare const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
|
|
263
|
+
export declare const EntityListPage: ComponentType<EntityListPageProps>;
|
|
264
|
+
export declare const EntityRecordPage: ComponentType<EntityRecordPageProps>;
|
|
265
|
+
export declare const EntityTableView: ComponentType<EntityTableViewProps>;
|
|
266
|
+
export declare const RecordSpecSheet: ComponentType<{
|
|
267
|
+
fields: SpecField[];
|
|
268
|
+
values: Record<string, unknown>;
|
|
269
|
+
context: SpecSheetContext;
|
|
270
|
+
fieldLimit?: number;
|
|
271
|
+
}>;
|
|
272
|
+
export declare const SchemaValue: ComponentType<{
|
|
273
|
+
value: unknown;
|
|
274
|
+
prop?: SchemaProperty;
|
|
275
|
+
format?: ValueFormat;
|
|
276
|
+
resolveLink?: (raw: string) => {
|
|
277
|
+
label: string;
|
|
278
|
+
to: string;
|
|
279
|
+
} | undefined;
|
|
280
|
+
empty?: ReactNode;
|
|
281
|
+
className?: string;
|
|
282
|
+
}>;
|
|
283
|
+
export declare const EntityAvatar: ComponentType<{
|
|
284
|
+
metadata: Record<string, unknown> | null | undefined;
|
|
285
|
+
metadataSchema: Record<string, unknown> | null | undefined;
|
|
286
|
+
name: string;
|
|
287
|
+
typeIcon?: string | null;
|
|
288
|
+
className?: string;
|
|
289
|
+
iconClassName?: string;
|
|
290
|
+
initialsFallback?: boolean;
|
|
291
|
+
}>;
|
|
292
|
+
export declare const Button: ComponentType<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
293
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
294
|
+
size?: "default" | "sm" | "lg" | "icon" | null;
|
|
295
|
+
asChild?: boolean;
|
|
296
|
+
}>;
|
|
297
|
+
export declare const Badge: ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
298
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
299
|
+
}>;
|
|
300
|
+
export declare const Tabs: ComponentType<{
|
|
301
|
+
defaultValue: string;
|
|
302
|
+
children?: ReactNode;
|
|
303
|
+
}>;
|
|
304
|
+
export declare const TabsList: ComponentType<{
|
|
305
|
+
label?: string;
|
|
306
|
+
children?: ReactNode;
|
|
307
|
+
}>;
|
|
308
|
+
export declare const TabsTrigger: ComponentType<{
|
|
309
|
+
value: string;
|
|
310
|
+
children?: ReactNode;
|
|
311
|
+
}>;
|
|
312
|
+
export declare const TabsContent: ComponentType<{
|
|
313
|
+
value: string;
|
|
314
|
+
children?: ReactNode;
|
|
315
|
+
}>;
|
|
316
|
+
export declare const AutomationReference: ComponentType<AutomationReferenceProps>;
|
|
317
|
+
export declare const AgentReference: ComponentType<AgentReferenceProps>;
|
|
318
|
+
export declare const ConnectorReference: ComponentType<ConnectorReferenceProps>;
|
|
319
|
+
export declare const JsonDiff: ComponentType<JsonDiffProps>;
|
|
320
|
+
/** Instructions, sources, triggers, outputs and code from an Automation snapshot. */
|
|
321
|
+
export declare const AutomationDefinition: ComponentType<DefinitionProps>;
|
|
322
|
+
/** Identity and settings from an Agent snapshot, using the native editor fields. */
|
|
323
|
+
export declare const AgentDefinition: ComponentType<DefinitionProps>;
|
|
324
|
+
/** Connector capabilities, schemas and source from a definition snapshot. */
|
|
325
|
+
export declare const ConnectorDefinition: ComponentType<DefinitionProps>;
|
|
326
|
+
export {};
|
|
327
|
+
//# sourceMappingURL=native.d.ts.map
|