@acarmisc/backstage-plugin-litellm 0.33.0 → 0.34.0

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.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { litellmPlugin } from './plugin';
1
+ export { litellmPlugin, litellmPlugin as default } from './plugin';
2
2
  export { LiteLLMPage } from './components/LiteLLMPage';
3
3
  export { DashboardHeader } from './components/DashboardHeader';
4
4
  export { KeysTable } from './components/KeysTable';
@@ -14,9 +14,8 @@ export { KeyFormDialog } from './components/KeyFormDialog';
14
14
  export type { KeyFormDialogMode, KeyFormDialogProps } from './components/KeyFormDialog';
15
15
  export { GenerateKeyButton } from './components/GenerateKeyButton';
16
16
  export type { GenerateKeyButtonProps } from './components/GenerateKeyButton';
17
- export { GenerateKeyDialog } from './components/GenerateKeyDialog';
18
17
  export { ManageTeamDialog } from './components/ManageTeamDialog';
19
18
  export { LiteLlmApi, liteLlmApiRef } from './api';
20
- export { litellmTeamCreatePermission, litellmTeamManagePermission, litellmTeamMembersManagePermission, litellmTeamKnowledgebaseManagePermission, litellmTeamMcpManagePermission, } from './permissions';
19
+ export { litellmTeamCreatePermission, litellmTeamManagePermission, litellmTeamMembersManagePermission, litellmTeamKnowledgebaseManagePermission, litellmTeamMcpManagePermission, } from '@acarmisc/backstage-plugin-litellm-common';
21
20
  export type { LiteLlmApiInterface } from './api';
22
21
  export * from './types';
package/dist/index.esm.js CHANGED
@@ -1823,8 +1823,6 @@ var init_KeysTable = __esm({
1823
1823
  setPruneSubmitting(true);
1824
1824
  try {
1825
1825
  await onPruneExpiredKeys();
1826
- } catch (error) {
1827
- console.error("Failed to prune expired keys:", error);
1828
1826
  } finally {
1829
1827
  setPruneSubmitting(false);
1830
1828
  setPruneConfirmCount(null);
@@ -1893,7 +1891,8 @@ var init_KeysTable = __esm({
1893
1891
  bgcolor: alpha7(theme.palette.text.primary, theme.palette.mode === "dark" ? 0.08 : 0.05),
1894
1892
  px: 0.75,
1895
1893
  py: 0.375,
1896
- borderRadius: "5px"
1894
+ borderRadius: "5px",
1895
+ whiteSpace: "nowrap"
1897
1896
  }),
1898
1897
  children: shortKeyId(keyId)
1899
1898
  }
@@ -5900,28 +5899,6 @@ var init_dates = __esm({
5900
5899
  }
5901
5900
  });
5902
5901
 
5903
- // src/permissions.ts
5904
- import {
5905
- litellmKeyCreatePermission,
5906
- litellmKeyRevokePermission as litellmKeyRevokePermission2,
5907
- litellmKeyManagePermission as litellmKeyManagePermission2,
5908
- litellmKeyResetSpendPermission as litellmKeyResetSpendPermission2,
5909
- litellmKeyUnblockPermission as litellmKeyUnblockPermission2,
5910
- litellmAuditReadPermission,
5911
- litellmTeamCreatePermission,
5912
- litellmTeamManagePermission,
5913
- litellmTeamMembersManagePermission,
5914
- litellmTeamKnowledgebaseManagePermission,
5915
- litellmTeamMcpManagePermission,
5916
- litellmTeamDeletePermission,
5917
- litellmPermissions
5918
- } from "@acarmisc/backstage-plugin-litellm-common";
5919
- var init_permissions = __esm({
5920
- "src/permissions.ts"() {
5921
- "use strict";
5922
- }
5923
- });
5924
-
5925
5902
  // src/feedback.ts
5926
5903
  function toastFor(kind, errorMsg) {
5927
5904
  switch (kind) {
@@ -6033,6 +6010,13 @@ import { useAsync as useAsync2, useAsyncRetry } from "react-use";
6033
6010
  import { useApi as useApi4, alertApiRef as alertApiRef2 } from "@backstage/core-plugin-api";
6034
6011
  import { Content, Progress } from "@backstage/core-components";
6035
6012
  import { usePermission as usePermission3 } from "@backstage/plugin-permission-react";
6013
+ import {
6014
+ litellmTeamCreatePermission,
6015
+ litellmTeamManagePermission,
6016
+ litellmTeamMembersManagePermission,
6017
+ litellmTeamKnowledgebaseManagePermission,
6018
+ litellmTeamMcpManagePermission
6019
+ } from "@acarmisc/backstage-plugin-litellm-common";
6036
6020
  import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
6037
6021
  function initDateRange() {
6038
6022
  let preset = "7d";
@@ -6063,7 +6047,6 @@ var init_LiteLLMPage = __esm({
6063
6047
  init_AuditLog();
6064
6048
  init_api();
6065
6049
  init_dates();
6066
- init_permissions();
6067
6050
  init_feedback();
6068
6051
  init_teamMemberManager();
6069
6052
  init_unprovisionedCopy();
@@ -7616,36 +7599,18 @@ var LiteLLMBudgetGauges = ({
7616
7599
  // src/index.ts
7617
7600
  init_KeyFormDialog();
7618
7601
  init_GenerateKeyButton();
7619
-
7620
- // src/components/GenerateKeyDialog.tsx
7621
- init_KeyFormDialog();
7622
- import { jsx as jsx22 } from "react/jsx-runtime";
7623
- var GenerateKeyDialog = (props) => /* @__PURE__ */ jsx22(
7624
- KeyFormDialog,
7625
- {
7626
- open: props.open,
7627
- onClose: props.onClose,
7628
- mode: "create",
7629
- keys: props.keys,
7630
- models: props.models,
7631
- teams: props.teams,
7632
- username: props.username,
7633
- keyGenerationSettings: props.keyGenerationSettings,
7634
- onCreateKey: props.onGenerateKey,
7635
- onUpdateKey: async () => {
7636
- },
7637
- onGetConfig: props.onGetConfig
7638
- }
7639
- );
7640
-
7641
- // src/index.ts
7642
7602
  init_ManageTeamDialog();
7643
7603
  init_api();
7644
- init_permissions();
7604
+ import {
7605
+ litellmTeamCreatePermission as litellmTeamCreatePermission2,
7606
+ litellmTeamManagePermission as litellmTeamManagePermission2,
7607
+ litellmTeamMembersManagePermission as litellmTeamMembersManagePermission2,
7608
+ litellmTeamKnowledgebaseManagePermission as litellmTeamKnowledgebaseManagePermission2,
7609
+ litellmTeamMcpManagePermission as litellmTeamMcpManagePermission2
7610
+ } from "@acarmisc/backstage-plugin-litellm-common";
7645
7611
  export {
7646
7612
  DashboardHeader,
7647
7613
  GenerateKeyButton,
7648
- GenerateKeyDialog,
7649
7614
  KeyFormDialog,
7650
7615
  KeysTable,
7651
7616
  LiteLLMBudgetGauges,
@@ -7656,12 +7621,13 @@ export {
7656
7621
  ManageTeamDialog,
7657
7622
  TeamUsage,
7658
7623
  UsageStats,
7624
+ litellmPlugin as default,
7659
7625
  liteLlmApiRef,
7660
7626
  litellmPlugin,
7661
- litellmTeamCreatePermission,
7662
- litellmTeamKnowledgebaseManagePermission,
7663
- litellmTeamManagePermission,
7664
- litellmTeamMcpManagePermission,
7665
- litellmTeamMembersManagePermission
7627
+ litellmTeamCreatePermission2 as litellmTeamCreatePermission,
7628
+ litellmTeamKnowledgebaseManagePermission2 as litellmTeamKnowledgebaseManagePermission,
7629
+ litellmTeamManagePermission2 as litellmTeamManagePermission,
7630
+ litellmTeamMcpManagePermission2 as litellmTeamMcpManagePermission,
7631
+ litellmTeamMembersManagePermission2 as litellmTeamMembersManagePermission
7666
7632
  };
7667
7633
  //# sourceMappingURL=index.esm.js.map