@carlonicora/nextjs-jsonapi 4.0.8 → 4.1.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 (68) hide show
  1. package/dist/{BlockNoteEditor-MCYQBKT5.js → BlockNoteEditor-BENYTTCZ.js} +19 -19
  2. package/dist/{BlockNoteEditor-MCYQBKT5.js.map → BlockNoteEditor-BENYTTCZ.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-A2E4VUYB.mjs → BlockNoteEditor-VOYKZOP5.mjs} +4 -4
  4. package/dist/{BlockNoteViewer-TEC7DN2N.js → BlockNoteViewer-USLR4Y7C.js} +3 -3
  5. package/dist/{BlockNoteViewer-TEC7DN2N.js.map → BlockNoteViewer-USLR4Y7C.js.map} +1 -1
  6. package/dist/{BlockNoteViewer-4THJHQMK.mjs → BlockNoteViewer-Y2ZM4ESA.mjs} +2 -2
  7. package/dist/billing/index.js +399 -399
  8. package/dist/billing/index.mjs +3 -3
  9. package/dist/{chunk-IOG22OAO.mjs → chunk-46S3KPLU.mjs} +2 -2
  10. package/dist/{chunk-5PNDDYGL.js → chunk-4BZJ4LAB.js} +16 -2
  11. package/dist/chunk-4BZJ4LAB.js.map +1 -0
  12. package/dist/{chunk-DJRTJBSZ.mjs → chunk-6ISF5KNQ.mjs} +18 -7
  13. package/dist/chunk-6ISF5KNQ.mjs.map +1 -0
  14. package/dist/{chunk-C2WQXUL5.js → chunk-F7RNBGHS.js} +3 -3
  15. package/dist/{chunk-C2WQXUL5.js.map → chunk-F7RNBGHS.js.map} +1 -1
  16. package/dist/{chunk-RDI62FAT.mjs → chunk-HZVVRIJQ.mjs} +2 -2
  17. package/dist/{chunk-DYTKNSHY.js → chunk-KS6WZP2E.js} +4 -4
  18. package/dist/{chunk-DYTKNSHY.js.map → chunk-KS6WZP2E.js.map} +1 -1
  19. package/dist/{chunk-PL2FHXHR.js → chunk-ORU7KLCY.js} +1068 -1057
  20. package/dist/chunk-ORU7KLCY.js.map +1 -0
  21. package/dist/{chunk-7ZRQOLSV.js → chunk-WQ77CUUZ.js} +7 -7
  22. package/dist/{chunk-7ZRQOLSV.js.map → chunk-WQ77CUUZ.js.map} +1 -1
  23. package/dist/{chunk-XTOEN5GN.mjs → chunk-ZO3QQ5CQ.mjs} +2 -2
  24. package/dist/{chunk-Z3226FM6.mjs → chunk-ZZ6E33FO.mjs} +16 -2
  25. package/dist/chunk-ZZ6E33FO.mjs.map +1 -0
  26. package/dist/client/index.js +4 -4
  27. package/dist/client/index.mjs +3 -3
  28. package/dist/components/index.js +4 -4
  29. package/dist/components/index.mjs +3 -3
  30. package/dist/contexts/index.js +4 -4
  31. package/dist/contexts/index.mjs +3 -3
  32. package/dist/core/index.js +2 -2
  33. package/dist/core/index.mjs +1 -1
  34. package/dist/features/analytics/index.js +122 -122
  35. package/dist/features/analytics/index.mjs +4 -4
  36. package/dist/features/analytics/server.js +4 -4
  37. package/dist/features/analytics/server.mjs +2 -2
  38. package/dist/features/help/index.js +37 -37
  39. package/dist/features/help/index.mjs +3 -3
  40. package/dist/features/tokenusage/index.js +125 -125
  41. package/dist/features/tokenusage/index.mjs +4 -4
  42. package/dist/index.js +3 -3
  43. package/dist/index.mjs +2 -2
  44. package/dist/next-config/index.d.mts +8 -1
  45. package/dist/next-config/index.d.ts +8 -1
  46. package/dist/next-config/index.js +31 -9
  47. package/dist/next-config/index.js.map +1 -1
  48. package/dist/next-config/index.mjs +31 -9
  49. package/dist/next-config/index.mjs.map +1 -1
  50. package/dist/server/index.js +3 -3
  51. package/dist/server/index.mjs +2 -2
  52. package/package.json +1 -1
  53. package/src/features/company/components/details/CompanyContent.tsx +9 -2
  54. package/src/features/company/components/forms/CompanyEditor.tsx +2 -0
  55. package/src/next-config/__tests__/createNextConfig.test.ts +45 -3
  56. package/src/next-config/csp.ts +25 -4
  57. package/src/next-config/index.ts +19 -12
  58. package/src/utils/__tests__/use-mobile.test.tsx +111 -0
  59. package/src/utils/use-mobile.tsx +30 -1
  60. package/dist/chunk-5PNDDYGL.js.map +0 -1
  61. package/dist/chunk-DJRTJBSZ.mjs.map +0 -1
  62. package/dist/chunk-PL2FHXHR.js.map +0 -1
  63. package/dist/chunk-Z3226FM6.mjs.map +0 -1
  64. /package/dist/{BlockNoteEditor-A2E4VUYB.mjs.map → BlockNoteEditor-VOYKZOP5.mjs.map} +0 -0
  65. /package/dist/{BlockNoteViewer-4THJHQMK.mjs.map → BlockNoteViewer-Y2ZM4ESA.mjs.map} +0 -0
  66. /package/dist/{chunk-IOG22OAO.mjs.map → chunk-46S3KPLU.mjs.map} +0 -0
  67. /package/dist/{chunk-RDI62FAT.mjs.map → chunk-HZVVRIJQ.mjs.map} +0 -0
  68. /package/dist/{chunk-XTOEN5GN.mjs.map → chunk-ZO3QQ5CQ.mjs.map} +0 -0
@@ -13,7 +13,7 @@ import {
13
13
  isInternalAuthEnabled,
14
14
  isReferralEnabled,
15
15
  isRegistrationAllowed
16
- } from "./chunk-XTOEN5GN.mjs";
16
+ } from "./chunk-ZO3QQ5CQ.mjs";
17
17
  import {
18
18
  getRoleId,
19
19
  isRolesConfigured
@@ -84,7 +84,7 @@ import {
84
84
  useIsMobile,
85
85
  validateItalianTaxCode,
86
86
  validatePartitaIva
87
- } from "./chunk-Z3226FM6.mjs";
87
+ } from "./chunk-ZZ6E33FO.mjs";
88
88
  import {
89
89
  ENV
90
90
  } from "./chunk-V5MI7RNB.mjs";
@@ -10587,7 +10587,7 @@ import { useRef as useRef18 } from "react";
10587
10587
  import dynamic from "next/dynamic";
10588
10588
  import React18 from "react";
10589
10589
  import { jsx as jsx90 } from "react/jsx-runtime";
10590
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-A2E4VUYB.mjs"), {
10590
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-VOYKZOP5.mjs"), {
10591
10591
  ssr: false
10592
10592
  });
10593
10593
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -12692,7 +12692,17 @@ function CompanyContent({ company, actions }) {
12692
12692
  actions && /* @__PURE__ */ jsx132("div", { className: "flex items-center gap-x-2", children: actions })
12693
12693
  ] }),
12694
12694
  /* @__PURE__ */ jsxs74("div", { className: "flex items-start gap-x-6", children: [
12695
- company.logo && /* @__PURE__ */ jsx132(Image5, { src: company.logo, alt: company.name, width: 150, height: 150, className: "rounded-md" }),
12695
+ company.logo && /* @__PURE__ */ jsx132(
12696
+ Image5,
12697
+ {
12698
+ src: company.logo,
12699
+ alt: company.name,
12700
+ width: 150,
12701
+ height: 150,
12702
+ className: "rounded-md",
12703
+ unoptimized: isRemoteImageSrc(company.logo)
12704
+ }
12705
+ ),
12696
12706
  /* @__PURE__ */ jsxs74("div", { className: "flex flex-col gap-y-2", children: [
12697
12707
  company.legal_address && /* @__PURE__ */ jsxs74("div", { className: "text-muted-foreground flex items-center gap-x-2 text-sm", children: [
12698
12708
  /* @__PURE__ */ jsx132(MapPinIcon, { className: "h-4 w-4 shrink-0" }),
@@ -13076,7 +13086,8 @@ function CompanyEditorInternal({
13076
13086
  src: file ? URL.createObjectURL(file) : company?.logo || "",
13077
13087
  alt: "Company Logo",
13078
13088
  width: 200,
13079
- height: 200
13089
+ height: 200,
13090
+ unoptimized: isRemoteImageSrc(file ? void 0 : company?.logo)
13080
13091
  }
13081
13092
  ) : /* @__PURE__ */ jsxs78(Fragment18, { children: [
13082
13093
  /* @__PURE__ */ jsx136(UploadIcon3, { className: "my-4 h-8 w-8" }),
@@ -16737,7 +16748,7 @@ __name(BlockNoteEditorMentionSuggestionMenu, "BlockNoteEditorMentionSuggestionMe
16737
16748
  import dynamic2 from "next/dynamic";
16738
16749
  import React29 from "react";
16739
16750
  import { jsx as jsx177 } from "react/jsx-runtime";
16740
- var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-4THJHQMK.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
16751
+ var BlockNoteViewer = dynamic2(() => import("./BlockNoteViewer-Y2ZM4ESA.mjs").then((m) => m.BlockNoteViewer), { ssr: false });
16741
16752
  var BlockNoteViewerContainer = React29.memo(/* @__PURE__ */ __name(function ViewerContainer(props) {
16742
16753
  return /* @__PURE__ */ jsx177(BlockNoteViewer, { ...props });
16743
16754
  }, "ViewerContainer"));
@@ -27971,4 +27982,4 @@ export {
27971
27982
  useOAuthClients,
27972
27983
  useOAuthClient
27973
27984
  };
27974
- //# sourceMappingURL=chunk-DJRTJBSZ.mjs.map
27985
+ //# sourceMappingURL=chunk-6ISF5KNQ.mjs.map