semaphor 0.0.0 → 0.0.11

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.
@@ -10,6 +10,7 @@ declare type Actions = {
10
10
  setAuthToken: (authToken: AuthToken) => void;
11
11
  setThemeStyle: (themeStyle: StyleProps) => void;
12
12
  setIsEditorSaveEvent: (isEditorSaveEvent: boolean) => void;
13
+ setBookmarkKey: (bookmarkKey: string) => void;
13
14
  setDashboard: (dashboard: TDashboard) => void;
14
15
  setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
15
16
  setDashboardTitle: (title: string) => void;
@@ -91,6 +92,7 @@ declare type DashboardStore = {
91
92
  authToken?: AuthToken;
92
93
  theme?: 'light' | 'dark' | 'system';
93
94
  themeStyle?: StyleProps;
95
+ bookmarkKey?: string;
94
96
  dashboard: TDashboard;
95
97
  selectedSheetId?: string | null | undefined;
96
98
  selectedCardId?: string | null;
@@ -109,6 +111,8 @@ declare type DashboardStore = {
109
111
  actions: Actions;
110
112
  };
111
113
 
114
+ export declare const DashboardWC: CustomElementConstructor;
115
+
112
116
  export declare type ErrorProps = {
113
117
  message?: string;
114
118
  };
@@ -143,6 +147,8 @@ declare type FilterForString = BaseFilter & {
143
147
  values: [string];
144
148
  };
145
149
 
150
+ export declare function getBookmarkKey(dashboardId: string): string;
151
+
146
152
  export declare function getDashbaordStateWithoutData(dashboardState: TDashboard): {
147
153
  sheets: {
148
154
  cards: TCard[] | undefined;
@@ -162,20 +168,30 @@ export declare type LoadingProps = {
162
168
  message?: string;
163
169
  };
164
170
 
171
+ /**
172
+ * Style propeerites for the dashboard
173
+ */
165
174
  export declare type StyleProps = {
175
+ /** css class for `dashboard-panel` */
166
176
  dashboardPanel?: string;
177
+ /** css class for `dashboard-tabs-container` */
167
178
  dashboardTabsContainer?: string;
179
+ /** css class for `dashboard-card` */
180
+ /** css class for `dashboard-card-container` */
181
+ dashboardCardContainer?: string;
168
182
  dashboardCard?: string;
169
- dashboardHeader?: string;
170
- dashboardTitle?: string;
171
- dashboardDescription?: string;
183
+ /** grid-layout config */
172
184
  gridLayout?: {
185
+ /** css class for `react-grid-layout` */
173
186
  className?: string;
174
187
  margin?: [number, number];
175
188
  };
189
+ /** chart config */
176
190
  chart?: {
191
+ /** chart font config */
177
192
  font?: Partial<FontSpec>;
178
193
  dataset?: any;
194
+ /** chart options */
179
195
  options?: any;
180
196
  };
181
197
  };
@@ -239,6 +255,9 @@ export declare type TSheet = {
239
255
  cards?: TCard[];
240
256
  };
241
257
 
258
+ /**
259
+ * Style for the dashboard
260
+ */
242
261
  export declare type TStyle = {
243
262
  default: StyleProps;
244
263
  dark?: StyleProps;
@@ -264,10 +283,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
264
283
  themeStyle?: {
265
284
  dashboardPanel?: string | undefined;
266
285
  dashboardTabsContainer?: string | undefined;
286
+ dashboardCardContainer?: string | undefined;
267
287
  dashboardCard?: string | undefined;
268
- dashboardHeader?: string | undefined;
269
- dashboardTitle?: string | undefined;
270
- dashboardDescription?: string | undefined;
271
288
  gridLayout?: {
272
289
  className?: string | undefined;
273
290
  margin?: [number, number] | undefined;
@@ -284,6 +301,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
284
301
  options?: any;
285
302
  } | undefined;
286
303
  } | undefined;
304
+ bookmarkKey?: string | undefined;
287
305
  dashboard: {
288
306
  id: string;
289
307
  title?: string | undefined;
@@ -333,10 +351,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
333
351
  default: {
334
352
  dashboardPanel?: string | undefined;
335
353
  dashboardTabsContainer?: string | undefined;
354
+ dashboardCardContainer?: string | undefined;
336
355
  dashboardCard?: string | undefined;
337
- dashboardHeader?: string | undefined;
338
- dashboardTitle?: string | undefined;
339
- dashboardDescription?: string | undefined;
340
356
  gridLayout?: {
341
357
  className?: string | undefined;
342
358
  margin?: [number, number] | undefined;
@@ -356,10 +372,8 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
356
372
  dark?: {
357
373
  dashboardPanel?: string | undefined;
358
374
  dashboardTabsContainer?: string | undefined;
375
+ dashboardCardContainer?: string | undefined;
359
376
  dashboardCard?: string | undefined;
360
- dashboardHeader?: string | undefined;
361
- dashboardTitle?: string | undefined;
362
- dashboardDescription?: string | undefined;
363
377
  gridLayout?: {
364
378
  className?: string | undefined;
365
379
  margin?: [number, number] | undefined;
@@ -472,6 +486,7 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
472
486
  setAuthToken: (authToken: AuthToken) => void;
473
487
  setThemeStyle: (themeStyle: StyleProps) => void;
474
488
  setIsEditorSaveEvent: (isEditorSaveEvent: boolean) => void;
489
+ setBookmarkKey: (bookmarkKey: string) => void;
475
490
  setDashboard: (dashboard: TDashboard) => void;
476
491
  setDashboardTheme: (theme: 'light' | 'dark' | 'system') => void;
477
492
  setDashboardTitle: (title: string) => void;