@carlonicora/nextjs-jsonapi 1.42.1 → 1.43.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.
@@ -47,7 +47,7 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-V35USBCM.mjs";
50
+ } from "../chunk-OBPYOP7P.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
@@ -6785,7 +6785,7 @@ __name(errorToast, "errorToast");
6785
6785
 
6786
6786
  // src/components/forms/CommonDeleter.tsx
6787
6787
  import { Fragment as Fragment4, jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
6788
- function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
6788
+ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow, testId }) {
6789
6789
  const t = useI18nTranslations();
6790
6790
  const router = useI18nRouter();
6791
6791
  const [open, setOpen] = useState11(forceShow || false);
@@ -6810,6 +6810,7 @@ function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
6810
6810
  size: "sm",
6811
6811
  variant: "ghost",
6812
6812
  className: "text-muted-foreground hover:text-destructive",
6813
+ "data-testid": testId,
6813
6814
  children: /* @__PURE__ */ jsx56(Trash2Icon, {})
6814
6815
  }
6815
6816
  ) }),
@@ -6898,9 +6899,20 @@ __name(CommonEditorHeader, "CommonEditorHeader");
6898
6899
  import { PencilIcon } from "lucide-react";
6899
6900
  import { useTranslations as useTranslations8 } from "next-intl";
6900
6901
  import { jsx as jsx59 } from "react/jsx-runtime";
6901
- function CommonEditorTrigger({ isEdit, edit: _edit, create }) {
6902
+ function CommonEditorTrigger({ isEdit, edit: _edit, create, testId }) {
6902
6903
  const t = useTranslations8();
6903
- return /* @__PURE__ */ jsx59(DialogTrigger, { children: isEdit ? /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `ghost`, className: "text-muted-foreground", children: /* @__PURE__ */ jsx59(PencilIcon, {}) }) : /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `outline`, children: create ? create : t(`ui.buttons.create`) }) });
6904
+ return /* @__PURE__ */ jsx59(DialogTrigger, { children: isEdit ? /* @__PURE__ */ jsx59(
6905
+ Button,
6906
+ {
6907
+ render: /* @__PURE__ */ jsx59("div", {}),
6908
+ nativeButton: false,
6909
+ size: "sm",
6910
+ variant: `ghost`,
6911
+ className: "text-muted-foreground",
6912
+ "data-testid": testId,
6913
+ children: /* @__PURE__ */ jsx59(PencilIcon, {})
6914
+ }
6915
+ ) : /* @__PURE__ */ jsx59(Button, { render: /* @__PURE__ */ jsx59("div", {}), nativeButton: false, size: "sm", variant: `outline`, "data-testid": testId, children: create ? create : t(`ui.buttons.create`) }) });
6904
6916
  }
6905
6917
  __name(CommonEditorTrigger, "CommonEditorTrigger");
6906
6918
 
@@ -10866,7 +10878,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
10866
10878
  import dynamic from "next/dynamic";
10867
10879
  import React15 from "react";
10868
10880
  import { jsx as jsx125 } from "react/jsx-runtime";
10869
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-PBQFKKXW.mjs"), {
10881
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-Y6CS2DE5.mjs"), {
10870
10882
  ssr: false
10871
10883
  });
10872
10884
  var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -16433,4 +16445,4 @@ export {
16433
16445
  useOAuthClients,
16434
16446
  useOAuthClient
16435
16447
  };
16436
- //# sourceMappingURL=chunk-V35USBCM.mjs.map
16448
+ //# sourceMappingURL=chunk-OBPYOP7P.mjs.map