@carlonicora/nextjs-jsonapi 1.119.0 → 1.120.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 (48) hide show
  1. package/dist/{BlockNoteEditor-BPACLNMB.js → BlockNoteEditor-MQWCI6TX.js} +20 -20
  2. package/dist/{BlockNoteEditor-BPACLNMB.js.map → BlockNoteEditor-MQWCI6TX.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-CEDKBT67.mjs → BlockNoteEditor-NW7SS2YJ.mjs} +5 -5
  4. package/dist/{JsonApiRequest-SN3DNFDR.mjs → JsonApiRequest-4ISXX7PC.mjs} +2 -2
  5. package/dist/JsonApiRequest-P3VQ2WIS.js +26 -0
  6. package/dist/{JsonApiRequest-HE5LTEYK.js.map → JsonApiRequest-P3VQ2WIS.js.map} +1 -1
  7. package/dist/billing/index.js +347 -347
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-55Q43DI5.js → chunk-5NNJYJSI.js} +9 -9
  10. package/dist/{chunk-55Q43DI5.js.map → chunk-5NNJYJSI.js.map} +1 -1
  11. package/dist/{chunk-WC2BTKJP.mjs → chunk-DKFXGCG2.mjs} +2 -1
  12. package/dist/chunk-DKFXGCG2.mjs.map +1 -0
  13. package/dist/{chunk-RCMIVTVL.js → chunk-EIOEYXY3.js} +2 -1
  14. package/dist/chunk-EIOEYXY3.js.map +1 -0
  15. package/dist/{chunk-FWOS6PC5.mjs → chunk-IUKSHJPS.mjs} +7 -5
  16. package/dist/chunk-IUKSHJPS.mjs.map +1 -0
  17. package/dist/{chunk-5U7QDGDQ.mjs → chunk-JL3X3LQR.mjs} +3 -3
  18. package/dist/{chunk-DXTOA7OO.js → chunk-MJ2TMIK3.js} +701 -701
  19. package/dist/{chunk-DXTOA7OO.js.map → chunk-MJ2TMIK3.js.map} +1 -1
  20. package/dist/{chunk-4SPL6QH3.mjs → chunk-S4BL7L3J.mjs} +6 -6
  21. package/dist/{chunk-6P7MEU7Q.js → chunk-YCMYYYBP.js} +32 -30
  22. package/dist/chunk-YCMYYYBP.js.map +1 -0
  23. package/dist/client/index.js +5 -5
  24. package/dist/client/index.mjs +4 -4
  25. package/dist/components/index.js +5 -5
  26. package/dist/components/index.mjs +4 -4
  27. package/dist/contexts/index.js +5 -5
  28. package/dist/contexts/index.mjs +4 -4
  29. package/dist/core/index.js +3 -3
  30. package/dist/core/index.mjs +2 -2
  31. package/dist/features/help/index.js +37 -37
  32. package/dist/features/help/index.mjs +4 -4
  33. package/dist/index.js +4 -4
  34. package/dist/index.mjs +3 -3
  35. package/dist/server/index.js +12 -12
  36. package/dist/server/index.mjs +2 -2
  37. package/package.json +1 -1
  38. package/src/core/abstracts/ClientAbstractService.ts +2 -0
  39. package/src/core/utils/translateResponse.ts +1 -0
  40. package/dist/JsonApiRequest-HE5LTEYK.js +0 -26
  41. package/dist/chunk-6P7MEU7Q.js.map +0 -1
  42. package/dist/chunk-FWOS6PC5.mjs.map +0 -1
  43. package/dist/chunk-RCMIVTVL.js.map +0 -1
  44. package/dist/chunk-WC2BTKJP.mjs.map +0 -1
  45. /package/dist/{BlockNoteEditor-CEDKBT67.mjs.map → BlockNoteEditor-NW7SS2YJ.mjs.map} +0 -0
  46. /package/dist/{JsonApiRequest-SN3DNFDR.mjs.map → JsonApiRequest-4ISXX7PC.mjs.map} +0 -0
  47. /package/dist/{chunk-5U7QDGDQ.mjs.map → chunk-JL3X3LQR.mjs.map} +0 -0
  48. /package/dist/{chunk-4SPL6QH3.mjs.map → chunk-S4BL7L3J.mjs.map} +0 -0
@@ -21,16 +21,16 @@ var _chunkYBZVWLPHjs = require('../../chunk-YBZVWLPH.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkDXTOA7OOjs = require('../../chunk-DXTOA7OO.js');
24
+ var _chunkMJ2TMIK3js = require('../../chunk-MJ2TMIK3.js');
25
25
 
26
26
 
27
- var _chunk55Q43DI5js = require('../../chunk-55Q43DI5.js');
27
+ var _chunk5NNJYJSIjs = require('../../chunk-5NNJYJSI.js');
28
28
 
29
29
 
30
- var _chunk6P7MEU7Qjs = require('../../chunk-6P7MEU7Q.js');
30
+ var _chunkYCMYYYBPjs = require('../../chunk-YCMYYYBP.js');
31
31
  require('../../chunk-LXKSUWAV.js');
32
32
  require('../../chunk-IBS6NI7D.js');
33
- require('../../chunk-RCMIVTVL.js');
33
+ require('../../chunk-EIOEYXY3.js');
34
34
  require('../../chunk-3EPNHTMH.js');
35
35
 
36
36
 
@@ -41,7 +41,7 @@ var _react = require('react');
41
41
  var _jsxruntime = require('react/jsx-runtime');
42
42
  var HelpContext = _react.createContext.call(void 0, null);
43
43
  function HelpProvider({ children }) {
44
- const cfg = _chunk55Q43DI5js._getStaticHelpContent.call(void 0, );
44
+ const cfg = _chunk5NNJYJSIjs._getStaticHelpContent.call(void 0, );
45
45
  if (!cfg) {
46
46
  throw new Error(
47
47
  "Help content not configured \u2014 call configureJsonApi({ helpContent: {...} }) before importing help components."
@@ -73,29 +73,29 @@ var _lucidereact = require('lucide-react');
73
73
 
74
74
 
75
75
  function HelpAssistantSheet({ open, onOpenChange }) {
76
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
77
- _chunkDXTOA7OOjs.SheetContent,
76
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
77
+ _chunkMJ2TMIK3js.SheetContent,
78
78
  {
79
79
  side: "right",
80
80
  className: "flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl",
81
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.AssistantProvider, { manageUrl: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAssistantSheetBody, {}) })
81
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.AssistantProvider, { manageUrl: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAssistantSheetBody, {}) })
82
82
  }
83
83
  ) });
84
84
  }
85
85
  _chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheet, "HelpAssistantSheet");
86
86
  function HelpAssistantSheetBody() {
87
87
  const t = _nextintl.useTranslations.call(void 0, );
88
- const ctx = _chunkDXTOA7OOjs.useAssistantContext.call(void 0, );
88
+ const ctx = _chunkMJ2TMIK3js.useAssistantContext.call(void 0, );
89
89
  const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;
90
90
  const send = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (content) => ctx.sendMessage(content, { howToMode: true }), "send");
91
91
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
92
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.SheetHeader, { children: [
93
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.SheetTitle, { children: t("help.askAi.sheet.title") }),
94
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
92
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.SheetHeader, { children: [
93
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.SheetTitle, { children: t("help.askAi.sheet.title") }),
94
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
95
95
  ] }),
96
- !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
96
+ !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
97
97
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
98
- _chunkDXTOA7OOjs.AssistantThread,
98
+ _chunkMJ2TMIK3js.AssistantThread,
99
99
  {
100
100
  messages: ctx.messages,
101
101
  sending: ctx.sending,
@@ -105,7 +105,7 @@ function HelpAssistantSheetBody() {
105
105
  onRetry: ctx.retrySend
106
106
  }
107
107
  ),
108
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.AssistantComposer, { onSend: send, disabled: ctx.sending })
108
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.AssistantComposer, { onSend: send, disabled: ctx.sending })
109
109
  ] })
110
110
  ] });
111
111
  }
@@ -115,20 +115,20 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheetBody, "HelpAssistantSheet
115
115
 
116
116
  function HelpAskAi() {
117
117
  const t = _nextintl.useTranslations.call(void 0, );
118
- const { currentUser } = _chunkDXTOA7OOjs.useCurrentUserContext.call(void 0, );
118
+ const { currentUser } = _chunkMJ2TMIK3js.useCurrentUserContext.call(void 0, );
119
119
  const [open, setOpen] = _react.useState.call(void 0, false);
120
120
  const disabled = !currentUser;
121
121
  if (disabled) {
122
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.Tooltip, { children: [
123
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.Button, { variant: "outline", size: "sm", disabled: true }), children: [
122
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.Tooltip, { children: [
123
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.Button, { variant: "outline", size: "sm", disabled: true }), children: [
124
124
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
125
125
  t("help.askAi.button")
126
126
  ] }),
127
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.TooltipContent, { children: t("help.askAi.loginTooltip") })
127
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.TooltipContent, { children: t("help.askAi.loginTooltip") })
128
128
  ] });
129
129
  }
130
130
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
131
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.Button, { variant: "outline", size: "sm", onClick: () => setOpen(true), children: [
131
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.Button, { variant: "outline", size: "sm", onClick: () => setOpen(true), children: [
132
132
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
133
133
  t("help.askAi.button")
134
134
  ] }),
@@ -141,7 +141,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAskAi, "HelpAskAi");
141
141
 
142
142
  function HelpHeader() {
143
143
  const t = _nextintl.useTranslations.call(void 0, );
144
- const { currentUser } = _chunkDXTOA7OOjs.useCurrentUserContext.call(void 0, );
144
+ const { currentUser } = _chunkMJ2TMIK3js.useCurrentUserContext.call(void 0, );
145
145
  const { brand } = useHelp();
146
146
  const logo = _optionalChain([brand, 'optionalAccess', _ => _.logo]);
147
147
  const label = _nullishCoalesce(_optionalChain([brand, 'optionalAccess', _2 => _2.label]), () => ( "Help"));
@@ -157,7 +157,7 @@ function HelpHeader() {
157
157
  ] }),
158
158
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
159
159
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAskAi, {}),
160
- currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: appHref }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.openApp") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login" }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.login") })
160
+ currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: appHref }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.openApp") }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login" }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.login") })
161
161
  ] })
162
162
  ] });
163
163
  }
@@ -199,12 +199,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, useHelpFilter, "useHelpFilter");
199
199
 
200
200
  function HelpSideNav() {
201
201
  const t = _nextintl.useTranslations.call(void 0, );
202
- const generateUrl = _chunkDXTOA7OOjs.usePageUrlGenerator.call(void 0, );
202
+ const generateUrl = _chunkMJ2TMIK3js.usePageUrlGenerator.call(void 0, );
203
203
  const pathname = _navigation.usePathname.call(void 0, );
204
204
  const [articles, setArticles] = _react.useState.call(void 0, []);
205
205
  _react.useEffect.call(void 0, () => {
206
206
  let active = true;
207
- _chunk6P7MEU7Qjs.HowToService.findPublished().then((list) => active && setArticles(list)).catch(() => active && setArticles([]));
207
+ _chunkYCMYYYBPjs.HowToService.findPublished().then((list) => active && setArticles(list)).catch(() => active && setArticles([]));
208
208
  return () => {
209
209
  active = false;
210
210
  };
@@ -280,7 +280,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpSideNav, "HelpSideNav");
280
280
  function HelpArticleBody(props) {
281
281
  const t = _nextintl.useTranslations.call(void 0, );
282
282
  const format = _nextintl.useFormatter.call(void 0, );
283
- const generateUrl = _chunkDXTOA7OOjs.usePageUrlGenerator.call(void 0, );
283
+ const generateUrl = _chunkMJ2TMIK3js.usePageUrlGenerator.call(void 0, );
284
284
  const { howToType, title, summary, updatedAt, prev, next, children } = props;
285
285
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: "prose dark:prose-invert max-w-none", children: [
286
286
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: "text-muted-foreground mb-2 text-xs", children: [
@@ -358,13 +358,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpTOC, "HelpTOC");
358
358
 
359
359
  function HelpHint({ contextKey }) {
360
360
  const t = _nextintl.useTranslations.call(void 0, );
361
- const generateUrl = _chunkDXTOA7OOjs.usePageUrlGenerator.call(void 0, );
361
+ const generateUrl = _chunkMJ2TMIK3js.usePageUrlGenerator.call(void 0, );
362
362
  const [open, setOpen] = _react.useState.call(void 0, false);
363
363
  const [picked, setPicked] = _react.useState.call(void 0, null);
364
364
  const [articles, setArticles] = _react.useState.call(void 0, []);
365
365
  _react.useEffect.call(void 0, () => {
366
366
  let active2 = true;
367
- _chunk6P7MEU7Qjs.HowToService.findPublished().then((list) => active2 && setArticles(list)).catch(() => active2 && setArticles([]));
367
+ _chunkYCMYYYBPjs.HowToService.findPublished().then((list) => active2 && setArticles(list)).catch(() => active2 && setArticles([]));
368
368
  return () => {
369
369
  active2 = false;
370
370
  };
@@ -376,7 +376,7 @@ function HelpHint({ contextKey }) {
376
376
  if (matches.length === 0) return null;
377
377
  const active = _nullishCoalesce(picked, () => ( (matches.length === 1 ? matches[0] : null)));
378
378
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
379
- _chunkDXTOA7OOjs.Sheet,
379
+ _chunkMJ2TMIK3js.Sheet,
380
380
  {
381
381
  open,
382
382
  onOpenChange: (o) => {
@@ -384,11 +384,11 @@ function HelpHint({ contextKey }) {
384
384
  if (!o) setPicked(null);
385
385
  },
386
386
  children: [
387
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.Button, { variant: "ghost", size: "icon-sm", "aria-label": t("help.hint.trigger") }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircleIcon, { className: "h-4 w-4" }) }),
388
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
389
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkDXTOA7OOjs.SheetHeader, { children: [
390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.SheetDescription, { children: _nullishCoalesce(_optionalChain([active, 'optionalAccess', _4 => _4.summary]), () => ( "")) })
387
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.Button, { variant: "ghost", size: "icon-sm", "aria-label": t("help.hint.trigger") }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.HelpCircleIcon, { className: "h-4 w-4" }) }),
388
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
389
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMJ2TMIK3js.SheetHeader, { children: [
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.SheetDescription, { children: _nullishCoalesce(_optionalChain([active, 'optionalAccess', _4 => _4.summary]), () => ( "")) })
392
392
  ] }),
393
393
  active ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 space-y-3", children: [
394
394
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: active.summary }),
@@ -420,18 +420,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpHint, "HelpHint");
420
420
 
421
421
  function HelpSearchResultRow({ result, onSelect }) {
422
422
  const t = _nextintl.useTranslations.call(void 0, );
423
- const generateUrl = _chunkDXTOA7OOjs.usePageUrlGenerator.call(void 0, );
423
+ const generateUrl = _chunkMJ2TMIK3js.usePageUrlGenerator.call(void 0, );
424
424
  const [article, setArticle] = _react.useState.call(void 0, null);
425
425
  _react.useEffect.call(void 0, () => {
426
426
  let active = true;
427
- _chunk6P7MEU7Qjs.HowToService.findOne({ id: result.id }).then((a) => active && setArticle(a)).catch(() => active && setArticle(null));
427
+ _chunkYCMYYYBPjs.HowToService.findOne({ id: result.id }).then((a) => active && setArticle(a)).catch(() => active && setArticle(null));
428
428
  return () => {
429
429
  active = false;
430
430
  };
431
431
  }, [result.id]);
432
432
  if (!article) {
433
433
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
434
- _chunkDXTOA7OOjs.CommandItem,
434
+ _chunkMJ2TMIK3js.CommandItem,
435
435
  {
436
436
  value: result.id,
437
437
  disabled: true,
@@ -440,7 +440,7 @@ function HelpSearchResultRow({ result, onSelect }) {
440
440
  }
441
441
  );
442
442
  }
443
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDXTOA7OOjs.CommandItem, { value: result.id, onSelect, className: "cursor-pointer p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
443
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJ2TMIK3js.CommandItem, { value: result.id, onSelect, className: "cursor-pointer p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
444
444
  _link2.default,
445
445
  {
446
446
  href: generateUrl({ page: `/help/${article.howToType}/${article.slug}` }),
@@ -21,16 +21,16 @@ import {
21
21
  useAssistantContext,
22
22
  useCurrentUserContext,
23
23
  usePageUrlGenerator
24
- } from "../../chunk-4SPL6QH3.mjs";
24
+ } from "../../chunk-S4BL7L3J.mjs";
25
25
  import {
26
26
  _getStaticHelpContent
27
- } from "../../chunk-5U7QDGDQ.mjs";
27
+ } from "../../chunk-JL3X3LQR.mjs";
28
28
  import {
29
29
  HowToService
30
- } from "../../chunk-FWOS6PC5.mjs";
30
+ } from "../../chunk-IUKSHJPS.mjs";
31
31
  import "../../chunk-AUXK7QSA.mjs";
32
32
  import "../../chunk-C7C7VY4F.mjs";
33
- import "../../chunk-WC2BTKJP.mjs";
33
+ import "../../chunk-DKFXGCG2.mjs";
34
34
  import "../../chunk-VOXD3ZLY.mjs";
35
35
  import {
36
36
  __name
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunk55Q43DI5js = require('./chunk-55Q43DI5.js');
21
+ var _chunk5NNJYJSIjs = require('./chunk-5NNJYJSI.js');
22
22
 
23
23
 
24
24
 
@@ -199,7 +199,7 @@ var _chunk55Q43DI5js = require('./chunk-55Q43DI5.js');
199
199
 
200
200
 
201
201
 
202
- var _chunk6P7MEU7Qjs = require('./chunk-6P7MEU7Q.js');
202
+ var _chunkYCMYYYBPjs = require('./chunk-YCMYYYBP.js');
203
203
  require('./chunk-LXKSUWAV.js');
204
204
  require('./chunk-IBS6NI7D.js');
205
205
 
@@ -212,7 +212,7 @@ require('./chunk-IBS6NI7D.js');
212
212
 
213
213
 
214
214
 
215
- var _chunkRCMIVTVLjs = require('./chunk-RCMIVTVL.js');
215
+ var _chunkEIOEYXY3js = require('./chunk-EIOEYXY3.js');
216
216
  require('./chunk-7QVYU63E.js');
217
217
 
218
218
 
@@ -423,5 +423,5 @@ require('./chunk-7QVYU63E.js');
423
423
 
424
424
 
425
425
 
426
- exports.ACTION_TYPES = _chunk55Q43DI5js.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk6P7MEU7Qjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk6P7MEU7Qjs.AbstractApiData; exports.AbstractService = _chunk6P7MEU7Qjs.AbstractService; exports.Action = _chunk6P7MEU7Qjs.Action; exports.Assistant = _chunk6P7MEU7Qjs.Assistant; exports.AssistantMessage = _chunk6P7MEU7Qjs.AssistantMessage; exports.AssistantMessageModule = _chunk6P7MEU7Qjs.AssistantMessageModule; exports.AssistantMessageService = _chunk6P7MEU7Qjs.AssistantMessageService; exports.AssistantModule = _chunk6P7MEU7Qjs.AssistantModule; exports.AssistantService = _chunk6P7MEU7Qjs.AssistantService; exports.AuditLog = _chunk6P7MEU7Qjs.AuditLog; exports.AuditLogModule = _chunk6P7MEU7Qjs.AuditLogModule; exports.AuditLogService = _chunk6P7MEU7Qjs.AuditLogService; exports.Auth = _chunk6P7MEU7Qjs.Auth; exports.AuthComponent = _chunk6P7MEU7Qjs.AuthComponent; exports.AuthModule = _chunk6P7MEU7Qjs.AuthModule; exports.AuthService = _chunk6P7MEU7Qjs.AuthService; exports.AuthorModule = _chunk6P7MEU7Qjs.AuthorModule; exports.BackupCodeVerify = _chunk6P7MEU7Qjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk6P7MEU7Qjs.BackupCodeVerifyModule; exports.Billing = _chunk6P7MEU7Qjs.Billing; exports.BillingModule = _chunk6P7MEU7Qjs.BillingModule; exports.BillingService = _chunk6P7MEU7Qjs.BillingService; exports.BlockNoteDiffUtil = _chunk6P7MEU7Qjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk6P7MEU7Qjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk55Q43DI5js.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunk6P7MEU7Qjs.Chunk; exports.ChunkModule = _chunk6P7MEU7Qjs.ChunkModule; exports.ClientAbstractService = _chunk6P7MEU7Qjs.ClientAbstractService; exports.ClientHttpMethod = _chunk6P7MEU7Qjs.ClientHttpMethod; exports.Company = _chunk6P7MEU7Qjs.Company; exports.CompanyFields = _chunk6P7MEU7Qjs.CompanyFields; exports.CompanyModule = _chunk6P7MEU7Qjs.CompanyModule; exports.CompanyService = _chunk6P7MEU7Qjs.CompanyService; exports.Content = _chunk6P7MEU7Qjs.Content; exports.ContentFields = _chunk6P7MEU7Qjs.ContentFields; exports.ContentModule = _chunk6P7MEU7Qjs.ContentModule; exports.ContentService = _chunk6P7MEU7Qjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk6P7MEU7Qjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkRCMIVTVLjs.DataClassRegistry; exports.DataClassRegistry = _chunkRCMIVTVLjs.DataClassRegistry; exports.EndpointCreator = _chunk6P7MEU7Qjs.EndpointCreator; exports.Feature = _chunk6P7MEU7Qjs.Feature; exports.FeatureModule = _chunk6P7MEU7Qjs.FeatureModule; exports.FeatureService = _chunk6P7MEU7Qjs.FeatureService; exports.HowTo = _chunk6P7MEU7Qjs.HowTo; exports.HowToFields = _chunk6P7MEU7Qjs.HowToFields; exports.HowToModule = _chunk6P7MEU7Qjs.HowToModule; exports.HowToService = _chunk6P7MEU7Qjs.HowToService; exports.HttpMethod = _chunk6P7MEU7Qjs.HttpMethod; exports.InvoiceStatus = _chunk6P7MEU7Qjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkRCMIVTVLjs.JsonApiDataFactory; exports.Module = _chunk6P7MEU7Qjs.Module; exports.ModuleModule = _chunk6P7MEU7Qjs.ModuleModule; exports.ModulePaths = _chunk6P7MEU7Qjs.ModulePaths; exports.ModulePathsModule = _chunk6P7MEU7Qjs.ModulePathsModule; exports.ModuleRegistrar = _chunk6P7MEU7Qjs.ModuleRegistrar; exports.ModuleRegistry = _chunk6P7MEU7Qjs.ModuleRegistry; exports.Modules = _chunk6P7MEU7Qjs.Modules; exports.Notification = _chunk6P7MEU7Qjs.Notification; exports.NotificationFields = _chunk6P7MEU7Qjs.NotificationFields; exports.NotificationModule = _chunk6P7MEU7Qjs.NotificationModule; exports.NotificationService = _chunk6P7MEU7Qjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk6P7MEU7Qjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk6P7MEU7Qjs.OAuthClient; exports.OAuthModule = _chunk6P7MEU7Qjs.OAuthModule; exports.OAuthService = _chunk6P7MEU7Qjs.OAuthService; exports.Passkey = _chunk6P7MEU7Qjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk6P7MEU7Qjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk6P7MEU7Qjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk6P7MEU7Qjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk6P7MEU7Qjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk6P7MEU7Qjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk6P7MEU7Qjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk6P7MEU7Qjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk6P7MEU7Qjs.PasskeyRename; exports.PasskeyRenameModule = _chunk6P7MEU7Qjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk6P7MEU7Qjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk6P7MEU7Qjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk6P7MEU7Qjs.PaymentMethod; exports.PermissionMapping = _chunk6P7MEU7Qjs.PermissionMapping; exports.PermissionMappingModule = _chunk6P7MEU7Qjs.PermissionMappingModule; exports.Push = _chunk6P7MEU7Qjs.Push; exports.PushModule = _chunk6P7MEU7Qjs.PushModule; exports.PushService = _chunk6P7MEU7Qjs.PushService; exports.RbacMatrixModel = _chunk6P7MEU7Qjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk6P7MEU7Qjs.RbacMatrixModule; exports.RbacService = _chunk55Q43DI5js.RbacService; exports.ReferralModule = _chunk6P7MEU7Qjs.ReferralModule; exports.ReferralService = _chunk6P7MEU7Qjs.ReferralService; exports.ReferralStats = _chunk6P7MEU7Qjs.ReferralStats; exports.ReferralStatsModule = _chunk6P7MEU7Qjs.ReferralStatsModule; exports.RehydrationFactory = _chunk6P7MEU7Qjs.RehydrationFactory; exports.Role = _chunk6P7MEU7Qjs.Role; exports.RoleFields = _chunk6P7MEU7Qjs.RoleFields; exports.RoleModule = _chunk6P7MEU7Qjs.RoleModule; exports.RoleService = _chunk6P7MEU7Qjs.RoleService; exports.S3 = _chunk6P7MEU7Qjs.S3; exports.S3Module = _chunk6P7MEU7Qjs.S3Module; exports.S3Service = _chunk6P7MEU7Qjs.S3Service; exports.StripeCustomer = _chunk6P7MEU7Qjs.StripeCustomer; exports.StripeCustomerModule = _chunk6P7MEU7Qjs.StripeCustomerModule; exports.StripeCustomerService = _chunk6P7MEU7Qjs.StripeCustomerService; exports.StripeInvoice = _chunk6P7MEU7Qjs.StripeInvoice; exports.StripeInvoiceModule = _chunk6P7MEU7Qjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk6P7MEU7Qjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk6P7MEU7Qjs.StripePaymentMethodModule; exports.StripePrice = _chunk6P7MEU7Qjs.StripePrice; exports.StripePriceModule = _chunk6P7MEU7Qjs.StripePriceModule; exports.StripePriceService = _chunk6P7MEU7Qjs.StripePriceService; exports.StripeProduct = _chunk6P7MEU7Qjs.StripeProduct; exports.StripeProductModule = _chunk6P7MEU7Qjs.StripeProductModule; exports.StripeProductService = _chunk6P7MEU7Qjs.StripeProductService; exports.StripePromotionCode = _chunk6P7MEU7Qjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk6P7MEU7Qjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk6P7MEU7Qjs.StripePromotionCodeService; exports.StripeSubscription = _chunk6P7MEU7Qjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk6P7MEU7Qjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk6P7MEU7Qjs.StripeSubscriptionService; exports.StripeUsage = _chunk6P7MEU7Qjs.StripeUsage; exports.StripeUsageModule = _chunk6P7MEU7Qjs.StripeUsageModule; exports.StripeUsageService = _chunk6P7MEU7Qjs.StripeUsageService; exports.SubscriptionStatus = _chunk6P7MEU7Qjs.SubscriptionStatus; exports.TableOptions = _chunk6P7MEU7Qjs.TableOptions; exports.TotpAuthenticator = _chunk6P7MEU7Qjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk6P7MEU7Qjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk6P7MEU7Qjs.TotpSetup; exports.TotpSetupModule = _chunk6P7MEU7Qjs.TotpSetupModule; exports.TotpVerify = _chunk6P7MEU7Qjs.TotpVerify; exports.TotpVerifyLogin = _chunk6P7MEU7Qjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk6P7MEU7Qjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk6P7MEU7Qjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk6P7MEU7Qjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk6P7MEU7Qjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk6P7MEU7Qjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk6P7MEU7Qjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk6P7MEU7Qjs.TwoFactorService; exports.TwoFactorStatus = _chunk6P7MEU7Qjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk6P7MEU7Qjs.TwoFactorStatusModule; exports.User = _chunk6P7MEU7Qjs.User; exports.UserFields = _chunk6P7MEU7Qjs.UserFields; exports.UserModule = _chunk6P7MEU7Qjs.UserModule; exports.UserService = _chunk6P7MEU7Qjs.UserService; exports.Waitlist = _chunk6P7MEU7Qjs.Waitlist; exports.WaitlistModule = _chunk6P7MEU7Qjs.WaitlistModule; exports.WaitlistService = _chunk6P7MEU7Qjs.WaitlistService; exports.WaitlistStats = _chunk6P7MEU7Qjs.WaitlistStats; exports.WaitlistStatsModule = _chunk6P7MEU7Qjs.WaitlistStatsModule; exports.checkPermissions = _chunk6P7MEU7Qjs.checkPermissions; exports.checkPermissionsFromServer = _chunk6P7MEU7Qjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunk6P7MEU7Qjs.clearLastApiTotal; exports.cn = _chunk6P7MEU7Qjs.cn; exports.composeRefs = _chunk6P7MEU7Qjs.composeRefs; exports.configureAuth = _chunk6P7MEU7Qjs.configureAuth; exports.configureI18n = _chunk55Q43DI5js.configureI18n; exports.configureJsonApi = _chunk55Q43DI5js.configureJsonApi; exports.configureLogin = _chunk55Q43DI5js.configureLogin; exports.configureReferral = _chunk55Q43DI5js.configureReferral; exports.configureRoles = _chunk55Q43DI5js.configureRoles; exports.configureWaitlist = _chunk55Q43DI5js.configureWaitlist; exports.createJsonApiInclusion = _chunk6P7MEU7Qjs.createJsonApiInclusion; exports.dismissToast = _chunk6P7MEU7Qjs.dismissToast; exports.entityObjectSchema = _chunk6P7MEU7Qjs.entityObjectSchema; exports.exists = _chunk6P7MEU7Qjs.exists; exports.formatDate = _chunk6P7MEU7Qjs.formatDate; exports.formatLocalDate = _chunk6P7MEU7Qjs.formatLocalDate; exports.getApiUrl = _chunk55Q43DI5js.getApiUrl; exports.getAppUrl = _chunk55Q43DI5js.getAppUrl; exports.getBootstrapper = _chunkRCMIVTVLjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk6P7MEU7Qjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk6P7MEU7Qjs.getGlobalErrorHandler; exports.getIcon = _chunk6P7MEU7Qjs.getIcon; exports.getIconByModule = _chunk6P7MEU7Qjs.getIconByModule; exports.getIconByModuleName = _chunk6P7MEU7Qjs.getIconByModuleName; exports.getInitials = _chunk6P7MEU7Qjs.getInitials; exports.getLastApiTotal = _chunk6P7MEU7Qjs.getLastApiTotal; exports.getLucideIcon = _chunk6P7MEU7Qjs.getLucideIcon; exports.getLucideIconByModule = _chunk6P7MEU7Qjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk6P7MEU7Qjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk55Q43DI5js.getPublicApiUrl; exports.getReferralConfig = _chunk55Q43DI5js.getReferralConfig; exports.getRoleId = _chunk55Q43DI5js.getRoleId; exports.getStripePublishableKey = _chunk55Q43DI5js.getStripePublishableKey; exports.getTableComponents = _chunk6P7MEU7Qjs.getTableComponents; exports.getTableOptions = _chunk6P7MEU7Qjs.getTableOptions; exports.getTokenHandler = _chunk6P7MEU7Qjs.getTokenHandler; exports.getTrackablePages = _chunk55Q43DI5js.getTrackablePages; exports.getValueFromPath = _chunk6P7MEU7Qjs.getValueFromPath; exports.getWaitlistConfig = _chunk55Q43DI5js.getWaitlistConfig; exports.hasBootstrapper = _chunkRCMIVTVLjs.hasBootstrapper; exports.isReferralEnabled = _chunk55Q43DI5js.isReferralEnabled; exports.isRolesConfigured = _chunk55Q43DI5js.isRolesConfigured; exports.rehydrate = _chunk6P7MEU7Qjs.rehydrate; exports.rehydrateList = _chunk6P7MEU7Qjs.rehydrateList; exports.resetBootstrapStore = _chunkRCMIVTVLjs.resetBootstrapStore; exports.setBootstrapper = _chunkRCMIVTVLjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk6P7MEU7Qjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk6P7MEU7Qjs.setGlobalErrorHandler; exports.showCustomToast = _chunk6P7MEU7Qjs.showCustomToast; exports.showError = _chunk6P7MEU7Qjs.showError; exports.showToast = _chunk6P7MEU7Qjs.showToast; exports.translateData = _chunkRCMIVTVLjs.translateData; exports.translateResponse = _chunkRCMIVTVLjs.translateResponse; exports.tryBootstrap = _chunkRCMIVTVLjs.tryBootstrap; exports.useComposedRefs = _chunk6P7MEU7Qjs.useComposedRefs; exports.useIsMobile = _chunk6P7MEU7Qjs.useIsMobile; exports.userObjectSchema = _chunk6P7MEU7Qjs.userObjectSchema;
426
+ exports.ACTION_TYPES = _chunk5NNJYJSIjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkYCMYYYBPjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkYCMYYYBPjs.AbstractApiData; exports.AbstractService = _chunkYCMYYYBPjs.AbstractService; exports.Action = _chunkYCMYYYBPjs.Action; exports.Assistant = _chunkYCMYYYBPjs.Assistant; exports.AssistantMessage = _chunkYCMYYYBPjs.AssistantMessage; exports.AssistantMessageModule = _chunkYCMYYYBPjs.AssistantMessageModule; exports.AssistantMessageService = _chunkYCMYYYBPjs.AssistantMessageService; exports.AssistantModule = _chunkYCMYYYBPjs.AssistantModule; exports.AssistantService = _chunkYCMYYYBPjs.AssistantService; exports.AuditLog = _chunkYCMYYYBPjs.AuditLog; exports.AuditLogModule = _chunkYCMYYYBPjs.AuditLogModule; exports.AuditLogService = _chunkYCMYYYBPjs.AuditLogService; exports.Auth = _chunkYCMYYYBPjs.Auth; exports.AuthComponent = _chunkYCMYYYBPjs.AuthComponent; exports.AuthModule = _chunkYCMYYYBPjs.AuthModule; exports.AuthService = _chunkYCMYYYBPjs.AuthService; exports.AuthorModule = _chunkYCMYYYBPjs.AuthorModule; exports.BackupCodeVerify = _chunkYCMYYYBPjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkYCMYYYBPjs.BackupCodeVerifyModule; exports.Billing = _chunkYCMYYYBPjs.Billing; exports.BillingModule = _chunkYCMYYYBPjs.BillingModule; exports.BillingService = _chunkYCMYYYBPjs.BillingService; exports.BlockNoteDiffUtil = _chunkYCMYYYBPjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkYCMYYYBPjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk5NNJYJSIjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkYCMYYYBPjs.Chunk; exports.ChunkModule = _chunkYCMYYYBPjs.ChunkModule; exports.ClientAbstractService = _chunkYCMYYYBPjs.ClientAbstractService; exports.ClientHttpMethod = _chunkYCMYYYBPjs.ClientHttpMethod; exports.Company = _chunkYCMYYYBPjs.Company; exports.CompanyFields = _chunkYCMYYYBPjs.CompanyFields; exports.CompanyModule = _chunkYCMYYYBPjs.CompanyModule; exports.CompanyService = _chunkYCMYYYBPjs.CompanyService; exports.Content = _chunkYCMYYYBPjs.Content; exports.ContentFields = _chunkYCMYYYBPjs.ContentFields; exports.ContentModule = _chunkYCMYYYBPjs.ContentModule; exports.ContentService = _chunkYCMYYYBPjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkYCMYYYBPjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkEIOEYXY3js.DataClassRegistry; exports.DataClassRegistry = _chunkEIOEYXY3js.DataClassRegistry; exports.EndpointCreator = _chunkYCMYYYBPjs.EndpointCreator; exports.Feature = _chunkYCMYYYBPjs.Feature; exports.FeatureModule = _chunkYCMYYYBPjs.FeatureModule; exports.FeatureService = _chunkYCMYYYBPjs.FeatureService; exports.HowTo = _chunkYCMYYYBPjs.HowTo; exports.HowToFields = _chunkYCMYYYBPjs.HowToFields; exports.HowToModule = _chunkYCMYYYBPjs.HowToModule; exports.HowToService = _chunkYCMYYYBPjs.HowToService; exports.HttpMethod = _chunkYCMYYYBPjs.HttpMethod; exports.InvoiceStatus = _chunkYCMYYYBPjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkEIOEYXY3js.JsonApiDataFactory; exports.Module = _chunkYCMYYYBPjs.Module; exports.ModuleModule = _chunkYCMYYYBPjs.ModuleModule; exports.ModulePaths = _chunkYCMYYYBPjs.ModulePaths; exports.ModulePathsModule = _chunkYCMYYYBPjs.ModulePathsModule; exports.ModuleRegistrar = _chunkYCMYYYBPjs.ModuleRegistrar; exports.ModuleRegistry = _chunkYCMYYYBPjs.ModuleRegistry; exports.Modules = _chunkYCMYYYBPjs.Modules; exports.Notification = _chunkYCMYYYBPjs.Notification; exports.NotificationFields = _chunkYCMYYYBPjs.NotificationFields; exports.NotificationModule = _chunkYCMYYYBPjs.NotificationModule; exports.NotificationService = _chunkYCMYYYBPjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkYCMYYYBPjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkYCMYYYBPjs.OAuthClient; exports.OAuthModule = _chunkYCMYYYBPjs.OAuthModule; exports.OAuthService = _chunkYCMYYYBPjs.OAuthService; exports.Passkey = _chunkYCMYYYBPjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkYCMYYYBPjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkYCMYYYBPjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkYCMYYYBPjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkYCMYYYBPjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkYCMYYYBPjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkYCMYYYBPjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkYCMYYYBPjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkYCMYYYBPjs.PasskeyRename; exports.PasskeyRenameModule = _chunkYCMYYYBPjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkYCMYYYBPjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkYCMYYYBPjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkYCMYYYBPjs.PaymentMethod; exports.PermissionMapping = _chunkYCMYYYBPjs.PermissionMapping; exports.PermissionMappingModule = _chunkYCMYYYBPjs.PermissionMappingModule; exports.Push = _chunkYCMYYYBPjs.Push; exports.PushModule = _chunkYCMYYYBPjs.PushModule; exports.PushService = _chunkYCMYYYBPjs.PushService; exports.RbacMatrixModel = _chunkYCMYYYBPjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkYCMYYYBPjs.RbacMatrixModule; exports.RbacService = _chunk5NNJYJSIjs.RbacService; exports.ReferralModule = _chunkYCMYYYBPjs.ReferralModule; exports.ReferralService = _chunkYCMYYYBPjs.ReferralService; exports.ReferralStats = _chunkYCMYYYBPjs.ReferralStats; exports.ReferralStatsModule = _chunkYCMYYYBPjs.ReferralStatsModule; exports.RehydrationFactory = _chunkYCMYYYBPjs.RehydrationFactory; exports.Role = _chunkYCMYYYBPjs.Role; exports.RoleFields = _chunkYCMYYYBPjs.RoleFields; exports.RoleModule = _chunkYCMYYYBPjs.RoleModule; exports.RoleService = _chunkYCMYYYBPjs.RoleService; exports.S3 = _chunkYCMYYYBPjs.S3; exports.S3Module = _chunkYCMYYYBPjs.S3Module; exports.S3Service = _chunkYCMYYYBPjs.S3Service; exports.StripeCustomer = _chunkYCMYYYBPjs.StripeCustomer; exports.StripeCustomerModule = _chunkYCMYYYBPjs.StripeCustomerModule; exports.StripeCustomerService = _chunkYCMYYYBPjs.StripeCustomerService; exports.StripeInvoice = _chunkYCMYYYBPjs.StripeInvoice; exports.StripeInvoiceModule = _chunkYCMYYYBPjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkYCMYYYBPjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkYCMYYYBPjs.StripePaymentMethodModule; exports.StripePrice = _chunkYCMYYYBPjs.StripePrice; exports.StripePriceModule = _chunkYCMYYYBPjs.StripePriceModule; exports.StripePriceService = _chunkYCMYYYBPjs.StripePriceService; exports.StripeProduct = _chunkYCMYYYBPjs.StripeProduct; exports.StripeProductModule = _chunkYCMYYYBPjs.StripeProductModule; exports.StripeProductService = _chunkYCMYYYBPjs.StripeProductService; exports.StripePromotionCode = _chunkYCMYYYBPjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkYCMYYYBPjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkYCMYYYBPjs.StripePromotionCodeService; exports.StripeSubscription = _chunkYCMYYYBPjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkYCMYYYBPjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkYCMYYYBPjs.StripeSubscriptionService; exports.StripeUsage = _chunkYCMYYYBPjs.StripeUsage; exports.StripeUsageModule = _chunkYCMYYYBPjs.StripeUsageModule; exports.StripeUsageService = _chunkYCMYYYBPjs.StripeUsageService; exports.SubscriptionStatus = _chunkYCMYYYBPjs.SubscriptionStatus; exports.TableOptions = _chunkYCMYYYBPjs.TableOptions; exports.TotpAuthenticator = _chunkYCMYYYBPjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkYCMYYYBPjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkYCMYYYBPjs.TotpSetup; exports.TotpSetupModule = _chunkYCMYYYBPjs.TotpSetupModule; exports.TotpVerify = _chunkYCMYYYBPjs.TotpVerify; exports.TotpVerifyLogin = _chunkYCMYYYBPjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkYCMYYYBPjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkYCMYYYBPjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkYCMYYYBPjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkYCMYYYBPjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkYCMYYYBPjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkYCMYYYBPjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkYCMYYYBPjs.TwoFactorService; exports.TwoFactorStatus = _chunkYCMYYYBPjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkYCMYYYBPjs.TwoFactorStatusModule; exports.User = _chunkYCMYYYBPjs.User; exports.UserFields = _chunkYCMYYYBPjs.UserFields; exports.UserModule = _chunkYCMYYYBPjs.UserModule; exports.UserService = _chunkYCMYYYBPjs.UserService; exports.Waitlist = _chunkYCMYYYBPjs.Waitlist; exports.WaitlistModule = _chunkYCMYYYBPjs.WaitlistModule; exports.WaitlistService = _chunkYCMYYYBPjs.WaitlistService; exports.WaitlistStats = _chunkYCMYYYBPjs.WaitlistStats; exports.WaitlistStatsModule = _chunkYCMYYYBPjs.WaitlistStatsModule; exports.checkPermissions = _chunkYCMYYYBPjs.checkPermissions; exports.checkPermissionsFromServer = _chunkYCMYYYBPjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkYCMYYYBPjs.clearLastApiTotal; exports.cn = _chunkYCMYYYBPjs.cn; exports.composeRefs = _chunkYCMYYYBPjs.composeRefs; exports.configureAuth = _chunkYCMYYYBPjs.configureAuth; exports.configureI18n = _chunk5NNJYJSIjs.configureI18n; exports.configureJsonApi = _chunk5NNJYJSIjs.configureJsonApi; exports.configureLogin = _chunk5NNJYJSIjs.configureLogin; exports.configureReferral = _chunk5NNJYJSIjs.configureReferral; exports.configureRoles = _chunk5NNJYJSIjs.configureRoles; exports.configureWaitlist = _chunk5NNJYJSIjs.configureWaitlist; exports.createJsonApiInclusion = _chunkYCMYYYBPjs.createJsonApiInclusion; exports.dismissToast = _chunkYCMYYYBPjs.dismissToast; exports.entityObjectSchema = _chunkYCMYYYBPjs.entityObjectSchema; exports.exists = _chunkYCMYYYBPjs.exists; exports.formatDate = _chunkYCMYYYBPjs.formatDate; exports.formatLocalDate = _chunkYCMYYYBPjs.formatLocalDate; exports.getApiUrl = _chunk5NNJYJSIjs.getApiUrl; exports.getAppUrl = _chunk5NNJYJSIjs.getAppUrl; exports.getBootstrapper = _chunkEIOEYXY3js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkYCMYYYBPjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkYCMYYYBPjs.getGlobalErrorHandler; exports.getIcon = _chunkYCMYYYBPjs.getIcon; exports.getIconByModule = _chunkYCMYYYBPjs.getIconByModule; exports.getIconByModuleName = _chunkYCMYYYBPjs.getIconByModuleName; exports.getInitials = _chunkYCMYYYBPjs.getInitials; exports.getLastApiTotal = _chunkYCMYYYBPjs.getLastApiTotal; exports.getLucideIcon = _chunkYCMYYYBPjs.getLucideIcon; exports.getLucideIconByModule = _chunkYCMYYYBPjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkYCMYYYBPjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk5NNJYJSIjs.getPublicApiUrl; exports.getReferralConfig = _chunk5NNJYJSIjs.getReferralConfig; exports.getRoleId = _chunk5NNJYJSIjs.getRoleId; exports.getStripePublishableKey = _chunk5NNJYJSIjs.getStripePublishableKey; exports.getTableComponents = _chunkYCMYYYBPjs.getTableComponents; exports.getTableOptions = _chunkYCMYYYBPjs.getTableOptions; exports.getTokenHandler = _chunkYCMYYYBPjs.getTokenHandler; exports.getTrackablePages = _chunk5NNJYJSIjs.getTrackablePages; exports.getValueFromPath = _chunkYCMYYYBPjs.getValueFromPath; exports.getWaitlistConfig = _chunk5NNJYJSIjs.getWaitlistConfig; exports.hasBootstrapper = _chunkEIOEYXY3js.hasBootstrapper; exports.isReferralEnabled = _chunk5NNJYJSIjs.isReferralEnabled; exports.isRolesConfigured = _chunk5NNJYJSIjs.isRolesConfigured; exports.rehydrate = _chunkYCMYYYBPjs.rehydrate; exports.rehydrateList = _chunkYCMYYYBPjs.rehydrateList; exports.resetBootstrapStore = _chunkEIOEYXY3js.resetBootstrapStore; exports.setBootstrapper = _chunkEIOEYXY3js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkYCMYYYBPjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkYCMYYYBPjs.setGlobalErrorHandler; exports.showCustomToast = _chunkYCMYYYBPjs.showCustomToast; exports.showError = _chunkYCMYYYBPjs.showError; exports.showToast = _chunkYCMYYYBPjs.showToast; exports.translateData = _chunkEIOEYXY3js.translateData; exports.translateResponse = _chunkEIOEYXY3js.translateResponse; exports.tryBootstrap = _chunkEIOEYXY3js.tryBootstrap; exports.useComposedRefs = _chunkYCMYYYBPjs.useComposedRefs; exports.useIsMobile = _chunkYCMYYYBPjs.useIsMobile; exports.userObjectSchema = _chunkYCMYYYBPjs.userObjectSchema;
427
427
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  getWaitlistConfig,
19
19
  isReferralEnabled,
20
20
  isRolesConfigured
21
- } from "./chunk-5U7QDGDQ.mjs";
21
+ } from "./chunk-JL3X3LQR.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -199,7 +199,7 @@ import {
199
199
  useComposedRefs,
200
200
  useIsMobile,
201
201
  userObjectSchema
202
- } from "./chunk-FWOS6PC5.mjs";
202
+ } from "./chunk-IUKSHJPS.mjs";
203
203
  import "./chunk-AUXK7QSA.mjs";
204
204
  import "./chunk-C7C7VY4F.mjs";
205
205
  import {
@@ -212,7 +212,7 @@ import {
212
212
  translateData,
213
213
  translateResponse,
214
214
  tryBootstrap
215
- } from "./chunk-WC2BTKJP.mjs";
215
+ } from "./chunk-DKFXGCG2.mjs";
216
216
  import "./chunk-PAWJFY3S.mjs";
217
217
  export {
218
218
  ACTION_TYPES,
@@ -15,13 +15,13 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunk6P7MEU7Qjs = require('../chunk-6P7MEU7Q.js');
18
+ var _chunkYCMYYYBPjs = require('../chunk-YCMYYYBP.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkRCMIVTVLjs = require('../chunk-RCMIVTVL.js');
24
+ var _chunkEIOEYXY3js = require('../chunk-EIOEYXY3.js');
25
25
 
26
26
 
27
27
  var _chunk7QVYU63Ejs = require('../chunk-7QVYU63E.js');
@@ -86,7 +86,7 @@ var ServerSession = class {
86
86
  if (!rawModules) return false;
87
87
  const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
88
88
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
89
- return _chunk6P7MEU7Qjs.checkPermissionsFromServer.call(void 0, {
89
+ return _chunkYCMYYYBPjs.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -158,7 +158,7 @@ async function ServerJsonApiGet(params) {
158
158
  language: params.language,
159
159
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _23 => _23.additionalHeaders])
160
160
  });
161
- return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
161
+ return _chunkEIOEYXY3js.translateResponse.call(void 0, {
162
162
  classKey: params.classKey,
163
163
  apiResponse,
164
164
  companyId: params.companyId,
@@ -179,7 +179,7 @@ async function ServerJsonApiPost(params) {
179
179
  if (!body) {
180
180
  body = {};
181
181
  } else if (params.overridesJsonApiCreation !== true) {
182
- body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
182
+ body = _chunkEIOEYXY3js.JsonApiDataFactory.create(params.classKey, body);
183
183
  }
184
184
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
185
185
  method: "POST",
@@ -191,7 +191,7 @@ async function ServerJsonApiPost(params) {
191
191
  language: params.language,
192
192
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _24 => _24.additionalHeaders])
193
193
  });
194
- return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
194
+ return _chunkEIOEYXY3js.translateResponse.call(void 0, {
195
195
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
196
196
  apiResponse,
197
197
  companyId: params.companyId,
@@ -206,7 +206,7 @@ async function ServerJsonApiPut(params) {
206
206
  if (!body) {
207
207
  body = {};
208
208
  } else {
209
- body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
209
+ body = _chunkEIOEYXY3js.JsonApiDataFactory.create(params.classKey, body);
210
210
  }
211
211
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
212
212
  method: "PUT",
@@ -218,7 +218,7 @@ async function ServerJsonApiPut(params) {
218
218
  language: params.language,
219
219
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _25 => _25.additionalHeaders])
220
220
  });
221
- return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
221
+ return _chunkEIOEYXY3js.translateResponse.call(void 0, {
222
222
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
223
223
  apiResponse,
224
224
  companyId: params.companyId,
@@ -233,7 +233,7 @@ async function ServerJsonApiPatch(params) {
233
233
  if (!body) {
234
234
  body = {};
235
235
  } else if (params.overridesJsonApiCreation !== true) {
236
- body = _chunkRCMIVTVLjs.JsonApiDataFactory.create(params.classKey, body);
236
+ body = _chunkEIOEYXY3js.JsonApiDataFactory.create(params.classKey, body);
237
237
  }
238
238
  const apiResponse = await _chunkIOLU4ASDjs.serverRequest.call(void 0, {
239
239
  method: "PATCH",
@@ -245,7 +245,7 @@ async function ServerJsonApiPatch(params) {
245
245
  language: params.language,
246
246
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _26 => _26.additionalHeaders])
247
247
  });
248
- return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
248
+ return _chunkEIOEYXY3js.translateResponse.call(void 0, {
249
249
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
250
250
  apiResponse,
251
251
  companyId: params.companyId,
@@ -264,7 +264,7 @@ async function ServerJsonApiDelete(params) {
264
264
  language: params.language,
265
265
  additionalHeaders: _optionalChain([_serverConfig, 'optionalAccess', _27 => _27.additionalHeaders])
266
266
  });
267
- return _chunkRCMIVTVLjs.translateResponse.call(void 0, {
267
+ return _chunkEIOEYXY3js.translateResponse.call(void 0, {
268
268
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
269
269
  apiResponse,
270
270
  companyId: params.companyId,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunk6P7MEU7Qjs.AuthService; exports.ServerCompanyService = _chunk6P7MEU7Qjs.CompanyService; exports.ServerContentService = _chunk6P7MEU7Qjs.ContentService; exports.ServerFeatureService = _chunk6P7MEU7Qjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunk6P7MEU7Qjs.NotificationService; exports.ServerPushService = _chunk6P7MEU7Qjs.PushService; exports.ServerRoleService = _chunk6P7MEU7Qjs.RoleService; exports.ServerS3Service = _chunk6P7MEU7Qjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunk6P7MEU7Qjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
299
+ exports.ServerAuthService = _chunkYCMYYYBPjs.AuthService; exports.ServerCompanyService = _chunkYCMYYYBPjs.CompanyService; exports.ServerContentService = _chunkYCMYYYBPjs.ContentService; exports.ServerFeatureService = _chunkYCMYYYBPjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkYCMYYYBPjs.NotificationService; exports.ServerPushService = _chunkYCMYYYBPjs.PushService; exports.ServerRoleService = _chunkYCMYYYBPjs.RoleService; exports.ServerS3Service = _chunkYCMYYYBPjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkYCMYYYBPjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
300
300
  //# sourceMappingURL=index.js.map
@@ -15,13 +15,13 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-FWOS6PC5.mjs";
18
+ } from "../chunk-IUKSHJPS.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
22
22
  JsonApiDataFactory,
23
23
  translateResponse
24
- } from "../chunk-WC2BTKJP.mjs";
24
+ } from "../chunk-DKFXGCG2.mjs";
25
25
  import {
26
26
  __name
27
27
  } from "../chunk-PAWJFY3S.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.119.0",
3
+ "version": "1.120.0",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -228,6 +228,7 @@ export abstract class ClientAbstractService {
228
228
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;
229
229
  error.status = apiResponse.response;
230
230
  error.digest = `HTTP_${apiResponse.response}`;
231
+ error.body = apiResponse.raw;
231
232
  throw error;
232
233
  }
233
234
  }
@@ -266,6 +267,7 @@ export abstract class ClientAbstractService {
266
267
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;
267
268
  error.status = apiResponse.response;
268
269
  error.digest = `HTTP_${apiResponse.response}`;
270
+ error.body = apiResponse.raw;
269
271
  throw error;
270
272
  }
271
273
  }
@@ -74,6 +74,7 @@ export async function translateResponse<T extends ApiDataInterface>(params: {
74
74
 
75
75
  if (!params.apiResponse.ok) {
76
76
  response.error = params.apiResponse?.data?.message ?? params.apiResponse.statusText;
77
+ response.raw = params.apiResponse.data;
77
78
  return response;
78
79
  }
79
80
 
@@ -1,26 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
- var _chunkRCMIVTVLjs = require('./chunk-RCMIVTVL.js');
13
- require('./chunk-7QVYU63E.js');
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- exports.JsonApiDelete = _chunkRCMIVTVLjs.JsonApiDelete; exports.JsonApiGet = _chunkRCMIVTVLjs.JsonApiGet; exports.JsonApiPatch = _chunkRCMIVTVLjs.JsonApiPatch; exports.JsonApiPost = _chunkRCMIVTVLjs.JsonApiPost; exports.JsonApiPut = _chunkRCMIVTVLjs.JsonApiPut; exports.buildUrl = _chunkRCMIVTVLjs.buildUrl; exports.configureJsonApi = _chunkRCMIVTVLjs.configureJsonApi; exports.getApiUrl = _chunkRCMIVTVLjs.getApiUrl; exports.getAppUrl = _chunkRCMIVTVLjs.getAppUrl; exports.getTrackablePages = _chunkRCMIVTVLjs.getTrackablePages;
26
- //# sourceMappingURL=JsonApiRequest-HE5LTEYK.js.map