@carlonicora/nextjs-jsonapi 1.117.0 → 1.117.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.
Files changed (34) hide show
  1. package/dist/{AssistantMessageInterface-Ca0G0vZw.d.mts → AssistantMessageInterface-DH1QwtC_.d.mts} +1 -0
  2. package/dist/{AssistantMessageInterface-DEZ5AnVl.d.ts → AssistantMessageInterface-giWvsOrX.d.ts} +1 -0
  3. package/dist/{BlockNoteEditor-6UREFUSJ.js → BlockNoteEditor-CEWZCORH.js} +9 -9
  4. package/dist/{BlockNoteEditor-6UREFUSJ.js.map → BlockNoteEditor-CEWZCORH.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-UQOOX3UT.mjs → BlockNoteEditor-K4T6QOJO.mjs} +2 -2
  6. package/dist/billing/index.js +299 -299
  7. package/dist/billing/index.mjs +1 -1
  8. package/dist/{chunk-HXU2HDRN.js → chunk-56QAXZKI.js} +245 -237
  9. package/dist/chunk-56QAXZKI.js.map +1 -0
  10. package/dist/{chunk-SVEPL5J2.mjs → chunk-6D4GJHLK.mjs} +16 -8
  11. package/dist/chunk-6D4GJHLK.mjs.map +1 -0
  12. package/dist/client/index.js +2 -2
  13. package/dist/client/index.mjs +1 -1
  14. package/dist/components/index.d.mts +1 -1
  15. package/dist/components/index.d.ts +1 -1
  16. package/dist/components/index.js +2 -2
  17. package/dist/components/index.mjs +1 -1
  18. package/dist/contexts/index.d.mts +1 -1
  19. package/dist/contexts/index.d.ts +1 -1
  20. package/dist/contexts/index.js +2 -2
  21. package/dist/contexts/index.mjs +1 -1
  22. package/dist/core/index.d.mts +2 -2
  23. package/dist/core/index.d.ts +2 -2
  24. package/dist/features/help/index.js +30 -30
  25. package/dist/features/help/index.mjs +1 -1
  26. package/dist/index.d.mts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/src/components/navigations/Breadcrumb.tsx +31 -5
  30. package/src/hooks/useSocket.ts +12 -1
  31. package/src/interfaces/breadcrumb.item.data.interface.ts +1 -0
  32. package/dist/chunk-HXU2HDRN.js.map +0 -1
  33. package/dist/chunk-SVEPL5J2.mjs.map +0 -1
  34. /package/dist/{BlockNoteEditor-UQOOX3UT.mjs.map → BlockNoteEditor-K4T6QOJO.mjs.map} +0 -0
@@ -7443,7 +7443,15 @@ function useSocket({ token }) {
7443
7443
  });
7444
7444
  }, "handleMessage");
7445
7445
  const handleNotification = /* @__PURE__ */ __name((data) => {
7446
- const notification = rehydrate(Modules.Notification, data);
7446
+ const resource = data?.data ?? data?.jsonApi;
7447
+ if (!resource?.type) {
7448
+ console.warn("[useSocket] ignoring notification with unexpected payload shape", data);
7449
+ return;
7450
+ }
7451
+ const notification = rehydrate(Modules.Notification, {
7452
+ jsonApi: resource,
7453
+ included: data?.included || []
7454
+ });
7447
7455
  if (notification) {
7448
7456
  setSocketNotifications((prev) => {
7449
7457
  const newNotifications = [...prev, notification];
@@ -9786,7 +9794,7 @@ import { useRef as useRef15 } from "react";
9786
9794
  import dynamic from "next/dynamic";
9787
9795
  import React17 from "react";
9788
9796
  import { jsx as jsx77 } from "react/jsx-runtime";
9789
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-UQOOX3UT.mjs"), {
9797
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-K4T6QOJO.mjs"), {
9790
9798
  ssr: false
9791
9799
  });
9792
9800
  var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -13943,19 +13951,19 @@ function BreadcrumbDesktop({
13943
13951
  /* @__PURE__ */ jsx143(BreadcrumbItem, { children: /* @__PURE__ */ jsx143(Link, { href: generateUrl({ page: `/` }), children: t(`common.home`) }) }),
13944
13952
  items.length > 0 && /* @__PURE__ */ jsx143(BreadcrumbSeparator, {}),
13945
13953
  items.length > ITEMS_TO_DISPLAY ? /* @__PURE__ */ jsxs82(Fragment21, { children: [
13946
- /* @__PURE__ */ jsx143(BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ jsx143(Link, { href: items[0].href, children: items[0].name }) : /* @__PURE__ */ jsx143(Fragment21, { children: items[0].name }) }),
13954
+ /* @__PURE__ */ jsx143(BreadcrumbItem, { children: items[0].href ? /* @__PURE__ */ jsx143(Link, { href: items[0].href, onClick: items[0].onClick, children: items[0].name }) : /* @__PURE__ */ jsx143(Fragment21, { children: items[0].name }) }),
13947
13955
  /* @__PURE__ */ jsx143(BreadcrumbSeparator, {}),
13948
13956
  /* @__PURE__ */ jsx143(BreadcrumbItem, { children: /* @__PURE__ */ jsxs82(DropdownMenu, { open, onOpenChange: setOpen, children: [
13949
13957
  /* @__PURE__ */ jsx143(DropdownMenuTrigger, { className: "flex items-center gap-1", "aria-label": "Toggle menu", children: /* @__PURE__ */ jsx143(BreadcrumbEllipsis, { className: "h-4 w-4" }) }),
13950
- /* @__PURE__ */ jsx143(DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ jsx143(DropdownMenuItem, { children: /* @__PURE__ */ jsx143(Link, { href: item.href ? item.href : "#", children: item.name }) }, index)) })
13958
+ /* @__PURE__ */ jsx143(DropdownMenuContent, { align: "start", children: items.slice(1, -ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ jsx143(DropdownMenuItem, { children: /* @__PURE__ */ jsx143(Link, { href: item.href ? item.href : "#", onClick: item.onClick, children: item.name }) }, index)) })
13951
13959
  ] }) }),
13952
13960
  /* @__PURE__ */ jsx143(BreadcrumbSeparator, {}),
13953
13961
  items.slice(-ITEMS_TO_DISPLAY + 2).map((item, index) => /* @__PURE__ */ jsxs82(Fragment20, { children: [
13954
- /* @__PURE__ */ jsx143(BreadcrumbItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }),
13962
+ /* @__PURE__ */ jsx143(BreadcrumbItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }),
13955
13963
  index < items.slice(-ITEMS_TO_DISPLAY + 2).length - 1 && /* @__PURE__ */ jsx143(BreadcrumbSeparator, {})
13956
13964
  ] }, index))
13957
13965
  ] }) : /* @__PURE__ */ jsx143(Fragment21, { children: items.map((item, index) => /* @__PURE__ */ jsxs82(Fragment20, { children: [
13958
- /* @__PURE__ */ jsx143(BreadcrumbItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }),
13966
+ /* @__PURE__ */ jsx143(BreadcrumbItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }),
13959
13967
  index < items.length - 1 && /* @__PURE__ */ jsx143(BreadcrumbSeparator, {})
13960
13968
  ] }, index)) })
13961
13969
  ] }) });
@@ -13977,7 +13985,7 @@ function BreadcrumbMobile({
13977
13985
  lastItem?.name,
13978
13986
  /* @__PURE__ */ jsx143(ChevronDownIcon8, { className: "text-muted-foreground size-3.5" })
13979
13987
  ] }),
13980
- /* @__PURE__ */ jsx143(DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ jsx143(DropdownMenuItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }, index)) })
13988
+ /* @__PURE__ */ jsx143(DropdownMenuContent, { align: "start", children: allItems.map((item, index) => /* @__PURE__ */ jsx143(DropdownMenuItem, { children: item.href ? /* @__PURE__ */ jsx143(Link, { href: item.href, onClick: item.onClick, children: item.name }) : /* @__PURE__ */ jsx143(Fragment21, { children: item.name }) }, index)) })
13981
13989
  ] });
13982
13990
  }
13983
13991
  __name(BreadcrumbMobile, "BreadcrumbMobile");
@@ -22976,4 +22984,4 @@ export {
22976
22984
  useOAuthClients,
22977
22985
  useOAuthClient
22978
22986
  };
22979
- //# sourceMappingURL=chunk-SVEPL5J2.mjs.map
22987
+ //# sourceMappingURL=chunk-6D4GJHLK.mjs.map