@carlonicora/nextjs-jsonapi 3.5.8 → 3.5.9

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.
@@ -9746,17 +9746,33 @@ function EditorSheet({
9746
9746
  // is resolved per trigger rather than hardcoded (a constant `false`
9747
9747
  // warned on every native-button trigger).
9748
9748
  /* @__PURE__ */ jsx86(SheetTrigger, { nativeButton: resolveTriggerIsNativeButton(trigger), render: trigger })
9749
- ) : /* @__PURE__ */ jsx86(SheetTrigger, { children: isEdit ? /* @__PURE__ */ jsx86(
9750
- Button,
9751
- {
9752
- render: /* @__PURE__ */ jsx86("div", {}),
9753
- nativeButton: false,
9754
- size: "sm",
9755
- variant: "ghost",
9756
- className: "text-muted-foreground",
9757
- children: /* @__PURE__ */ jsx86(PencilIcon3, {})
9758
- }
9759
- ) : /* @__PURE__ */ jsx86(Button, { render: /* @__PURE__ */ jsx86("div", {}), nativeButton: false, size: "sm", variant: "outline", children: t("ui.buttons.create") }) })),
9749
+ ) : (
9750
+ // The default trigger goes through `render` for the SAME reason the
9751
+ // caller-supplied one above does. As CHILDREN, the Button rendered a
9752
+ // second `role="button"` inside SheetTrigger's own button: two nodes
9753
+ // with one accessible name, which a screen reader announces as a
9754
+ // button inside a button and which makes
9755
+ // `getByRole("button", { name })` ambiguous (e2e DRQ-01 failed strict
9756
+ // mode on exactly this). `nativeButton={false}` because both variants
9757
+ // render a <div>, matching the element the trigger actually emits.
9758
+ /* @__PURE__ */ jsx86(
9759
+ SheetTrigger,
9760
+ {
9761
+ nativeButton: false,
9762
+ render: isEdit ? /* @__PURE__ */ jsx86(
9763
+ Button,
9764
+ {
9765
+ render: /* @__PURE__ */ jsx86("div", {}),
9766
+ nativeButton: false,
9767
+ size: "sm",
9768
+ variant: "ghost",
9769
+ className: "text-muted-foreground",
9770
+ children: /* @__PURE__ */ jsx86(PencilIcon3, {})
9771
+ }
9772
+ ) : /* @__PURE__ */ jsx86(Button, { render: /* @__PURE__ */ jsx86("div", {}), nativeButton: false, size: "sm", variant: "outline", children: t("ui.buttons.create") })
9773
+ }
9774
+ )
9775
+ )),
9760
9776
  /* @__PURE__ */ jsxs48(SheetContent, { side: "end", className: sizeClasses[size], children: [
9761
9777
  /* @__PURE__ */ jsx86(SheetHeader, { className: "border-b px-6 py-4", children: actions ? (
9762
9778
  // pe-10 clears the SheetContent close button, which sits at the
@@ -10327,7 +10343,7 @@ import { useRef as useRef17 } from "react";
10327
10343
  import dynamic from "next/dynamic";
10328
10344
  import React18 from "react";
10329
10345
  import { jsx as jsx89 } from "react/jsx-runtime";
10330
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5LH6CCQF.mjs"), {
10346
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-5AQQQQY3.mjs"), {
10331
10347
  ssr: false
10332
10348
  });
10333
10349
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -25631,4 +25647,4 @@ export {
25631
25647
  useOAuthClients,
25632
25648
  useOAuthClient
25633
25649
  };
25634
- //# sourceMappingURL=chunk-Q2QO5XYN.mjs.map
25650
+ //# sourceMappingURL=chunk-OE2WEAPU.mjs.map