@carlonicora/nextjs-jsonapi 1.89.0 → 1.89.1

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.
@@ -3453,10 +3453,10 @@ function SheetDescription({ className, ...props }) {
3453
3453
  __name(SheetDescription, "SheetDescription");
3454
3454
 
3455
3455
  // src/shadcnui/ui/sidebar.tsx
3456
- import * as React6 from "react";
3457
3456
  import { mergeProps as mergeProps3 } from "@base-ui/react/merge-props";
3458
3457
  import { useRender as useRender3 } from "@base-ui/react/use-render";
3459
3458
  import { cva as cva7 } from "class-variance-authority";
3459
+ import * as React6 from "react";
3460
3460
 
3461
3461
  // src/shadcnui/ui/skeleton.tsx
3462
3462
  import { jsx as jsx35 } from "react/jsx-runtime";
@@ -3525,7 +3525,7 @@ var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
3525
3525
  var SIDEBAR_WIDTH = "16rem";
3526
3526
  var SIDEBAR_WIDTH_MOBILE = "18rem";
3527
3527
  var SIDEBAR_WIDTH_ICON = "3rem";
3528
- var SIDEBAR_KEYBOARD_SHORTCUT = "b";
3528
+ var SIDEBAR_KEYBOARD_SHORTCUT = "";
3529
3529
  var SidebarContext = React6.createContext(null);
3530
3530
  function useSidebar() {
3531
3531
  const context = React6.useContext(SidebarContext);
@@ -9211,7 +9211,7 @@ __name(FormCheckbox, "FormCheckbox");
9211
9211
  import dynamic from "next/dynamic";
9212
9212
  import React14 from "react";
9213
9213
  import { jsx as jsx73 } from "react/jsx-runtime";
9214
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-Q6CMLHU3.mjs"), {
9214
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-7XTFKIVT.mjs"), {
9215
9215
  ssr: false
9216
9216
  });
9217
9217
  var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -13595,8 +13595,8 @@ function BlockNoteEditorMentionHoverCard({
13595
13595
  }, [containerRef, mentionResolveFn, cancelClose, scheduleClose]);
13596
13596
  if (!hovered || !mentionResolveFn) return null;
13597
13597
  const resolved = mentionResolveFn(hovered.id, hovered.entityType, hovered.alias);
13598
- if (!resolved?.HoverCardContent) return null;
13599
- const ContentComponent = resolved.HoverCardContent;
13598
+ if (!resolved?.HoverContent) return null;
13599
+ const ContentComponent = resolved.HoverContent;
13600
13600
  const rect = hovered.element.getBoundingClientRect();
13601
13601
  return createPortal3(
13602
13602
  /* @__PURE__ */ jsx150(
@@ -13624,24 +13624,24 @@ import { createReactInlineContentSpec } from "@blocknote/react";
13624
13624
  import Link3 from "next/link";
13625
13625
  import React20 from "react";
13626
13626
  import { jsx as jsx151, jsxs as jsxs90 } from "react/jsx-runtime";
13627
+ var mentionDataAttrs = /* @__PURE__ */ __name((p) => ({
13628
+ "data-mention-id": p.id,
13629
+ "data-mention-type": p.entityType,
13630
+ "data-mention-alias": p.alias
13631
+ }), "mentionDataAttrs");
13627
13632
  var createMentionInlineContentSpec = /* @__PURE__ */ __name((resolveFn) => {
13628
- const Mention = React20.memo(/* @__PURE__ */ __name(function Mention2({ id, entityType, alias }) {
13629
- const resolved = resolveFn?.(id, entityType, alias);
13633
+ const Mention = React20.memo(/* @__PURE__ */ __name(function Mention2(props) {
13634
+ const resolved = resolveFn?.(props.id, props.entityType, props.alias);
13635
+ if (resolved?.Inline) {
13636
+ const Custom = resolved.Inline;
13637
+ return /* @__PURE__ */ jsx151(Custom, { ...props });
13638
+ }
13630
13639
  const href = resolved?.url ?? "#";
13631
- return /* @__PURE__ */ jsxs90(
13632
- Link3,
13633
- {
13634
- href,
13635
- className: "text-primary",
13636
- "data-mention-id": id,
13637
- "data-mention-type": entityType,
13638
- "data-mention-alias": alias,
13639
- children: [
13640
- "@",
13641
- alias
13642
- ]
13643
- }
13644
- );
13640
+ const handleClick = resolved?.onActivate ? (e) => resolved.onActivate(e, props) : void 0;
13641
+ return /* @__PURE__ */ jsxs90(Link3, { href, className: "text-primary", onClick: handleClick, ...mentionDataAttrs(props), children: [
13642
+ "@",
13643
+ props.alias
13644
+ ] });
13645
13645
  }, "Mention"));
13646
13646
  return createReactInlineContentSpec(
13647
13647
  {
@@ -21699,6 +21699,7 @@ export {
21699
21699
  AllowedUsersDetails,
21700
21700
  ErrorDetails,
21701
21701
  BlockNoteEditorMentionHoverCard,
21702
+ mentionDataAttrs,
21702
21703
  createMentionInlineContentSpec,
21703
21704
  BlockNoteEditorMentionSuggestionMenu,
21704
21705
  BlockNoteEditorContainer,
@@ -21875,4 +21876,4 @@ export {
21875
21876
  useOAuthClients,
21876
21877
  useOAuthClient
21877
21878
  };
21878
- //# sourceMappingURL=chunk-3VQBHUNX.mjs.map
21879
+ //# sourceMappingURL=chunk-VFS7UECR.mjs.map