Skip to content

Commit

Permalink
feat: expose AccountMenuAction to expand account menu entries
Browse files Browse the repository at this point in the history
Refs: SHELL-255 (#549)
  • Loading branch information
CataldoMazzilli authored Nov 28, 2024
1 parent 2e392ef commit b916559
Show file tree
Hide file tree
Showing 8 changed files with 913 additions and 793 deletions.
9 changes: 9 additions & 0 deletions api-extractor/carbonio-shell-ui.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ interface AccountACEInfo {
zid?: string;
}

// @public
export interface AccountMenuAction extends Action, Omit<DropdownItem, 'label' | 'onClick'> {
// (undocumented)
execute: NonNullable<DropdownItem['onClick']>;
// (undocumented)
position: number;
}

// @public (undocumented)
type AccountRightName = 'sendAs' | 'sendAsDistList' | 'viewFreeBusy' | 'sendOnBehalfOf' | 'sendOnBehalfOfDistList';

Expand Down Expand Up @@ -185,6 +193,7 @@ export const ACTION_TYPES: {
readonly CALENDAR: "calendar";
readonly CALENDAR_lIST: "calendar_list";
readonly NEW: "new";
readonly ACCOUNT_MENU: "account_menu";
};

// @public (undocumented)
Expand Down
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ module.exports = (api) => {
plugins.push('babel-plugin-transform-import-meta');
} else {
presetEnvOptions = {
modules: false,
useBuiltIns: 'usage',
corejs: 3.31
modules: false
};
}
return {
presets: [
['@babel/preset-env', presetEnvOptions],
['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3.39, ...presetEnvOptions }],
'@babel/preset-react',
'@babel/preset-typescript'
],
Expand Down
Loading

0 comments on commit b916559

Please sign in to comment.