@constructive-io/sheets 0.3.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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +188 -0
  3. package/dist/advanced.cjs +5477 -0
  4. package/dist/advanced.cjs.map +1 -0
  5. package/dist/advanced.d.cts +83 -0
  6. package/dist/advanced.d.ts +83 -0
  7. package/dist/advanced.js +34 -0
  8. package/dist/advanced.js.map +1 -0
  9. package/dist/auth.cjs +1396 -0
  10. package/dist/auth.cjs.map +1 -0
  11. package/dist/auth.d.cts +60 -0
  12. package/dist/auth.d.ts +60 -0
  13. package/dist/auth.js +19 -0
  14. package/dist/auth.js.map +1 -0
  15. package/dist/chunk-4PGPVMZB.js +670 -0
  16. package/dist/chunk-4PGPVMZB.js.map +1 -0
  17. package/dist/chunk-FNVHSOQQ.js +1314 -0
  18. package/dist/chunk-FNVHSOQQ.js.map +1 -0
  19. package/dist/chunk-GGECS2BP.js +17 -0
  20. package/dist/chunk-GGECS2BP.js.map +1 -0
  21. package/dist/chunk-GLVZSPV2.js +43 -0
  22. package/dist/chunk-GLVZSPV2.js.map +1 -0
  23. package/dist/chunk-H4JJTMP5.js +160 -0
  24. package/dist/chunk-H4JJTMP5.js.map +1 -0
  25. package/dist/chunk-ODUBS2NL.js +100 -0
  26. package/dist/chunk-ODUBS2NL.js.map +1 -0
  27. package/dist/chunk-PZL2BCWF.js +168 -0
  28. package/dist/chunk-PZL2BCWF.js.map +1 -0
  29. package/dist/chunk-TU7ATZ4X.js +4494 -0
  30. package/dist/chunk-TU7ATZ4X.js.map +1 -0
  31. package/dist/chunk-X7DHTSOX.js +21 -0
  32. package/dist/chunk-X7DHTSOX.js.map +1 -0
  33. package/dist/chunk-YDQQA46V.js +13 -0
  34. package/dist/chunk-YDQQA46V.js.map +1 -0
  35. package/dist/date-editor-CXKKGNL6.js +361 -0
  36. package/dist/date-editor-CXKKGNL6.js.map +1 -0
  37. package/dist/editor-props-M6Dh0P9f.d.cts +245 -0
  38. package/dist/editor-props-M6Dh0P9f.d.ts +245 -0
  39. package/dist/index.cjs +15861 -0
  40. package/dist/index.cjs.map +1 -0
  41. package/dist/index.d.cts +1650 -0
  42. package/dist/index.d.ts +1650 -0
  43. package/dist/index.js +8470 -0
  44. package/dist/index.js.map +1 -0
  45. package/dist/map-picker-VTKDS6CM.js +290 -0
  46. package/dist/map-picker-VTKDS6CM.js.map +1 -0
  47. package/dist/sheets-context-CojEFlaY.d.cts +214 -0
  48. package/dist/sheets-context-Da55TTR9.d.ts +214 -0
  49. package/dist/testing.cjs +1113 -0
  50. package/dist/testing.cjs.map +1 -0
  51. package/dist/testing.d.cts +45 -0
  52. package/dist/testing.d.ts +45 -0
  53. package/dist/testing.js +269 -0
  54. package/dist/testing.js.map +1 -0
  55. package/package.json +144 -0
@@ -0,0 +1,245 @@
1
+ import { ComponentType } from 'react';
2
+ import { MetaQuery } from '@constructive-io/data';
3
+
4
+ type CellType = 'text' | 'textarea' | 'email' | 'url' | 'phone' | 'citext' | 'bpchar' | 'number' | 'integer' | 'smallint' | 'decimal' | 'currency' | 'percentage' | 'date' | 'datetime' | 'time' | 'timestamptz' | 'interval' | 'boolean' | 'toggle' | 'bit' | 'json' | 'jsonb' | 'array' | 'text-array' | 'uuid-array' | 'number-array' | 'integer-array' | 'date-array' | 'geometry' | 'geometry-point' | 'geometry-collection' | 'inet' | 'image' | 'file' | 'video' | 'audio' | 'upload' | 'uuid' | 'color' | 'rating' | 'tags' | 'tsvector' | 'origin' | 'relation' | 'unknown';
5
+ type CellCategory = 'text' | 'numeric' | 'date' | 'boolean' | 'structured' | 'geometric' | 'network' | 'media' | 'special' | 'other';
6
+ type CellValue = string | number | boolean | Date | null | undefined | Array<any> | Record<string, any>;
7
+ interface FieldMetadata$1 {
8
+ name: string;
9
+ gqlType: string;
10
+ isArray: boolean;
11
+ modifier?: string | number | null;
12
+ pgAlias?: string | null;
13
+ pgType?: string | null;
14
+ subtype?: string | null;
15
+ typmod?: number | null;
16
+ }
17
+ interface ColumnSchema {
18
+ id: string;
19
+ name: string;
20
+ type: CellType;
21
+ nullable: boolean;
22
+ metadata?: {
23
+ label?: string;
24
+ description?: string;
25
+ hidden?: boolean;
26
+ readonly?: boolean;
27
+ sortable?: boolean;
28
+ filterable?: boolean;
29
+ isArray?: boolean;
30
+ placeholder?: string;
31
+ maxLength?: number;
32
+ minLength?: number;
33
+ pattern?: string;
34
+ rows?: number;
35
+ required?: boolean;
36
+ };
37
+ }
38
+ interface TableSchema {
39
+ id: string;
40
+ name: string;
41
+ columns: ColumnSchema[];
42
+ metadata?: {
43
+ label?: string;
44
+ description?: string;
45
+ primaryKey?: string[];
46
+ indexes?: Array<{
47
+ columns: string[];
48
+ unique?: boolean;
49
+ }>;
50
+ };
51
+ }
52
+ interface RowData {
53
+ id: string;
54
+ [columnId: string]: CellValue;
55
+ }
56
+
57
+ /**
58
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
59
+ */
60
+ interface BaseCellProps {
61
+ value: CellValue;
62
+ column: ColumnSchema;
63
+ rowId: string;
64
+ isEditing?: boolean;
65
+ onChange?: (value: CellValue) => void;
66
+ onStartEdit?: () => void;
67
+ onSave?: () => void;
68
+ onCancel?: () => void;
69
+ className?: string;
70
+ disabled?: boolean;
71
+ }
72
+ /**
73
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
74
+ */
75
+ type CellRenderer = ComponentType<BaseCellProps>;
76
+ /**
77
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
78
+ */
79
+ interface CellRegistryEntry {
80
+ type: CellType;
81
+ component: CellRenderer;
82
+ editComponent?: CellRenderer;
83
+ validator?: (value: CellValue) => boolean;
84
+ formatter?: (value: CellValue) => string;
85
+ parser?: (input: string) => CellValue;
86
+ defaultValue?: () => CellValue;
87
+ match?: (metadata: {
88
+ gqlType: string;
89
+ isArray: boolean;
90
+ pgAlias?: string | null;
91
+ pgType?: string | null;
92
+ subtype?: string | null;
93
+ fieldName?: string;
94
+ value?: any;
95
+ }) => boolean;
96
+ metadata?: {
97
+ name: string;
98
+ description: string;
99
+ category: CellCategory;
100
+ supportsInlineEdit?: boolean;
101
+ supportsSort?: boolean;
102
+ supportsFilter?: boolean;
103
+ width?: number;
104
+ };
105
+ }
106
+ /**
107
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
108
+ */
109
+ interface CellPlugin {
110
+ name: string;
111
+ version: string;
112
+ cells: CellRegistryEntry[];
113
+ install?: () => void;
114
+ uninstall?: () => void;
115
+ }
116
+
117
+ interface FieldMetadata {
118
+ name: string;
119
+ type?: {
120
+ gqlType: string;
121
+ pgType?: string | null;
122
+ pgAlias?: string | null;
123
+ isArray?: boolean;
124
+ subtype?: string | null;
125
+ };
126
+ }
127
+ interface CellTypeResolution {
128
+ cellType: string;
129
+ canEdit: boolean;
130
+ canActivate: boolean;
131
+ activationBehavior: 'single-click' | 'double-click';
132
+ isReadonly: boolean;
133
+ }
134
+ declare function resolveCellType(fieldName: string, fieldMeta?: FieldMetadata): CellTypeResolution;
135
+ declare function isImageField(fieldMeta?: FieldMetadata, fieldName?: string): boolean;
136
+
137
+ type RelationKind = 'belongsTo' | 'hasOne' | 'hasMany' | 'manyToMany';
138
+ interface RelationInfo {
139
+ kind: RelationKind;
140
+ relatedTable?: string;
141
+ displayCandidates: string[];
142
+ relationField?: string;
143
+ foreignKeyField?: string;
144
+ junctionTable?: string;
145
+ junctionLeftKeyField?: string;
146
+ junctionRightKeyField?: string;
147
+ displayName?: string;
148
+ }
149
+ interface RelationInfoSlice {
150
+ relationInfoCache: Record<string, Record<string, RelationInfo>>;
151
+ relationInfoMapCache: Record<string, Map<string, RelationInfo>>;
152
+ setRelationInfoForTable: (tableName: string, info: Record<string, RelationInfo>) => void;
153
+ getRelationInfoForTable: (tableName: string) => Record<string, RelationInfo> | undefined;
154
+ getRelationInfoMapForTable: (tableName: string) => Map<string, RelationInfo> | undefined;
155
+ rebuildRelationInfo: (tableName: string, meta: MetaQuery | undefined) => void;
156
+ ensureRelationInfo: (tableName: string, meta: MetaQuery | undefined) => Record<string, RelationInfo>;
157
+ clearRelationInfoCache: () => void;
158
+ }
159
+ declare function buildRelationInfoFromMeta(tableName: string, meta: MetaQuery | undefined): Record<string, RelationInfo> | null;
160
+
161
+ interface RelationCellOptions {
162
+ relationChipLimit?: number;
163
+ relationLabelMaxLength?: number;
164
+ }
165
+ interface CellCreationMetadata {
166
+ cellType: string;
167
+ fieldName: string;
168
+ fieldMeta?: FieldMetadata;
169
+ relationInfo?: RelationInfo;
170
+ relationOptions?: RelationCellOptions;
171
+ canEdit: boolean;
172
+ isReadonly: boolean;
173
+ activationBehavior: 'single-click' | 'double-click';
174
+ }
175
+
176
+ /**
177
+ * Neutral RENDER kinds — equal to the frozen `DisplayKind` union. `loading` and
178
+ * `draft-action` originate from grid-internal state, not the `CellType` system.
179
+ */
180
+ type SheetsCellKind = 'text' | 'number' | 'boolean' | 'badges' | 'uri' | 'image' | 'geometry' | 'relation' | 'loading' | 'draft-action' | 'custom';
181
+ /** Per-cell visual hint, open-ish so later phases can enrich it. */
182
+ interface SheetsCellStyleHint {
183
+ draft?: boolean;
184
+ faded?: boolean;
185
+ /** This draft cell has a field-level validation error (draftMeta.errors[colKey]). */
186
+ error?: boolean;
187
+ [extra: string]: unknown;
188
+ }
189
+ /**
190
+ * The factory output + render payload. A SINGLE interface with a `kind` field
191
+ * (not a per-kind discriminated union): text/number/boolean share this payload
192
+ * and do not diverge yet.
193
+ *
194
+ * TODO(phases 2+): enrich `meta` per kind (badges/uri/image/geometry/relation)
195
+ * once their factories and views are ported.
196
+ */
197
+ interface SheetsCell {
198
+ kind: SheetsCellKind;
199
+ data: unknown;
200
+ displayData: string;
201
+ readonly: boolean;
202
+ styleHint?: SheetsCellStyleHint;
203
+ meta?: {
204
+ cellType?: CellType;
205
+ [extra: string]: unknown;
206
+ };
207
+ }
208
+
209
+ interface EditorProps {
210
+ value: unknown;
211
+ cell: SheetsCell;
212
+ colKey: string;
213
+ rowId: string;
214
+ rowIndex: number;
215
+ tableName?: string;
216
+ fieldMeta?: FieldMetadata;
217
+ relationInfo?: RelationInfo;
218
+ /**
219
+ * Type-to-edit seed: when the overlay was opened by typing a printable char on the
220
+ * active cell, this carries that char. Value editors (text/number) initialize their
221
+ * input to it in OVERWRITE mode (replacing the cell value); other editors ignore it.
222
+ */
223
+ initialText?: string;
224
+ /** Commit a value down the glide value-commit path (onCellEdited -> editCell). */
225
+ onCommit: (next: unknown) => void;
226
+ /**
227
+ * Self-committing editors (relation/image): commit a MULTI-field patch after an
228
+ * out-of-band server mutation, routed through the existing optimistic-update path
229
+ * (handleEditorSaveComplete). Value editors use {@link onCommit} instead.
230
+ */
231
+ onCommitPatch?: (patch: Record<string, unknown>) => void;
232
+ /** Dismiss the overlay with no write. */
233
+ onCancel: () => void;
234
+ /** Self-committing editors: submit a client-side draft row, resolving to the server row. */
235
+ onSubmitDraftRow?: (draftRowId: string) => Promise<unknown>;
236
+ /** Self-committing editors: invalidate cached data after an out-of-band mutation. */
237
+ onInvalidateData?: () => void;
238
+ /** Geometry pre-computed by the OverlayManager (reused `computeOverlayGeometry`). */
239
+ overlay: {
240
+ maxHeight: number;
241
+ flipped: boolean;
242
+ };
243
+ }
244
+
245
+ export { type BaseCellProps as B, type CellCreationMetadata as C, type EditorProps as E, type FieldMetadata as F, type RelationInfo as R, type SheetsCell as S, type TableSchema as T, type SheetsCellKind as a, type CellType as b, type CellCategory as c, type RelationInfoSlice as d, type CellRegistryEntry as e, type CellRenderer as f, type CellPlugin as g, type ColumnSchema as h, type RelationKind as i, buildRelationInfoFromMeta as j, isImageField as k, type CellValue as l, type FieldMetadata$1 as m, type RowData as n, resolveCellType as r };
@@ -0,0 +1,245 @@
1
+ import { ComponentType } from 'react';
2
+ import { MetaQuery } from '@constructive-io/data';
3
+
4
+ type CellType = 'text' | 'textarea' | 'email' | 'url' | 'phone' | 'citext' | 'bpchar' | 'number' | 'integer' | 'smallint' | 'decimal' | 'currency' | 'percentage' | 'date' | 'datetime' | 'time' | 'timestamptz' | 'interval' | 'boolean' | 'toggle' | 'bit' | 'json' | 'jsonb' | 'array' | 'text-array' | 'uuid-array' | 'number-array' | 'integer-array' | 'date-array' | 'geometry' | 'geometry-point' | 'geometry-collection' | 'inet' | 'image' | 'file' | 'video' | 'audio' | 'upload' | 'uuid' | 'color' | 'rating' | 'tags' | 'tsvector' | 'origin' | 'relation' | 'unknown';
5
+ type CellCategory = 'text' | 'numeric' | 'date' | 'boolean' | 'structured' | 'geometric' | 'network' | 'media' | 'special' | 'other';
6
+ type CellValue = string | number | boolean | Date | null | undefined | Array<any> | Record<string, any>;
7
+ interface FieldMetadata$1 {
8
+ name: string;
9
+ gqlType: string;
10
+ isArray: boolean;
11
+ modifier?: string | number | null;
12
+ pgAlias?: string | null;
13
+ pgType?: string | null;
14
+ subtype?: string | null;
15
+ typmod?: number | null;
16
+ }
17
+ interface ColumnSchema {
18
+ id: string;
19
+ name: string;
20
+ type: CellType;
21
+ nullable: boolean;
22
+ metadata?: {
23
+ label?: string;
24
+ description?: string;
25
+ hidden?: boolean;
26
+ readonly?: boolean;
27
+ sortable?: boolean;
28
+ filterable?: boolean;
29
+ isArray?: boolean;
30
+ placeholder?: string;
31
+ maxLength?: number;
32
+ minLength?: number;
33
+ pattern?: string;
34
+ rows?: number;
35
+ required?: boolean;
36
+ };
37
+ }
38
+ interface TableSchema {
39
+ id: string;
40
+ name: string;
41
+ columns: ColumnSchema[];
42
+ metadata?: {
43
+ label?: string;
44
+ description?: string;
45
+ primaryKey?: string[];
46
+ indexes?: Array<{
47
+ columns: string[];
48
+ unique?: boolean;
49
+ }>;
50
+ };
51
+ }
52
+ interface RowData {
53
+ id: string;
54
+ [columnId: string]: CellValue;
55
+ }
56
+
57
+ /**
58
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
59
+ */
60
+ interface BaseCellProps {
61
+ value: CellValue;
62
+ column: ColumnSchema;
63
+ rowId: string;
64
+ isEditing?: boolean;
65
+ onChange?: (value: CellValue) => void;
66
+ onStartEdit?: () => void;
67
+ onSave?: () => void;
68
+ onCancel?: () => void;
69
+ className?: string;
70
+ disabled?: boolean;
71
+ }
72
+ /**
73
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
74
+ */
75
+ type CellRenderer = ComponentType<BaseCellProps>;
76
+ /**
77
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
78
+ */
79
+ interface CellRegistryEntry {
80
+ type: CellType;
81
+ component: CellRenderer;
82
+ editComponent?: CellRenderer;
83
+ validator?: (value: CellValue) => boolean;
84
+ formatter?: (value: CellValue) => string;
85
+ parser?: (input: string) => CellValue;
86
+ defaultValue?: () => CellValue;
87
+ match?: (metadata: {
88
+ gqlType: string;
89
+ isArray: boolean;
90
+ pgAlias?: string | null;
91
+ pgType?: string | null;
92
+ subtype?: string | null;
93
+ fieldName?: string;
94
+ value?: any;
95
+ }) => boolean;
96
+ metadata?: {
97
+ name: string;
98
+ description: string;
99
+ category: CellCategory;
100
+ supportsInlineEdit?: boolean;
101
+ supportsSort?: boolean;
102
+ supportsFilter?: boolean;
103
+ width?: number;
104
+ };
105
+ }
106
+ /**
107
+ * @deprecated since 0.2.0 — use CellTypeDefinition (defineCellType). This React-component model was never rendered by the canvas grid.
108
+ */
109
+ interface CellPlugin {
110
+ name: string;
111
+ version: string;
112
+ cells: CellRegistryEntry[];
113
+ install?: () => void;
114
+ uninstall?: () => void;
115
+ }
116
+
117
+ interface FieldMetadata {
118
+ name: string;
119
+ type?: {
120
+ gqlType: string;
121
+ pgType?: string | null;
122
+ pgAlias?: string | null;
123
+ isArray?: boolean;
124
+ subtype?: string | null;
125
+ };
126
+ }
127
+ interface CellTypeResolution {
128
+ cellType: string;
129
+ canEdit: boolean;
130
+ canActivate: boolean;
131
+ activationBehavior: 'single-click' | 'double-click';
132
+ isReadonly: boolean;
133
+ }
134
+ declare function resolveCellType(fieldName: string, fieldMeta?: FieldMetadata): CellTypeResolution;
135
+ declare function isImageField(fieldMeta?: FieldMetadata, fieldName?: string): boolean;
136
+
137
+ type RelationKind = 'belongsTo' | 'hasOne' | 'hasMany' | 'manyToMany';
138
+ interface RelationInfo {
139
+ kind: RelationKind;
140
+ relatedTable?: string;
141
+ displayCandidates: string[];
142
+ relationField?: string;
143
+ foreignKeyField?: string;
144
+ junctionTable?: string;
145
+ junctionLeftKeyField?: string;
146
+ junctionRightKeyField?: string;
147
+ displayName?: string;
148
+ }
149
+ interface RelationInfoSlice {
150
+ relationInfoCache: Record<string, Record<string, RelationInfo>>;
151
+ relationInfoMapCache: Record<string, Map<string, RelationInfo>>;
152
+ setRelationInfoForTable: (tableName: string, info: Record<string, RelationInfo>) => void;
153
+ getRelationInfoForTable: (tableName: string) => Record<string, RelationInfo> | undefined;
154
+ getRelationInfoMapForTable: (tableName: string) => Map<string, RelationInfo> | undefined;
155
+ rebuildRelationInfo: (tableName: string, meta: MetaQuery | undefined) => void;
156
+ ensureRelationInfo: (tableName: string, meta: MetaQuery | undefined) => Record<string, RelationInfo>;
157
+ clearRelationInfoCache: () => void;
158
+ }
159
+ declare function buildRelationInfoFromMeta(tableName: string, meta: MetaQuery | undefined): Record<string, RelationInfo> | null;
160
+
161
+ interface RelationCellOptions {
162
+ relationChipLimit?: number;
163
+ relationLabelMaxLength?: number;
164
+ }
165
+ interface CellCreationMetadata {
166
+ cellType: string;
167
+ fieldName: string;
168
+ fieldMeta?: FieldMetadata;
169
+ relationInfo?: RelationInfo;
170
+ relationOptions?: RelationCellOptions;
171
+ canEdit: boolean;
172
+ isReadonly: boolean;
173
+ activationBehavior: 'single-click' | 'double-click';
174
+ }
175
+
176
+ /**
177
+ * Neutral RENDER kinds — equal to the frozen `DisplayKind` union. `loading` and
178
+ * `draft-action` originate from grid-internal state, not the `CellType` system.
179
+ */
180
+ type SheetsCellKind = 'text' | 'number' | 'boolean' | 'badges' | 'uri' | 'image' | 'geometry' | 'relation' | 'loading' | 'draft-action' | 'custom';
181
+ /** Per-cell visual hint, open-ish so later phases can enrich it. */
182
+ interface SheetsCellStyleHint {
183
+ draft?: boolean;
184
+ faded?: boolean;
185
+ /** This draft cell has a field-level validation error (draftMeta.errors[colKey]). */
186
+ error?: boolean;
187
+ [extra: string]: unknown;
188
+ }
189
+ /**
190
+ * The factory output + render payload. A SINGLE interface with a `kind` field
191
+ * (not a per-kind discriminated union): text/number/boolean share this payload
192
+ * and do not diverge yet.
193
+ *
194
+ * TODO(phases 2+): enrich `meta` per kind (badges/uri/image/geometry/relation)
195
+ * once their factories and views are ported.
196
+ */
197
+ interface SheetsCell {
198
+ kind: SheetsCellKind;
199
+ data: unknown;
200
+ displayData: string;
201
+ readonly: boolean;
202
+ styleHint?: SheetsCellStyleHint;
203
+ meta?: {
204
+ cellType?: CellType;
205
+ [extra: string]: unknown;
206
+ };
207
+ }
208
+
209
+ interface EditorProps {
210
+ value: unknown;
211
+ cell: SheetsCell;
212
+ colKey: string;
213
+ rowId: string;
214
+ rowIndex: number;
215
+ tableName?: string;
216
+ fieldMeta?: FieldMetadata;
217
+ relationInfo?: RelationInfo;
218
+ /**
219
+ * Type-to-edit seed: when the overlay was opened by typing a printable char on the
220
+ * active cell, this carries that char. Value editors (text/number) initialize their
221
+ * input to it in OVERWRITE mode (replacing the cell value); other editors ignore it.
222
+ */
223
+ initialText?: string;
224
+ /** Commit a value down the glide value-commit path (onCellEdited -> editCell). */
225
+ onCommit: (next: unknown) => void;
226
+ /**
227
+ * Self-committing editors (relation/image): commit a MULTI-field patch after an
228
+ * out-of-band server mutation, routed through the existing optimistic-update path
229
+ * (handleEditorSaveComplete). Value editors use {@link onCommit} instead.
230
+ */
231
+ onCommitPatch?: (patch: Record<string, unknown>) => void;
232
+ /** Dismiss the overlay with no write. */
233
+ onCancel: () => void;
234
+ /** Self-committing editors: submit a client-side draft row, resolving to the server row. */
235
+ onSubmitDraftRow?: (draftRowId: string) => Promise<unknown>;
236
+ /** Self-committing editors: invalidate cached data after an out-of-band mutation. */
237
+ onInvalidateData?: () => void;
238
+ /** Geometry pre-computed by the OverlayManager (reused `computeOverlayGeometry`). */
239
+ overlay: {
240
+ maxHeight: number;
241
+ flipped: boolean;
242
+ };
243
+ }
244
+
245
+ export { type BaseCellProps as B, type CellCreationMetadata as C, type EditorProps as E, type FieldMetadata as F, type RelationInfo as R, type SheetsCell as S, type TableSchema as T, type SheetsCellKind as a, type CellType as b, type CellCategory as c, type RelationInfoSlice as d, type CellRegistryEntry as e, type CellRenderer as f, type CellPlugin as g, type ColumnSchema as h, type RelationKind as i, buildRelationInfoFromMeta as j, isImageField as k, type CellValue as l, type FieldMetadata$1 as m, type RowData as n, resolveCellType as r };