@sirsluginston/sharedui 2.0.22 → 2.0.24
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/index.d.ts +27 -27
- package/dist/sharedui.js +667 -625
- package/dist/sharedui.umd.cjs +15 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -105,10 +105,10 @@ export declare interface CityPageData {
|
|
|
105
105
|
name: string;
|
|
106
106
|
slug: string;
|
|
107
107
|
state: string;
|
|
108
|
-
|
|
108
|
+
state_name: string;
|
|
109
109
|
stats: EntityStats;
|
|
110
110
|
directory: DirectoryItem[];
|
|
111
|
-
|
|
111
|
+
recent_by_agency: Record<string, RecentEvent[]>;
|
|
112
112
|
meta?: EntityMeta;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -132,7 +132,7 @@ export declare interface CompanyPageData {
|
|
|
132
132
|
slug: string;
|
|
133
133
|
stats: EntityStats;
|
|
134
134
|
sites?: DirectoryItem[];
|
|
135
|
-
|
|
135
|
+
recent_events: RecentEvent[];
|
|
136
136
|
meta?: EntityMeta;
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -161,8 +161,8 @@ declare interface DirectoryProps {
|
|
|
161
161
|
|
|
162
162
|
export declare interface EntityMeta {
|
|
163
163
|
population?: number;
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
flag_url?: string;
|
|
165
|
+
logo_url?: string;
|
|
166
166
|
industry?: string;
|
|
167
167
|
founded?: number;
|
|
168
168
|
headquarters?: string;
|
|
@@ -170,17 +170,17 @@ export declare interface EntityMeta {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
export declare interface EntityStats {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
total_events: number;
|
|
174
|
+
total_companies?: number;
|
|
175
|
+
total_cities?: number;
|
|
176
|
+
total_states?: number;
|
|
177
|
+
total_injuries?: number;
|
|
178
|
+
total_fatalities?: number;
|
|
179
|
+
total_fines?: number;
|
|
180
|
+
avg_fines?: number;
|
|
181
181
|
score?: number;
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
score_label?: string;
|
|
183
|
+
last_active?: string;
|
|
184
184
|
trend?: {
|
|
185
185
|
direction: 'up' | 'down' | 'flat';
|
|
186
186
|
percentage: number;
|
|
@@ -279,13 +279,13 @@ export declare interface NavItem {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
export declare interface RecentEvent {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
282
|
+
event_id: string;
|
|
283
|
+
event_title: string;
|
|
284
|
+
event_description?: string;
|
|
285
|
+
event_date?: string;
|
|
286
|
+
company_slug?: string;
|
|
287
|
+
company_name?: string;
|
|
288
|
+
city_slug?: string;
|
|
289
289
|
city?: string;
|
|
290
290
|
state?: string;
|
|
291
291
|
agency: string;
|
|
@@ -318,12 +318,12 @@ export declare const SitePage: default_2.FC<SitePageProps>;
|
|
|
318
318
|
|
|
319
319
|
export declare interface SitePageData {
|
|
320
320
|
name: string;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
site_id: string;
|
|
322
|
+
company_slug: string;
|
|
323
|
+
company_name: string;
|
|
324
324
|
stats: EntityStats;
|
|
325
325
|
siblings?: DirectoryItem[];
|
|
326
|
-
|
|
326
|
+
recent_events: RecentEvent[];
|
|
327
327
|
meta?: EntityMeta;
|
|
328
328
|
}
|
|
329
329
|
|
|
@@ -362,7 +362,7 @@ export declare interface StatePageData {
|
|
|
362
362
|
abbreviation: string;
|
|
363
363
|
stats: EntityStats;
|
|
364
364
|
directory: DirectoryItem[];
|
|
365
|
-
|
|
365
|
+
recent_by_agency: Record<string, RecentEvent[]>;
|
|
366
366
|
meta?: EntityMeta;
|
|
367
367
|
}
|
|
368
368
|
|