@nivaro/react 0.1.111 → 0.1.113
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/full.css +1 -1
- package/dist/index.d.ts +54 -0
- package/dist/index.js +12219 -11845
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,44 @@ declare type AutoAllocateConfig = {
|
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
+
export declare function BaseMap({ pins, bubbles, statusLine, onPinClick, onBubbleClick, minHeight, focus }: {
|
|
250
|
+
pins: BaseMapPin[];
|
|
251
|
+
bubbles?: BaseMapBubble[];
|
|
252
|
+
/** Bottom-left caption ("214 pinned · © OpenStreetMap"). */
|
|
253
|
+
statusLine?: string;
|
|
254
|
+
onPinClick?: (id: string) => void;
|
|
255
|
+
onBubbleClick?: (id: string) => void;
|
|
256
|
+
minHeight?: number;
|
|
257
|
+
/** Fly the view somewhere (People-pane region click). Nonce forces re-focus
|
|
258
|
+
* on repeat clicks of the same target. */
|
|
259
|
+
focus?: {
|
|
260
|
+
lat: number;
|
|
261
|
+
lng: number;
|
|
262
|
+
zoom?: number;
|
|
263
|
+
nonce: number;
|
|
264
|
+
} | null;
|
|
265
|
+
}): JSX.Element;
|
|
266
|
+
|
|
267
|
+
declare interface BaseMapBubble {
|
|
268
|
+
id: string;
|
|
269
|
+
lat: number;
|
|
270
|
+
lng: number;
|
|
271
|
+
count: number;
|
|
272
|
+
label: string;
|
|
273
|
+
color?: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare interface BaseMapPin {
|
|
277
|
+
id: string;
|
|
278
|
+
lat: number;
|
|
279
|
+
lng: number;
|
|
280
|
+
label: string;
|
|
281
|
+
/** Marker fill — defaults to the brand cyan. */
|
|
282
|
+
color?: string;
|
|
283
|
+
/** Pulsing ring — SLA breach / needs-eyes markers. */
|
|
284
|
+
pulse?: boolean;
|
|
285
|
+
}
|
|
286
|
+
|
|
249
287
|
declare type BinaryOp = '+' | '-' | '*' | '/' | '==' | '!=' | '<' | '<=' | '>' | '>=' | '&&' | '||';
|
|
250
288
|
|
|
251
289
|
export declare function BooleanField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -681,6 +719,14 @@ declare interface ColumnPreset {
|
|
|
681
719
|
columns: string[];
|
|
682
720
|
}
|
|
683
721
|
|
|
722
|
+
export declare function CommandCenterView({
|
|
723
|
+
/** Geo collections offered in the map layer picker; first is the default. */
|
|
724
|
+
geoCollections, recordUrl }: {
|
|
725
|
+
geoCollections?: string[];
|
|
726
|
+
/** Host route for a clicked pin's record — defaults to the admin shape. */
|
|
727
|
+
recordUrl?: (collection: string, id: string) => string;
|
|
728
|
+
}): JSX.Element;
|
|
729
|
+
|
|
684
730
|
export declare function CommentPanel({ collection, item, title, defaultExpanded, queuedComments, onQueueComment }: {
|
|
685
731
|
collection: string;
|
|
686
732
|
item: string | number;
|
|
@@ -812,6 +858,8 @@ declare interface DirectoryChannel {
|
|
|
812
858
|
members: number;
|
|
813
859
|
}
|
|
814
860
|
|
|
861
|
+
export declare function DisplayPrefsCard(): JSX.Element;
|
|
862
|
+
|
|
815
863
|
declare type DmOpener = (userId: string, displayName?: string) => void;
|
|
816
864
|
|
|
817
865
|
export declare function dmPeer(room: string, self: string): string | null;
|
|
@@ -2104,6 +2152,8 @@ export declare interface NotificationRouteMap {
|
|
|
2104
2152
|
issues?: () => string | null;
|
|
2105
2153
|
}
|
|
2106
2154
|
|
|
2155
|
+
export declare function NotificationRulesCard(): JSX.Element;
|
|
2156
|
+
|
|
2107
2157
|
export declare function NotificationSourcesCard(): JSX.Element | null;
|
|
2108
2158
|
|
|
2109
2159
|
export declare type NotificationTarget = {
|
|
@@ -3084,6 +3134,10 @@ export declare function TextareaField({ field, value, onChange, error, disabled,
|
|
|
3084
3134
|
|
|
3085
3135
|
export declare function TextField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
3086
3136
|
|
|
3137
|
+
/** Timezone preference (#31): applied to every datetime the shared
|
|
3138
|
+
* formatters render. Defaults to the browser's zone. */
|
|
3139
|
+
export declare function TimezoneCard(): JSX.Element;
|
|
3140
|
+
|
|
3087
3141
|
export declare function TipLayer(): ReactPortal | null;
|
|
3088
3142
|
|
|
3089
3143
|
export declare function titleCase(str: string): string;
|