@carlonicora/nextjs-jsonapi 1.102.0 → 1.104.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.
Files changed (46) hide show
  1. package/dist/{BlockNoteEditor-PRJ3RX4E.js → BlockNoteEditor-GKROOUT5.js} +17 -17
  2. package/dist/{BlockNoteEditor-PRJ3RX4E.js.map → BlockNoteEditor-GKROOUT5.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-YTSZZ27G.mjs → BlockNoteEditor-IE2G55U6.mjs} +4 -4
  4. package/dist/billing/index.js +346 -346
  5. package/dist/billing/index.mjs +3 -3
  6. package/dist/{chunk-CK3BMQWY.mjs → chunk-CFECWLHH.mjs} +2 -2
  7. package/dist/{chunk-3LWDZZYF.js → chunk-HFLERFFJ.js} +736 -732
  8. package/dist/chunk-HFLERFFJ.js.map +1 -0
  9. package/dist/{chunk-C2RBYYRW.mjs → chunk-MPGZADJR.mjs} +54 -50
  10. package/dist/chunk-MPGZADJR.mjs.map +1 -0
  11. package/dist/{chunk-3KDGODJ7.mjs → chunk-N3NVIPSU.mjs} +8 -1
  12. package/dist/chunk-N3NVIPSU.mjs.map +1 -0
  13. package/dist/{chunk-XAWKRNYM.js → chunk-RXXZGPC3.js} +9 -2
  14. package/dist/chunk-RXXZGPC3.js.map +1 -0
  15. package/dist/{chunk-SE5HIHJS.js → chunk-VLDLERJN.js} +7 -7
  16. package/dist/{chunk-SE5HIHJS.js.map → chunk-VLDLERJN.js.map} +1 -1
  17. package/dist/client/index.js +4 -4
  18. package/dist/client/index.mjs +3 -3
  19. package/dist/components/index.d.mts +2 -1
  20. package/dist/components/index.d.ts +2 -1
  21. package/dist/components/index.js +4 -4
  22. package/dist/components/index.mjs +3 -3
  23. package/dist/contexts/index.js +4 -4
  24. package/dist/contexts/index.mjs +3 -3
  25. package/dist/core/index.d.mts +13 -1
  26. package/dist/core/index.d.ts +13 -1
  27. package/dist/core/index.js +4 -2
  28. package/dist/core/index.js.map +1 -1
  29. package/dist/core/index.mjs +3 -1
  30. package/dist/index.d.mts +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.js +5 -3
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +4 -2
  35. package/dist/server/index.js +3 -3
  36. package/dist/server/index.mjs +1 -1
  37. package/package.json +1 -1
  38. package/src/components/containers/RoundPageContainer.tsx +3 -0
  39. package/src/utils/date-formatter.ts +18 -0
  40. package/src/utils/index.ts +1 -1
  41. package/dist/chunk-3KDGODJ7.mjs.map +0 -1
  42. package/dist/chunk-3LWDZZYF.js.map +0 -1
  43. package/dist/chunk-C2RBYYRW.mjs.map +0 -1
  44. package/dist/chunk-XAWKRNYM.js.map +0 -1
  45. /package/dist/{BlockNoteEditor-YTSZZ27G.mjs.map → BlockNoteEditor-IE2G55U6.mjs.map} +0 -0
  46. /package/dist/{chunk-CK3BMQWY.mjs.map → chunk-CFECWLHH.mjs.map} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  useI18nLocale,
21
21
  useI18nRouter,
22
22
  useI18nTranslations
23
- } from "./chunk-CK3BMQWY.mjs";
23
+ } from "./chunk-CFECWLHH.mjs";
24
24
  import {
25
25
  AVAILABLE_OAUTH_SCOPES,
26
26
  AssistantMessage,
@@ -60,7 +60,7 @@ import {
60
60
  showToast,
61
61
  useComposedRefs,
62
62
  useIsMobile
63
- } from "./chunk-3KDGODJ7.mjs";
63
+ } from "./chunk-N3NVIPSU.mjs";
64
64
  import {
65
65
  JsonApiContext
66
66
  } from "./chunk-VOXD3ZLY.mjs";
@@ -9509,7 +9509,7 @@ import { useRef as useRef15 } from "react";
9509
9509
  import dynamic from "next/dynamic";
9510
9510
  import React14 from "react";
9511
9511
  import { jsx as jsx73 } from "react/jsx-runtime";
9512
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-YTSZZ27G.mjs"), {
9512
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-IE2G55U6.mjs"), {
9513
9513
  ssr: false
9514
9514
  });
9515
9515
  var BlockNoteEditorContainer = React14.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -13772,7 +13772,8 @@ function RoundPageContainer({
13772
13772
  tabs,
13773
13773
  children,
13774
13774
  fullWidth,
13775
- forceHeader
13775
+ forceHeader,
13776
+ header
13776
13777
  }) {
13777
13778
  const headerChildren = useHeaderChildren();
13778
13779
  const headerLeftContent = useHeaderLeftContent();
@@ -13841,7 +13842,7 @@ function RoundPageContainer({
13841
13842
  activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto`,
13842
13843
  fullWidth && `p-0`
13843
13844
  ),
13844
- children: /* @__PURE__ */ jsx147(
13845
+ children: /* @__PURE__ */ jsxs87(
13845
13846
  "div",
13846
13847
  {
13847
13848
  className: cn(
@@ -13849,51 +13850,54 @@ function RoundPageContainer({
13849
13850
  activeFillHeight && `flex w-full flex-1 min-h-0 flex-col space-y-0`,
13850
13851
  fullWidth && `max-w-full w-full p-0 h-full`
13851
13852
  ),
13852
- children: tabs ? /* @__PURE__ */ jsxs87(Fragment22, { children: [
13853
- /* @__PURE__ */ jsxs87(
13854
- Tabs,
13855
- {
13856
- value: activeTab,
13857
- className: cn(`w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
13858
- onValueChange: handleTabChange,
13859
- children: [
13860
- isMobile ? /* @__PURE__ */ jsx147("div", { className: "p-0", children: /* @__PURE__ */ jsxs87(
13861
- Select,
13862
- {
13863
- value: activeTab,
13864
- onValueChange: (value) => {
13865
- if (value) handleTabChange(value);
13866
- },
13867
- children: [
13868
- /* @__PURE__ */ jsx147(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx147(SelectValue, {}) }),
13869
- /* @__PURE__ */ jsx147(SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ jsx147(SelectItem, { value: tab.key?.name ?? tab.label, children: tab.contentLabel ?? tab.label }, tab.label)) })
13870
- ]
13871
- }
13872
- ) }) : /* @__PURE__ */ jsx147("div", { className: "p-4", children: /* @__PURE__ */ jsx147(TabsList, { children: tabs.map((tab) => /* @__PURE__ */ jsx147(TabsTrigger, { value: tab.key?.name ?? tab.label, className: "px-4", children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
13873
- /* @__PURE__ */ jsx147(
13874
- "div",
13875
- {
13876
- className: cn(
13877
- `flex w-full `,
13878
- isMobile ? `` : `px-4`,
13879
- activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`
13880
- ),
13881
- children: tabs.map((tab) => /* @__PURE__ */ jsx147(
13882
- TabsContent,
13883
- {
13884
- value: tab.key?.name ?? tab.label,
13885
- className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
13886
- children: tab.content
13853
+ children: [
13854
+ header,
13855
+ tabs ? /* @__PURE__ */ jsxs87(Fragment22, { children: [
13856
+ /* @__PURE__ */ jsxs87(
13857
+ Tabs,
13858
+ {
13859
+ value: activeTab,
13860
+ className: cn(`w-full`, activeFillHeight && `flex flex-1 min-h-0 flex-col`),
13861
+ onValueChange: handleTabChange,
13862
+ children: [
13863
+ isMobile ? /* @__PURE__ */ jsx147("div", { className: "p-0", children: /* @__PURE__ */ jsxs87(
13864
+ Select,
13865
+ {
13866
+ value: activeTab,
13867
+ onValueChange: (value) => {
13868
+ if (value) handleTabChange(value);
13887
13869
  },
13888
- tab.label
13889
- ))
13890
- }
13891
- )
13892
- ]
13893
- }
13894
- ),
13895
- children && /* @__PURE__ */ jsx147("div", { className: cn(`flex`, isMobile ? `px-2` : `px-4`), children })
13896
- ] }) : children
13870
+ children: [
13871
+ /* @__PURE__ */ jsx147(SelectTrigger, { className: "w-full", children: /* @__PURE__ */ jsx147(SelectValue, {}) }),
13872
+ /* @__PURE__ */ jsx147(SelectContent, { children: tabs.map((tab) => /* @__PURE__ */ jsx147(SelectItem, { value: tab.key?.name ?? tab.label, children: tab.contentLabel ?? tab.label }, tab.label)) })
13873
+ ]
13874
+ }
13875
+ ) }) : /* @__PURE__ */ jsx147("div", { className: "p-4", children: /* @__PURE__ */ jsx147(TabsList, { children: tabs.map((tab) => /* @__PURE__ */ jsx147(TabsTrigger, { value: tab.key?.name ?? tab.label, className: "px-4", children: tab.contentLabel ?? tab.label }, tab.label)) }) }),
13876
+ /* @__PURE__ */ jsx147(
13877
+ "div",
13878
+ {
13879
+ className: cn(
13880
+ `flex w-full `,
13881
+ isMobile ? `` : `px-4`,
13882
+ activeFillHeight ? `flex-1 min-h-0` : `overflow-y-auto`
13883
+ ),
13884
+ children: tabs.map((tab) => /* @__PURE__ */ jsx147(
13885
+ TabsContent,
13886
+ {
13887
+ value: tab.key?.name ?? tab.label,
13888
+ className: tab.fillHeight ? `flex flex-1 min-h-0 w-full flex-col` : `pb-20`,
13889
+ children: tab.content
13890
+ },
13891
+ tab.label
13892
+ ))
13893
+ }
13894
+ )
13895
+ ]
13896
+ }
13897
+ ),
13898
+ children && /* @__PURE__ */ jsx147("div", { className: cn(`flex`, isMobile ? `px-2` : `px-4`), children })
13899
+ ] }) : children
13900
+ ]
13897
13901
  }
13898
13902
  )
13899
13903
  }
@@ -22424,4 +22428,4 @@ export {
22424
22428
  useOAuthClients,
22425
22429
  useOAuthClient
22426
22430
  };
22427
- //# sourceMappingURL=chunk-C2RBYYRW.mjs.map
22431
+ //# sourceMappingURL=chunk-MPGZADJR.mjs.map