@6thbridge/hexa 0.0.91 → 0.0.92
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.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -356,13 +356,26 @@ type BusinessType = {
|
|
|
356
356
|
access?: string;
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
+
type ResourcePermission = {
|
|
360
|
+
resource: string;
|
|
361
|
+
action: string;
|
|
362
|
+
};
|
|
363
|
+
type ResourcePermissions = ResourcePermission[];
|
|
364
|
+
type ResourcePermissionProps = {
|
|
365
|
+
permission?: {
|
|
366
|
+
resource?: string;
|
|
367
|
+
action?: string;
|
|
368
|
+
};
|
|
369
|
+
children: ReactNode;
|
|
370
|
+
};
|
|
371
|
+
|
|
359
372
|
type SingleLinkType = {
|
|
360
373
|
to: string;
|
|
361
374
|
name: string;
|
|
362
375
|
isHidden?: boolean;
|
|
363
376
|
icon?: ReactNode;
|
|
364
377
|
badge?: ReactNode;
|
|
365
|
-
permission?:
|
|
378
|
+
permission?: ResourcePermissionProps["permission"];
|
|
366
379
|
key?: string;
|
|
367
380
|
id: string;
|
|
368
381
|
};
|
|
@@ -538,19 +551,6 @@ type PageDataToolbarProps = {
|
|
|
538
551
|
};
|
|
539
552
|
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
553
|
|
|
541
|
-
type ResourcePermission = {
|
|
542
|
-
resource: string;
|
|
543
|
-
action: string;
|
|
544
|
-
};
|
|
545
|
-
type ResourcePermissions = ResourcePermission[];
|
|
546
|
-
type ResourcePermissionProps = {
|
|
547
|
-
permission?: {
|
|
548
|
-
resource?: string;
|
|
549
|
-
action?: string;
|
|
550
|
-
};
|
|
551
|
-
children: ReactNode;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
554
|
declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
|
|
555
555
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
556
|
permissions: ResourcePermissions;
|
package/dist/index.d.ts
CHANGED
|
@@ -356,13 +356,26 @@ type BusinessType = {
|
|
|
356
356
|
access?: string;
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
+
type ResourcePermission = {
|
|
360
|
+
resource: string;
|
|
361
|
+
action: string;
|
|
362
|
+
};
|
|
363
|
+
type ResourcePermissions = ResourcePermission[];
|
|
364
|
+
type ResourcePermissionProps = {
|
|
365
|
+
permission?: {
|
|
366
|
+
resource?: string;
|
|
367
|
+
action?: string;
|
|
368
|
+
};
|
|
369
|
+
children: ReactNode;
|
|
370
|
+
};
|
|
371
|
+
|
|
359
372
|
type SingleLinkType = {
|
|
360
373
|
to: string;
|
|
361
374
|
name: string;
|
|
362
375
|
isHidden?: boolean;
|
|
363
376
|
icon?: ReactNode;
|
|
364
377
|
badge?: ReactNode;
|
|
365
|
-
permission?:
|
|
378
|
+
permission?: ResourcePermissionProps["permission"];
|
|
366
379
|
key?: string;
|
|
367
380
|
id: string;
|
|
368
381
|
};
|
|
@@ -538,19 +551,6 @@ type PageDataToolbarProps = {
|
|
|
538
551
|
};
|
|
539
552
|
declare const PageDataToolbar: ({ onRefetch, search, FilterMenu, ExtraNode, onExport, download, isRefetching, filterListOptions, setAppliedFilters, onFilterChange, id, }: PageDataToolbarProps) => React$1.JSX.Element;
|
|
540
553
|
|
|
541
|
-
type ResourcePermission = {
|
|
542
|
-
resource: string;
|
|
543
|
-
action: string;
|
|
544
|
-
};
|
|
545
|
-
type ResourcePermissions = ResourcePermission[];
|
|
546
|
-
type ResourcePermissionProps = {
|
|
547
|
-
permission?: {
|
|
548
|
-
resource?: string;
|
|
549
|
-
action?: string;
|
|
550
|
-
};
|
|
551
|
-
children: ReactNode;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
554
|
declare const PermissionsContext: React$1.Context<ResourcePermissions | undefined>;
|
|
555
555
|
declare const PermissionsProvider: ({ permissions, children, }: {
|
|
556
556
|
permissions: ResourcePermissions;
|