@uibot/renderer-react 0.0.0-stage → 0.2.1
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/HtmlSourceEditor.d.ts +60 -0
- package/dist/collection-activity.d.ts +12 -0
- package/dist/collection-ai.d.ts +17 -0
- package/dist/collection-application.d.ts +5 -0
- package/dist/collection-application.js +25 -0
- package/dist/collection-approval.d.ts +7 -0
- package/dist/collection-attachments.d.ts +10 -0
- package/dist/collection-automation.d.ts +10 -0
- package/dist/collection-calendar-view.d.ts +2 -0
- package/dist/collection-computed.d.ts +4 -0
- package/dist/collection-conversion.d.ts +6 -0
- package/dist/collection-editors.d.ts +40 -0
- package/dist/collection-editors.js +10 -0
- package/dist/collection-form-view.d.ts +2 -0
- package/dist/collection-formula/evaluate.d.ts +18 -0
- package/dist/collection-formula/index.d.ts +1 -0
- package/dist/collection-gallery-view.d.ts +2 -0
- package/dist/collection-grid/cell-display.d.ts +24 -0
- package/dist/collection-grid/cells.d.ts +29 -0
- package/dist/collection-grid/column-color.d.ts +5 -0
- package/dist/collection-grid/date-value.d.ts +13 -0
- package/dist/collection-grid/features.d.ts +76 -0
- package/dist/collection-grid/field-format.d.ts +17 -0
- package/dist/collection-grid/fill.d.ts +10 -0
- package/dist/collection-grid/filter-labels.d.ts +6 -0
- package/dist/collection-grid/footer-aggregate.d.ts +6 -0
- package/dist/collection-grid/footer-stats.d.ts +5 -0
- package/dist/collection-grid/grouping.d.ts +51 -0
- package/dist/collection-grid/index.d.ts +9 -0
- package/dist/collection-grid/paged-field-input.d.ts +22 -0
- package/dist/collection-grid/paged-locale.d.ts +3 -0
- package/dist/collection-grid/paged-model.d.ts +25 -0
- package/dist/collection-grid/relation-editor.d.ts +14 -0
- package/dist/collection-grid/relation-options.d.ts +4 -0
- package/dist/collection-grid/selection.d.ts +4 -0
- package/dist/collection-interaction-state.d.ts +26 -0
- package/dist/collection-kanban-view.d.ts +2 -0
- package/dist/collection-live-changes.d.ts +8 -0
- package/dist/collection-relations.d.ts +20 -0
- package/dist/collection-sharing.d.ts +10 -0
- package/dist/collection-table-view.d.ts +2 -0
- package/dist/collection-transfer.d.ts +12 -0
- package/dist/collection-ui.d.ts +152 -0
- package/dist/collection-views/aggregate.d.ts +39 -0
- package/dist/collection-views/ai-fill-drawer.d.ts +28 -0
- package/dist/collection-views/ai-fill-model.d.ts +35 -0
- package/dist/collection-views/board.d.ts +2 -0
- package/dist/collection-views/calendar.d.ts +4 -0
- package/dist/collection-views/field-config.d.ts +16 -0
- package/dist/collection-views/filter-builder.d.ts +23 -0
- package/dist/collection-views/gallery.d.ts +2 -0
- package/dist/collection-views/icons.d.ts +43 -0
- package/dist/collection-views/menu.d.ts +16 -0
- package/dist/collection-views/model.d.ts +22 -0
- package/dist/collection-views/record-creator.d.ts +31 -0
- package/dist/collection-views/schema-editor.d.ts +38 -0
- package/dist/collection-views/schema-field-settings.d.ts +22 -0
- package/dist/collection-views/schema-styles.d.ts +4 -0
- package/dist/collection-views/shared.d.ts +110 -0
- package/dist/collection-views/table-nav.d.ts +52 -0
- package/dist/collection-views/toolbar-popover.d.ts +24 -0
- package/dist/collection-views/ui.d.ts +45 -0
- package/dist/collection-views/view-settings-sections.d.ts +39 -0
- package/dist/collection-views/view-tabs.d.ts +35 -0
- package/dist/collection-views.d.ts +35 -0
- package/dist/collection-views.js +10 -0
- package/dist/collection-workspace.d.ts +128 -0
- package/dist/collection-workspace.js +26 -0
- package/dist/define-component.d.ts +35 -0
- package/dist/document-collection.d.ts +30 -0
- package/dist/document-view.d.ts +1 -0
- package/dist/html-source-editor.css +84 -0
- package/dist/index.d.ts +121 -0
- package/dist/index.js +25 -0
- package/dist/live-renderer.d.ts +60 -0
- package/dist/paged-collection-grid.d.ts +95 -0
- package/dist/paged-collection-grid.js +25 -0
- package/dist/paged-collection-views.d.ts +15 -0
- package/dist/renderer.d.ts +20 -0
- package/package.json +69 -4
- package/README.md +0 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type CreationContent } from "@uibot/contracts";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export interface HtmlSourceSaveInput {
|
|
4
|
+
projectId: string;
|
|
5
|
+
artifactId: string;
|
|
6
|
+
expectedRevisionId: string;
|
|
7
|
+
source: CreationContent;
|
|
8
|
+
restoredFrom?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface HtmlSourceSaveResult {
|
|
11
|
+
revisionId: string;
|
|
12
|
+
number: number;
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
15
|
+
export interface HtmlSourcePreviewIdentity {
|
|
16
|
+
projectId: string;
|
|
17
|
+
artifactId: string;
|
|
18
|
+
revisionId: string;
|
|
19
|
+
previewId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface HtmlSourcePreviewResult {
|
|
22
|
+
shellUrl: string;
|
|
23
|
+
dispose?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export interface HtmlSourcePreviewBinding {
|
|
26
|
+
iframe: HTMLIFrameElement;
|
|
27
|
+
identity: HtmlSourcePreviewIdentity;
|
|
28
|
+
}
|
|
29
|
+
export interface HtmlSourceEditorProps {
|
|
30
|
+
projectId: string;
|
|
31
|
+
artifactId: string;
|
|
32
|
+
title: string;
|
|
33
|
+
revision: {
|
|
34
|
+
id: string;
|
|
35
|
+
number: number;
|
|
36
|
+
};
|
|
37
|
+
historicalRevision?: {
|
|
38
|
+
id: string;
|
|
39
|
+
number: number;
|
|
40
|
+
source: CreationContent;
|
|
41
|
+
};
|
|
42
|
+
source: CreationContent;
|
|
43
|
+
sandbox: string;
|
|
44
|
+
/** `split`: source and preview side by side; `preview` / `source`: one pane. Default stacks both. */
|
|
45
|
+
view?: "split" | "preview" | "source";
|
|
46
|
+
onDirty?: (dirty: boolean) => void;
|
|
47
|
+
onDraftChange?: (draft: string) => void;
|
|
48
|
+
saveRevision: (input: HtmlSourceSaveInput) => Promise<HtmlSourceSaveResult>;
|
|
49
|
+
openPreview: (input: {
|
|
50
|
+
title: string;
|
|
51
|
+
html: string;
|
|
52
|
+
}) => Promise<HtmlSourcePreviewResult>;
|
|
53
|
+
/** The host validates bridge messages with its own nonce and permissions. */
|
|
54
|
+
bindPreview?: (input: HtmlSourcePreviewBinding) => () => void;
|
|
55
|
+
renderSaveAction?: (action: {
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
onSave: () => void;
|
|
58
|
+
}) => ReactNode;
|
|
59
|
+
}
|
|
60
|
+
export declare function HtmlSourceEditor(props: HtmlSourceEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PagedCollectionActivityClient, PagedCollectionDescriptor, PagedCollectionUndoReceipt } from "@uibot/contracts";
|
|
2
|
+
interface Props {
|
|
3
|
+
descriptor: PagedCollectionDescriptor;
|
|
4
|
+
recordId: string;
|
|
5
|
+
client: PagedCollectionActivityClient;
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
onCommitted(receipt: PagedCollectionUndoReceipt): void;
|
|
8
|
+
registerRefresh?(refresh: (() => Promise<void>) | null): void;
|
|
9
|
+
}
|
|
10
|
+
/** Injected activity UI. Authorship and restoration are always decided by the host. */
|
|
11
|
+
export declare function CollectionRecordActivity({ descriptor, recordId, client, readOnly, onCommitted, registerRefresh, }: Props): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PagedCollectionAiRequest, PagedCollectionDescriptor, PagedCollectionRecord, PagedCollectionAiClient } from "@uibot/contracts";
|
|
2
|
+
type Selection = {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
model: string;
|
|
5
|
+
instruction: string;
|
|
6
|
+
recordIds: string[];
|
|
7
|
+
sourceFieldIds: string[];
|
|
8
|
+
targetFieldIds: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare function reviewAiRequest(descriptor: PagedCollectionDescriptor, rows: PagedCollectionRecord[], input: Selection): PagedCollectionAiRequest;
|
|
11
|
+
export declare function CollectionAiControls({ descriptor, records, client, onApplied, }: {
|
|
12
|
+
descriptor: PagedCollectionDescriptor;
|
|
13
|
+
records: PagedCollectionRecord[];
|
|
14
|
+
client: PagedCollectionAiClient;
|
|
15
|
+
onApplied?(): Promise<void> | void;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CompiledCollectionApplication, PagedCollectionApplicationClient } from "@uibot/contracts";
|
|
2
|
+
export declare function CollectionApplicationPreview({ application, client, }: {
|
|
3
|
+
application: CompiledCollectionApplication;
|
|
4
|
+
client: Pick<PagedCollectionApplicationClient, "rows">;
|
|
5
|
+
}): import("react").JSX.Element;
|