@declarion/react 0.1.79 → 0.1.81

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.
Files changed (64) hide show
  1. package/dist-lib/DraggableChildrenTable-XKJWMb1S.js +281 -0
  2. package/dist-lib/DraggableChildrenTable-XKJWMb1S.js.map +1 -0
  3. package/dist-lib/Grid-By_Ere-W.js +405 -0
  4. package/dist-lib/Grid-By_Ere-W.js.map +1 -0
  5. package/dist-lib/{JsonEditor-CWueGEgA.js → JsonEditor-CexL5HXN.js} +17 -15
  6. package/dist-lib/JsonEditor-CexL5HXN.js.map +1 -0
  7. package/dist-lib/MarkdownRenderer-Dl3GDuY9.js +72 -0
  8. package/dist-lib/MarkdownRenderer-Dl3GDuY9.js.map +1 -0
  9. package/dist-lib/api/events.d.ts +5 -0
  10. package/dist-lib/components/detail-layout/index.d.ts +0 -1
  11. package/dist-lib/components/fields/BoolField.d.ts +1 -1
  12. package/dist-lib/components/fields/EmailField.d.ts +1 -1
  13. package/dist-lib/components/fields/EnumField.d.ts +1 -1
  14. package/dist-lib/components/fields/IntArrayField.d.ts +1 -1
  15. package/dist-lib/components/fields/JsonEditor.d.ts +2 -1
  16. package/dist-lib/components/fields/JsonField.d.ts +1 -1
  17. package/dist-lib/components/fields/MultilangField.d.ts +1 -1
  18. package/dist-lib/components/fields/MultilangTextField.d.ts +1 -1
  19. package/dist-lib/components/fields/NumberField.d.ts +1 -1
  20. package/dist-lib/components/fields/PasswordField.d.ts +1 -1
  21. package/dist-lib/components/fields/PhoneField.d.ts +1 -1
  22. package/dist-lib/components/fields/RefField.d.ts +1 -1
  23. package/dist-lib/components/fields/SecretField.d.ts +1 -1
  24. package/dist-lib/components/fields/StringArrayField.d.ts +1 -1
  25. package/dist-lib/components/fields/StringField.d.ts +1 -1
  26. package/dist-lib/components/fields/TextField.d.ts +1 -1
  27. package/dist-lib/components/fields/TimestampField.d.ts +1 -1
  28. package/dist-lib/components/fields/UrlField.d.ts +1 -1
  29. package/dist-lib/components/fields/cells/factories/markdownToPlainText.d.ts +7 -14
  30. package/dist-lib/components/fields/index.d.ts +2 -0
  31. package/dist-lib/components/file-widgets/GridLazy.d.ts +2 -0
  32. package/dist-lib/components/file-widgets/host.d.ts +2 -0
  33. package/dist-lib/components/file-widgets/index.d.ts +1 -1
  34. package/dist-lib/components/file-widgets/types.d.ts +1 -0
  35. package/dist-lib/components/pages/list/DataCell.d.ts +7 -0
  36. package/dist-lib/components/pages/list/ListBulkBar.d.ts +27 -0
  37. package/dist-lib/components/pages/list/ListHeader.d.ts +23 -0
  38. package/dist-lib/components/pages/list/RowActionsCell.d.ts +38 -0
  39. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +6 -0
  40. package/dist-lib/components/pages/list/columns.d.ts +42 -0
  41. package/dist-lib/components/pages/list/filter-meta.d.ts +9 -0
  42. package/dist-lib/components/primitives/BoolToggle.d.ts +3 -1
  43. package/dist-lib/components/primitives/Fields.d.ts +12 -3
  44. package/dist-lib/components/shared/Markdown.d.ts +3 -0
  45. package/dist-lib/components/shared/MarkdownRenderer.d.ts +11 -0
  46. package/dist-lib/declarion-react.css +1 -1
  47. package/dist-lib/hooks/useAllEntityData.d.ts +16 -0
  48. package/dist-lib/index.d.ts +1 -0
  49. package/dist-lib/index.js +12549 -19381
  50. package/dist-lib/index.js.map +1 -1
  51. package/dist-lib/lib/action-dispatch.d.ts +7 -0
  52. package/dist-lib/lib/capabilityPrefetch.d.ts +6 -0
  53. package/dist-lib/rich-text-CaQ6-8Gx.js +48 -0
  54. package/dist-lib/rich-text-CaQ6-8Gx.js.map +1 -0
  55. package/dist-lib/stores/realtime.d.ts +9 -0
  56. package/dist-lib/stores/tabs.d.ts +1 -0
  57. package/dist-lib/types/schema.d.ts +11 -1
  58. package/dist-lib/useUserLocale-CSS6fwi8.js +5830 -0
  59. package/dist-lib/useUserLocale-CSS6fwi8.js.map +1 -0
  60. package/dist-lib/value-DgzPSFZM.js +524 -0
  61. package/dist-lib/value-DgzPSFZM.js.map +1 -0
  62. package/package.json +3 -2
  63. package/dist-lib/JsonEditor-CWueGEgA.js.map +0 -1
  64. package/dist-lib/components/shared/RowActionItem.d.ts +0 -11
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function EmailField({ value, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EmailField({ field, fieldName, value, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function EnumField({ field, value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function EnumField({ field, value, mode, onChange, fieldId, labelId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function IntArrayField({ value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function IntArrayField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ interface JsonEditorProps {
4
4
  onChange?: (value: unknown) => void;
5
5
  readOnly?: boolean;
6
6
  schema?: Record<string, unknown>;
7
+ id?: string;
7
8
  }
8
- export declare function JsonEditor({ value, onChange, readOnly }: JsonEditorProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function JsonEditor({ value, onChange, readOnly, id }: JsonEditorProps): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function JsonField({ value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function JsonField({ value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function MultilangField({ value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MultilangField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function MultilangTextField({ value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MultilangTextField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function NumberField({ field, fieldName, value, mode, onChange, record }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function NumberField({ field, fieldName, value, mode, onChange, record, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function PasswordField({ value, mode, onChange, record }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function PasswordField({ field, fieldName, value, mode, onChange, record, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function PhoneField({ value, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function PhoneField({ field, fieldName, value, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function RefField({ field, value, mode, onChange, refs }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function RefField({ field, value, mode, onChange, refs, fieldId, labelId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function SecretField({ value, mode, onChange, record }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SecretField({ field, fieldName, value, mode, onChange, record, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function StringArrayField({ value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function StringArrayField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function StringField({ field, value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function StringField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function TextField({ field, value, mode, onChange, fill, compact }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TextField({ field, fieldName, value, mode, onChange, fill, compact, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function TimestampField({ field, value, mode, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimestampField({ field, fieldName, value, mode, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { FieldRendererProps } from "./index";
2
- export declare function UrlField({ value, onChange }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function UrlField({ field, fieldName, value, onChange, fieldId }: FieldRendererProps): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,9 @@
1
+ export interface MarkdownPreview {
2
+ text: string;
3
+ isPlain: boolean;
4
+ }
1
5
  /**
2
- * Convert markdown source to a single-line plain-text preview. Whitespace is
3
- * collapsed; block boundaries (paragraphs, list items, table cells) become
4
- * single spaces. No length cap — server-side `list_preview` already bounds
5
- * the wire payload, and the calling cell's CSS ellipsis bounds the visual.
6
+ * Convert markdown source to a single-line plain-text preview plus an
7
+ * `isPlain` signal. One synchronous pass, no parser.
6
8
  */
7
- export declare function markdownToPlainText(src: string): string;
8
- /**
9
- * Returns true when the parsed AST contains ONLY plain types
10
- * (root / paragraph / text / break). In that case the popover would show a
11
- * format that is visually equivalent to the in-cell span, so callers should
12
- * skip the HoverCard and use a native title tooltip alone — no popover
13
- * noise on prose that just happens to contain parens, asterisks-as-stars,
14
- * or other characters that look markdown-ish but parse as text.
15
- */
16
- export declare function looksLikePlainText(src: string): boolean;
9
+ export declare function markdownPreview(src: string): MarkdownPreview;
@@ -8,6 +8,8 @@ export interface FieldRendererProps {
8
8
  value: unknown;
9
9
  mode: "display" | "edit";
10
10
  onChange?: (value: unknown) => void;
11
+ fieldId?: string;
12
+ labelId?: string;
11
13
  record?: Record<string, unknown>;
12
14
  refs?: RefsMap;
13
15
  fill?: boolean;
@@ -0,0 +1,2 @@
1
+ import type { FileWidgetProps } from "./types";
2
+ export declare function GridLazy(props: FileWidgetProps): import("react/jsx-runtime").JSX.Element;
@@ -21,4 +21,6 @@ export declare function renderSchemaField(props: {
21
21
  screens?: Record<string, Screen>;
22
22
  navigate?: (href: string) => void;
23
23
  locale: string;
24
+ fieldId?: string;
25
+ labelId?: string;
24
26
  }): ReactNode;
@@ -1,7 +1,7 @@
1
1
  export { SquareImage } from "./SquareImage";
2
2
  export { CircleImage } from "./CircleImage";
3
3
  export { WideBanner } from "./WideBanner";
4
- export { Grid } from "./Grid";
4
+ export { GridLazy as Grid } from "./GridLazy";
5
5
  export { DocumentCard } from "./DocumentCard";
6
6
  export { FileList } from "./FileList";
7
7
  export { LabeledSlots } from "./LabeledSlots";
@@ -11,5 +11,6 @@ export interface FileWidgetProps {
11
11
  alt?: string;
12
12
  uploadFieldCode?: string;
13
13
  uploadSlotCode?: string;
14
+ fieldId?: string;
14
15
  }
15
16
  export type FileWidget = React.ComponentType<FileWidgetProps>;
@@ -0,0 +1,7 @@
1
+ import type { Cell } from "@tanstack/react-table";
2
+ type RowData = Record<string, unknown>;
3
+ export declare function DataCell({ cell, isRowSelected, }: {
4
+ cell: Cell<RowData, unknown>;
5
+ isRowSelected: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,27 @@
1
+ import { type ResolvedActionLayoutNode } from "../../../lib/actions";
2
+ import { type WidgetContext } from "../../../components/shared/ResponsiveActionBar";
3
+ import type { Action } from "../../../types/schema";
4
+ export interface ListBulkBarProps {
5
+ selectedIds: string[];
6
+ /** Actions whose visibility includes `list_floatbar` - the bulk pill slot.
7
+ * Reason: the parent owns slot filtering via `getScreenActions(...)`;
8
+ * passing `toolbarActions` (list_toolbar slice) here silently dropped
9
+ * __delete (which is list_floatbar/list_row/detail, NOT list_toolbar)
10
+ * and rendered an empty pill. */
11
+ floatbarActions: {
12
+ code: string;
13
+ action: Action;
14
+ }[];
15
+ /** Server-emitted action_layout from screen (highest precedence per plan §3.9). */
16
+ screenActionLayout?: ResolvedActionLayoutNode[];
17
+ /** Server-emitted action_layout from entity. Used when screen has none. */
18
+ entityActionLayout?: ResolvedActionLayoutNode[];
19
+ data: Record<string, unknown>[];
20
+ rowKey: (row: Record<string, unknown>) => string;
21
+ entityCode?: string;
22
+ onClear: () => void;
23
+ onActionSuccess: () => void;
24
+ /** Dispatch surface threaded into ResponsiveActionBar (plan §8 Task 10). */
25
+ widgetContext: WidgetContext;
26
+ }
27
+ export declare function ListBulkBar({ selectedIds, floatbarActions, screenActionLayout, entityActionLayout, data, rowKey, entityCode, onClear, onActionSuccess, widgetContext, }: ListBulkBarProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,23 @@
1
+ import { type ResolvedActionLayoutNode } from "../../../lib/actions";
2
+ import { type WidgetContext } from "../../../components/shared/ResponsiveActionBar";
3
+ import type { Action } from "../../../types/schema";
4
+ export interface ListHeaderProps {
5
+ title: string;
6
+ total: number | undefined;
7
+ loaded: number;
8
+ toolbarActions: {
9
+ code: string;
10
+ action: Action;
11
+ }[];
12
+ /** Server-emitted action_layout from screen (highest precedence per plan §3.9). */
13
+ screenActionLayout?: ResolvedActionLayoutNode[];
14
+ /** Server-emitted action_layout from entity. Used when screen has none. */
15
+ entityActionLayout?: ResolvedActionLayoutNode[];
16
+ selectedIds: string[];
17
+ data: Record<string, unknown>[];
18
+ rowKey: (row: Record<string, unknown>) => string;
19
+ onActionSuccess: () => void;
20
+ /** Dispatch surface threaded into ResponsiveActionBar (plan §8 Task 10). */
21
+ widgetContext: WidgetContext;
22
+ }
23
+ export declare function ListHeader({ title, total, loaded, toolbarActions, screenActionLayout, entityActionLayout, selectedIds, data, rowKey, onActionSuccess, widgetContext, }: ListHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import type { Action, Entity, Screen } from "../../../types/schema";
2
+ export interface RowActionsCellProps {
3
+ row: Record<string, unknown>;
4
+ rowId: string;
5
+ /** detail_screen for row-click navigation. The component reads
6
+ * screen.action_layout via cast to ResolvedActionLayoutNode[] (server emits
7
+ * the resolved wire shape per plan §8 even though the raw Screen TS type
8
+ * declares ActionLayoutNode[] for authoring). */
9
+ screen: {
10
+ detail_screen?: string;
11
+ };
12
+ /** Full Screen object used to build the row-scoped WidgetContext that the
13
+ * ResponsiveActionBar dispatcher passes to href/widget action modes. */
14
+ fullScreen: Screen;
15
+ entity: Entity;
16
+ entityCode?: string;
17
+ /** Gate flags that determine whether the kebab column renders at all.
18
+ * After the unified-toolbar Phase 1 cleanup the kebab's Edit/Delete
19
+ * affordances come from the __edit / __delete platform-default actions
20
+ * (injected server-side at load), so these flags now only control
21
+ * column visibility - the legacy trailing-item content they once
22
+ * feed has been removed. */
23
+ hasDefaultEditAction: boolean;
24
+ hasDefaultDeleteAction: boolean;
25
+ rowActions: {
26
+ code: string;
27
+ action: Action;
28
+ }[];
29
+ tabNavigate: (href: string, opts?: {
30
+ title?: string;
31
+ icon?: string;
32
+ search?: string;
33
+ }) => void;
34
+ onPeek?: () => void;
35
+ /** Active UI locale, forwarded into the row-scoped WidgetContext. */
36
+ locale: string;
37
+ }
38
+ export declare function RowActionsCell({ row, rowId, screen, fullScreen, entity, entityCode, hasDefaultEditAction, hasDefaultDeleteAction, rowActions, tabNavigate, onPeek, locale, }: RowActionsCellProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare function SaveViewDialog({ open, pending, onClose, onSave, }: {
2
+ open: boolean;
3
+ pending: boolean;
4
+ onClose: () => void;
5
+ onSave: (name: string) => Promise<void>;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,42 @@
1
+ import { type RefObject } from "react";
2
+ import type { ColumnDef } from "@tanstack/react-table";
3
+ import { type RefsMap } from "../../../components/fields/cells/registry";
4
+ import type { Action, Entity, Screen } from "../../../types/schema";
5
+ type RowData = Record<string, unknown>;
6
+ type SchemaMaps = {
7
+ entities?: Record<string, Entity>;
8
+ screens?: Record<string, Screen>;
9
+ };
10
+ export interface BuildListColumnsArgs {
11
+ /** Visible column keys from URL state (not the full screen.columns pool). */
12
+ visibleCols: string[];
13
+ entity: Entity | undefined;
14
+ screen: Screen | undefined;
15
+ schema: SchemaMaps | undefined;
16
+ entityCode: string | undefined;
17
+ /** list_row-slot actions resolved by getScreenActions. */
18
+ rowActions: {
19
+ code: string;
20
+ action: Action;
21
+ }[];
22
+ hasBatchActions: boolean;
23
+ /** True when the screen explicitly binds row_actions (controls full menu). */
24
+ hasExplicitRowActions: boolean;
25
+ canUpdate: boolean;
26
+ canDelete: boolean;
27
+ peekEnabled: boolean;
28
+ userLocale: string;
29
+ tabNavigate: (href: string, opts?: {
30
+ title?: string;
31
+ icon?: string;
32
+ search?: string;
33
+ }) => void;
34
+ /** Latest $refs payload, read through a ref so column identity is stable
35
+ * across data fetches (see SmartListPageInner refsRef comment). */
36
+ refsRef: RefObject<RefsMap | undefined>;
37
+ /** Row-selection key, used as the stable rowId for per-row action dispatch. */
38
+ rowSelectionKey: (entity: Entity, row: RowData) => string;
39
+ setPeekRow: (row: RowData) => void;
40
+ }
41
+ export declare function buildListColumns(args: BuildListColumnsArgs): ColumnDef<RowData>[];
42
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Entity } from "../../../types/schema";
2
+ import type { FilterFieldMeta } from "../../../components/filters/FilterDrawer";
3
+ import type { FilterOp } from "../../../lib/filters";
4
+ /** Build FilterFieldMeta array from screen + entity for the FilterDrawer. */
5
+ export declare function buildFilterFieldMeta(screen: {
6
+ filters?: string[];
7
+ } | undefined, entity: Pick<Entity, "fields" | "status_groups" | "properties"> | undefined, entities?: Record<string, Entity>): FilterFieldMeta[];
8
+ /** Map field type to available filter operators. */
9
+ export declare function fieldTypeToOperators(type: string): FilterOp[];
@@ -1,5 +1,7 @@
1
1
  export type BoolToggleProps = {
2
2
  value?: boolean;
3
3
  onChange?: (v: boolean) => void;
4
+ id?: string;
5
+ ariaLabelledby?: string;
4
6
  };
5
- export declare function BoolToggle({ value, onChange }: BoolToggleProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function BoolToggle({ value, onChange, id, ariaLabelledby }: BoolToggleProps): import("react/jsx-runtime").JSX.Element;
@@ -19,8 +19,11 @@ export type TextAreaProps = {
19
19
  placeholder?: string;
20
20
  rows?: number;
21
21
  fill?: boolean;
22
+ id?: string;
23
+ name?: string;
24
+ ariaRequired?: boolean;
22
25
  };
23
- export declare function TextArea({ value, onChange, placeholder, rows, fill }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function TextArea({ value, onChange, placeholder, rows, fill, id, name, ariaRequired }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
24
27
  export type SelectOption = {
25
28
  value: string;
26
29
  label: ReactNode;
@@ -42,8 +45,11 @@ export type PasswordInputProps = {
42
45
  onChange?: (v: string) => void;
43
46
  placeholder?: string;
44
47
  showStrength?: boolean;
48
+ id?: string;
49
+ name?: string;
50
+ ariaRequired?: boolean;
45
51
  };
46
- export declare function PasswordInput({ value, onChange, placeholder, showStrength, }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
52
+ export declare function PasswordInput({ value, onChange, placeholder, showStrength, id, name, ariaRequired, }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
47
53
  export type TagsInputProps = {
48
54
  value?: string[];
49
55
  onChange: (v: string[]) => void;
@@ -63,8 +69,11 @@ export type RefFieldProps = {
63
69
  entity?: string;
64
70
  onChange?: (v: string) => void;
65
71
  items?: RefFieldItem[];
72
+ id?: string;
73
+ ariaLabelledby?: string;
74
+ ariaRequired?: boolean;
66
75
  };
67
- export declare function RefField({ value, entity, onChange, items }: RefFieldProps): import("react/jsx-runtime").JSX.Element;
76
+ export declare function RefField({ value, entity, onChange, items, id, ariaLabelledby, ariaRequired }: RefFieldProps): import("react/jsx-runtime").JSX.Element;
68
77
  export type ViewFieldProps = {
69
78
  label: ReactNode;
70
79
  children?: ReactNode;
@@ -0,0 +1,3 @@
1
+ import type { MarkdownRendererProps } from "./MarkdownRenderer";
2
+ export declare function Markdown(props: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;
3
+ export type { MarkdownRendererProps } from "./MarkdownRenderer";
@@ -0,0 +1,11 @@
1
+ import { type Components } from "react-markdown";
2
+ import type { HydratedFile } from "../../types/files";
3
+ export interface MarkdownRendererProps {
4
+ content: string;
5
+ plugins?: "breaks" | "gfm";
6
+ files?: Record<string, HydratedFile>;
7
+ components?: Components;
8
+ skipHtml?: boolean;
9
+ prose?: boolean;
10
+ }
11
+ export declare function MarkdownRenderer({ content, plugins, files, components, skipHtml, prose, }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;