@ai-matrx/records-ui 0.116.6 → 0.116.7
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/CHANGELOG.md +11 -1
- package/dist/{SaveToTable-TVT4YHVR.js → SaveToTable-QZCRFD5Q.js} +3 -3
- package/dist/{chunk-5NPKASE5.js → chunk-HUPBD4JF.js} +2 -2
- package/dist/{chunk-PF2SAQEH.js → chunk-IYJVE222.js} +3 -3
- package/dist/{chunk-IIAT5WYZ.js → chunk-RQL7QRGR.js} +1 -1
- package/dist/chunk-RQL7QRGR.js.map +1 -0
- package/dist/helpers.d.cts +32 -0
- package/dist/helpers.d.ts +32 -0
- package/dist/index.cjs +576 -493
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +483 -401
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-IIAT5WYZ.js.map +0 -1
- /package/dist/{SaveToTable-TVT4YHVR.js.map → SaveToTable-QZCRFD5Q.js.map} +0 -0
- /package/dist/{chunk-5NPKASE5.js.map → chunk-HUPBD4JF.js.map} +0 -0
- /package/dist/{chunk-PF2SAQEH.js.map → chunk-IYJVE222.js.map} +0 -0
package/dist/helpers.d.cts
CHANGED
|
@@ -86,6 +86,30 @@ declare const NO_RIGHTS: TableRights;
|
|
|
86
86
|
*/
|
|
87
87
|
declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
|
|
88
88
|
|
|
89
|
+
interface PresenceCell {
|
|
90
|
+
recordId: string;
|
|
91
|
+
fieldKey: string;
|
|
92
|
+
}
|
|
93
|
+
interface TablePresencePerson {
|
|
94
|
+
key: string;
|
|
95
|
+
name: string;
|
|
96
|
+
avatarUrl: string | null;
|
|
97
|
+
color: string;
|
|
98
|
+
cell: PresenceCell | null;
|
|
99
|
+
}
|
|
100
|
+
interface TablePresenceSession {
|
|
101
|
+
getSnapshot(): readonly TablePresencePerson[];
|
|
102
|
+
subscribe(listener: () => void): () => void;
|
|
103
|
+
selectCell(cell: PresenceCell | null): void;
|
|
104
|
+
close(): void;
|
|
105
|
+
}
|
|
106
|
+
/** The host's port - structurally what `createRecordsPresencePort` (`@ai-matrx/records/realtime`) returns. */
|
|
107
|
+
interface RecordsPresencePort {
|
|
108
|
+
join(args: {
|
|
109
|
+
tableId: string;
|
|
110
|
+
}): TablePresenceSession;
|
|
111
|
+
}
|
|
112
|
+
|
|
89
113
|
interface MapPin {
|
|
90
114
|
/** The record's id. */
|
|
91
115
|
id: string;
|
|
@@ -935,6 +959,14 @@ interface RecordsUiHost {
|
|
|
935
959
|
* Unbound, the item is ABSENT. The grid owns open/closed; the host owns the panel.
|
|
936
960
|
*/
|
|
937
961
|
columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
|
|
962
|
+
/**
|
|
963
|
+
* OPTIONAL. WHO ELSE IS LOOKING AT THIS TABLE (AIRTABLE-PARITY row 183). `join` opens the table's presence
|
|
964
|
+
* room and answers the other people in it (name, avatar, colour, the cell each has selected); the table's
|
|
965
|
+
* toolbar draws their avatars and the grid outlines each person's selected cell in their colour. The host
|
|
966
|
+
* owns the transport - matrx-frontend binds `createRecordsPresencePort` from `@ai-matrx/records/realtime` on its
|
|
967
|
+
* one realtime manager. Unbound, nothing is drawn (never a dead control).
|
|
968
|
+
*/
|
|
969
|
+
presence?: RecordsPresencePort;
|
|
938
970
|
/**
|
|
939
971
|
* OPTIONAL. THE ARCHIVED-ORGANIZATION DOOR (lane ARCHIVED-ORG-RESTORE). When the store refuses because the
|
|
940
972
|
* organization is archived, `RefusalNotice` says so and asks this port two things: `state` - may THIS person
|
package/dist/helpers.d.ts
CHANGED
|
@@ -86,6 +86,30 @@ declare const NO_RIGHTS: TableRights;
|
|
|
86
86
|
*/
|
|
87
87
|
declare function tableRightsAt(level: PermissionLevel$1 | null): TableRights;
|
|
88
88
|
|
|
89
|
+
interface PresenceCell {
|
|
90
|
+
recordId: string;
|
|
91
|
+
fieldKey: string;
|
|
92
|
+
}
|
|
93
|
+
interface TablePresencePerson {
|
|
94
|
+
key: string;
|
|
95
|
+
name: string;
|
|
96
|
+
avatarUrl: string | null;
|
|
97
|
+
color: string;
|
|
98
|
+
cell: PresenceCell | null;
|
|
99
|
+
}
|
|
100
|
+
interface TablePresenceSession {
|
|
101
|
+
getSnapshot(): readonly TablePresencePerson[];
|
|
102
|
+
subscribe(listener: () => void): () => void;
|
|
103
|
+
selectCell(cell: PresenceCell | null): void;
|
|
104
|
+
close(): void;
|
|
105
|
+
}
|
|
106
|
+
/** The host's port - structurally what `createRecordsPresencePort` (`@ai-matrx/records/realtime`) returns. */
|
|
107
|
+
interface RecordsPresencePort {
|
|
108
|
+
join(args: {
|
|
109
|
+
tableId: string;
|
|
110
|
+
}): TablePresenceSession;
|
|
111
|
+
}
|
|
112
|
+
|
|
89
113
|
interface MapPin {
|
|
90
114
|
/** The record's id. */
|
|
91
115
|
id: string;
|
|
@@ -935,6 +959,14 @@ interface RecordsUiHost {
|
|
|
935
959
|
* Unbound, the item is ABSENT. The grid owns open/closed; the host owns the panel.
|
|
936
960
|
*/
|
|
937
961
|
columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
|
|
962
|
+
/**
|
|
963
|
+
* OPTIONAL. WHO ELSE IS LOOKING AT THIS TABLE (AIRTABLE-PARITY row 183). `join` opens the table's presence
|
|
964
|
+
* room and answers the other people in it (name, avatar, colour, the cell each has selected); the table's
|
|
965
|
+
* toolbar draws their avatars and the grid outlines each person's selected cell in their colour. The host
|
|
966
|
+
* owns the transport - matrx-frontend binds `createRecordsPresencePort` from `@ai-matrx/records/realtime` on its
|
|
967
|
+
* one realtime manager. Unbound, nothing is drawn (never a dead control).
|
|
968
|
+
*/
|
|
969
|
+
presence?: RecordsPresencePort;
|
|
938
970
|
/**
|
|
939
971
|
* OPTIONAL. THE ARCHIVED-ORGANIZATION DOOR (lane ARCHIVED-ORG-RESTORE). When the store refuses because the
|
|
940
972
|
* organization is archived, `RefusalNotice` says so and asks this port two things: `state` - may THIS person
|