@protobase/ui 0.113.0 → 0.114.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/account/messages.d.ts +2 -2
- package/dist/app/app.d.ts +4 -1
- package/dist/app/app.js +9 -7
- package/dist/app/change-confirm/messages.d.ts +2 -2
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/displays/virtual-cards.js +1 -0
- package/dist/app/embedded-list/messages.d.ts +2 -2
- package/dist/app/export/messages.d.ts +2 -2
- package/dist/app/field-messages.d.ts +2 -2
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-status/messages.d.ts +2 -2
- package/dist/app/file-viewers/messages.d.ts +2 -2
- package/dist/app/first-frame.d.ts +13 -0
- package/dist/app/first-frame.js +23 -0
- package/dist/app/focus/messages.d.ts +2 -2
- package/dist/app/gallery/gallery-layout.d.ts +2 -2
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/index.html +0 -17
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/main.js +19 -7
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/pages/messages.d.ts +2 -2
- package/dist/app/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-mode/shown-layout.d.ts +1 -1
- package/dist/app/record-row/messages.d.ts +2 -2
- package/dist/app/record-row/record-row.d.ts +3 -2
- package/dist/app/record-row/record-row.js +43 -27
- package/dist/app/record-row/row-window.d.ts +11 -0
- package/dist/app/record-row/row-window.js +15 -2
- package/dist/app/refresh-mark.d.ts +2 -1
- package/dist/app/refresh-mark.js +3 -1
- package/dist/app/related-cards/messages.d.ts +2 -2
- package/dist/app/reveal-when-loaded.d.ts +8 -2
- package/dist/app/reveal-when-loaded.js +12 -5
- package/dist/app/runtime/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app/splash-hold.d.ts +0 -1
- package/dist/app/splash-hold.js +1 -1
- package/dist/app/start-screen.d.ts +0 -9
- package/dist/app/start-screen.js +1 -10
- package/dist/app/ui-ready.d.ts +11 -0
- package/dist/app/ui-ready.js +12 -0
- package/dist/app-shell/app-shell.js +3 -1
- package/dist/app-shell/close-sidebar.d.ts +10 -0
- package/dist/app-shell/close-sidebar.js +17 -0
- package/dist/app-shell/drawer.d.ts +7 -1
- package/dist/app-shell/drawer.js +26 -7
- package/dist/app-shell/index.d.ts +2 -1
- package/dist/app-shell/index.js +2 -1
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/app-shell/top-bar.js +4 -4
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/compact-table/messages.d.ts +2 -2
- package/dist/data/query-keys.d.ts +6 -0
- package/dist/data/query-keys.js +10 -0
- package/dist/data/start-cache/cached-plugins.d.ts +6 -0
- package/dist/data/start-cache/cached-plugins.js +10 -0
- package/dist/data-grid/column-spec.d.ts +1 -1
- package/dist/data-grid/data-grid.js +1 -0
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/data-grid/row-source.d.ts +5 -0
- package/dist/data-grid/use-paged-rows.d.ts +5 -3
- package/dist/data-grid/use-paged-rows.js +21 -6
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/focus-page/messages.d.ts +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/live/grid-loader.d.ts +1 -0
- package/dist/live/grid-loader.js +3 -1
- package/dist/live/use-live-rows.js +1 -0
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mocks/customers.d.ts +1 -1
- package/dist/mocks/invoices.d.ts +1 -1
- package/dist/mocks/orders.d.ts +3 -3
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/members-page.js +13 -7
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/organizations/use-organizations.d.ts +4 -1
- package/dist/organizations/use-organizations.js +25 -19
- package/dist/package.js +1 -1
- package/dist/plugins/plugin-source.d.ts +24 -4
- package/dist/plugins/plugin-source.js +48 -14
- package/dist/plugins/use-plugin-loads.d.ts +3 -1
- package/dist/plugins/use-plugin-loads.js +24 -7
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/primitives/skeleton.js +1 -0
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/roles/use-active-role.d.ts +4 -1
- package/dist/roles/use-active-role.js +18 -13
- package/dist/shell/assets/api-provider-BJJrOoO4.js +2 -0
- package/dist/shell/assets/app-VoTi41IN.js +16 -0
- package/dist/shell/assets/badge-OU9hb6yQ.js +2 -0
- package/dist/shell/assets/checkbox-DFfK432Y.js +2 -0
- package/dist/shell/assets/createLucideIcon-DGm8SdFI.js +2 -0
- package/dist/shell/assets/display-value-CIH2qfgQ.js +2 -0
- package/dist/shell/assets/{field-badge-3QmjR1r3.js → field-badge-DX2Mc_fH.js} +2 -2
- package/dist/shell/assets/{graph-view-BcbWbnHO.js → graph-view-CY9LPr0B.js} +2 -2
- package/dist/shell/assets/{html-viewer-tGtSpy9M.js → html-viewer-BPGMH_GA.js} +2 -2
- package/dist/shell/assets/{in-place-form-B0EkP4B1.js → in-place-form-RWSQGEg4.js} +2 -2
- package/dist/shell/assets/index-Bzb-O7ER.js +2 -0
- package/dist/shell/assets/index-HnFovy2Q.css +2 -0
- package/dist/shell/assets/{intl-cache-bXVNV0Yq.js → intl-cache-D4doUjK1.js} +2 -2
- package/dist/shell/assets/{lib-d3-interpolate-Cl0dHO4f.js → lib-d3-interpolate-D3u38iyJ.js} +2 -2
- package/dist/shell/assets/{lib-d3-transition-DUHAGQ8z.js → lib-d3-transition-BUpPvFvt.js} +2 -2
- package/dist/shell/assets/{lib-d3-zoom-gQh2osrj.js → lib-d3-zoom-BF7SPKNh.js} +2 -2
- package/dist/shell/assets/{lib-vis.gl-react-maplibre-CU7gWYjg.js → lib-vis.gl-react-maplibre-C7-0xNFC.js} +2 -2
- package/dist/shell/assets/{lib-xyflow-react-DGg_5r7u.js → lib-xyflow-react-CKyW7szC.js} +2 -2
- package/dist/shell/assets/maplibre-9ViQO48S.js +2 -0
- package/dist/shell/assets/{markdown-content-DHKbAJjx.js → markdown-content-DTB9RQDs.js} +2 -2
- package/dist/shell/assets/{record-map-nGRmsk6x.js → record-map-CVqCWtfe.js} +2 -2
- package/dist/shell/assets/{records-map-D2flyaz3.js → records-map-ClYSxrVR.js} +2 -2
- package/dist/shell/assets/{run-trace-view-DfrAPeum.js → run-trace-view-CN16MiXg.js} +2 -2
- package/dist/shell/assets/search-picker-BGpvJQRD.js +2 -0
- package/dist/shell/assets/shared-protobase-ui-BC8LqGQB.js +2 -0
- package/dist/shell/assets/step-catalog-CZY0ZpCC.js +2 -0
- package/dist/shell/assets/step-panel-DhD80lsJ.js +2 -0
- package/dist/shell/assets/use-app-address-B4Uk3nWy.js +2 -0
- package/dist/shell/assets/{use-meta-BqEqOLNe.js → use-meta-D5kYywHm.js} +2 -2
- package/dist/shell/assets/{use-sibling-page-CiuiG-Tz.js → use-sibling-page-BJ81HcOP.js} +3 -3
- package/dist/shell/assets/value-badge-Dpd8dRqq.js +2 -0
- package/dist/shell/assets/{vendor-WWp_xlp2.js → vendor-3etemhgS.js} +4 -4
- package/dist/shell/assets/{workflow-canvas-DMP7SDWX.js → workflow-canvas-C1nGpi5w.js} +2 -2
- package/dist/shell/assets/{workflow-graph-editor-xpV8_qEl.js → workflow-graph-editor-DAJa4lq6.js} +2 -2
- package/dist/shell/assets/workflow-workbench-HramVZEJ.js +4 -0
- package/dist/shell/assets/{workflows-Bku4o2su.js → workflows-DlvOln9v.js} +2 -2
- package/dist/shell/assets/{workflows-start-kl7rSSay.js → workflows-start-QUKfwFqf.js} +2 -2
- package/dist/shell/index.html +16 -19
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/api-provider-BJJrOoO4.js.map +1 -0
- package/dist/shell-source-maps/assets/app-VoTi41IN.js.map +1 -0
- package/dist/shell-source-maps/assets/{badge-ChHXC28D.js.map → badge-OU9hb6yQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{checkbox-COOOlJPG.js.map → checkbox-DFfK432Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/createLucideIcon-DGm8SdFI.js.map +1 -0
- package/dist/shell-source-maps/assets/display-value-CIH2qfgQ.js.map +1 -0
- package/dist/shell-source-maps/assets/{field-badge-3QmjR1r3.js.map → field-badge-DX2Mc_fH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-BcbWbnHO.js.map → graph-view-CY9LPr0B.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-tGtSpy9M.js.map → html-viewer-BPGMH_GA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{in-place-form-B0EkP4B1.js.map → in-place-form-RWSQGEg4.js.map} +1 -1
- package/dist/shell-source-maps/assets/index-Bzb-O7ER.js.map +1 -0
- package/dist/shell-source-maps/assets/{intl-cache-bXVNV0Yq.js.map → intl-cache-D4doUjK1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-d3-interpolate-Cl0dHO4f.js.map → lib-d3-interpolate-D3u38iyJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-d3-transition-DUHAGQ8z.js.map → lib-d3-transition-BUpPvFvt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-d3-zoom-gQh2osrj.js.map → lib-d3-zoom-BF7SPKNh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-vis.gl-react-maplibre-CU7gWYjg.js.map → lib-vis.gl-react-maplibre-C7-0xNFC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{lib-xyflow-react-DGg_5r7u.js.map → lib-xyflow-react-CKyW7szC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-Y7X50Jfk.js.map → maplibre-9ViQO48S.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-DHKbAJjx.js.map → markdown-content-DTB9RQDs.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-nGRmsk6x.js.map → record-map-CVqCWtfe.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-D2flyaz3.js.map → records-map-ClYSxrVR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-DfrAPeum.js.map → run-trace-view-CN16MiXg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{search-picker-CJcJetBh.js.map → search-picker-BGpvJQRD.js.map} +1 -1
- package/dist/shell-source-maps/assets/shared-protobase-ui-BC8LqGQB.js.map +1 -0
- package/dist/shell-source-maps/assets/{step-catalog-ZvQOXfSh.js.map → step-catalog-CZY0ZpCC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-B1yHz7OC.js.map → step-panel-DhD80lsJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-app-address-B6k3dkV0.js.map → use-app-address-B4Uk3nWy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-meta-BqEqOLNe.js.map → use-meta-D5kYywHm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-sibling-page-CiuiG-Tz.js.map → use-sibling-page-BJ81HcOP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{value-badge-BKLV4otJ.js.map → value-badge-Dpd8dRqq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{vendor-WWp_xlp2.js.map → vendor-3etemhgS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-DMP7SDWX.js.map → workflow-canvas-C1nGpi5w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-xpV8_qEl.js.map → workflow-graph-editor-DAJa4lq6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-Djdd_ODh.js.map → workflow-workbench-HramVZEJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflows-Bku4o2su.js.map → workflows-DlvOln9v.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflows-start-kl7rSSay.js.map → workflows-start-QUKfwFqf.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/styles.css +14 -0
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/app/hold-start-for-first-loads.d.ts +0 -12
- package/dist/app/hold-start-for-first-loads.js +0 -43
- package/dist/shell/assets/api-provider-CcDtTh0D.js +0 -2
- package/dist/shell/assets/app-DG30qs8Q.js +0 -16
- package/dist/shell/assets/badge-ChHXC28D.js +0 -2
- package/dist/shell/assets/checkbox-COOOlJPG.js +0 -2
- package/dist/shell/assets/display-value-fDiKbfJO.js +0 -2
- package/dist/shell/assets/index-BkCaPeOq.css +0 -2
- package/dist/shell/assets/index-CZ013UoE.js +0 -2
- package/dist/shell/assets/maplibre-Y7X50Jfk.js +0 -2
- package/dist/shell/assets/messages-ClKBpZlk.js +0 -2
- package/dist/shell/assets/search-picker-CJcJetBh.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-CVwqj5Cp.js +0 -2
- package/dist/shell/assets/step-catalog-ZvQOXfSh.js +0 -2
- package/dist/shell/assets/step-panel-B1yHz7OC.js +0 -2
- package/dist/shell/assets/use-app-address-B6k3dkV0.js +0 -2
- package/dist/shell/assets/value-badge-BKLV4otJ.js +0 -2
- package/dist/shell/assets/workflow-workbench-Djdd_ODh.js +0 -4
- package/dist/shell-source-maps/assets/api-provider-CcDtTh0D.js.map +0 -1
- package/dist/shell-source-maps/assets/app-DG30qs8Q.js.map +0 -1
- package/dist/shell-source-maps/assets/display-value-fDiKbfJO.js.map +0 -1
- package/dist/shell-source-maps/assets/index-CZ013UoE.js.map +0 -1
- package/dist/shell-source-maps/assets/messages-ClKBpZlk.js.map +0 -1
- package/dist/shell-source-maps/assets/shared-protobase-ui-CVwqj5Cp.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/app/ui-ready.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The event the app dispatches on `window` once it has drawn its first page, as it takes index.html's start screen
|
|
4
|
+
* away, and the browser has painted that frame: the next animation frame, then a task after it. With a warm start cache
|
|
5
|
+
* that is the first commit. A host that loads the app out of sight, such as Protobase's official app switching
|
|
6
|
+
* workspaces, shows it then, so the page appears whole instead of blank.
|
|
7
|
+
*/
|
|
8
|
+
export declare const uiReadyEvent = "protobase:ui-ready";
|
|
9
|
+
/** Dispatches `uiReadyEvent` on `page` once the frame drawn now has been painted. */
|
|
10
|
+
export declare const tellUiReady: (page?: Pick<Window, "requestAnimationFrame" | "setTimeout" | "dispatchEvent">) => undefined;
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/app/ui-ready.ts
|
|
2
|
+
/**
|
|
3
|
+
* The event the app dispatches on `window` once it has drawn its first page, as it takes index.html's start screen
|
|
4
|
+
* away, and the browser has painted that frame: the next animation frame, then a task after it. With a warm start cache
|
|
5
|
+
* that is the first commit. A host that loads the app out of sight, such as Protobase's official app switching
|
|
6
|
+
* workspaces, shows it then, so the page appears whole instead of blank.
|
|
7
|
+
*/
|
|
8
|
+
const uiReadyEvent = "protobase:ui-ready";
|
|
9
|
+
/** Dispatches `uiReadyEvent` on `page` once the frame drawn now has been painted. */
|
|
10
|
+
const tellUiReady = (page = window) => void page.requestAnimationFrame(() => page.setTimeout(() => page.dispatchEvent(new Event(uiReadyEvent)), 0));
|
|
11
|
+
//#endregion
|
|
12
|
+
export { tellUiReady, uiReadyEvent };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { useIsDesktop } from "../lib/use-media-query.js";
|
|
3
3
|
import { BottomBar } from "./bottom-bar.js";
|
|
4
|
+
import { useCloseSidebarEvent } from "./close-sidebar.js";
|
|
4
5
|
import { Drawer } from "./drawer.js";
|
|
5
6
|
import { PageScrollContext, usePageGutter, usePageInsets } from "./page-scroll.js";
|
|
6
7
|
import { Sidebar } from "./sidebar.js";
|
|
7
8
|
import { useSidebarNoticeShown } from "./sidebar-notice.js";
|
|
8
9
|
import { TopBarSlotContext } from "./top-bar-slot.js";
|
|
9
10
|
import { TopBar } from "./top-bar.js";
|
|
10
|
-
import { useEffect, useRef, useState } from "react";
|
|
11
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
//#region src/app-shell/app-shell.tsx
|
|
13
14
|
const drawerId = "app-drawer";
|
|
@@ -22,6 +23,7 @@ const AppShell = ({ sidebarMode, activeItem, breadcrumb, titleStatus, staleConte
|
|
|
22
23
|
useEffect(() => {
|
|
23
24
|
if (desktop) setDrawerOpen(false);
|
|
24
25
|
}, [desktop]);
|
|
26
|
+
useCloseSidebarEvent(useCallback(() => setDrawerOpen(false), []));
|
|
25
27
|
const tabs = !desktop && bottomBar && bottomBar.length > 0 ? bottomBar : void 0;
|
|
26
28
|
const [chosen, setPageScroll] = useState();
|
|
27
29
|
const pageScroll = chosen ?? scrollsByDefault;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/app-shell/close-sidebar.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The event a host or a plugin dispatches on `window` to close the shell's sidebar where it is a drawer over the page,
|
|
4
|
+
* on a phone: for example Protobase's official app, as it opens its own switcher on a tap on the logo
|
|
5
|
+
* (`logoTapEvent`). Where the sidebar sits beside the page it does nothing.
|
|
6
|
+
*/
|
|
7
|
+
export declare const closeSidebarEvent = "protobase:close-sidebar";
|
|
8
|
+
/** Calls `close` on `closeSidebarEvent`. */
|
|
9
|
+
export declare const useCloseSidebarEvent: (close: () => void) => void;
|
|
10
|
+
//#endregion
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
//#region src/app-shell/close-sidebar.ts
|
|
3
|
+
/**
|
|
4
|
+
* The event a host or a plugin dispatches on `window` to close the shell's sidebar where it is a drawer over the page,
|
|
5
|
+
* on a phone: for example Protobase's official app, as it opens its own switcher on a tap on the logo
|
|
6
|
+
* (`logoTapEvent`). Where the sidebar sits beside the page it does nothing.
|
|
7
|
+
*/
|
|
8
|
+
const closeSidebarEvent = "protobase:close-sidebar";
|
|
9
|
+
/** Calls `close` on `closeSidebarEvent`. */
|
|
10
|
+
const useCloseSidebarEvent = (close) => {
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
window.addEventListener(closeSidebarEvent, close);
|
|
13
|
+
return () => window.removeEventListener(closeSidebarEvent, close);
|
|
14
|
+
}, [close]);
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { closeSidebarEvent, useCloseSidebarEvent };
|
|
@@ -6,6 +6,12 @@ export type DrawerProps = {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
9
|
+
/** How long the drawer takes to slide in and out, and its backdrop to fade. */
|
|
10
|
+
export declare const drawerSlideMs = 200;
|
|
11
|
+
/**
|
|
12
|
+
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation. It
|
|
13
|
+
* slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
|
|
14
|
+
* less motion asked for it shows and goes at once.
|
|
15
|
+
*/
|
|
10
16
|
export declare const Drawer: ({ id, open, onClose, children }: DrawerProps) => import("react").JSX.Element | null;
|
|
11
17
|
//#endregion
|
package/dist/app-shell/drawer.js
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
|
+
import { cn } from "../lib/cn.js";
|
|
1
2
|
import { useFocusTrap } from "../lib/use-focus-trap.js";
|
|
2
3
|
import { text } from "./messages.js";
|
|
3
|
-
import { useRef } from "react";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
//#region src/app-shell/drawer.tsx
|
|
6
|
-
/**
|
|
7
|
+
/** How long the drawer takes to slide in and out, and its backdrop to fade. */
|
|
8
|
+
const drawerSlideMs = 200;
|
|
9
|
+
/**
|
|
10
|
+
* The sidebar on small screens: slides over the page, traps focus, closes on Escape, backdrop tap or navigation. It
|
|
11
|
+
* slides in as it opens and out as it closes, however it is closed, such as a host's `protobase:close-sidebar`; with
|
|
12
|
+
* less motion asked for it shows and goes at once.
|
|
13
|
+
*/
|
|
7
14
|
const Drawer = ({ id, open, onClose, children }) => {
|
|
8
15
|
const panel = useRef(null);
|
|
9
16
|
useFocusTrap(panel, open, onClose);
|
|
10
|
-
|
|
17
|
+
const [leaving, setLeaving] = useState(false);
|
|
18
|
+
const [wasOpen, setWasOpen] = useState(open);
|
|
19
|
+
if (open !== wasOpen) {
|
|
20
|
+
setWasOpen(open);
|
|
21
|
+
setLeaving(!open);
|
|
22
|
+
}
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!leaving) return;
|
|
25
|
+
const gone = setTimeout(() => setLeaving(false), 200);
|
|
26
|
+
return () => clearTimeout(gone);
|
|
27
|
+
}, [leaving]);
|
|
28
|
+
if (!open && !leaving) return null;
|
|
11
29
|
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
-
className: "fixed inset-0 z-50 md:hidden",
|
|
30
|
+
className: cn("fixed inset-0 z-50 md:hidden", leaving && "pointer-events-none"),
|
|
13
31
|
children: [/* @__PURE__ */ jsx("div", {
|
|
14
|
-
className: "absolute inset-0 bg-backdrop/40",
|
|
32
|
+
className: cn("absolute inset-0 bg-backdrop/40 motion-reduce:[animation:none]", leaving ? "[animation:pb-fade-out_200ms_ease-in_forwards]" : "[animation:pb-fade-in_200ms_ease-out]"),
|
|
15
33
|
onClick: onClose,
|
|
16
34
|
"aria-hidden": true
|
|
17
35
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -20,12 +38,13 @@ const Drawer = ({ id, open, onClose, children }) => {
|
|
|
20
38
|
role: "dialog",
|
|
21
39
|
"aria-modal": "true",
|
|
22
40
|
"aria-label": text("navigation"),
|
|
41
|
+
"aria-hidden": leaving || void 0,
|
|
23
42
|
tabIndex: -1,
|
|
24
|
-
className: "absolute inset-y-0 left-0 flex w-[calc(15rem+var(--pb-safe-left))] max-w-[85vw] bg-sidebar pl-[var(--pb-safe-left)] shadow-pop outline-none",
|
|
43
|
+
className: cn("absolute inset-y-0 left-0 flex w-[calc(15rem+var(--pb-safe-left))] max-w-[85vw] bg-sidebar pl-[var(--pb-safe-left)] shadow-pop outline-none motion-reduce:[animation:none]", leaving ? "[animation:pb-drawer-out_200ms_ease-in_forwards]" : "[animation:pb-drawer-in_200ms_ease-out]"),
|
|
25
44
|
onClick: (event) => event.target.closest("a") && onClose(),
|
|
26
45
|
children
|
|
27
46
|
})]
|
|
28
47
|
});
|
|
29
48
|
};
|
|
30
49
|
//#endregion
|
|
31
|
-
export { Drawer };
|
|
50
|
+
export { Drawer, drawerSlideMs };
|
|
@@ -9,10 +9,11 @@ import { LogoMark } from "./logo-mark.js";
|
|
|
9
9
|
import { Logo, ShellLogoProps } from "./logo.js";
|
|
10
10
|
import { AppShell, AppShellProps } from "./app-shell.js";
|
|
11
11
|
import { logoTapEvent } from "./logo-tap.js";
|
|
12
|
+
import { closeSidebarEvent } from "./close-sidebar.js";
|
|
12
13
|
import { PageHeader } from "./page-header.js";
|
|
13
14
|
import { usePageScroll } from "./page-scroll.js";
|
|
14
15
|
import { useTopBarSlot } from "./top-bar-slot.js";
|
|
15
16
|
import { topBarButton } from "./top-bar.js";
|
|
16
17
|
import { Sidebar } from "./sidebar.js";
|
|
17
18
|
import { StatusDot } from "./status-dot.js";
|
|
18
|
-
export { AppShell, type AppShellProps, type BottomBarTab, type Crumb, GlobalSearch, type GlobalSearchModel, Logo, LogoMark, type NavGroup, type NavItem, type NavRecent, type NavRecord, PageHeader, type ProfileMenuItem, type ProfileOrganizations, type ProfileRoles, type ProfileStatus, type ProfileTheme, type RecordMark, type SearchResultGroup, type ShellLogoProps, type ShellUser, type ShownMark, Sidebar, type SidebarMode, StatusDot, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
|
|
19
|
+
export { AppShell, type AppShellProps, type BottomBarTab, type Crumb, GlobalSearch, type GlobalSearchModel, Logo, LogoMark, type NavGroup, type NavItem, type NavRecent, type NavRecord, PageHeader, type ProfileMenuItem, type ProfileOrganizations, type ProfileRoles, type ProfileStatus, type ProfileTheme, type RecordMark, type SearchResultGroup, type ShellLogoProps, type ShellUser, type ShownMark, Sidebar, type SidebarMode, StatusDot, closeSidebarEvent, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
|
package/dist/app-shell/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StatusDot } from "./status-dot.js";
|
|
2
|
+
import { closeSidebarEvent } from "./close-sidebar.js";
|
|
2
3
|
import { usePageScroll } from "./page-scroll.js";
|
|
3
4
|
import { LogoMark } from "./logo-mark.js";
|
|
4
5
|
import { Logo } from "./logo.js";
|
|
@@ -10,4 +11,4 @@ import { GlobalSearch, moveActive } from "./global-search.js";
|
|
|
10
11
|
import { topBarButton } from "./top-bar.js";
|
|
11
12
|
import { AppShell } from "./app-shell.js";
|
|
12
13
|
import { PageHeader } from "./page-header.js";
|
|
13
|
-
export { AppShell, GlobalSearch, Logo, LogoMark, PageHeader, Sidebar, StatusDot, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
|
|
14
|
+
export { AppShell, GlobalSearch, Logo, LogoMark, PageHeader, Sidebar, StatusDot, closeSidebarEvent, logoTapEvent, moveActive, sidebarModes, topBarButton, usePageScroll, useTopBarSlot };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app-shell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "signIn" | "
|
|
5
|
-
rich(id: "signIn" | "
|
|
4
|
+
(id: "signIn" | "resources" | "organizations" | "system" | "roles" | "breadcrumb" | "theme" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "signIn" | "resources" | "organizations" | "system" | "roles" | "breadcrumb" | "theme" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -42,7 +42,7 @@ const TopBar = ({ breadcrumb, titleStatus, onNavigate, onBack, actions, onMenu,
|
|
|
42
42
|
}, [search]);
|
|
43
43
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("header", {
|
|
44
44
|
ref,
|
|
45
|
-
className: cn(sticky ? "sticky top-0 z-30 max-md:fixed max-md:left-[var(--pb-safe-left)] max-md:right-[var(--pb-safe-right)]" : "relative", "flex shrink-0 items-center gap-[4px] border-b bg-background pt-[calc(var(--pb-safe-top)+1.5px)] pr-[8px] pb-[1.5px] pl-[16px]
|
|
45
|
+
className: cn(sticky ? "sticky top-0 z-30 max-md:fixed max-md:left-[var(--pb-safe-left)] max-md:right-[var(--pb-safe-right)]" : "relative", "flex shrink-0 items-center gap-[4px] border-b bg-background pt-[calc(var(--pb-safe-top)+1.5px)] pr-[8px] pb-[1.5px] pl-[16px] h-[calc(3rem+var(--pb-safe-top))] md:gap-4 md:px-5 md:pt-[var(--pb-safe-top)] md:pb-0"),
|
|
46
46
|
children: [
|
|
47
47
|
onMenu && /* @__PURE__ */ jsx("button", {
|
|
48
48
|
type: "button",
|
|
@@ -75,8 +75,8 @@ const TopBar = ({ breadcrumb, titleStatus, onNavigate, onBack, actions, onMenu,
|
|
|
75
75
|
parts: breadcrumb,
|
|
76
76
|
onNavigate
|
|
77
77
|
}),
|
|
78
|
-
|
|
79
|
-
className: "flex shrink-0 items-center",
|
|
78
|
+
/* @__PURE__ */ jsx("span", {
|
|
79
|
+
className: "flex shrink-0 items-center empty:hidden",
|
|
80
80
|
children: titleStatus
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -128,7 +128,7 @@ const TopBar = ({ breadcrumb, titleStatus, onNavigate, onBack, actions, onMenu,
|
|
|
128
128
|
]
|
|
129
129
|
}), sticky && /* @__PURE__ */ jsx("div", {
|
|
130
130
|
"aria-hidden": true,
|
|
131
|
-
className: "h-[var(--pb-sticky-top)] shrink-0 md:hidden"
|
|
131
|
+
className: "h-[var(--pb-sticky-top,calc(3rem+var(--pb-safe-top)))] shrink-0 md:hidden"
|
|
132
132
|
})] });
|
|
133
133
|
};
|
|
134
134
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/assistant-dock/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "reconnecting" | "empty" | "askQuestion" | "assistant" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "reconnecting" | "empty" | "askQuestion" | "assistant" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/auth/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/auth/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "signIn" | "or" | "reload" | "
|
|
5
|
-
rich(id: "signIn" | "or" | "reload" | "
|
|
4
|
+
(id: "signIn" | "or" | "reload" | "yourName" | "continue" | "signOut" | "loading" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "newPassword" | "verify" | "admin" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "signIn" | "or" | "reload" | "yourName" | "continue" | "signOut" | "loading" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "newPassword" | "verify" | "admin" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/calls/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/calls/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "accept" | "join" | "people" | "leave" | "denied" | "ended" | "refused" | "unavailable" | "muted" | "you" | "decline" | "startCall" | "inProgress" | "joinCall" | "microphone" | "camera" | "shareScreen" | "stopSharing" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "accept" | "join" | "people" | "leave" | "denied" | "ended" | "refused" | "unavailable" | "muted" | "you" | "decline" | "startCall" | "inProgress" | "joinCall" | "microphone" | "camera" | "shareScreen" | "stopSharing" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/compact-table/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "table" | "rows" | "noRows" | "cutOff", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "table" | "rows" | "noRows" | "cutOff", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -2,6 +2,12 @@ import { PlanRead } from "@protobase/layout";
|
|
|
2
2
|
//#region src/data/query-keys.d.ts
|
|
3
3
|
export declare const keys: {
|
|
4
4
|
meta: readonly ["meta"];
|
|
5
|
+
/** The role the session acts with and the roles it may switch to. */
|
|
6
|
+
activeRole: readonly ["session", "active-role"];
|
|
7
|
+
/** The organization the session works in and the person's organizations. */
|
|
8
|
+
organizations: readonly ["session", "organizations"];
|
|
9
|
+
/** The members of the organization `id`, with their roles, for its members page. */
|
|
10
|
+
organizationMembers: (id: string) => readonly ["session", "members", string];
|
|
5
11
|
/** A source's `/meta`, as far as the app draws it: its URL, and the resources the app lists for it. */
|
|
6
12
|
sourceMeta: (url: string, resources: readonly string[]) => readonly ["source-meta", string, string];
|
|
7
13
|
/** Every `/meta` query of the source at `url`. */
|
package/dist/data/query-keys.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
//#region src/data/query-keys.ts
|
|
2
2
|
const keys = {
|
|
3
3
|
meta: ["meta"],
|
|
4
|
+
/** The role the session acts with and the roles it may switch to. */
|
|
5
|
+
activeRole: ["session", "active-role"],
|
|
6
|
+
/** The organization the session works in and the person's organizations. */
|
|
7
|
+
organizations: ["session", "organizations"],
|
|
8
|
+
/** The members of the organization `id`, with their roles, for its members page. */
|
|
9
|
+
organizationMembers: (id) => [
|
|
10
|
+
"session",
|
|
11
|
+
"members",
|
|
12
|
+
id
|
|
13
|
+
],
|
|
4
14
|
/** A source's `/meta`, as far as the app draws it: its URL, and the resources the app lists for it. */
|
|
5
15
|
sourceMeta: (url, resources) => [
|
|
6
16
|
"source-meta",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StartCache } from "./start-cache.js";
|
|
2
|
+
import { PluginRef } from "@protobase/client";
|
|
3
|
+
//#region src/data/start-cache/cached-plugins.d.ts
|
|
4
|
+
/** The plugins the start cache's `/meta` names, for the signed-in person it was kept for: the app loads them before it draws. */
|
|
5
|
+
export declare const cachedPlugins: (cache: StartCache | undefined) => PluginRef[];
|
|
6
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { keys } from "../query-keys.js";
|
|
2
|
+
//#region src/data/start-cache/cached-plugins.ts
|
|
3
|
+
/** The plugins the start cache's `/meta` names, for the signed-in person it was kept for: the app loads them before it draws. */
|
|
4
|
+
const cachedPlugins = (cache) => {
|
|
5
|
+
const session = cache?.session();
|
|
6
|
+
if (!session) return [];
|
|
7
|
+
return ((cache?.queries(`user:${session.user.id}`)?.state.queries.find((query) => JSON.stringify(query.queryKey) === JSON.stringify(keys.meta)))?.state.data)?.plugins ?? [];
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { cachedPlugins };
|
|
@@ -62,5 +62,5 @@ export type ColumnSpec = {
|
|
|
62
62
|
/** Drawn under the cell's content, outside the link a title cell is; every row of the grid grows to hold it. */
|
|
63
63
|
below?: (row: GridRow) => ReactNode;
|
|
64
64
|
};
|
|
65
|
-
export declare const isRightAligned: (kind: ColumnKind) => kind is "number" | "
|
|
65
|
+
export declare const isRightAligned: (kind: ColumnKind) => kind is "number" | "money" | "signed" | "percent";
|
|
66
66
|
//#endregion
|
|
@@ -79,6 +79,7 @@ const DataGrid = ({ columns: given, source, naturalSort, initialScrollIndex = 0,
|
|
|
79
79
|
total,
|
|
80
80
|
rowAt: sourceRowAt ? rowAt : void 0,
|
|
81
81
|
loadRows: source.loadRows,
|
|
82
|
+
cachedRows: source.cachedRows,
|
|
82
83
|
revision: source.revision,
|
|
83
84
|
latencyMs
|
|
84
85
|
}, firstIndex, lastIndex);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/data-grid/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "row" | "new" | "
|
|
5
|
-
rich(id: "row" | "new" | "
|
|
4
|
+
(id: "row" | "new" | "no" | "shownIn" | "pickedUp" | "cancelled" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "isOver" | "droppedAt" | "putBack", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "row" | "new" | "no" | "shownIn" | "pickedUp" | "cancelled" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "isOver" | "droppedAt" | "putBack", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -8,6 +8,11 @@ export type RowSource = {
|
|
|
8
8
|
loadRows?: (start: number, count: number) => Promise<GridRow[]>;
|
|
9
9
|
/** Changes when the rows were refetched: the pages on screen are loaded again in place, the others when next shown. */
|
|
10
10
|
revision?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The rows from `start` (a multiple of the page size) a live server's source already holds, such as from the start
|
|
13
|
+
* cache, read at once: the first draw shows them, and `loadRows` refreshes them in place.
|
|
14
|
+
*/
|
|
15
|
+
cachedRows?: (start: number) => GridRow[] | undefined;
|
|
11
16
|
};
|
|
12
17
|
export declare const createRowSource: (total: number, rowAt: (index: number) => GridRow) => RowSource;
|
|
13
18
|
/** Mocks a filtered view: `total` rows sampled evenly from `base`, each forced to satisfy the filter. */
|
|
@@ -6,13 +6,15 @@ type Loading = {
|
|
|
6
6
|
total: number;
|
|
7
7
|
rowAt?: (index: number) => GridRow;
|
|
8
8
|
loadRows?: RowSource['loadRows'];
|
|
9
|
+
cachedRows?: RowSource['cachedRows'];
|
|
9
10
|
revision?: number;
|
|
10
11
|
latencyMs: number;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* Serves rows by absolute index. Mock sources compute rows (after `latencyMs`, or at once when 0);
|
|
14
|
-
* live sources load pages through `loadRows
|
|
15
|
-
*
|
|
15
|
+
* live sources load pages through `loadRows`, starting from the pages `cachedRows` already holds, which show at once and
|
|
16
|
+
* are loaded again in place. Unloaded rows read as undefined, so fast scrolling shows skeletons. A new `revision` loads
|
|
17
|
+
* the pages on screen again, showing the rows they held until the new ones arrive.
|
|
16
18
|
*/
|
|
17
|
-
export declare const usePagedRows: ({ total, rowAt, loadRows, revision, latencyMs }: Loading, start: number, end: number) => (index: number) => GridRow | undefined;
|
|
19
|
+
export declare const usePagedRows: ({ total, rowAt, loadRows, cachedRows, revision, latencyMs }: Loading, start: number, end: number) => (index: number) => GridRow | undefined;
|
|
18
20
|
//#endregion
|
|
@@ -6,18 +6,28 @@ const gridPageSize = 40;
|
|
|
6
6
|
const pageLength = (total, page) => Math.max(0, Math.min(40, total - page * 40));
|
|
7
7
|
/**
|
|
8
8
|
* Serves rows by absolute index. Mock sources compute rows (after `latencyMs`, or at once when 0);
|
|
9
|
-
* live sources load pages through `loadRows
|
|
10
|
-
*
|
|
9
|
+
* live sources load pages through `loadRows`, starting from the pages `cachedRows` already holds, which show at once and
|
|
10
|
+
* are loaded again in place. Unloaded rows read as undefined, so fast scrolling shows skeletons. A new `revision` loads
|
|
11
|
+
* the pages on screen again, showing the rows they held until the new ones arrive.
|
|
11
12
|
*/
|
|
12
|
-
const usePagedRows = ({ total, rowAt, loadRows, revision, latencyMs }, start, end) => {
|
|
13
|
+
const usePagedRows = ({ total, rowAt, loadRows, cachedRows, revision, latencyMs }, start, end) => {
|
|
13
14
|
const cache = useMemo(() => createPageCache(40, 60), [rowAt, loadRows]);
|
|
15
|
+
const seeded = useRef(/* @__PURE__ */ new Set());
|
|
16
|
+
const seed = (index) => {
|
|
17
|
+
const page = Math.floor(index / 40);
|
|
18
|
+
if (!cachedRows || cache.hasPage(page)) return;
|
|
19
|
+
const rows = cachedRows(page * 40);
|
|
20
|
+
if (!rows) return;
|
|
21
|
+
cache.setPage(page, rows);
|
|
22
|
+
seeded.current.add(page);
|
|
23
|
+
};
|
|
14
24
|
const [version, setVersion] = useState(0);
|
|
15
25
|
const firstPage = Math.floor(start / 40);
|
|
16
26
|
const lastPage = Math.floor(end / 40);
|
|
17
27
|
const synchronous = !loadRows && latencyMs === 0;
|
|
18
28
|
useEffect(() => {
|
|
19
29
|
if (synchronous) return;
|
|
20
|
-
const pages = pagesForRange(firstPage * 40, lastPage * 40, 40).filter((page) => !cache.hasPage(page));
|
|
30
|
+
const pages = pagesForRange(firstPage * 40, lastPage * 40, 40).filter((page) => !cache.hasPage(page) || seeded.current.delete(page));
|
|
21
31
|
const length = (page) => pageLength(total, page);
|
|
22
32
|
const store = (page, rows) => {
|
|
23
33
|
cache.setPage(page, rows);
|
|
@@ -62,11 +72,16 @@ const usePagedRows = ({ total, rowAt, loadRows, revision, latencyMs }, start, en
|
|
|
62
72
|
lastPage,
|
|
63
73
|
total
|
|
64
74
|
]);
|
|
65
|
-
return useCallback((index) =>
|
|
75
|
+
return useCallback((index) => {
|
|
76
|
+
if (synchronous) return rowAt(index);
|
|
77
|
+
seed(index);
|
|
78
|
+
return cache.get(index);
|
|
79
|
+
}, [
|
|
66
80
|
cache,
|
|
67
81
|
synchronous,
|
|
68
82
|
rowAt,
|
|
69
|
-
version
|
|
83
|
+
version,
|
|
84
|
+
cachedRows
|
|
70
85
|
]);
|
|
71
86
|
};
|
|
72
87
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/filter-panel/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "date" | "remove" | "noMatches" | "year" | "month" | "today" | "yesterday" | "maximum" | "minimum" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "date" | "remove" | "noMatches" | "year" | "month" | "today" | "yesterday" | "maximum" | "minimum" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/focus-page/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "more" | "tools", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "more" | "tools", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { RecordMark } from "./app-shell/nav.js";
|
|
|
5
5
|
import { LogoMark } from "./app-shell/logo-mark.js";
|
|
6
6
|
import { ShellLogoProps } from "./app-shell/logo.js";
|
|
7
7
|
import { logoTapEvent } from "./app-shell/logo-tap.js";
|
|
8
|
+
import { closeSidebarEvent } from "./app-shell/close-sidebar.js";
|
|
8
9
|
import { PushState } from "./notifications/push/web-push.js";
|
|
9
10
|
import { ActionCard, ActionCardProps, CardAction, CardTone } from "./action-card/action-card.js";
|
|
10
11
|
import { FieldList } from "./action-card/field-list.js";
|
|
@@ -18,6 +19,7 @@ import { MarksHook } from "./app/marks/marks-hook.js";
|
|
|
18
19
|
import { FileViewer, FileViewerProps, SiblingFile, ViewedFile, fileNamed } from "./app/file-viewers/file-viewer.js";
|
|
19
20
|
import { ActionContext, ActionHandler, BeforeSignInProps, ProjectUi, definePlugin, defineUi } from "./app/pages/project-ui.js";
|
|
20
21
|
import { PluginInfo, usePlugin } from "./plugins/plugin-context.js";
|
|
22
|
+
import { pluginsChangedEvent } from "./plugins/plugin-source.js";
|
|
21
23
|
import { App, AppProps } from "./app/app.js";
|
|
22
24
|
import { MetaData } from "./data/meta-data.js";
|
|
23
25
|
import { CurrentAddress, ListAddress, ListChange } from "./app/current-address.js";
|
|
@@ -120,5 +122,6 @@ import { useFieldControl } from "./primitives/field-control.js";
|
|
|
120
122
|
import { Section } from "./record-view/section.js";
|
|
121
123
|
import { RecordPicker, RecordPickerProps } from "./app/record-picker.js";
|
|
122
124
|
import { Spinner } from "./primitives/spinner.js";
|
|
125
|
+
import { uiReadyEvent } from "./app/ui-ready.js";
|
|
123
126
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
124
|
-
export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, ToneEdge, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, protobaseVersion, sameChatDay, siblingPage, statusRefreshMs, uiFromModule, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
127
|
+
export { ActionCard, type ActionCardProps, type ActionContext, type ActionHandler, ActionInputError, type ActionInputProps, ApiProvider, type ApiProviderProps, App, AppLink, AppMark, type AppMarkProps, type AppProps, AssistantDock, type AssistantDockProps, AuthLayout, type AuthLayoutProps, AvailabilityMark, type BackendData, type BackendRefresh, type BeforeSignInProps, type BoardDrop, type BoardDropContext, type BoardDropUndo, type BoardDropWrite, Button, type ButtonProps, CallMark, type CallMarkProps, CallView, type CallViewProps, type CardAction, type CardTone, Carousel, type CarouselImage, type CarouselProps, type ChatAuthor, ChatDivider, type ChatDividerProps, ChatMessage, type ChatMessageProps, ChatThread, type ChatThreadProps, type ChoiceOption, Choices, type ChoicesProps, CodeForm, type CodeFormProps, CompactTable, type CompactTableProps, type ComponentRead, type ComponentReads, type ComponentSelect, Composer, type ComposerProps, type CreateForm, type CreateFormOptions, type CurrentAddress, Dialog, type DialogProps, type DiffLine, DiffView, type DiffViewProps, type Drop, type DropRule, Field, FieldBadge, FieldList, type FieldProps, type FieldWidget, type FieldWidgetEditorProps, type FieldWidgetProps, FileReadError, type FileViewer, type FileViewerProps, type FocusAction, FocusActions, FocusNotice, type FocusNoticeProps, FocusPage, type FocusPageProps, FocusPanel, type FocusPanelProps, type FocusRecord, type FocusSize, FocusSlot, type FocusSlotProps, type FocusZone, Form, type FormProps, type FrameLink, type FrameScripts, HtmlFrame, InPlaceForm, type InPlaceFormProps, Input, type InputProps, type LayoutRecord, type LinkAddress, type ListAddress, type ListChange, type ListDisplay, type ListDisplayRow, LogoMark, Markdown, type MarkdownContentProps as MarkdownProps, type MarksHook, type Member, type MembersResult, MentionBox, type MentionBoxProps, type MentionDraft, MentionedText, MenuSelect, type MenuSelectProps, type MetaData, type NoticeLevel, OtpInput, type OtpInputProps, PartView, type PatchFile, type PeopleSearch, type PickedUser, type PickerGroup, type PickerItem, type PluginInfo, type Presence, type PresenceHook, type ProjectUi, type PushState, RecordCall, type RecordCallProps, type RecordCardProps, RecordLink, type RecordMark, RecordPicker, type RecordPickerProps, ResendCodeButton, type ResendCodeButtonProps, ResponsiveDialog, type ResponsiveDialogProps, RouteLink, type RouteTarget, SearchPicker, type SearchPickerProps, Section, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectProps, type ShellLogoProps, type SiblingFile, type SiblingPage, SidePanel, type SidePanelProps, SignInPrompt, type SignInPromptProps, type SignedInUser, Spinner, StatusMark, type StatusMarkProps, type Step, StepList, type StepState, Textarea, type TextareaProps, type TitleReader, type TitleRule, ToneEdge, type ViewedFile, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ import { Composer } from "./chat/composer.js";
|
|
|
38
38
|
import { diffStats, parseDiff } from "./diff-view/diff.js";
|
|
39
39
|
import { DiffView } from "./diff-view/diff-view.js";
|
|
40
40
|
import { parsePatch } from "./diff-view/patch.js";
|
|
41
|
+
import { closeSidebarEvent } from "./app-shell/close-sidebar.js";
|
|
41
42
|
import { LogoMark } from "./app-shell/logo-mark.js";
|
|
42
43
|
import { AppMark } from "./app-shell/app-mark.js";
|
|
43
44
|
import { logoTapEvent } from "./app-shell/logo-tap.js";
|
|
@@ -55,6 +56,7 @@ import { uiFromModule } from "./app/pages/ui-from-module.js";
|
|
|
55
56
|
import { mergeUi } from "./app/pages/merge-ui.js";
|
|
56
57
|
import { usePlugin } from "./plugins/plugin-context.js";
|
|
57
58
|
import { pluginApi, protobaseVersion } from "./plugins/plugin-api.js";
|
|
59
|
+
import { pluginsChangedEvent } from "./plugins/plugin-source.js";
|
|
58
60
|
import { useApiToken } from "./auth/use-api-token.js";
|
|
59
61
|
import { useSignedInUser } from "./auth/use-signed-in-user.js";
|
|
60
62
|
import { CallView } from "./calls/call-view.js";
|
|
@@ -76,6 +78,7 @@ import { useFocusPage } from "./focus-page/focus-context.js";
|
|
|
76
78
|
import { FocusPage } from "./focus-page/focus-page.js";
|
|
77
79
|
import { FocusActions, FocusNotice, FocusPanel, FocusSlot, useFocusZoneFilled } from "./focus-page/focus-parts.js";
|
|
78
80
|
import { isConflict, useUpdateRecord } from "./data/use-update-record.js";
|
|
81
|
+
import { uiReadyEvent } from "./app/ui-ready.js";
|
|
79
82
|
import { App } from "./app/app.js";
|
|
80
83
|
import { HtmlFrame } from "./app/file-viewers/html-frame.js";
|
|
81
84
|
import { siblingPage } from "./app/file-viewers/sibling-page.js";
|
|
@@ -92,4 +95,4 @@ import { Choices } from "./primitives/choices.js";
|
|
|
92
95
|
import { InPlaceForm } from "./app/create/in-place-form.js";
|
|
93
96
|
import { RecordPicker } from "./app/record-picker.js";
|
|
94
97
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
95
|
-
export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, allowDelayMs, buttonClass, chatDayLabel, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, protobaseVersion, sameChatDay, siblingPage, statusRefreshMs, uiFromModule, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
98
|
+
export { ActionCard, ActionInputError, ApiProvider, App, AppLink, AppMark, AssistantDock, AuthLayout, AvailabilityMark, Button, CallMark, CallView, Carousel, ChatDivider, ChatMessage, ChatThread, Choices, CodeForm, CompactTable, Composer, Dialog, DiffView, Field, FieldBadge, FieldList, FileReadError, FocusActions, FocusNotice, FocusPage, FocusPanel, FocusSlot, Form, HtmlFrame, InPlaceForm, Input, LogoMark, Markdown, MentionBox, MentionedText, MenuSelect, OtpInput, PartView, RecordCall, RecordLink, RecordPicker, ResendCodeButton, ResponsiveDialog, RouteLink, SearchPicker, Section, Segmented, Select, SidePanel, SignInPrompt, Spinner, StatusMark, StepList, Textarea, ToneEdge, allowDelayMs, buttonClass, chatDayLabel, closeSidebarEvent, definePlugin, defineUi, diffStats, emptyDraft, fileNamed, isConflict, isFramed, logoTapEvent, mentionedIds, mergeUi, parseDiff, parsePatch, pluginApi, pluginsChangedEvent, protobaseVersion, sameChatDay, siblingPage, statusRefreshMs, uiFromModule, uiReadyEvent, useApiToken, useAppAddress, useArmedAfterFocus, useAssistant, useAssistantClient, useBackendData, useClient, useComponentReads, useComponentSelect, useCreateForm, useFacets, useFieldControl, useFileText, useFocusPage, useFocusRecord, useFocusZoneFilled, useGuardedPress, useHistogram, useInbox, useLayoutRecord, useList, useListDisplay, useMarkNotificationsRead, useMembers, useMeta, useOwnStatus, usePlugin, usePresence, usePushNotifications, useQuery, useQueryClient, useRecord, useRecordCallAddress, useRecordCalls, useResourceClient, useSeries, useSiblingPage, useSignedInUser, useStatuses, useUnreadNotifications, useUpdateRecord };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/invitations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "until" | "email" | "invite" | "expired" | "sendAgain" | "
|
|
5
|
-
rich(id: "until" | "email" | "invite" | "expired" | "sendAgain" | "
|
|
4
|
+
(id: "revoke" | "until" | "email" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "revoke" | "until" | "email" | "invite" | "expired" | "sendAgain" | "passLinkOn", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|