@carlonicora/nextjs-jsonapi 1.119.0 → 1.121.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 (49) hide show
  1. package/dist/{BlockNoteEditor-BPACLNMB.js → BlockNoteEditor-OVL376NQ.js} +20 -20
  2. package/dist/{BlockNoteEditor-BPACLNMB.js.map → BlockNoteEditor-OVL376NQ.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-CEDKBT67.mjs → BlockNoteEditor-ZDSKVOWD.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-5U7QDGDQ.mjs → chunk-6VNRUTZR.mjs} +3 -3
  10. package/dist/{chunk-DXTOA7OO.js → chunk-BOECS3K2.js} +701 -701
  11. package/dist/{chunk-DXTOA7OO.js.map → chunk-BOECS3K2.js.map} +1 -1
  12. package/dist/{chunk-WC2BTKJP.mjs → chunk-DKFXGCG2.mjs} +2 -1
  13. package/dist/chunk-DKFXGCG2.mjs.map +1 -0
  14. package/dist/{chunk-4SPL6QH3.mjs → chunk-DMG6R3Y4.mjs} +6 -6
  15. package/dist/{chunk-RCMIVTVL.js → chunk-EIOEYXY3.js} +2 -1
  16. package/dist/chunk-EIOEYXY3.js.map +1 -0
  17. package/dist/{chunk-55Q43DI5.js → chunk-JO5BLONK.js} +9 -9
  18. package/dist/{chunk-55Q43DI5.js.map → chunk-JO5BLONK.js.map} +1 -1
  19. package/dist/{chunk-6P7MEU7Q.js → chunk-PQBKPWBY.js} +35 -30
  20. package/dist/chunk-PQBKPWBY.js.map +1 -0
  21. package/dist/{chunk-FWOS6PC5.mjs → chunk-T2FFT7JT.mjs} +10 -5
  22. package/dist/chunk-T2FFT7JT.mjs.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/AbstractService.ts +3 -0
  39. package/src/core/abstracts/ClientAbstractService.ts +2 -0
  40. package/src/core/utils/translateResponse.ts +1 -0
  41. package/dist/JsonApiRequest-HE5LTEYK.js +0 -26
  42. package/dist/chunk-6P7MEU7Q.js.map +0 -1
  43. package/dist/chunk-FWOS6PC5.mjs.map +0 -1
  44. package/dist/chunk-RCMIVTVL.js.map +0 -1
  45. package/dist/chunk-WC2BTKJP.mjs.map +0 -1
  46. /package/dist/{BlockNoteEditor-CEDKBT67.mjs.map → BlockNoteEditor-ZDSKVOWD.mjs.map} +0 -0
  47. /package/dist/{JsonApiRequest-SN3DNFDR.mjs.map → JsonApiRequest-4ISXX7PC.mjs.map} +0 -0
  48. /package/dist/{chunk-5U7QDGDQ.mjs.map → chunk-6VNRUTZR.mjs.map} +0 -0
  49. /package/dist/{chunk-4SPL6QH3.mjs.map → chunk-DMG6R3Y4.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 _chunkBOECS3K2js = require('../../chunk-BOECS3K2.js');
25
25
 
26
26
 
27
- var _chunk55Q43DI5js = require('../../chunk-55Q43DI5.js');
27
+ var _chunkJO5BLONKjs = require('../../chunk-JO5BLONK.js');
28
28
 
29
29
 
30
- var _chunk6P7MEU7Qjs = require('../../chunk-6P7MEU7Q.js');
30
+ var _chunkPQBKPWBYjs = require('../../chunk-PQBKPWBY.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 = _chunkJO5BLONKjs._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, _chunkBOECS3K2js.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
77
+ _chunkBOECS3K2js.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, _chunkBOECS3K2js.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 = _chunkBOECS3K2js.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, _chunkBOECS3K2js.SheetHeader, { children: [
93
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.SheetTitle, { children: t("help.askAi.sheet.title") }),
94
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.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, _chunkBOECS3K2js.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
97
97
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
98
- _chunkDXTOA7OOjs.AssistantThread,
98
+ _chunkBOECS3K2js.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, _chunkBOECS3K2js.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 } = _chunkBOECS3K2js.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, _chunkBOECS3K2js.Tooltip, { children: [
123
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBOECS3K2js.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.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, _chunkBOECS3K2js.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, _chunkBOECS3K2js.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 } = _chunkBOECS3K2js.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, _chunkBOECS3K2js.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, _chunkBOECS3K2js.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 = _chunkBOECS3K2js.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
+ _chunkPQBKPWBYjs.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 = _chunkBOECS3K2js.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 = _chunkBOECS3K2js.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
+ _chunkPQBKPWBYjs.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
+ _chunkBOECS3K2js.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, _chunkBOECS3K2js.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.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, _chunkBOECS3K2js.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
389
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkBOECS3K2js.SheetHeader, { children: [
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOECS3K2js.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 = _chunkBOECS3K2js.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
+ _chunkPQBKPWBYjs.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
+ _chunkBOECS3K2js.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, _chunkBOECS3K2js.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-DMG6R3Y4.mjs";
25
25
  import {
26
26
  _getStaticHelpContent
27
- } from "../../chunk-5U7QDGDQ.mjs";
27
+ } from "../../chunk-6VNRUTZR.mjs";
28
28
  import {
29
29
  HowToService
30
- } from "../../chunk-FWOS6PC5.mjs";
30
+ } from "../../chunk-T2FFT7JT.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 _chunkJO5BLONKjs = require('./chunk-JO5BLONK.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 _chunkPQBKPWBYjs = require('./chunk-PQBKPWBY.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 = _chunkJO5BLONKjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkPQBKPWBYjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkPQBKPWBYjs.AbstractApiData; exports.AbstractService = _chunkPQBKPWBYjs.AbstractService; exports.Action = _chunkPQBKPWBYjs.Action; exports.Assistant = _chunkPQBKPWBYjs.Assistant; exports.AssistantMessage = _chunkPQBKPWBYjs.AssistantMessage; exports.AssistantMessageModule = _chunkPQBKPWBYjs.AssistantMessageModule; exports.AssistantMessageService = _chunkPQBKPWBYjs.AssistantMessageService; exports.AssistantModule = _chunkPQBKPWBYjs.AssistantModule; exports.AssistantService = _chunkPQBKPWBYjs.AssistantService; exports.AuditLog = _chunkPQBKPWBYjs.AuditLog; exports.AuditLogModule = _chunkPQBKPWBYjs.AuditLogModule; exports.AuditLogService = _chunkPQBKPWBYjs.AuditLogService; exports.Auth = _chunkPQBKPWBYjs.Auth; exports.AuthComponent = _chunkPQBKPWBYjs.AuthComponent; exports.AuthModule = _chunkPQBKPWBYjs.AuthModule; exports.AuthService = _chunkPQBKPWBYjs.AuthService; exports.AuthorModule = _chunkPQBKPWBYjs.AuthorModule; exports.BackupCodeVerify = _chunkPQBKPWBYjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkPQBKPWBYjs.BackupCodeVerifyModule; exports.Billing = _chunkPQBKPWBYjs.Billing; exports.BillingModule = _chunkPQBKPWBYjs.BillingModule; exports.BillingService = _chunkPQBKPWBYjs.BillingService; exports.BlockNoteDiffUtil = _chunkPQBKPWBYjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkPQBKPWBYjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkJO5BLONKjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkPQBKPWBYjs.Chunk; exports.ChunkModule = _chunkPQBKPWBYjs.ChunkModule; exports.ClientAbstractService = _chunkPQBKPWBYjs.ClientAbstractService; exports.ClientHttpMethod = _chunkPQBKPWBYjs.ClientHttpMethod; exports.Company = _chunkPQBKPWBYjs.Company; exports.CompanyFields = _chunkPQBKPWBYjs.CompanyFields; exports.CompanyModule = _chunkPQBKPWBYjs.CompanyModule; exports.CompanyService = _chunkPQBKPWBYjs.CompanyService; exports.Content = _chunkPQBKPWBYjs.Content; exports.ContentFields = _chunkPQBKPWBYjs.ContentFields; exports.ContentModule = _chunkPQBKPWBYjs.ContentModule; exports.ContentService = _chunkPQBKPWBYjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkPQBKPWBYjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkEIOEYXY3js.DataClassRegistry; exports.DataClassRegistry = _chunkEIOEYXY3js.DataClassRegistry; exports.EndpointCreator = _chunkPQBKPWBYjs.EndpointCreator; exports.Feature = _chunkPQBKPWBYjs.Feature; exports.FeatureModule = _chunkPQBKPWBYjs.FeatureModule; exports.FeatureService = _chunkPQBKPWBYjs.FeatureService; exports.HowTo = _chunkPQBKPWBYjs.HowTo; exports.HowToFields = _chunkPQBKPWBYjs.HowToFields; exports.HowToModule = _chunkPQBKPWBYjs.HowToModule; exports.HowToService = _chunkPQBKPWBYjs.HowToService; exports.HttpMethod = _chunkPQBKPWBYjs.HttpMethod; exports.InvoiceStatus = _chunkPQBKPWBYjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkEIOEYXY3js.JsonApiDataFactory; exports.Module = _chunkPQBKPWBYjs.Module; exports.ModuleModule = _chunkPQBKPWBYjs.ModuleModule; exports.ModulePaths = _chunkPQBKPWBYjs.ModulePaths; exports.ModulePathsModule = _chunkPQBKPWBYjs.ModulePathsModule; exports.ModuleRegistrar = _chunkPQBKPWBYjs.ModuleRegistrar; exports.ModuleRegistry = _chunkPQBKPWBYjs.ModuleRegistry; exports.Modules = _chunkPQBKPWBYjs.Modules; exports.Notification = _chunkPQBKPWBYjs.Notification; exports.NotificationFields = _chunkPQBKPWBYjs.NotificationFields; exports.NotificationModule = _chunkPQBKPWBYjs.NotificationModule; exports.NotificationService = _chunkPQBKPWBYjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkPQBKPWBYjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkPQBKPWBYjs.OAuthClient; exports.OAuthModule = _chunkPQBKPWBYjs.OAuthModule; exports.OAuthService = _chunkPQBKPWBYjs.OAuthService; exports.Passkey = _chunkPQBKPWBYjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkPQBKPWBYjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkPQBKPWBYjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkPQBKPWBYjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkPQBKPWBYjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkPQBKPWBYjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkPQBKPWBYjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkPQBKPWBYjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkPQBKPWBYjs.PasskeyRename; exports.PasskeyRenameModule = _chunkPQBKPWBYjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkPQBKPWBYjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkPQBKPWBYjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkPQBKPWBYjs.PaymentMethod; exports.PermissionMapping = _chunkPQBKPWBYjs.PermissionMapping; exports.PermissionMappingModule = _chunkPQBKPWBYjs.PermissionMappingModule; exports.Push = _chunkPQBKPWBYjs.Push; exports.PushModule = _chunkPQBKPWBYjs.PushModule; exports.PushService = _chunkPQBKPWBYjs.PushService; exports.RbacMatrixModel = _chunkPQBKPWBYjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkPQBKPWBYjs.RbacMatrixModule; exports.RbacService = _chunkJO5BLONKjs.RbacService; exports.ReferralModule = _chunkPQBKPWBYjs.ReferralModule; exports.ReferralService = _chunkPQBKPWBYjs.ReferralService; exports.ReferralStats = _chunkPQBKPWBYjs.ReferralStats; exports.ReferralStatsModule = _chunkPQBKPWBYjs.ReferralStatsModule; exports.RehydrationFactory = _chunkPQBKPWBYjs.RehydrationFactory; exports.Role = _chunkPQBKPWBYjs.Role; exports.RoleFields = _chunkPQBKPWBYjs.RoleFields; exports.RoleModule = _chunkPQBKPWBYjs.RoleModule; exports.RoleService = _chunkPQBKPWBYjs.RoleService; exports.S3 = _chunkPQBKPWBYjs.S3; exports.S3Module = _chunkPQBKPWBYjs.S3Module; exports.S3Service = _chunkPQBKPWBYjs.S3Service; exports.StripeCustomer = _chunkPQBKPWBYjs.StripeCustomer; exports.StripeCustomerModule = _chunkPQBKPWBYjs.StripeCustomerModule; exports.StripeCustomerService = _chunkPQBKPWBYjs.StripeCustomerService; exports.StripeInvoice = _chunkPQBKPWBYjs.StripeInvoice; exports.StripeInvoiceModule = _chunkPQBKPWBYjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkPQBKPWBYjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkPQBKPWBYjs.StripePaymentMethodModule; exports.StripePrice = _chunkPQBKPWBYjs.StripePrice; exports.StripePriceModule = _chunkPQBKPWBYjs.StripePriceModule; exports.StripePriceService = _chunkPQBKPWBYjs.StripePriceService; exports.StripeProduct = _chunkPQBKPWBYjs.StripeProduct; exports.StripeProductModule = _chunkPQBKPWBYjs.StripeProductModule; exports.StripeProductService = _chunkPQBKPWBYjs.StripeProductService; exports.StripePromotionCode = _chunkPQBKPWBYjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkPQBKPWBYjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkPQBKPWBYjs.StripePromotionCodeService; exports.StripeSubscription = _chunkPQBKPWBYjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkPQBKPWBYjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkPQBKPWBYjs.StripeSubscriptionService; exports.StripeUsage = _chunkPQBKPWBYjs.StripeUsage; exports.StripeUsageModule = _chunkPQBKPWBYjs.StripeUsageModule; exports.StripeUsageService = _chunkPQBKPWBYjs.StripeUsageService; exports.SubscriptionStatus = _chunkPQBKPWBYjs.SubscriptionStatus; exports.TableOptions = _chunkPQBKPWBYjs.TableOptions; exports.TotpAuthenticator = _chunkPQBKPWBYjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkPQBKPWBYjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkPQBKPWBYjs.TotpSetup; exports.TotpSetupModule = _chunkPQBKPWBYjs.TotpSetupModule; exports.TotpVerify = _chunkPQBKPWBYjs.TotpVerify; exports.TotpVerifyLogin = _chunkPQBKPWBYjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkPQBKPWBYjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkPQBKPWBYjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkPQBKPWBYjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkPQBKPWBYjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkPQBKPWBYjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkPQBKPWBYjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkPQBKPWBYjs.TwoFactorService; exports.TwoFactorStatus = _chunkPQBKPWBYjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkPQBKPWBYjs.TwoFactorStatusModule; exports.User = _chunkPQBKPWBYjs.User; exports.UserFields = _chunkPQBKPWBYjs.UserFields; exports.UserModule = _chunkPQBKPWBYjs.UserModule; exports.UserService = _chunkPQBKPWBYjs.UserService; exports.Waitlist = _chunkPQBKPWBYjs.Waitlist; exports.WaitlistModule = _chunkPQBKPWBYjs.WaitlistModule; exports.WaitlistService = _chunkPQBKPWBYjs.WaitlistService; exports.WaitlistStats = _chunkPQBKPWBYjs.WaitlistStats; exports.WaitlistStatsModule = _chunkPQBKPWBYjs.WaitlistStatsModule; exports.checkPermissions = _chunkPQBKPWBYjs.checkPermissions; exports.checkPermissionsFromServer = _chunkPQBKPWBYjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkPQBKPWBYjs.clearLastApiTotal; exports.cn = _chunkPQBKPWBYjs.cn; exports.composeRefs = _chunkPQBKPWBYjs.composeRefs; exports.configureAuth = _chunkPQBKPWBYjs.configureAuth; exports.configureI18n = _chunkJO5BLONKjs.configureI18n; exports.configureJsonApi = _chunkJO5BLONKjs.configureJsonApi; exports.configureLogin = _chunkJO5BLONKjs.configureLogin; exports.configureReferral = _chunkJO5BLONKjs.configureReferral; exports.configureRoles = _chunkJO5BLONKjs.configureRoles; exports.configureWaitlist = _chunkJO5BLONKjs.configureWaitlist; exports.createJsonApiInclusion = _chunkPQBKPWBYjs.createJsonApiInclusion; exports.dismissToast = _chunkPQBKPWBYjs.dismissToast; exports.entityObjectSchema = _chunkPQBKPWBYjs.entityObjectSchema; exports.exists = _chunkPQBKPWBYjs.exists; exports.formatDate = _chunkPQBKPWBYjs.formatDate; exports.formatLocalDate = _chunkPQBKPWBYjs.formatLocalDate; exports.getApiUrl = _chunkJO5BLONKjs.getApiUrl; exports.getAppUrl = _chunkJO5BLONKjs.getAppUrl; exports.getBootstrapper = _chunkEIOEYXY3js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkPQBKPWBYjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkPQBKPWBYjs.getGlobalErrorHandler; exports.getIcon = _chunkPQBKPWBYjs.getIcon; exports.getIconByModule = _chunkPQBKPWBYjs.getIconByModule; exports.getIconByModuleName = _chunkPQBKPWBYjs.getIconByModuleName; exports.getInitials = _chunkPQBKPWBYjs.getInitials; exports.getLastApiTotal = _chunkPQBKPWBYjs.getLastApiTotal; exports.getLucideIcon = _chunkPQBKPWBYjs.getLucideIcon; exports.getLucideIconByModule = _chunkPQBKPWBYjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkPQBKPWBYjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkJO5BLONKjs.getPublicApiUrl; exports.getReferralConfig = _chunkJO5BLONKjs.getReferralConfig; exports.getRoleId = _chunkJO5BLONKjs.getRoleId; exports.getStripePublishableKey = _chunkJO5BLONKjs.getStripePublishableKey; exports.getTableComponents = _chunkPQBKPWBYjs.getTableComponents; exports.getTableOptions = _chunkPQBKPWBYjs.getTableOptions; exports.getTokenHandler = _chunkPQBKPWBYjs.getTokenHandler; exports.getTrackablePages = _chunkJO5BLONKjs.getTrackablePages; exports.getValueFromPath = _chunkPQBKPWBYjs.getValueFromPath; exports.getWaitlistConfig = _chunkJO5BLONKjs.getWaitlistConfig; exports.hasBootstrapper = _chunkEIOEYXY3js.hasBootstrapper; exports.isReferralEnabled = _chunkJO5BLONKjs.isReferralEnabled; exports.isRolesConfigured = _chunkJO5BLONKjs.isRolesConfigured; exports.rehydrate = _chunkPQBKPWBYjs.rehydrate; exports.rehydrateList = _chunkPQBKPWBYjs.rehydrateList; exports.resetBootstrapStore = _chunkEIOEYXY3js.resetBootstrapStore; exports.setBootstrapper = _chunkEIOEYXY3js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkPQBKPWBYjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkPQBKPWBYjs.setGlobalErrorHandler; exports.showCustomToast = _chunkPQBKPWBYjs.showCustomToast; exports.showError = _chunkPQBKPWBYjs.showError; exports.showToast = _chunkPQBKPWBYjs.showToast; exports.translateData = _chunkEIOEYXY3js.translateData; exports.translateResponse = _chunkEIOEYXY3js.translateResponse; exports.tryBootstrap = _chunkEIOEYXY3js.tryBootstrap; exports.useComposedRefs = _chunkPQBKPWBYjs.useComposedRefs; exports.useIsMobile = _chunkPQBKPWBYjs.useIsMobile; exports.userObjectSchema = _chunkPQBKPWBYjs.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-6VNRUTZR.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-T2FFT7JT.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 _chunkPQBKPWBYjs = require('../chunk-PQBKPWBY.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 _chunkPQBKPWBYjs.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 = _chunkPQBKPWBYjs.AuthService; exports.ServerCompanyService = _chunkPQBKPWBYjs.CompanyService; exports.ServerContentService = _chunkPQBKPWBYjs.ContentService; exports.ServerFeatureService = _chunkPQBKPWBYjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkPQBKPWBYjs.NotificationService; exports.ServerPushService = _chunkPQBKPWBYjs.PushService; exports.ServerRoleService = _chunkPQBKPWBYjs.RoleService; exports.ServerS3Service = _chunkPQBKPWBYjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkPQBKPWBYjs.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-T2FFT7JT.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.121.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",
@@ -241,6 +241,7 @@ export abstract class AbstractService {
241
241
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;
242
242
  error.status = apiResponse.response;
243
243
  error.digest = `HTTP_${apiResponse.response}`;
244
+ error.body = apiResponse.raw;
244
245
  throw error;
245
246
  }
246
247
  }
@@ -352,6 +353,7 @@ export abstract class AbstractService {
352
353
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;
353
354
  error.status = apiResponse.response;
354
355
  error.digest = `HTTP_${apiResponse.response}`;
356
+ error.body = apiResponse.raw;
355
357
  throw error;
356
358
  }
357
359
  }
@@ -401,6 +403,7 @@ export abstract class AbstractService {
401
403
  const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;
402
404
  error.status = apiResponse.response;
403
405
  error.digest = `HTTP_${apiResponse.response}`;
406
+ error.body = apiResponse.raw;
404
407
  throw error;
405
408
  }
406
409
  }
@@ -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