@haneinfo/m2m-api-key 8.0.4 → 8.0.5

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 +1 @@
1
- {"version":3,"file":"api-key-row-actions.d.ts","sourceRoot":"","sources":["../../src/frontend/api-key-row-actions.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,GAC7B,EAAE,qBAAqB,+BA8HvB"}
1
+ {"version":3,"file":"api-key-row-actions.d.ts","sourceRoot":"","sources":["../../src/frontend/api-key-row-actions.tsx"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,GAC7B,EAAE,qBAAqB,+BAgIvB"}
@@ -46,7 +46,7 @@ function ApiKeyRowActions({ apiKey, serviceAccounts, setApiKeyActiveAction, dele
46
46
  }
47
47
  });
48
48
  }
49
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.DropdownMenu, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuTrigger, { asChild: true, children: (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { variant: "ghost", size: "icon", "aria-label": `Actions for ${apiKey.name}`, children: (0, jsx_runtime_1.jsx)(lucide_react_1.MoreHorizontal, { className: "size-4" }) }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.DropdownMenuContent, { align: "end", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { onSelect: toggleActive, disabled: isPending, children: apiKey.isActive ? t('deactivate') : t('activate') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { onSelect: () => setActingUserOpen(true), children: t('setActingUser') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { variant: "destructive", onSelect: () => setDeleteOpen(true), children: tCommon('delete') })] })] }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Dialog, { open: actingUserOpen, onOpenChange: setActingUserOpen, children: (0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogHeader, { children: (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTitle, { children: t('setActingUser') }) }), (0, jsx_runtime_1.jsxs)("div", { className: "py-4", children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { value: selectedActingUserId, onValueChange: setSelectedActingUserId, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('actingUserNone') }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectContent, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: "__none", children: t('actingUserNone') }), serviceAccounts.map((account) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectItem, { value: account.id, children: [account.email, " ", account.name ? `(${account.name})` : ''] }, account.id)))] })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { className: "mt-2", children: error })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogFooter, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "button", variant: "outline", onClick: () => setActingUserOpen(false), disabled: isPending, children: t('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { onClick: handleActingUserSubmit, disabled: isPending, children: isPending ? t('saving') : t('save') })] })] }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialog, { open: deleteOpen, onOpenChange: setDeleteOpen, children: (0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogContent, { children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogHeader, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogTitle, { children: t('deleteApiKey') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogDescription, { children: t('deleteApiKeyDesc') })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { children: error }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogFooter, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogCancel, { disabled: isPending, children: t('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogAction, { onClick: (e) => {
49
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.DropdownMenu, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuTrigger, { asChild: true, children: (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { variant: "ghost", size: "icon", "aria-label": `${tCommon('actions')}: ${apiKey.name}`, children: (0, jsx_runtime_1.jsx)(lucide_react_1.MoreHorizontal, { className: "size-4" }) }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.DropdownMenuContent, { align: "end", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { onSelect: toggleActive, disabled: isPending, children: apiKey.isActive ? t('deactivate') : t('activate') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { onSelect: () => setActingUserOpen(true), children: t('editActingUser') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DropdownMenuItem, { variant: "destructive", onSelect: () => setDeleteOpen(true), children: tCommon('delete') })] })] }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Dialog, { open: actingUserOpen, onOpenChange: setActingUserOpen, children: (0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogContent, { closeLabel: tCommon('close'), children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogHeader, { children: (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTitle, { children: t('editActingUser') }) }), (0, jsx_runtime_1.jsxs)("div", { className: "py-4", children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { value: selectedActingUserId, onValueChange: setSelectedActingUserId, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('actingUserNone') }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectContent, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: "__none", children: t('actingUserNone') }), serviceAccounts.map((account) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectItem, { value: account.id, children: [account.email, " ", account.name ? `(${account.name})` : ''] }, account.id)))] })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { className: "mt-2", children: error })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogFooter, { className: "py-5", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "button", variant: "outline", onClick: () => setActingUserOpen(false), disabled: isPending, children: tCommon('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { onClick: handleActingUserSubmit, disabled: isPending, children: isPending ? t('saving') : tCommon('save') })] })] }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialog, { open: deleteOpen, onOpenChange: setDeleteOpen, children: (0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogContent, { children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogHeader, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogTitle, { children: t('deleteApiKeyTitle').replace('{name}', apiKey.name) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogDescription, { children: t('deleteWarning') })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { children: error }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.AlertDialogFooter, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogCancel, { disabled: isPending, children: tCommon('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.AlertDialogAction, { onClick: (e) => {
50
50
  e.preventDefault();
51
51
  handleDelete();
52
52
  }, disabled: isPending, className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", children: isPending ? t('deleting') : tCommon('delete') })] })] }) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"api-key-row-actions.js","sourceRoot":"","sources":["../../src/frontend/api-key-row-actions.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAiCb,4CAoIC;;AAnKD,6DA0BkC;AAClC,+CAA8C;AAC9C,iCAAgD;AAGhD,SAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,GACN;IACtB,MAAM,CAAC,GAAG,IAAA,gCAAe,EAAC,SAAS,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,IAAA,gCAAe,EAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,IAAA,gBAAQ,EAAC,MAAM,CAAC,YAAY,IAAI,QAAQ,CAAC,CAAC;IAClG,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,qBAAa,GAAE,CAAC;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAExD,SAAS,YAAY;QACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,eAAe,CAAC,KAAK,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,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-key-dialog.d.ts","sourceRoot":"","sources":["../../src/frontend/create-api-key-dialog.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,uBAAuB,EAAwB,MAAM,YAAY,CAAC;AAGhF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,EAAE,uBAAuB,+BAsIzB"}
1
+ {"version":3,"file":"create-api-key-dialog.d.ts","sourceRoot":"","sources":["../../src/frontend/create-api-key-dialog.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,uBAAuB,EAAwB,MAAM,YAAY,CAAC;AAGhF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,EAAE,uBAAuB,+BAiIzB"}
@@ -9,6 +9,7 @@ const created_api_key_reveal_js_1 = require("./created-api-key-reveal.js");
9
9
  const types_js_1 = require("./types.js");
10
10
  function CreateApiKeyDialog({ roles, serviceAccounts, scopeOptions, createApiKeyAction, }) {
11
11
  const t = (0, frontend_shell_1.useTranslations)('apiKeys');
12
+ const tCommon = (0, frontend_shell_1.useTranslations)('common');
12
13
  const [open, setOpen] = (0, react_1.useState)(false);
13
14
  const [isPending, startTransition] = (0, react_1.useTransition)();
14
15
  const [error, setError] = (0, react_1.useState)(null);
@@ -18,7 +19,7 @@ function CreateApiKeyDialog({ roles, serviceAccounts, scopeOptions, createApiKey
18
19
  startTransition(async () => {
19
20
  const result = await createApiKeyAction(formData);
20
21
  if (result.error || !result.created) {
21
- setError(result.error ?? 'Failed to create API key');
22
+ setError(result.error ?? t('createFailed'));
22
23
  }
23
24
  else {
24
25
  setCreated(result.created);
@@ -38,6 +39,6 @@ function CreateApiKeyDialog({ roles, serviceAccounts, scopeOptions, createApiKey
38
39
  value: `${resource}:${action}`,
39
40
  label: `${resource}:${action}`,
40
41
  })));
41
- return ((0, jsx_runtime_1.jsxs)(frontend_shell_1.Dialog, { open: open, onOpenChange: handleOpenChange, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTrigger, { asChild: true, children: (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { children: t('newApiKey') }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogContent, { children: created ? ((0, jsx_runtime_1.jsx)(created_api_key_reveal_js_1.CreatedApiKeyReveal, { created: created, onDone: () => setOpen(false) })) : ((0, jsx_runtime_1.jsxs)("form", { action: handleSubmit, children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogHeader, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTitle, { children: t('createApiKey') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogDescription, { children: t('createDesc') })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.FieldGroup, { className: "py-4", children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-name", children: t('name') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Input, { id: "new-key-name", name: "name", type: "text", required: true })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-role", children: t('role') }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { name: "roleId", required: true, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { id: "new-key-role", children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('selectRole') }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectContent, { children: roles.map((role) => ((0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: role.id, children: role.displayName }, role.id))) })] })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-acting-user", children: t('actingUser') }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { name: "actingUserId", defaultValue: "__none", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { id: "new-key-acting-user", children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('actingUserNone') }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectContent, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: "__none", children: t('actingUserNone') }), serviceAccounts.map((account) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectItem, { value: account.id, children: [account.email, " ", account.name ? `(${account.name})` : ''] }, account.id)))] })] })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { children: t('scopes') }), (0, jsx_runtime_1.jsx)("div", { className: "max-h-40 overflow-y-auto rounded-md border p-3", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2", children: resolvedScopeOptions.map((scope) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.Label, { className: "flex items-center gap-2 font-normal", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Checkbox, { name: "scopes", value: scope.value }), (0, jsx_runtime_1.jsx)("span", { className: "font-mono text-xs", children: scope.label })] }, scope.value))) }) })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-rate-limit", children: t('rateLimit') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Input, { id: "new-key-rate-limit", name: "rateLimit", type: "number", min: 1, placeholder: t('rateLimitPlaceholder') })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-expires", children: t('expiresAt') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DateTimePicker, { name: "expiresAt" })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { children: error })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-end gap-2 pt-2", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "button", variant: "outline", onClick: () => setOpen(false), disabled: isPending, children: t('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "submit", disabled: isPending, children: isPending ? t('creating') : t('create') })] })] })) })] }));
42
+ return ((0, jsx_runtime_1.jsxs)(frontend_shell_1.Dialog, { open: open, onOpenChange: handleOpenChange, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTrigger, { asChild: true, children: (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { children: t('newApiKey') }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogContent, { closeLabel: tCommon('close'), children: created ? ((0, jsx_runtime_1.jsx)(created_api_key_reveal_js_1.CreatedApiKeyReveal, { created: created, onDone: () => setOpen(false) })) : ((0, jsx_runtime_1.jsxs)("form", { action: handleSubmit, children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.DialogHeader, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.DialogTitle, { children: t('createApiKey') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DialogDescription, { children: t('createDesc') })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.FieldGroup, { className: "py-4", children: [(0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-name", children: t('name') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Input, { id: "new-key-name", name: "name", type: "text", required: true })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-role", children: t('role') }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { name: "roleId", required: true, children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { id: "new-key-role", children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('selectRole') }) }), (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectContent, { children: roles.map((role) => ((0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: role.id, children: role.displayName }, role.id))) })] })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-acting-user", children: t('actingUser') }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Select, { name: "actingUserId", defaultValue: "__none", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectTrigger, { id: "new-key-acting-user", children: (0, jsx_runtime_1.jsx)(frontend_shell_1.SelectValue, { placeholder: t('actingUserNone') }) }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectContent, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.SelectItem, { value: "__none", children: t('actingUserNone') }), serviceAccounts.map((account) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.SelectItem, { value: account.id, children: [account.email, " ", account.name ? `(${account.name})` : ''] }, account.id)))] })] })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { children: t('scopes') }), (0, jsx_runtime_1.jsx)("div", { className: "max-h-40 overflow-y-auto rounded-md border p-3", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2", children: resolvedScopeOptions.map((scope) => ((0, jsx_runtime_1.jsxs)(frontend_shell_1.Label, { className: "flex items-center gap-2 font-normal", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Checkbox, { name: "scopes", value: scope.value }), (0, jsx_runtime_1.jsx)("span", { className: "font-mono text-xs", children: scope.label })] }, scope.value))) }) })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-rate-limit", children: t('rateLimit') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Input, { id: "new-key-rate-limit", name: "rateLimit", type: "number", min: 1 })] }), (0, jsx_runtime_1.jsxs)(frontend_shell_1.Field, { children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.FieldLabel, { htmlFor: "new-key-expires", children: t('expiresAt') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.DateTimePicker, { name: "expiresAt" })] }), error && (0, jsx_runtime_1.jsx)(frontend_shell_1.FieldError, { children: error })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-end gap-2 pt-2", children: [(0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "button", variant: "outline", onClick: () => setOpen(false), disabled: isPending, children: tCommon('cancel') }), (0, jsx_runtime_1.jsx)(frontend_shell_1.Button, { type: "submit", disabled: isPending, children: isPending ? t('creating') : t('create') })] })] })) })] }));
42
43
  }
43
44
  //# sourceMappingURL=create-api-key-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-key-dialog.js","sourceRoot":"","sources":["../../src/frontend/create-api-key-dialog.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AA8Bb,gDA2IC;;AAvKD,6DAsBkC;AAClC,iCAAgD;AAChD,2EAAkE;AAElE,yCAA4D;AAE5D,SAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,eAAe,EACf,YAAY,EACZ,kBAAkB,GACM;IACxB,MAAM,CAAC,GAAG,IAAA,gCAAe,EAAC,SAAS,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACxC,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,qBAAa,GAAE,CAAC;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,C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,CAAC,KAAK,GAAQ,KAF9C,KAAK,CAAC,KAAK,CAGf,CACT,CAAC,GACE,GACF,IACA,EACR,wBAAC,sBAAK,eACJ,uBAAC,2BAAU,IAAC,OAAO,EAAC,oBAAoB,YAAE,CAAC,CAAC,WAAW,CAAC,GAAc,EACtE,uBAAC,sBAAK,IAAC,EAAE,EAAC,oBAAoB,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,GAAI,IAClE,EACR,wBAAC,sBAAK,eACJ,uBAAC,2BAAU,IAAC,OAAO,EAAC,iBAAiB,YAAE,CAAC,CAAC,WAAW,CAAC,GAAc,EACnE,uBAAC,+BAAc,IAAC,IAAI,EAAC,WAAW,GAAG,IAC7B,EACP,KAAK,IAAI,uBAAC,2BAAU,cAAE,KAAK,GAAc,IAC/B,EACb,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,uBAAC,uBAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC7B,QAAQ,EAAE,SAAS,YAElB,OAAO,CAAC,QAAQ,CAAC,GACX,EACT,uBAAC,uBAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,SAAS,YACtC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GACjC,IACL,IACD,CACR,GACa,IACT,CACV,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haneinfo/m2m-api-key",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@haneinfo/common": "0.3.4",
34
- "@haneinfo/frontend-shell": "1.2.0",
34
+ "@haneinfo/frontend-shell": "1.3.0",
35
35
  "@haneinfo/plugin-api": "1.4.0"
36
36
  },
37
37
  "peerDependencies": {
@@ -78,11 +78,11 @@
78
78
  "typescript": "^5.9.3",
79
79
  "vitest": "^4.1.11",
80
80
  "zod": "^4.4.0",
81
- "@haneinfo/plugin-testkit": "2.2.0",
82
81
  "@haneinfo/plugin-host-nest": "2.0.0",
83
- "@haneinfo/frontend-shell": "1.2.0",
84
82
  "@haneinfo/common": "0.3.4",
85
- "@haneinfo/rbac": "7.0.4"
83
+ "@haneinfo/plugin-testkit": "2.2.0",
84
+ "@haneinfo/frontend-shell": "1.3.0",
85
+ "@haneinfo/rbac": "7.0.5"
86
86
  },
87
87
  "license": "UNLICENSED",
88
88
  "publishConfig": {