@raystack/frontier 0.102.0 → 0.103.1

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.
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React, { ReactNode } from 'react';
2
3
  import * as _raystack_proton_frontier from '@raystack/proton/frontier';
3
4
  import { RQLRequest, RQLQueryPaginationResponse, RQLQueryGroupResponse } from '@raystack/proton/frontier';
4
- import React, { ReactNode } from 'react';
5
5
  import * as _bufbuild_protobuf from '@bufbuild/protobuf';
6
6
  import { DataTableQuery } from '@raystack/apsara';
7
7
 
@@ -14,8 +14,10 @@ type RolesViewProps = {
14
14
  onCloseDetail?: () => void;
15
15
  /** App name displayed in the page title. */
16
16
  appName?: string;
17
+ /** Icon rendered in the page header next to the title. */
18
+ icon?: ReactNode;
17
19
  };
18
- declare function RolesView({ selectedRoleId: controlledRoleId, onSelectRole, onCloseDetail, appName, }?: RolesViewProps): react_jsx_runtime.JSX.Element;
20
+ declare function RolesView({ selectedRoleId: controlledRoleId, onSelectRole, onCloseDetail, appName, icon, }?: RolesViewProps): react_jsx_runtime.JSX.Element;
19
21
 
20
22
  type InvoicesViewProps = {
21
23
  /** App name displayed in the page title. */
@@ -34,8 +36,10 @@ type ProductsViewProps = {
34
36
  onNavigateToPrices?: (productId: string) => void;
35
37
  /** App name displayed in the page title. */
36
38
  appName?: string;
39
+ /** Icon rendered in the page header next to the title. */
40
+ icon?: ReactNode;
37
41
  };
38
- declare function ProductsView({ selectedProductId, onSelectProduct, onCloseDetail, onNavigateToPrices, appName, }?: ProductsViewProps): react_jsx_runtime.JSX.Element;
42
+ declare function ProductsView({ selectedProductId, onSelectProduct, onCloseDetail, onNavigateToPrices, appName, icon, }?: ProductsViewProps): react_jsx_runtime.JSX.Element;
39
43
 
40
44
  type ProductPricesViewProps = {
41
45
  /** The product ID whose prices are displayed. */
@@ -62,8 +66,10 @@ declare function AuditLogsView({ appName, onExportCsv, onNavigate }?: AuditLogsV
62
66
 
63
67
  type AdminsViewProps = {
64
68
  onNavigateToOrg?: (orgId: string) => void;
69
+ /** Icon rendered in the page header next to the title. */
70
+ icon?: ReactNode;
65
71
  };
66
- declare function AdminsView({ onNavigateToOrg }?: AdminsViewProps): react_jsx_runtime.JSX.Element;
72
+ declare function AdminsView({ onNavigateToOrg, icon }?: AdminsViewProps): react_jsx_runtime.JSX.Element;
67
73
 
68
74
  type PlansViewProps = {
69
75
  /** When set, opens the detail sheet for this plan. */
@@ -74,8 +80,10 @@ type PlansViewProps = {
74
80
  onSelectPlan?: (planId: string) => void;
75
81
  /** App name displayed in the page title. */
76
82
  appName?: string;
83
+ /** Icon rendered in the page header next to the title. */
84
+ icon?: ReactNode;
77
85
  };
78
- declare function PlansView({ selectedPlanId, onCloseDetail, onSelectPlan, appName, }?: PlansViewProps): react_jsx_runtime.JSX.Element;
86
+ declare function PlansView({ selectedPlanId, onCloseDetail, onSelectPlan, appName, icon, }?: PlansViewProps): react_jsx_runtime.JSX.Element;
79
87
 
80
88
  type WebhooksViewProps = {
81
89
  /** When set, opens the update panel for this webhook. */
@@ -90,8 +98,10 @@ type WebhooksViewProps = {
90
98
  onOpenCreate?: () => void;
91
99
  /** When true, shows the delete option for webhooks. Defaults to `false`. */
92
100
  enableDelete?: boolean;
101
+ /** Icon rendered in the page header next to the title. */
102
+ icon?: ReactNode;
93
103
  };
94
- declare function WebhooksView({ selectedWebhookId, createOpen, onCloseDetail, onSelectWebhook, onOpenCreate, enableDelete, }?: WebhooksViewProps): react_jsx_runtime.JSX.Element;
104
+ declare function WebhooksView({ selectedWebhookId, createOpen, onCloseDetail, onSelectWebhook, onOpenCreate, enableDelete, icon, }?: WebhooksViewProps): react_jsx_runtime.JSX.Element;
95
105
 
96
106
  type PreferencesViewProps = {
97
107
  /** When set, opens the detail panel for this preference (matched by name). */
@@ -99,8 +109,10 @@ type PreferencesViewProps = {
99
109
  /** Called when the detail panel is closed. Use to clear the selected preference. */
100
110
  onCloseDetail?: () => void;
101
111
  onSelectPreference?: (name: string) => void;
112
+ /** Icon rendered in the page header next to the title. */
113
+ icon?: ReactNode;
102
114
  };
103
- declare function PreferencesView({ selectedPreferenceName, onCloseDetail, onSelectPreference, }?: PreferencesViewProps): react_jsx_runtime.JSX.Element;
115
+ declare function PreferencesView({ selectedPreferenceName, onCloseDetail, onSelectPreference, icon, }?: PreferencesViewProps): react_jsx_runtime.JSX.Element;
104
116
 
105
117
  type UsersViewProps = {
106
118
  /** When set, renders the user detail view for this user ID instead of the list. */