@cakemail-org/ui-components-v2 2.2.115 → 2.2.116

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,4 +1,7 @@
1
1
  import React from "react";
2
+ import "./styles.scss";
3
+ export { groupScopesByCategory } from "./scopeGroups";
4
+ export type { TScopeCategorySummary } from "./scopeGroups";
2
5
  export type TScopePicker = {
3
6
  value: string[];
4
7
  onChange: (scopes: string[]) => void;
@@ -1,4 +1,4 @@
1
- export type TScopeAction = "read" | "write" | "delete" | "send" | "import" | "export" | "admin";
1
+ export type TScopeAction = "read" | "write" | "delete" | "send" | "send-test" | "import" | "export" | "share" | "publish" | "admin";
2
2
  export type TScopeResource = {
3
3
  resource: string;
4
4
  label: string;
@@ -12,10 +12,17 @@ export type TScopeCategory = {
12
12
  };
13
13
  export declare const SCOPE_IMPLICATIONS: Record<string, string[]>;
14
14
  export declare const SCOPE_CATEGORIES: TScopeCategory[];
15
+ export declare const ALL_GRANULAR_SCOPES: Set<string>;
16
+ export declare function getCategoryScopes(categoryId: string): string[];
17
+ export type TScopeCategorySummary = {
18
+ id: string;
19
+ label: string;
20
+ scopes: string[];
21
+ };
22
+ export declare function groupScopesByCategory(scopes: string[]): TScopeCategorySummary[];
15
23
  export type TScopePreset = {
16
24
  id: string;
17
25
  label: string;
18
26
  scopes: string[];
19
27
  };
20
- export declare function getCategoryScopes(categoryId: string): string[];
21
28
  export declare const SCOPE_PRESETS: TScopePreset[];
@@ -18,6 +18,7 @@ export type TSideMenuItemBase = {
18
18
  className?: string;
19
19
  prefix?: any;
20
20
  support?: any;
21
+ variant?: TSideMenuItemVariant;
21
22
  };
22
23
  export type TSideMenuDivider = {
23
24
  divider: true;