@carlonicora/nextjs-jsonapi 1.139.0 → 1.139.2

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 (51) hide show
  1. package/dist/{BlockNoteEditor-C7GK6NBI.js → BlockNoteEditor-JGX66ZAX.js} +19 -19
  2. package/dist/{BlockNoteEditor-C7GK6NBI.js.map → BlockNoteEditor-JGX66ZAX.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-XVVV2CUL.mjs → BlockNoteEditor-OZCZ3UVF.mjs} +4 -4
  4. package/dist/billing/index.js +357 -357
  5. package/dist/billing/index.mjs +3 -3
  6. package/dist/{chunk-GF4OWZKE.mjs → chunk-5GVY2M5X.mjs} +2 -2
  7. package/dist/{chunk-GF4OWZKE.mjs.map → chunk-5GVY2M5X.mjs.map} +1 -1
  8. package/dist/{chunk-AWOOIQLF.js → chunk-AGKZCRG2.js} +2 -2
  9. package/dist/{chunk-AWOOIQLF.js.map → chunk-AGKZCRG2.js.map} +1 -1
  10. package/dist/{chunk-GTBHGR3F.mjs → chunk-C4HLDTHV.mjs} +13 -14
  11. package/dist/chunk-C4HLDTHV.mjs.map +1 -0
  12. package/dist/{chunk-PKSCKISS.mjs → chunk-KXTTYXJ6.mjs} +2 -2
  13. package/dist/{chunk-XN6CXBNO.js → chunk-SE2YSAER.js} +7 -7
  14. package/dist/{chunk-XN6CXBNO.js.map → chunk-SE2YSAER.js.map} +1 -1
  15. package/dist/{chunk-FYJKTQCU.js → chunk-U662TK63.js} +737 -738
  16. package/dist/chunk-U662TK63.js.map +1 -0
  17. package/dist/client/index.d.mts +1 -1
  18. package/dist/client/index.d.ts +1 -1
  19. package/dist/client/index.js +4 -4
  20. package/dist/client/index.mjs +3 -3
  21. package/dist/components/index.d.mts +1 -1
  22. package/dist/components/index.d.ts +1 -1
  23. package/dist/components/index.js +4 -4
  24. package/dist/components/index.mjs +3 -3
  25. package/dist/contexts/index.js +4 -4
  26. package/dist/contexts/index.mjs +3 -3
  27. package/dist/core/index.d.mts +2 -2
  28. package/dist/core/index.d.ts +2 -2
  29. package/dist/core/index.js +2 -2
  30. package/dist/core/index.mjs +1 -1
  31. package/dist/features/help/index.js +37 -37
  32. package/dist/features/help/index.mjs +3 -3
  33. package/dist/index.d.mts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/index.js +3 -3
  36. package/dist/index.mjs +2 -2
  37. package/dist/{oauth.interface-B6xmfDzK.d.ts → oauth.interface-CD90ycYz.d.ts} +6 -2
  38. package/dist/{oauth.interface-o5FLpiN7.d.mts → oauth.interface-DRE3NAKc.d.mts} +6 -2
  39. package/dist/server/index.js +3 -3
  40. package/dist/server/index.mjs +1 -1
  41. package/package.json +1 -1
  42. package/src/components/forms/EntityMultiSelector.tsx +9 -11
  43. package/src/features/oauth/data/oauth.service.ts +1 -1
  44. package/src/features/oauth/hooks/useOAuthConsent.ts +3 -1
  45. package/src/features/oauth/interfaces/oauth.interface.ts +6 -2
  46. package/src/hooks/__tests__/useDataListRetriever.test.ts +23 -0
  47. package/src/hooks/useDataListRetriever.ts +3 -1
  48. package/dist/chunk-FYJKTQCU.js.map +0 -1
  49. package/dist/chunk-GTBHGR3F.mjs.map +0 -1
  50. /package/dist/{BlockNoteEditor-XVVV2CUL.mjs.map → BlockNoteEditor-OZCZ3UVF.mjs.map} +0 -0
  51. /package/dist/{chunk-PKSCKISS.mjs.map → chunk-KXTTYXJ6.mjs.map} +0 -0
@@ -22,13 +22,13 @@ var _chunkYBZVWLPHjs = require('../../chunk-YBZVWLPH.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkFYJKTQCUjs = require('../../chunk-FYJKTQCU.js');
25
+ var _chunkU662TK63js = require('../../chunk-U662TK63.js');
26
26
 
27
27
 
28
- var _chunkXN6CXBNOjs = require('../../chunk-XN6CXBNO.js');
28
+ var _chunkSE2YSAERjs = require('../../chunk-SE2YSAER.js');
29
29
 
30
30
 
31
- var _chunkAWOOIQLFjs = require('../../chunk-AWOOIQLF.js');
31
+ var _chunkAGKZCRG2js = require('../../chunk-AGKZCRG2.js');
32
32
  require('../../chunk-LXKSUWAV.js');
33
33
  require('../../chunk-IBS6NI7D.js');
34
34
  require('../../chunk-QWCAOLBD.js');
@@ -42,7 +42,7 @@ var _react = require('react');
42
42
  var _jsxruntime = require('react/jsx-runtime');
43
43
  var HelpContext = _react.createContext.call(void 0, null);
44
44
  function HelpProvider({ children }) {
45
- const cfg = _chunkXN6CXBNOjs._getStaticHelpContent.call(void 0, );
45
+ const cfg = _chunkSE2YSAERjs._getStaticHelpContent.call(void 0, );
46
46
  if (!cfg) {
47
47
  throw new Error(
48
48
  "Help content not configured \u2014 call configureJsonApi({ helpContent: {...} }) before importing help components."
@@ -74,29 +74,29 @@ var _lucidereact = require('lucide-react');
74
74
 
75
75
 
76
76
  function HelpAssistantSheet({ open, onOpenChange }) {
77
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
78
- _chunkFYJKTQCUjs.SheetContent,
77
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
78
+ _chunkU662TK63js.SheetContent,
79
79
  {
80
80
  side: "right",
81
81
  className: "flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl",
82
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.AssistantProvider, { manageUrl: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAssistantSheetBody, {}) })
82
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.AssistantProvider, { manageUrl: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAssistantSheetBody, {}) })
83
83
  }
84
84
  ) });
85
85
  }
86
86
  _chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheet, "HelpAssistantSheet");
87
87
  function HelpAssistantSheetBody() {
88
88
  const t = _nextintl.useTranslations.call(void 0, );
89
- const ctx = _chunkFYJKTQCUjs.useAssistantContext.call(void 0, );
89
+ const ctx = _chunkU662TK63js.useAssistantContext.call(void 0, );
90
90
  const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;
91
91
  const send = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (content) => ctx.sendMessage(content, { howToMode: true }), "send");
92
92
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
93
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.SheetHeader, { children: [
94
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.SheetTitle, { children: t("help.askAi.sheet.title") }),
95
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
93
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.SheetHeader, { children: [
94
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.SheetTitle, { children: t("help.askAi.sheet.title") }),
95
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
96
96
  ] }),
97
- !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
97
+ !showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
98
98
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
99
- _chunkFYJKTQCUjs.AssistantThread,
99
+ _chunkU662TK63js.AssistantThread,
100
100
  {
101
101
  messages: ctx.messages,
102
102
  sending: ctx.sending,
@@ -106,7 +106,7 @@ function HelpAssistantSheetBody() {
106
106
  onRetry: ctx.retrySend
107
107
  }
108
108
  ),
109
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.AssistantComposer, { onSend: send, disabled: ctx.sending })
109
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.AssistantComposer, { onSend: send, disabled: ctx.sending })
110
110
  ] })
111
111
  ] });
112
112
  }
@@ -116,20 +116,20 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAssistantSheetBody, "HelpAssistantSheet
116
116
 
117
117
  function HelpAskAi() {
118
118
  const t = _nextintl.useTranslations.call(void 0, );
119
- const { currentUser } = _chunkFYJKTQCUjs.useCurrentUserContext.call(void 0, );
119
+ const { currentUser } = _chunkU662TK63js.useCurrentUserContext.call(void 0, );
120
120
  const [open, setOpen] = _react.useState.call(void 0, false);
121
121
  const disabled = !currentUser;
122
122
  if (disabled) {
123
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.Tooltip, { children: [
124
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.Button, { variant: "outline", size: "sm", disabled: true }), children: [
123
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.Tooltip, { children: [
124
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.Button, { variant: "outline", size: "sm", disabled: true }), children: [
125
125
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
126
126
  t("help.askAi.button")
127
127
  ] }),
128
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.TooltipContent, { children: t("help.askAi.loginTooltip") })
128
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.TooltipContent, { children: t("help.askAi.loginTooltip") })
129
129
  ] });
130
130
  }
131
131
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
132
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.Button, { variant: "outline", size: "sm", onClick: () => setOpen(true), children: [
132
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.Button, { variant: "outline", size: "sm", onClick: () => setOpen(true), children: [
133
133
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.SparklesIcon, { className: "h-4 w-4" }),
134
134
  t("help.askAi.button")
135
135
  ] }),
@@ -142,7 +142,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpAskAi, "HelpAskAi");
142
142
 
143
143
  function HelpHeader() {
144
144
  const t = _nextintl.useTranslations.call(void 0, );
145
- const { currentUser } = _chunkFYJKTQCUjs.useCurrentUserContext.call(void 0, );
145
+ const { currentUser } = _chunkU662TK63js.useCurrentUserContext.call(void 0, );
146
146
  const { brand } = useHelp();
147
147
  const logo = _optionalChain([brand, 'optionalAccess', _ => _.logo]);
148
148
  const label = _nullishCoalesce(_optionalChain([brand, 'optionalAccess', _2 => _2.label]), () => ( "Help"));
@@ -158,7 +158,7 @@ function HelpHeader() {
158
158
  ] }),
159
159
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
160
160
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpAskAi, {}),
161
- currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.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, _chunkFYJKTQCUjs.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login" }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.login") })
161
+ currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.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, _chunkU662TK63js.Button, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: "/login" }), nativeButton: false, variant: "outline", size: "sm", children: t("help.header.login") })
162
162
  ] })
163
163
  ] });
164
164
  }
@@ -200,12 +200,12 @@ _chunk7QVYU63Ejs.__name.call(void 0, useHelpFilter, "useHelpFilter");
200
200
 
201
201
  function HelpSideNav() {
202
202
  const t = _nextintl.useTranslations.call(void 0, );
203
- const generateUrl = _chunkFYJKTQCUjs.usePageUrlGenerator.call(void 0, );
203
+ const generateUrl = _chunkU662TK63js.usePageUrlGenerator.call(void 0, );
204
204
  const pathname = _navigation.usePathname.call(void 0, );
205
205
  const [articles, setArticles] = _react.useState.call(void 0, []);
206
206
  _react.useEffect.call(void 0, () => {
207
207
  let active = true;
208
- _chunkAWOOIQLFjs.HowToService.findPublished().then((list) => active && setArticles(list)).catch(() => active && setArticles([]));
208
+ _chunkAGKZCRG2js.HowToService.findPublished().then((list) => active && setArticles(list)).catch(() => active && setArticles([]));
209
209
  return () => {
210
210
  active = false;
211
211
  };
@@ -281,7 +281,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpSideNav, "HelpSideNav");
281
281
  function HelpArticleBody(props) {
282
282
  const t = _nextintl.useTranslations.call(void 0, );
283
283
  const format = _nextintl.useFormatter.call(void 0, );
284
- const generateUrl = _chunkFYJKTQCUjs.usePageUrlGenerator.call(void 0, );
284
+ const generateUrl = _chunkU662TK63js.usePageUrlGenerator.call(void 0, );
285
285
  const { howToType, title, summary, updatedAt, prev, next, children } = props;
286
286
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: "prose dark:prose-invert max-w-none", children: [
287
287
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: "text-muted-foreground mb-2 text-xs", children: [
@@ -338,7 +338,7 @@ function HelpTOC({ headings }) {
338
338
  }, [headings]);
339
339
  if (headings.length === 0) return null;
340
340
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { "aria-label": t("help.toc.title"), className: "hidden lg:block", children: [
341
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.MicroLabel, { className: "mb-2", children: t("help.toc.title") }),
341
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.MicroLabel, { className: "mb-2", children: t("help.toc.title") }),
342
342
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "space-y-1 text-sm", children: headings.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { style: { paddingLeft: `${(h.depth - 2) * 0.75}rem` }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
343
343
  "a",
344
344
  {
@@ -359,13 +359,13 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpTOC, "HelpTOC");
359
359
 
360
360
  function HelpHint({ contextKey }) {
361
361
  const t = _nextintl.useTranslations.call(void 0, );
362
- const generateUrl = _chunkFYJKTQCUjs.usePageUrlGenerator.call(void 0, );
362
+ const generateUrl = _chunkU662TK63js.usePageUrlGenerator.call(void 0, );
363
363
  const [open, setOpen] = _react.useState.call(void 0, false);
364
364
  const [picked, setPicked] = _react.useState.call(void 0, null);
365
365
  const [articles, setArticles] = _react.useState.call(void 0, []);
366
366
  _react.useEffect.call(void 0, () => {
367
367
  let active2 = true;
368
- _chunkAWOOIQLFjs.HowToService.findPublished().then((list) => active2 && setArticles(list)).catch(() => active2 && setArticles([]));
368
+ _chunkAGKZCRG2js.HowToService.findPublished().then((list) => active2 && setArticles(list)).catch(() => active2 && setArticles([]));
369
369
  return () => {
370
370
  active2 = false;
371
371
  };
@@ -377,7 +377,7 @@ function HelpHint({ contextKey }) {
377
377
  if (matches.length === 0) return null;
378
378
  const active = _nullishCoalesce(picked, () => ( (matches.length === 1 ? matches[0] : null)));
379
379
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
380
- _chunkFYJKTQCUjs.Sheet,
380
+ _chunkU662TK63js.Sheet,
381
381
  {
382
382
  open,
383
383
  onOpenChange: (o) => {
@@ -385,11 +385,11 @@ function HelpHint({ contextKey }) {
385
385
  if (!o) setPicked(null);
386
386
  },
387
387
  children: [
388
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.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" }) }),
389
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
390
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFYJKTQCUjs.SheetHeader, { children: [
391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
392
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.SheetDescription, { children: _nullishCoalesce(_optionalChain([active, 'optionalAccess', _4 => _4.summary]), () => ( "")) })
388
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.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" }) }),
389
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
390
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkU662TK63js.SheetHeader, { children: [
391
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.SheetDescription, { children: _nullishCoalesce(_optionalChain([active, 'optionalAccess', _4 => _4.summary]), () => ( "")) })
393
393
  ] }),
394
394
  active ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 space-y-3", children: [
395
395
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-sm", children: active.summary }),
@@ -421,18 +421,18 @@ _chunk7QVYU63Ejs.__name.call(void 0, HelpHint, "HelpHint");
421
421
 
422
422
  function HelpSearchResultRow({ result, onSelect }) {
423
423
  const t = _nextintl.useTranslations.call(void 0, );
424
- const generateUrl = _chunkFYJKTQCUjs.usePageUrlGenerator.call(void 0, );
424
+ const generateUrl = _chunkU662TK63js.usePageUrlGenerator.call(void 0, );
425
425
  const [article, setArticle] = _react.useState.call(void 0, null);
426
426
  _react.useEffect.call(void 0, () => {
427
427
  let active = true;
428
- _chunkAWOOIQLFjs.HowToService.findOne({ id: result.id }).then((a) => active && setArticle(a)).catch(() => active && setArticle(null));
428
+ _chunkAGKZCRG2js.HowToService.findOne({ id: result.id }).then((a) => active && setArticle(a)).catch(() => active && setArticle(null));
429
429
  return () => {
430
430
  active = false;
431
431
  };
432
432
  }, [result.id]);
433
433
  if (!article) {
434
434
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
435
- _chunkFYJKTQCUjs.CommandItem,
435
+ _chunkU662TK63js.CommandItem,
436
436
  {
437
437
  value: result.id,
438
438
  disabled: true,
@@ -441,7 +441,7 @@ function HelpSearchResultRow({ result, onSelect }) {
441
441
  }
442
442
  );
443
443
  }
444
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFYJKTQCUjs.CommandItem, { value: result.id, onSelect, className: "cursor-pointer p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
444
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU662TK63js.CommandItem, { value: result.id, onSelect, className: "cursor-pointer p-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
445
445
  _link2.default,
446
446
  {
447
447
  href: generateUrl({ page: `/help/${article.howToType}/${article.slug}` }),
@@ -22,13 +22,13 @@ import {
22
22
  useAssistantContext,
23
23
  useCurrentUserContext,
24
24
  usePageUrlGenerator
25
- } from "../../chunk-GTBHGR3F.mjs";
25
+ } from "../../chunk-C4HLDTHV.mjs";
26
26
  import {
27
27
  _getStaticHelpContent
28
- } from "../../chunk-PKSCKISS.mjs";
28
+ } from "../../chunk-KXTTYXJ6.mjs";
29
29
  import {
30
30
  HowToService
31
- } from "../../chunk-GF4OWZKE.mjs";
31
+ } from "../../chunk-5GVY2M5X.mjs";
32
32
  import "../../chunk-AUXK7QSA.mjs";
33
33
  import "../../chunk-C7C7VY4F.mjs";
34
34
  import "../../chunk-Z2CB63VG.mjs";
package/dist/index.d.mts CHANGED
@@ -16,7 +16,7 @@ export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P
16
16
  export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as ContentInterface, d as NotificationInput, N as NotificationInterface, R as RoleInput, e as RoleInterface, f as UserInput, U as UserInterface } from './notification.interface-B3kNUTZs.mjs';
17
17
  export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-B56qznuH.mjs';
18
18
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
19
- export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-o5FLpiN7.mjs';
19
+ export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-DRE3NAKc.mjs';
20
20
  export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-snd2ToEB.mjs';
21
21
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.mjs';
22
22
  import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.mjs';
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P
16
16
  export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as ContentInterface, d as NotificationInput, N as NotificationInterface, R as RoleInput, e as RoleInterface, f as UserInput, U as UserInterface } from './notification.interface-LKFmZndR.js';
17
17
  export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-CHiJIYDY.js';
18
18
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
19
- export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-B6xmfDzK.js';
19
+ export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-CD90ycYz.js';
20
20
  export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-BrkU_Ynz.js';
21
21
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
22
22
  import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.js';
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkXN6CXBNOjs = require('./chunk-XN6CXBNO.js');
21
+ var _chunkSE2YSAERjs = require('./chunk-SE2YSAER.js');
22
22
 
23
23
 
24
24
 
@@ -208,7 +208,7 @@ var _chunkXN6CXBNOjs = require('./chunk-XN6CXBNO.js');
208
208
 
209
209
 
210
210
 
211
- var _chunkAWOOIQLFjs = require('./chunk-AWOOIQLF.js');
211
+ var _chunkAGKZCRG2js = require('./chunk-AGKZCRG2.js');
212
212
  require('./chunk-LXKSUWAV.js');
213
213
  require('./chunk-IBS6NI7D.js');
214
214
 
@@ -441,5 +441,5 @@ require('./chunk-7QVYU63E.js');
441
441
 
442
442
 
443
443
 
444
- exports.ACTION_TYPES = _chunkXN6CXBNOjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkAWOOIQLFjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkAWOOIQLFjs.AbstractApiData; exports.AbstractService = _chunkAWOOIQLFjs.AbstractService; exports.Action = _chunkAWOOIQLFjs.Action; exports.Assistant = _chunkAWOOIQLFjs.Assistant; exports.AssistantMessage = _chunkAWOOIQLFjs.AssistantMessage; exports.AssistantMessageModule = _chunkAWOOIQLFjs.AssistantMessageModule; exports.AssistantMessageService = _chunkAWOOIQLFjs.AssistantMessageService; exports.AssistantModule = _chunkAWOOIQLFjs.AssistantModule; exports.AssistantService = _chunkAWOOIQLFjs.AssistantService; exports.AuditLog = _chunkAWOOIQLFjs.AuditLog; exports.AuditLogModule = _chunkAWOOIQLFjs.AuditLogModule; exports.AuditLogService = _chunkAWOOIQLFjs.AuditLogService; exports.Auth = _chunkAWOOIQLFjs.Auth; exports.AuthComponent = _chunkAWOOIQLFjs.AuthComponent; exports.AuthModule = _chunkAWOOIQLFjs.AuthModule; exports.AuthService = _chunkAWOOIQLFjs.AuthService; exports.AuthorModule = _chunkAWOOIQLFjs.AuthorModule; exports.BackupCodeVerify = _chunkAWOOIQLFjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkAWOOIQLFjs.BackupCodeVerifyModule; exports.Billing = _chunkAWOOIQLFjs.Billing; exports.BillingModule = _chunkAWOOIQLFjs.BillingModule; exports.BillingService = _chunkAWOOIQLFjs.BillingService; exports.BlockNoteDiffUtil = _chunkAWOOIQLFjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkAWOOIQLFjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkXN6CXBNOjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkAWOOIQLFjs.Chunk; exports.ChunkModule = _chunkAWOOIQLFjs.ChunkModule; exports.ClientAbstractService = _chunkAWOOIQLFjs.ClientAbstractService; exports.ClientHttpMethod = _chunkAWOOIQLFjs.ClientHttpMethod; exports.Company = _chunkAWOOIQLFjs.Company; exports.CompanyFields = _chunkAWOOIQLFjs.CompanyFields; exports.CompanyModule = _chunkAWOOIQLFjs.CompanyModule; exports.CompanyService = _chunkAWOOIQLFjs.CompanyService; exports.Content = _chunkAWOOIQLFjs.Content; exports.ContentFields = _chunkAWOOIQLFjs.ContentFields; exports.ContentModule = _chunkAWOOIQLFjs.ContentModule; exports.ContentService = _chunkAWOOIQLFjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkAWOOIQLFjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunkAWOOIQLFjs.EndpointCreator; exports.Feature = _chunkAWOOIQLFjs.Feature; exports.FeatureModule = _chunkAWOOIQLFjs.FeatureModule; exports.FeatureService = _chunkAWOOIQLFjs.FeatureService; exports.HowTo = _chunkAWOOIQLFjs.HowTo; exports.HowToFields = _chunkAWOOIQLFjs.HowToFields; exports.HowToModule = _chunkAWOOIQLFjs.HowToModule; exports.HowToService = _chunkAWOOIQLFjs.HowToService; exports.HttpMethod = _chunkAWOOIQLFjs.HttpMethod; exports.InvoiceStatus = _chunkAWOOIQLFjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkAWOOIQLFjs.MOBILE_BREAKPOINT; exports.Module = _chunkAWOOIQLFjs.Module; exports.ModuleModule = _chunkAWOOIQLFjs.ModuleModule; exports.ModulePaths = _chunkAWOOIQLFjs.ModulePaths; exports.ModulePathsModule = _chunkAWOOIQLFjs.ModulePathsModule; exports.ModuleRegistrar = _chunkAWOOIQLFjs.ModuleRegistrar; exports.ModuleRegistry = _chunkAWOOIQLFjs.ModuleRegistry; exports.Modules = _chunkAWOOIQLFjs.Modules; exports.Notification = _chunkAWOOIQLFjs.Notification; exports.NotificationFields = _chunkAWOOIQLFjs.NotificationFields; exports.NotificationModule = _chunkAWOOIQLFjs.NotificationModule; exports.NotificationService = _chunkAWOOIQLFjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkAWOOIQLFjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkAWOOIQLFjs.OAuthClient; exports.OAuthModule = _chunkAWOOIQLFjs.OAuthModule; exports.OAuthService = _chunkAWOOIQLFjs.OAuthService; exports.Passkey = _chunkAWOOIQLFjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkAWOOIQLFjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkAWOOIQLFjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkAWOOIQLFjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkAWOOIQLFjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkAWOOIQLFjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkAWOOIQLFjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkAWOOIQLFjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkAWOOIQLFjs.PasskeyRename; exports.PasskeyRenameModule = _chunkAWOOIQLFjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkAWOOIQLFjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkAWOOIQLFjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkAWOOIQLFjs.PaymentMethod; exports.PermissionMapping = _chunkAWOOIQLFjs.PermissionMapping; exports.PermissionMappingModule = _chunkAWOOIQLFjs.PermissionMappingModule; exports.Push = _chunkAWOOIQLFjs.Push; exports.PushModule = _chunkAWOOIQLFjs.PushModule; exports.PushService = _chunkAWOOIQLFjs.PushService; exports.RbacMatrixModel = _chunkAWOOIQLFjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkAWOOIQLFjs.RbacMatrixModule; exports.RbacService = _chunkXN6CXBNOjs.RbacService; exports.ReferralModule = _chunkAWOOIQLFjs.ReferralModule; exports.ReferralService = _chunkAWOOIQLFjs.ReferralService; exports.ReferralStats = _chunkAWOOIQLFjs.ReferralStats; exports.ReferralStatsModule = _chunkAWOOIQLFjs.ReferralStatsModule; exports.RehydrationFactory = _chunkAWOOIQLFjs.RehydrationFactory; exports.Role = _chunkAWOOIQLFjs.Role; exports.RoleFields = _chunkAWOOIQLFjs.RoleFields; exports.RoleModule = _chunkAWOOIQLFjs.RoleModule; exports.RoleService = _chunkAWOOIQLFjs.RoleService; exports.S3 = _chunkAWOOIQLFjs.S3; exports.S3Module = _chunkAWOOIQLFjs.S3Module; exports.S3Service = _chunkAWOOIQLFjs.S3Service; exports.StripeCustomer = _chunkAWOOIQLFjs.StripeCustomer; exports.StripeCustomerModule = _chunkAWOOIQLFjs.StripeCustomerModule; exports.StripeCustomerService = _chunkAWOOIQLFjs.StripeCustomerService; exports.StripeInvoice = _chunkAWOOIQLFjs.StripeInvoice; exports.StripeInvoiceModule = _chunkAWOOIQLFjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkAWOOIQLFjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkAWOOIQLFjs.StripePaymentMethodModule; exports.StripePrice = _chunkAWOOIQLFjs.StripePrice; exports.StripePriceModule = _chunkAWOOIQLFjs.StripePriceModule; exports.StripePriceService = _chunkAWOOIQLFjs.StripePriceService; exports.StripeProduct = _chunkAWOOIQLFjs.StripeProduct; exports.StripeProductModule = _chunkAWOOIQLFjs.StripeProductModule; exports.StripeProductService = _chunkAWOOIQLFjs.StripeProductService; exports.StripePromotionCode = _chunkAWOOIQLFjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkAWOOIQLFjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkAWOOIQLFjs.StripePromotionCodeService; exports.StripeSubscription = _chunkAWOOIQLFjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkAWOOIQLFjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkAWOOIQLFjs.StripeSubscriptionService; exports.StripeUsage = _chunkAWOOIQLFjs.StripeUsage; exports.StripeUsageModule = _chunkAWOOIQLFjs.StripeUsageModule; exports.StripeUsageService = _chunkAWOOIQLFjs.StripeUsageService; exports.SubscriptionStatus = _chunkAWOOIQLFjs.SubscriptionStatus; exports.TableOptions = _chunkAWOOIQLFjs.TableOptions; exports.TotpAuthenticator = _chunkAWOOIQLFjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkAWOOIQLFjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkAWOOIQLFjs.TotpSetup; exports.TotpSetupModule = _chunkAWOOIQLFjs.TotpSetupModule; exports.TotpVerify = _chunkAWOOIQLFjs.TotpVerify; exports.TotpVerifyLogin = _chunkAWOOIQLFjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkAWOOIQLFjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkAWOOIQLFjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkAWOOIQLFjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkAWOOIQLFjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkAWOOIQLFjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkAWOOIQLFjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkAWOOIQLFjs.TwoFactorService; exports.TwoFactorStatus = _chunkAWOOIQLFjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkAWOOIQLFjs.TwoFactorStatusModule; exports.User = _chunkAWOOIQLFjs.User; exports.UserFields = _chunkAWOOIQLFjs.UserFields; exports.UserModule = _chunkAWOOIQLFjs.UserModule; exports.UserService = _chunkAWOOIQLFjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkAWOOIQLFjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkAWOOIQLFjs.Waitlist; exports.WaitlistModule = _chunkAWOOIQLFjs.WaitlistModule; exports.WaitlistService = _chunkAWOOIQLFjs.WaitlistService; exports.WaitlistStats = _chunkAWOOIQLFjs.WaitlistStats; exports.WaitlistStatsModule = _chunkAWOOIQLFjs.WaitlistStatsModule; exports.checkPermissions = _chunkAWOOIQLFjs.checkPermissions; exports.checkPermissionsFromServer = _chunkAWOOIQLFjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkAWOOIQLFjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkAWOOIQLFjs.clearLastApiTotal; exports.cn = _chunkAWOOIQLFjs.cn; exports.composeRefs = _chunkAWOOIQLFjs.composeRefs; exports.configureAuth = _chunkAWOOIQLFjs.configureAuth; exports.configureI18n = _chunkXN6CXBNOjs.configureI18n; exports.configureJsonApi = _chunkXN6CXBNOjs.configureJsonApi; exports.configureLogin = _chunkXN6CXBNOjs.configureLogin; exports.configureReferral = _chunkXN6CXBNOjs.configureReferral; exports.configureRoles = _chunkXN6CXBNOjs.configureRoles; exports.configureWaitlist = _chunkXN6CXBNOjs.configureWaitlist; exports.createJsonApiInclusion = _chunkAWOOIQLFjs.createJsonApiInclusion; exports.dismissToast = _chunkAWOOIQLFjs.dismissToast; exports.entityObjectSchema = _chunkAWOOIQLFjs.entityObjectSchema; exports.exists = _chunkAWOOIQLFjs.exists; exports.formatCodiceFiscale = _chunkAWOOIQLFjs.formatCodiceFiscale; exports.formatDate = _chunkAWOOIQLFjs.formatDate; exports.formatLocalDate = _chunkAWOOIQLFjs.formatLocalDate; exports.formatPartitaIva = _chunkAWOOIQLFjs.formatPartitaIva; exports.getApiUrl = _chunkXN6CXBNOjs.getApiUrl; exports.getAppUrl = _chunkXN6CXBNOjs.getAppUrl; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkAWOOIQLFjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkAWOOIQLFjs.getGlobalErrorHandler; exports.getIcon = _chunkAWOOIQLFjs.getIcon; exports.getIconByModule = _chunkAWOOIQLFjs.getIconByModule; exports.getIconByModuleName = _chunkAWOOIQLFjs.getIconByModuleName; exports.getInitials = _chunkAWOOIQLFjs.getInitials; exports.getLastApiMeta = _chunkAWOOIQLFjs.getLastApiMeta; exports.getLastApiTotal = _chunkAWOOIQLFjs.getLastApiTotal; exports.getLucideIcon = _chunkAWOOIQLFjs.getLucideIcon; exports.getLucideIconByModule = _chunkAWOOIQLFjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkAWOOIQLFjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkXN6CXBNOjs.getPublicApiUrl; exports.getReferralConfig = _chunkXN6CXBNOjs.getReferralConfig; exports.getRoleId = _chunkXN6CXBNOjs.getRoleId; exports.getStripePublishableKey = _chunkXN6CXBNOjs.getStripePublishableKey; exports.getTableComponents = _chunkAWOOIQLFjs.getTableComponents; exports.getTableOptions = _chunkAWOOIQLFjs.getTableOptions; exports.getTokenHandler = _chunkAWOOIQLFjs.getTokenHandler; exports.getTrackablePages = _chunkXN6CXBNOjs.getTrackablePages; exports.getValueFromPath = _chunkAWOOIQLFjs.getValueFromPath; exports.getWaitlistConfig = _chunkXN6CXBNOjs.getWaitlistConfig; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isReferralEnabled = _chunkXN6CXBNOjs.isReferralEnabled; exports.isRolesConfigured = _chunkXN6CXBNOjs.isRolesConfigured; exports.rehydrate = _chunkAWOOIQLFjs.rehydrate; exports.rehydrateList = _chunkAWOOIQLFjs.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkAWOOIQLFjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkAWOOIQLFjs.setGlobalErrorHandler; exports.showCustomToast = _chunkAWOOIQLFjs.showCustomToast; exports.showError = _chunkAWOOIQLFjs.showError; exports.showToast = _chunkAWOOIQLFjs.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunkAWOOIQLFjs.useComposedRefs; exports.useIsMobile = _chunkAWOOIQLFjs.useIsMobile; exports.userObjectSchema = _chunkAWOOIQLFjs.userObjectSchema; exports.validateCodiceFiscale = _chunkAWOOIQLFjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkAWOOIQLFjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkAWOOIQLFjs.validatePartitaIva;
444
+ exports.ACTION_TYPES = _chunkSE2YSAERjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkAGKZCRG2js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkAGKZCRG2js.AbstractApiData; exports.AbstractService = _chunkAGKZCRG2js.AbstractService; exports.Action = _chunkAGKZCRG2js.Action; exports.Assistant = _chunkAGKZCRG2js.Assistant; exports.AssistantMessage = _chunkAGKZCRG2js.AssistantMessage; exports.AssistantMessageModule = _chunkAGKZCRG2js.AssistantMessageModule; exports.AssistantMessageService = _chunkAGKZCRG2js.AssistantMessageService; exports.AssistantModule = _chunkAGKZCRG2js.AssistantModule; exports.AssistantService = _chunkAGKZCRG2js.AssistantService; exports.AuditLog = _chunkAGKZCRG2js.AuditLog; exports.AuditLogModule = _chunkAGKZCRG2js.AuditLogModule; exports.AuditLogService = _chunkAGKZCRG2js.AuditLogService; exports.Auth = _chunkAGKZCRG2js.Auth; exports.AuthComponent = _chunkAGKZCRG2js.AuthComponent; exports.AuthModule = _chunkAGKZCRG2js.AuthModule; exports.AuthService = _chunkAGKZCRG2js.AuthService; exports.AuthorModule = _chunkAGKZCRG2js.AuthorModule; exports.BackupCodeVerify = _chunkAGKZCRG2js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkAGKZCRG2js.BackupCodeVerifyModule; exports.Billing = _chunkAGKZCRG2js.Billing; exports.BillingModule = _chunkAGKZCRG2js.BillingModule; exports.BillingService = _chunkAGKZCRG2js.BillingService; exports.BlockNoteDiffUtil = _chunkAGKZCRG2js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkAGKZCRG2js.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkSE2YSAERjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkAGKZCRG2js.Chunk; exports.ChunkModule = _chunkAGKZCRG2js.ChunkModule; exports.ClientAbstractService = _chunkAGKZCRG2js.ClientAbstractService; exports.ClientHttpMethod = _chunkAGKZCRG2js.ClientHttpMethod; exports.Company = _chunkAGKZCRG2js.Company; exports.CompanyFields = _chunkAGKZCRG2js.CompanyFields; exports.CompanyModule = _chunkAGKZCRG2js.CompanyModule; exports.CompanyService = _chunkAGKZCRG2js.CompanyService; exports.Content = _chunkAGKZCRG2js.Content; exports.ContentFields = _chunkAGKZCRG2js.ContentFields; exports.ContentModule = _chunkAGKZCRG2js.ContentModule; exports.ContentService = _chunkAGKZCRG2js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkAGKZCRG2js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunkAGKZCRG2js.EndpointCreator; exports.Feature = _chunkAGKZCRG2js.Feature; exports.FeatureModule = _chunkAGKZCRG2js.FeatureModule; exports.FeatureService = _chunkAGKZCRG2js.FeatureService; exports.HowTo = _chunkAGKZCRG2js.HowTo; exports.HowToFields = _chunkAGKZCRG2js.HowToFields; exports.HowToModule = _chunkAGKZCRG2js.HowToModule; exports.HowToService = _chunkAGKZCRG2js.HowToService; exports.HttpMethod = _chunkAGKZCRG2js.HttpMethod; exports.InvoiceStatus = _chunkAGKZCRG2js.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkAGKZCRG2js.MOBILE_BREAKPOINT; exports.Module = _chunkAGKZCRG2js.Module; exports.ModuleModule = _chunkAGKZCRG2js.ModuleModule; exports.ModulePaths = _chunkAGKZCRG2js.ModulePaths; exports.ModulePathsModule = _chunkAGKZCRG2js.ModulePathsModule; exports.ModuleRegistrar = _chunkAGKZCRG2js.ModuleRegistrar; exports.ModuleRegistry = _chunkAGKZCRG2js.ModuleRegistry; exports.Modules = _chunkAGKZCRG2js.Modules; exports.Notification = _chunkAGKZCRG2js.Notification; exports.NotificationFields = _chunkAGKZCRG2js.NotificationFields; exports.NotificationModule = _chunkAGKZCRG2js.NotificationModule; exports.NotificationService = _chunkAGKZCRG2js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkAGKZCRG2js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkAGKZCRG2js.OAuthClient; exports.OAuthModule = _chunkAGKZCRG2js.OAuthModule; exports.OAuthService = _chunkAGKZCRG2js.OAuthService; exports.Passkey = _chunkAGKZCRG2js.Passkey; exports.PasskeyAuthenticationOptions = _chunkAGKZCRG2js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkAGKZCRG2js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkAGKZCRG2js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkAGKZCRG2js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkAGKZCRG2js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkAGKZCRG2js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkAGKZCRG2js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkAGKZCRG2js.PasskeyRename; exports.PasskeyRenameModule = _chunkAGKZCRG2js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkAGKZCRG2js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkAGKZCRG2js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkAGKZCRG2js.PaymentMethod; exports.PermissionMapping = _chunkAGKZCRG2js.PermissionMapping; exports.PermissionMappingModule = _chunkAGKZCRG2js.PermissionMappingModule; exports.Push = _chunkAGKZCRG2js.Push; exports.PushModule = _chunkAGKZCRG2js.PushModule; exports.PushService = _chunkAGKZCRG2js.PushService; exports.RbacMatrixModel = _chunkAGKZCRG2js.RbacMatrixModel; exports.RbacMatrixModule = _chunkAGKZCRG2js.RbacMatrixModule; exports.RbacService = _chunkSE2YSAERjs.RbacService; exports.ReferralModule = _chunkAGKZCRG2js.ReferralModule; exports.ReferralService = _chunkAGKZCRG2js.ReferralService; exports.ReferralStats = _chunkAGKZCRG2js.ReferralStats; exports.ReferralStatsModule = _chunkAGKZCRG2js.ReferralStatsModule; exports.RehydrationFactory = _chunkAGKZCRG2js.RehydrationFactory; exports.Role = _chunkAGKZCRG2js.Role; exports.RoleFields = _chunkAGKZCRG2js.RoleFields; exports.RoleModule = _chunkAGKZCRG2js.RoleModule; exports.RoleService = _chunkAGKZCRG2js.RoleService; exports.S3 = _chunkAGKZCRG2js.S3; exports.S3Module = _chunkAGKZCRG2js.S3Module; exports.S3Service = _chunkAGKZCRG2js.S3Service; exports.StripeCustomer = _chunkAGKZCRG2js.StripeCustomer; exports.StripeCustomerModule = _chunkAGKZCRG2js.StripeCustomerModule; exports.StripeCustomerService = _chunkAGKZCRG2js.StripeCustomerService; exports.StripeInvoice = _chunkAGKZCRG2js.StripeInvoice; exports.StripeInvoiceModule = _chunkAGKZCRG2js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkAGKZCRG2js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkAGKZCRG2js.StripePaymentMethodModule; exports.StripePrice = _chunkAGKZCRG2js.StripePrice; exports.StripePriceModule = _chunkAGKZCRG2js.StripePriceModule; exports.StripePriceService = _chunkAGKZCRG2js.StripePriceService; exports.StripeProduct = _chunkAGKZCRG2js.StripeProduct; exports.StripeProductModule = _chunkAGKZCRG2js.StripeProductModule; exports.StripeProductService = _chunkAGKZCRG2js.StripeProductService; exports.StripePromotionCode = _chunkAGKZCRG2js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkAGKZCRG2js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkAGKZCRG2js.StripePromotionCodeService; exports.StripeSubscription = _chunkAGKZCRG2js.StripeSubscription; exports.StripeSubscriptionModule = _chunkAGKZCRG2js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkAGKZCRG2js.StripeSubscriptionService; exports.StripeUsage = _chunkAGKZCRG2js.StripeUsage; exports.StripeUsageModule = _chunkAGKZCRG2js.StripeUsageModule; exports.StripeUsageService = _chunkAGKZCRG2js.StripeUsageService; exports.SubscriptionStatus = _chunkAGKZCRG2js.SubscriptionStatus; exports.TableOptions = _chunkAGKZCRG2js.TableOptions; exports.TotpAuthenticator = _chunkAGKZCRG2js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkAGKZCRG2js.TotpAuthenticatorModule; exports.TotpSetup = _chunkAGKZCRG2js.TotpSetup; exports.TotpSetupModule = _chunkAGKZCRG2js.TotpSetupModule; exports.TotpVerify = _chunkAGKZCRG2js.TotpVerify; exports.TotpVerifyLogin = _chunkAGKZCRG2js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkAGKZCRG2js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkAGKZCRG2js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkAGKZCRG2js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkAGKZCRG2js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkAGKZCRG2js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkAGKZCRG2js.TwoFactorEnableModule; exports.TwoFactorService = _chunkAGKZCRG2js.TwoFactorService; exports.TwoFactorStatus = _chunkAGKZCRG2js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkAGKZCRG2js.TwoFactorStatusModule; exports.User = _chunkAGKZCRG2js.User; exports.UserFields = _chunkAGKZCRG2js.UserFields; exports.UserModule = _chunkAGKZCRG2js.UserModule; exports.UserService = _chunkAGKZCRG2js.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkAGKZCRG2js.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkAGKZCRG2js.Waitlist; exports.WaitlistModule = _chunkAGKZCRG2js.WaitlistModule; exports.WaitlistService = _chunkAGKZCRG2js.WaitlistService; exports.WaitlistStats = _chunkAGKZCRG2js.WaitlistStats; exports.WaitlistStatsModule = _chunkAGKZCRG2js.WaitlistStatsModule; exports.checkPermissions = _chunkAGKZCRG2js.checkPermissions; exports.checkPermissionsFromServer = _chunkAGKZCRG2js.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkAGKZCRG2js.clearLastApiMeta; exports.clearLastApiTotal = _chunkAGKZCRG2js.clearLastApiTotal; exports.cn = _chunkAGKZCRG2js.cn; exports.composeRefs = _chunkAGKZCRG2js.composeRefs; exports.configureAuth = _chunkAGKZCRG2js.configureAuth; exports.configureI18n = _chunkSE2YSAERjs.configureI18n; exports.configureJsonApi = _chunkSE2YSAERjs.configureJsonApi; exports.configureLogin = _chunkSE2YSAERjs.configureLogin; exports.configureReferral = _chunkSE2YSAERjs.configureReferral; exports.configureRoles = _chunkSE2YSAERjs.configureRoles; exports.configureWaitlist = _chunkSE2YSAERjs.configureWaitlist; exports.createJsonApiInclusion = _chunkAGKZCRG2js.createJsonApiInclusion; exports.dismissToast = _chunkAGKZCRG2js.dismissToast; exports.entityObjectSchema = _chunkAGKZCRG2js.entityObjectSchema; exports.exists = _chunkAGKZCRG2js.exists; exports.formatCodiceFiscale = _chunkAGKZCRG2js.formatCodiceFiscale; exports.formatDate = _chunkAGKZCRG2js.formatDate; exports.formatLocalDate = _chunkAGKZCRG2js.formatLocalDate; exports.formatPartitaIva = _chunkAGKZCRG2js.formatPartitaIva; exports.getApiUrl = _chunkSE2YSAERjs.getApiUrl; exports.getAppUrl = _chunkSE2YSAERjs.getAppUrl; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkAGKZCRG2js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkAGKZCRG2js.getGlobalErrorHandler; exports.getIcon = _chunkAGKZCRG2js.getIcon; exports.getIconByModule = _chunkAGKZCRG2js.getIconByModule; exports.getIconByModuleName = _chunkAGKZCRG2js.getIconByModuleName; exports.getInitials = _chunkAGKZCRG2js.getInitials; exports.getLastApiMeta = _chunkAGKZCRG2js.getLastApiMeta; exports.getLastApiTotal = _chunkAGKZCRG2js.getLastApiTotal; exports.getLucideIcon = _chunkAGKZCRG2js.getLucideIcon; exports.getLucideIconByModule = _chunkAGKZCRG2js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkAGKZCRG2js.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkSE2YSAERjs.getPublicApiUrl; exports.getReferralConfig = _chunkSE2YSAERjs.getReferralConfig; exports.getRoleId = _chunkSE2YSAERjs.getRoleId; exports.getStripePublishableKey = _chunkSE2YSAERjs.getStripePublishableKey; exports.getTableComponents = _chunkAGKZCRG2js.getTableComponents; exports.getTableOptions = _chunkAGKZCRG2js.getTableOptions; exports.getTokenHandler = _chunkAGKZCRG2js.getTokenHandler; exports.getTrackablePages = _chunkSE2YSAERjs.getTrackablePages; exports.getValueFromPath = _chunkAGKZCRG2js.getValueFromPath; exports.getWaitlistConfig = _chunkSE2YSAERjs.getWaitlistConfig; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isReferralEnabled = _chunkSE2YSAERjs.isReferralEnabled; exports.isRolesConfigured = _chunkSE2YSAERjs.isRolesConfigured; exports.rehydrate = _chunkAGKZCRG2js.rehydrate; exports.rehydrateList = _chunkAGKZCRG2js.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkAGKZCRG2js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkAGKZCRG2js.setGlobalErrorHandler; exports.showCustomToast = _chunkAGKZCRG2js.showCustomToast; exports.showError = _chunkAGKZCRG2js.showError; exports.showToast = _chunkAGKZCRG2js.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunkAGKZCRG2js.useComposedRefs; exports.useIsMobile = _chunkAGKZCRG2js.useIsMobile; exports.userObjectSchema = _chunkAGKZCRG2js.userObjectSchema; exports.validateCodiceFiscale = _chunkAGKZCRG2js.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkAGKZCRG2js.validateItalianTaxCode; exports.validatePartitaIva = _chunkAGKZCRG2js.validatePartitaIva;
445
445
  //# 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-PKSCKISS.mjs";
21
+ } from "./chunk-KXTTYXJ6.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -208,7 +208,7 @@ import {
208
208
  validateCodiceFiscale,
209
209
  validateItalianTaxCode,
210
210
  validatePartitaIva
211
- } from "./chunk-GF4OWZKE.mjs";
211
+ } from "./chunk-5GVY2M5X.mjs";
212
212
  import "./chunk-AUXK7QSA.mjs";
213
213
  import "./chunk-C7C7VY4F.mjs";
214
214
  import {
@@ -73,8 +73,12 @@ interface OAuthConsentRequest {
73
73
  clientId: string;
74
74
  /** Where to redirect after authorization */
75
75
  redirectUri: string;
76
- /** Space-separated list of requested scopes */
77
- scope: string;
76
+ /**
77
+ * Space-separated list of requested scopes. Optional per RFC 6749 §3.3 —
78
+ * when omitted, the authorization server defaults to the client's
79
+ * registered scopes (MCP clients like Claude Code omit it).
80
+ */
81
+ scope?: string;
78
82
  /** CSRF protection token (passed back on redirect) */
79
83
  state?: string;
80
84
  /** PKCE code challenge (required for public clients) */
@@ -73,8 +73,12 @@ interface OAuthConsentRequest {
73
73
  clientId: string;
74
74
  /** Where to redirect after authorization */
75
75
  redirectUri: string;
76
- /** Space-separated list of requested scopes */
77
- scope: string;
76
+ /**
77
+ * Space-separated list of requested scopes. Optional per RFC 6749 §3.3 —
78
+ * when omitted, the authorization server defaults to the client's
79
+ * registered scopes (MCP clients like Claude Code omit it).
80
+ */
81
+ scope?: string;
78
82
  /** CSRF protection token (passed back on redirect) */
79
83
  state?: string;
80
84
  /** PKCE code challenge (required for public clients) */
@@ -15,7 +15,7 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkAWOOIQLFjs = require('../chunk-AWOOIQLF.js');
18
+ var _chunkAGKZCRG2js = require('../chunk-AGKZCRG2.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
@@ -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 _chunkAWOOIQLFjs.checkPermissionsFromServer.call(void 0, {
89
+ return _chunkAGKZCRG2js.checkPermissionsFromServer.call(void 0, {
90
90
  module: params.module,
91
91
  action: params.action,
92
92
  data: params.data,
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
296
296
 
297
297
 
298
298
 
299
- exports.ServerAuthService = _chunkAWOOIQLFjs.AuthService; exports.ServerCompanyService = _chunkAWOOIQLFjs.CompanyService; exports.ServerContentService = _chunkAWOOIQLFjs.ContentService; exports.ServerFeatureService = _chunkAWOOIQLFjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkAWOOIQLFjs.NotificationService; exports.ServerPushService = _chunkAWOOIQLFjs.PushService; exports.ServerRoleService = _chunkAWOOIQLFjs.RoleService; exports.ServerS3Service = _chunkAWOOIQLFjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkAWOOIQLFjs.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 = _chunkAGKZCRG2js.AuthService; exports.ServerCompanyService = _chunkAGKZCRG2js.CompanyService; exports.ServerContentService = _chunkAGKZCRG2js.ContentService; exports.ServerFeatureService = _chunkAGKZCRG2js.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkAGKZCRG2js.NotificationService; exports.ServerPushService = _chunkAGKZCRG2js.PushService; exports.ServerRoleService = _chunkAGKZCRG2js.RoleService; exports.ServerS3Service = _chunkAGKZCRG2js.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkAGKZCRG2js.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,7 +15,7 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-GF4OWZKE.mjs";
18
+ } from "../chunk-5GVY2M5X.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "1.139.0",
3
+ "version": "1.139.2",
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",
@@ -63,6 +63,7 @@ export function EntityMultiSelector<T extends { id: string }>({
63
63
  const [searchTerm, setSearchTerm] = useState("");
64
64
  const [options, setOptions] = useState<OptionData<T>[]>([]);
65
65
  const searchInputRef = useRef<HTMLInputElement>(null);
66
+ const searchTermRef = useRef<string>("");
66
67
 
67
68
  // Stabilize callback props in refs to prevent infinite re-render loops.
68
69
  // These functions are passed inline by consumers (e.g. getLabel={(w) => w.name})
@@ -110,11 +111,10 @@ export function EntityMultiSelector<T extends { id: string }>({
110
111
 
111
112
  const updateSearch = useCallback(
112
113
  (searchedTerm: string) => {
113
- if (searchedTerm.trim()) {
114
- data.addAdditionalParameter("search", searchedTerm.trim());
115
- } else {
116
- data.removeAdditionalParameter("search");
117
- }
114
+ const trimmed = searchedTerm.trim();
115
+ if (trimmed === searchTermRef.current) return;
116
+ searchTermRef.current = trimmed;
117
+ data.search(trimmed);
118
118
  },
119
119
  [data],
120
120
  );
@@ -202,17 +202,15 @@ export function EntityMultiSelector<T extends { id: string }>({
202
202
  [form, id, options],
203
203
  );
204
204
 
205
+ // No client-side filtering: the search term is sent to the API (debounced), so filtering
206
+ // the response again by label would hide matches found on other fields (e.g. email).
205
207
  const sortedOptions = useMemo(() => {
206
- const filtered = searchTerm.trim()
207
- ? options.filter((o) => o.label.toLowerCase().includes(searchTerm.trim().toLowerCase()))
208
- : options;
209
-
210
- return [...filtered].sort((a, b) => {
208
+ return [...options].sort((a, b) => {
211
209
  const aSelected = selectedIds.has(a.id) ? 0 : 1;
212
210
  const bSelected = selectedIds.has(b.id) ? 0 : 1;
213
211
  return aSelected - bSelected;
214
212
  });
215
- }, [options, selectedIds, searchTerm]);
213
+ }, [options, selectedIds]);
216
214
 
217
215
  const triggerSummary = useMemo(() => {
218
216
  if (selectedValues.length === 0) return null;
@@ -130,7 +130,7 @@ export class OAuthService extends AbstractService {
130
130
  // Add query parameters
131
131
  endpoint.addAdditionalParam("client_id", params.clientId);
132
132
  endpoint.addAdditionalParam("redirect_uri", params.redirectUri);
133
- endpoint.addAdditionalParam("scope", params.scope);
133
+ if (params.scope) endpoint.addAdditionalParam("scope", params.scope);
134
134
  if (params.state) endpoint.addAdditionalParam("state", params.state);
135
135
  if (params.codeChallenge) endpoint.addAdditionalParam("code_challenge", params.codeChallenge);
136
136
  if (params.codeChallengeMethod) endpoint.addAdditionalParam("code_challenge_method", params.codeChallengeMethod);
@@ -46,7 +46,9 @@ export function useOAuthConsent(params: OAuthConsentRequest): UseOAuthConsentRet
46
46
  // Fetch client info on mount
47
47
  useEffect(() => {
48
48
  const fetchInfo = async () => {
49
- if (!params.clientId || !params.redirectUri || !params.scope) {
49
+ // scope is deliberately NOT required: RFC 6749 §3.3 makes it optional
50
+ // and the server defaults to the client's registered scopes.
51
+ if (!params.clientId || !params.redirectUri) {
50
52
  setError(new Error("Missing required authorization parameters"));
51
53
  setIsLoading(false);
52
54
  return;
@@ -77,8 +77,12 @@ export interface OAuthConsentRequest {
77
77
  clientId: string;
78
78
  /** Where to redirect after authorization */
79
79
  redirectUri: string;
80
- /** Space-separated list of requested scopes */
81
- scope: string;
80
+ /**
81
+ * Space-separated list of requested scopes. Optional per RFC 6749 §3.3 —
82
+ * when omitted, the authorization server defaults to the client's
83
+ * registered scopes (MCP clients like Claude Code omit it).
84
+ */
85
+ scope?: string;
82
86
  /** CSRF protection token (passed back on redirect) */
83
87
  state?: string;
84
88
  /** PKCE code challenge (required for public clients) */
@@ -288,6 +288,29 @@ describe("useDataListRetriever", () => {
288
288
  });
289
289
  });
290
290
 
291
+ it("should forward an explicit search additional parameter to the retriever", async () => {
292
+ const retriever = vi.fn().mockResolvedValue([]);
293
+
294
+ const { result } = renderHook(() =>
295
+ useDataListRetriever({
296
+ retriever,
297
+ module: mockModule,
298
+ }),
299
+ );
300
+
301
+ await waitFor(() => {
302
+ expect(result.current.isLoaded).toBe(true);
303
+ });
304
+
305
+ act(() => {
306
+ result.current.addAdditionalParameter("search", "mario");
307
+ });
308
+
309
+ await waitFor(() => {
310
+ expect(retriever).toHaveBeenCalledWith(expect.objectContaining({ search: "mario" }));
311
+ });
312
+ });
313
+
291
314
  it("should remove additional parameter", async () => {
292
315
  const retriever = vi.fn().mockResolvedValue([]);
293
316
 
@@ -196,7 +196,9 @@ export function useDataListRetriever<T>(params: {
196
196
  ...additionalParamsRef.current,
197
197
  };
198
198
 
199
- retrieverParams.search = currentSearchTerm;
199
+ // An explicit `search` passed through addAdditionalParameter wins: overwriting it
200
+ // with the internal term (only ever set by `search()`) silently dropped it.
201
+ if (additionalParamsRef.current.search === undefined) retrieverParams.search = currentSearchTerm;
200
202
  retrieverParams.next = nextRef;
201
203
  retrieverParams.previous = previousRef;
202
204
  retrieverParams.self = selfRef;