@livetiles/reach-components-react 0.4.13 → 0.4.15

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/index.d.ts CHANGED
@@ -314,9 +314,19 @@ interface WebPluginDefinition {
314
314
  subscriptionId?: string;
315
315
  environment?: string;
316
316
  }
317
- interface PluginExtension {
318
- area: string;
319
- componentName: string;
317
+ declare enum ExtensionArea {
318
+ global = "Global",
319
+ page = "Page",
320
+ eventEditorFeedbackSection = "EventEditorFeedbackSection",
321
+ eventDetailViewSection = "EventDetailViewSection",
322
+ itemEditor = "ItemEditor"
323
+ }
324
+ declare type InlinePlugin = {
325
+ area: ExtensionArea.itemEditor;
326
+ objectButton: PluginObjectButton;
327
+ };
328
+ declare type PagePlugin = {
329
+ area: ExtensionArea.page;
320
330
  route: string;
321
331
  navigationNode?: {
322
332
  componentName?: string;
@@ -326,7 +336,20 @@ interface PluginExtension {
326
336
  [key: string]: string;
327
337
  };
328
338
  };
329
- }
339
+ };
340
+ declare type PluginExtension = {
341
+ area: ExtensionArea;
342
+ componentName: string;
343
+ } & (InlinePlugin | PagePlugin);
344
+ declare type PluginObjectButton = {
345
+ buttonLabel: {
346
+ defaultLabel: string;
347
+ translations?: {
348
+ [key: string]: string;
349
+ };
350
+ };
351
+ iconName: string;
352
+ };
330
353
  interface PluginNotificationDefinitions {
331
354
  key: string;
332
355
  title: string;