@carlonicora/nextjs-jsonapi 1.128.0 → 1.129.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.
- package/dist/{BlockNoteEditor-LAH2RUGP.js → BlockNoteEditor-RG2YQDMQ.js} +20 -20
- package/dist/{BlockNoteEditor-LAH2RUGP.js.map → BlockNoteEditor-RG2YQDMQ.js.map} +1 -1
- package/dist/{BlockNoteEditor-LJY3X6F6.mjs → BlockNoteEditor-WIAQJ5HM.mjs} +5 -5
- package/dist/{JsonApiRequest-4ISXX7PC.mjs → JsonApiRequest-F5LBESSA.mjs} +2 -2
- package/dist/JsonApiRequest-YAPUG4ND.js +26 -0
- package/dist/{JsonApiRequest-P3VQ2WIS.js.map → JsonApiRequest-YAPUG4ND.js.map} +1 -1
- package/dist/billing/index.js +347 -347
- package/dist/billing/index.mjs +4 -4
- package/dist/{chunk-T2FFT7JT.mjs → chunk-5MNE72ZE.mjs} +9 -5
- package/dist/{chunk-T2FFT7JT.mjs.map → chunk-5MNE72ZE.mjs.map} +1 -1
- package/dist/{chunk-PJGAR5F3.mjs → chunk-F54XZKPY.mjs} +7 -6
- package/dist/{chunk-PJGAR5F3.mjs.map → chunk-F54XZKPY.mjs.map} +1 -1
- package/dist/{chunk-PQBKPWBY.js → chunk-LBMNRFCY.js} +34 -30
- package/dist/chunk-LBMNRFCY.js.map +1 -0
- package/dist/{chunk-6VNRUTZR.mjs → chunk-NATPK5ME.mjs} +3 -3
- package/dist/{chunk-EIOEYXY3.js → chunk-QWCAOLBD.js} +6 -5
- package/dist/chunk-QWCAOLBD.js.map +1 -0
- package/dist/{chunk-JO5BLONK.js → chunk-XTLTQQ7X.js} +9 -9
- package/dist/{chunk-JO5BLONK.js.map → chunk-XTLTQQ7X.js.map} +1 -1
- package/dist/{chunk-QVRFFC2Q.js → chunk-YQTMNZQB.js} +715 -714
- package/dist/chunk-YQTMNZQB.js.map +1 -0
- package/dist/{chunk-DKFXGCG2.mjs → chunk-Z2CB63VG.mjs} +6 -5
- package/dist/{chunk-DKFXGCG2.mjs.map → chunk-Z2CB63VG.mjs.map} +1 -1
- package/dist/client/index.js +5 -5
- package/dist/client/index.mjs +4 -4
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +4 -4
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/index.mjs +4 -4
- package/dist/core/index.js +3 -3
- package/dist/core/index.mjs +2 -2
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/server/index.js +12 -12
- package/dist/server/index.mjs +2 -2
- package/package.json +2 -2
- package/src/components/tables/ContentListTable.tsx +2 -0
- package/src/core/abstracts/AbstractService.ts +4 -0
- package/src/unified/JsonApiRequest.ts +9 -4
- package/dist/JsonApiRequest-P3VQ2WIS.js +0 -26
- package/dist/chunk-EIOEYXY3.js.map +0 -1
- package/dist/chunk-PQBKPWBY.js.map +0 -1
- package/dist/chunk-QVRFFC2Q.js.map +0 -1
- /package/dist/{BlockNoteEditor-LJY3X6F6.mjs.map → BlockNoteEditor-WIAQJ5HM.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-4ISXX7PC.mjs.map → JsonApiRequest-F5LBESSA.mjs.map} +0 -0
- /package/dist/{chunk-6VNRUTZR.mjs.map → chunk-NATPK5ME.mjs.map} +0 -0
package/dist/core/index.mjs
CHANGED
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
useComposedRefs,
|
|
174
174
|
useIsMobile,
|
|
175
175
|
userObjectSchema
|
|
176
|
-
} from "../chunk-
|
|
176
|
+
} from "../chunk-5MNE72ZE.mjs";
|
|
177
177
|
import "../chunk-AUXK7QSA.mjs";
|
|
178
178
|
import "../chunk-C7C7VY4F.mjs";
|
|
179
179
|
import {
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
translateData,
|
|
187
187
|
translateResponse,
|
|
188
188
|
tryBootstrap
|
|
189
|
-
} from "../chunk-
|
|
189
|
+
} from "../chunk-Z2CB63VG.mjs";
|
|
190
190
|
import "../chunk-PAWJFY3S.mjs";
|
|
191
191
|
export {
|
|
192
192
|
AVAILABLE_OAUTH_SCOPES,
|
|
@@ -21,16 +21,16 @@ var _chunkYBZVWLPHjs = require('../../chunk-YBZVWLPH.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkYQTMNZQBjs = require('../../chunk-YQTMNZQB.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkXTLTQQ7Xjs = require('../../chunk-XTLTQQ7X.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkLBMNRFCYjs = require('../../chunk-LBMNRFCY.js');
|
|
31
31
|
require('../../chunk-LXKSUWAV.js');
|
|
32
32
|
require('../../chunk-IBS6NI7D.js');
|
|
33
|
-
require('../../chunk-
|
|
33
|
+
require('../../chunk-QWCAOLBD.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 =
|
|
44
|
+
const cfg = _chunkXTLTQQ7Xjs._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,
|
|
77
|
-
|
|
76
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.Sheet, { open, onOpenChange, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
+
_chunkYQTMNZQBjs.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,
|
|
81
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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 =
|
|
88
|
+
const ctx = _chunkYQTMNZQBjs.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,
|
|
93
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
94
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
92
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYQTMNZQBjs.SheetHeader, { children: [
|
|
93
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.SheetTitle, { children: t("help.askAi.sheet.title") }),
|
|
94
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.SheetDescription, { children: t("help.askAi.sheet.subtitle") })
|
|
95
95
|
] }),
|
|
96
|
-
!showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
+
!showThread ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.AssistantEmptyState, { onSend: send }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
97
97
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
98
|
-
|
|
98
|
+
_chunkYQTMNZQBjs.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,
|
|
108
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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 } =
|
|
118
|
+
const { currentUser } = _chunkYQTMNZQBjs.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,
|
|
123
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
122
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYQTMNZQBjs.Tooltip, { children: [
|
|
123
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYQTMNZQBjs.TooltipTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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,
|
|
127
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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,
|
|
131
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYQTMNZQBjs.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 } =
|
|
144
|
+
const { currentUser } = _chunkYQTMNZQBjs.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,
|
|
160
|
+
currentUser ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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, _chunkYQTMNZQBjs.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 =
|
|
202
|
+
const generateUrl = _chunkYQTMNZQBjs.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
|
-
|
|
207
|
+
_chunkLBMNRFCYjs.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 =
|
|
283
|
+
const generateUrl = _chunkYQTMNZQBjs.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 =
|
|
361
|
+
const generateUrl = _chunkYQTMNZQBjs.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
|
-
|
|
367
|
+
_chunkLBMNRFCYjs.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
|
-
|
|
379
|
+
_chunkYQTMNZQBjs.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,
|
|
388
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
389
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
390
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.SheetTrigger, { render: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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, _chunkYQTMNZQBjs.SheetContent, { side: "right", className: "w-full max-w-md sm:max-w-lg", children: [
|
|
389
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkYQTMNZQBjs.SheetHeader, { children: [
|
|
390
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.SheetTitle, { children: active ? active.name : t("help.hint.pickArticle") }),
|
|
391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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 =
|
|
423
|
+
const generateUrl = _chunkYQTMNZQBjs.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
|
-
|
|
427
|
+
_chunkLBMNRFCYjs.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
|
-
|
|
434
|
+
_chunkYQTMNZQBjs.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,
|
|
443
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQTMNZQBjs.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-
|
|
24
|
+
} from "../../chunk-F54XZKPY.mjs";
|
|
25
25
|
import {
|
|
26
26
|
_getStaticHelpContent
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-NATPK5ME.mjs";
|
|
28
28
|
import {
|
|
29
29
|
HowToService
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-5MNE72ZE.mjs";
|
|
31
31
|
import "../../chunk-AUXK7QSA.mjs";
|
|
32
32
|
import "../../chunk-C7C7VY4F.mjs";
|
|
33
|
-
import "../../chunk-
|
|
33
|
+
import "../../chunk-Z2CB63VG.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
|
|
21
|
+
var _chunkXTLTQQ7Xjs = require('./chunk-XTLTQQ7X.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -199,7 +199,7 @@ var _chunkJO5BLONKjs = require('./chunk-JO5BLONK.js');
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
|
|
202
|
-
var
|
|
202
|
+
var _chunkLBMNRFCYjs = require('./chunk-LBMNRFCY.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
|
|
215
|
+
var _chunkQWCAOLBDjs = require('./chunk-QWCAOLBD.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 = _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;
|
|
426
|
+
exports.ACTION_TYPES = _chunkXTLTQQ7Xjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkLBMNRFCYjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkLBMNRFCYjs.AbstractApiData; exports.AbstractService = _chunkLBMNRFCYjs.AbstractService; exports.Action = _chunkLBMNRFCYjs.Action; exports.Assistant = _chunkLBMNRFCYjs.Assistant; exports.AssistantMessage = _chunkLBMNRFCYjs.AssistantMessage; exports.AssistantMessageModule = _chunkLBMNRFCYjs.AssistantMessageModule; exports.AssistantMessageService = _chunkLBMNRFCYjs.AssistantMessageService; exports.AssistantModule = _chunkLBMNRFCYjs.AssistantModule; exports.AssistantService = _chunkLBMNRFCYjs.AssistantService; exports.AuditLog = _chunkLBMNRFCYjs.AuditLog; exports.AuditLogModule = _chunkLBMNRFCYjs.AuditLogModule; exports.AuditLogService = _chunkLBMNRFCYjs.AuditLogService; exports.Auth = _chunkLBMNRFCYjs.Auth; exports.AuthComponent = _chunkLBMNRFCYjs.AuthComponent; exports.AuthModule = _chunkLBMNRFCYjs.AuthModule; exports.AuthService = _chunkLBMNRFCYjs.AuthService; exports.AuthorModule = _chunkLBMNRFCYjs.AuthorModule; exports.BackupCodeVerify = _chunkLBMNRFCYjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkLBMNRFCYjs.BackupCodeVerifyModule; exports.Billing = _chunkLBMNRFCYjs.Billing; exports.BillingModule = _chunkLBMNRFCYjs.BillingModule; exports.BillingService = _chunkLBMNRFCYjs.BillingService; exports.BlockNoteDiffUtil = _chunkLBMNRFCYjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkLBMNRFCYjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkXTLTQQ7Xjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkLBMNRFCYjs.Chunk; exports.ChunkModule = _chunkLBMNRFCYjs.ChunkModule; exports.ClientAbstractService = _chunkLBMNRFCYjs.ClientAbstractService; exports.ClientHttpMethod = _chunkLBMNRFCYjs.ClientHttpMethod; exports.Company = _chunkLBMNRFCYjs.Company; exports.CompanyFields = _chunkLBMNRFCYjs.CompanyFields; exports.CompanyModule = _chunkLBMNRFCYjs.CompanyModule; exports.CompanyService = _chunkLBMNRFCYjs.CompanyService; exports.Content = _chunkLBMNRFCYjs.Content; exports.ContentFields = _chunkLBMNRFCYjs.ContentFields; exports.ContentModule = _chunkLBMNRFCYjs.ContentModule; exports.ContentService = _chunkLBMNRFCYjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkLBMNRFCYjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunkLBMNRFCYjs.EndpointCreator; exports.Feature = _chunkLBMNRFCYjs.Feature; exports.FeatureModule = _chunkLBMNRFCYjs.FeatureModule; exports.FeatureService = _chunkLBMNRFCYjs.FeatureService; exports.HowTo = _chunkLBMNRFCYjs.HowTo; exports.HowToFields = _chunkLBMNRFCYjs.HowToFields; exports.HowToModule = _chunkLBMNRFCYjs.HowToModule; exports.HowToService = _chunkLBMNRFCYjs.HowToService; exports.HttpMethod = _chunkLBMNRFCYjs.HttpMethod; exports.InvoiceStatus = _chunkLBMNRFCYjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.Module = _chunkLBMNRFCYjs.Module; exports.ModuleModule = _chunkLBMNRFCYjs.ModuleModule; exports.ModulePaths = _chunkLBMNRFCYjs.ModulePaths; exports.ModulePathsModule = _chunkLBMNRFCYjs.ModulePathsModule; exports.ModuleRegistrar = _chunkLBMNRFCYjs.ModuleRegistrar; exports.ModuleRegistry = _chunkLBMNRFCYjs.ModuleRegistry; exports.Modules = _chunkLBMNRFCYjs.Modules; exports.Notification = _chunkLBMNRFCYjs.Notification; exports.NotificationFields = _chunkLBMNRFCYjs.NotificationFields; exports.NotificationModule = _chunkLBMNRFCYjs.NotificationModule; exports.NotificationService = _chunkLBMNRFCYjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkLBMNRFCYjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkLBMNRFCYjs.OAuthClient; exports.OAuthModule = _chunkLBMNRFCYjs.OAuthModule; exports.OAuthService = _chunkLBMNRFCYjs.OAuthService; exports.Passkey = _chunkLBMNRFCYjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkLBMNRFCYjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkLBMNRFCYjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkLBMNRFCYjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkLBMNRFCYjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkLBMNRFCYjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkLBMNRFCYjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkLBMNRFCYjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkLBMNRFCYjs.PasskeyRename; exports.PasskeyRenameModule = _chunkLBMNRFCYjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkLBMNRFCYjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkLBMNRFCYjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkLBMNRFCYjs.PaymentMethod; exports.PermissionMapping = _chunkLBMNRFCYjs.PermissionMapping; exports.PermissionMappingModule = _chunkLBMNRFCYjs.PermissionMappingModule; exports.Push = _chunkLBMNRFCYjs.Push; exports.PushModule = _chunkLBMNRFCYjs.PushModule; exports.PushService = _chunkLBMNRFCYjs.PushService; exports.RbacMatrixModel = _chunkLBMNRFCYjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkLBMNRFCYjs.RbacMatrixModule; exports.RbacService = _chunkXTLTQQ7Xjs.RbacService; exports.ReferralModule = _chunkLBMNRFCYjs.ReferralModule; exports.ReferralService = _chunkLBMNRFCYjs.ReferralService; exports.ReferralStats = _chunkLBMNRFCYjs.ReferralStats; exports.ReferralStatsModule = _chunkLBMNRFCYjs.ReferralStatsModule; exports.RehydrationFactory = _chunkLBMNRFCYjs.RehydrationFactory; exports.Role = _chunkLBMNRFCYjs.Role; exports.RoleFields = _chunkLBMNRFCYjs.RoleFields; exports.RoleModule = _chunkLBMNRFCYjs.RoleModule; exports.RoleService = _chunkLBMNRFCYjs.RoleService; exports.S3 = _chunkLBMNRFCYjs.S3; exports.S3Module = _chunkLBMNRFCYjs.S3Module; exports.S3Service = _chunkLBMNRFCYjs.S3Service; exports.StripeCustomer = _chunkLBMNRFCYjs.StripeCustomer; exports.StripeCustomerModule = _chunkLBMNRFCYjs.StripeCustomerModule; exports.StripeCustomerService = _chunkLBMNRFCYjs.StripeCustomerService; exports.StripeInvoice = _chunkLBMNRFCYjs.StripeInvoice; exports.StripeInvoiceModule = _chunkLBMNRFCYjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkLBMNRFCYjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkLBMNRFCYjs.StripePaymentMethodModule; exports.StripePrice = _chunkLBMNRFCYjs.StripePrice; exports.StripePriceModule = _chunkLBMNRFCYjs.StripePriceModule; exports.StripePriceService = _chunkLBMNRFCYjs.StripePriceService; exports.StripeProduct = _chunkLBMNRFCYjs.StripeProduct; exports.StripeProductModule = _chunkLBMNRFCYjs.StripeProductModule; exports.StripeProductService = _chunkLBMNRFCYjs.StripeProductService; exports.StripePromotionCode = _chunkLBMNRFCYjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkLBMNRFCYjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkLBMNRFCYjs.StripePromotionCodeService; exports.StripeSubscription = _chunkLBMNRFCYjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkLBMNRFCYjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkLBMNRFCYjs.StripeSubscriptionService; exports.StripeUsage = _chunkLBMNRFCYjs.StripeUsage; exports.StripeUsageModule = _chunkLBMNRFCYjs.StripeUsageModule; exports.StripeUsageService = _chunkLBMNRFCYjs.StripeUsageService; exports.SubscriptionStatus = _chunkLBMNRFCYjs.SubscriptionStatus; exports.TableOptions = _chunkLBMNRFCYjs.TableOptions; exports.TotpAuthenticator = _chunkLBMNRFCYjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkLBMNRFCYjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkLBMNRFCYjs.TotpSetup; exports.TotpSetupModule = _chunkLBMNRFCYjs.TotpSetupModule; exports.TotpVerify = _chunkLBMNRFCYjs.TotpVerify; exports.TotpVerifyLogin = _chunkLBMNRFCYjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkLBMNRFCYjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkLBMNRFCYjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkLBMNRFCYjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkLBMNRFCYjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkLBMNRFCYjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkLBMNRFCYjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkLBMNRFCYjs.TwoFactorService; exports.TwoFactorStatus = _chunkLBMNRFCYjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkLBMNRFCYjs.TwoFactorStatusModule; exports.User = _chunkLBMNRFCYjs.User; exports.UserFields = _chunkLBMNRFCYjs.UserFields; exports.UserModule = _chunkLBMNRFCYjs.UserModule; exports.UserService = _chunkLBMNRFCYjs.UserService; exports.Waitlist = _chunkLBMNRFCYjs.Waitlist; exports.WaitlistModule = _chunkLBMNRFCYjs.WaitlistModule; exports.WaitlistService = _chunkLBMNRFCYjs.WaitlistService; exports.WaitlistStats = _chunkLBMNRFCYjs.WaitlistStats; exports.WaitlistStatsModule = _chunkLBMNRFCYjs.WaitlistStatsModule; exports.checkPermissions = _chunkLBMNRFCYjs.checkPermissions; exports.checkPermissionsFromServer = _chunkLBMNRFCYjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkLBMNRFCYjs.clearLastApiTotal; exports.cn = _chunkLBMNRFCYjs.cn; exports.composeRefs = _chunkLBMNRFCYjs.composeRefs; exports.configureAuth = _chunkLBMNRFCYjs.configureAuth; exports.configureI18n = _chunkXTLTQQ7Xjs.configureI18n; exports.configureJsonApi = _chunkXTLTQQ7Xjs.configureJsonApi; exports.configureLogin = _chunkXTLTQQ7Xjs.configureLogin; exports.configureReferral = _chunkXTLTQQ7Xjs.configureReferral; exports.configureRoles = _chunkXTLTQQ7Xjs.configureRoles; exports.configureWaitlist = _chunkXTLTQQ7Xjs.configureWaitlist; exports.createJsonApiInclusion = _chunkLBMNRFCYjs.createJsonApiInclusion; exports.dismissToast = _chunkLBMNRFCYjs.dismissToast; exports.entityObjectSchema = _chunkLBMNRFCYjs.entityObjectSchema; exports.exists = _chunkLBMNRFCYjs.exists; exports.formatDate = _chunkLBMNRFCYjs.formatDate; exports.formatLocalDate = _chunkLBMNRFCYjs.formatLocalDate; exports.getApiUrl = _chunkXTLTQQ7Xjs.getApiUrl; exports.getAppUrl = _chunkXTLTQQ7Xjs.getAppUrl; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkLBMNRFCYjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkLBMNRFCYjs.getGlobalErrorHandler; exports.getIcon = _chunkLBMNRFCYjs.getIcon; exports.getIconByModule = _chunkLBMNRFCYjs.getIconByModule; exports.getIconByModuleName = _chunkLBMNRFCYjs.getIconByModuleName; exports.getInitials = _chunkLBMNRFCYjs.getInitials; exports.getLastApiTotal = _chunkLBMNRFCYjs.getLastApiTotal; exports.getLucideIcon = _chunkLBMNRFCYjs.getLucideIcon; exports.getLucideIconByModule = _chunkLBMNRFCYjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkLBMNRFCYjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkXTLTQQ7Xjs.getPublicApiUrl; exports.getReferralConfig = _chunkXTLTQQ7Xjs.getReferralConfig; exports.getRoleId = _chunkXTLTQQ7Xjs.getRoleId; exports.getStripePublishableKey = _chunkXTLTQQ7Xjs.getStripePublishableKey; exports.getTableComponents = _chunkLBMNRFCYjs.getTableComponents; exports.getTableOptions = _chunkLBMNRFCYjs.getTableOptions; exports.getTokenHandler = _chunkLBMNRFCYjs.getTokenHandler; exports.getTrackablePages = _chunkXTLTQQ7Xjs.getTrackablePages; exports.getValueFromPath = _chunkLBMNRFCYjs.getValueFromPath; exports.getWaitlistConfig = _chunkXTLTQQ7Xjs.getWaitlistConfig; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isReferralEnabled = _chunkXTLTQQ7Xjs.isReferralEnabled; exports.isRolesConfigured = _chunkXTLTQQ7Xjs.isRolesConfigured; exports.rehydrate = _chunkLBMNRFCYjs.rehydrate; exports.rehydrateList = _chunkLBMNRFCYjs.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkLBMNRFCYjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkLBMNRFCYjs.setGlobalErrorHandler; exports.showCustomToast = _chunkLBMNRFCYjs.showCustomToast; exports.showError = _chunkLBMNRFCYjs.showError; exports.showToast = _chunkLBMNRFCYjs.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunkLBMNRFCYjs.useComposedRefs; exports.useIsMobile = _chunkLBMNRFCYjs.useIsMobile; exports.userObjectSchema = _chunkLBMNRFCYjs.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-
|
|
21
|
+
} from "./chunk-NATPK5ME.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-
|
|
202
|
+
} from "./chunk-5MNE72ZE.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-
|
|
215
|
+
} from "./chunk-Z2CB63VG.mjs";
|
|
216
216
|
import "./chunk-PAWJFY3S.mjs";
|
|
217
217
|
export {
|
|
218
218
|
ACTION_TYPES,
|
package/dist/server/index.js
CHANGED
|
@@ -15,13 +15,13 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkLBMNRFCYjs = require('../chunk-LBMNRFCY.js');
|
|
19
19
|
require('../chunk-LXKSUWAV.js');
|
|
20
20
|
require('../chunk-IBS6NI7D.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkQWCAOLBDjs = require('../chunk-QWCAOLBD.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
|
|
89
|
+
return _chunkLBMNRFCYjs.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
|
|
161
|
+
return _chunkQWCAOLBDjs.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 =
|
|
182
|
+
body = _chunkQWCAOLBDjs.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
|
|
194
|
+
return _chunkQWCAOLBDjs.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 =
|
|
209
|
+
body = _chunkQWCAOLBDjs.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
|
|
221
|
+
return _chunkQWCAOLBDjs.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 =
|
|
236
|
+
body = _chunkQWCAOLBDjs.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
|
|
248
|
+
return _chunkQWCAOLBDjs.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
|
|
267
|
+
return _chunkQWCAOLBDjs.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 =
|
|
299
|
+
exports.ServerAuthService = _chunkLBMNRFCYjs.AuthService; exports.ServerCompanyService = _chunkLBMNRFCYjs.CompanyService; exports.ServerContentService = _chunkLBMNRFCYjs.ContentService; exports.ServerFeatureService = _chunkLBMNRFCYjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkLBMNRFCYjs.NotificationService; exports.ServerPushService = _chunkLBMNRFCYjs.PushService; exports.ServerRoleService = _chunkLBMNRFCYjs.RoleService; exports.ServerS3Service = _chunkLBMNRFCYjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkLBMNRFCYjs.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
|
package/dist/server/index.mjs
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
S3Service,
|
|
16
16
|
UserService,
|
|
17
17
|
checkPermissionsFromServer
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-5MNE72ZE.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-
|
|
24
|
+
} from "../chunk-Z2CB63VG.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.
|
|
3
|
+
"version": "1.129.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",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
|
-
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup && tsc -p scripts/generate-web-module/tsconfig.json",
|
|
68
|
+
"build": "rm -rf dist && NODE_OPTIONS='--max-old-space-size=8192' tsup && tsc -p scripts/generate-web-module/tsconfig.json",
|
|
69
69
|
"dev": "NODE_OPTIONS='--max-old-space-size=8192' tsup --watch",
|
|
70
70
|
"clean": "rm -rf dist",
|
|
71
71
|
"lint": "eslint \"src/**/*.ts\" \"src/**/*.tsx\" --fix",
|
|
@@ -33,6 +33,7 @@ export type GenerateTableStructureParams = {
|
|
|
33
33
|
|
|
34
34
|
type ContentListTableProps = {
|
|
35
35
|
title?: string;
|
|
36
|
+
titleActions?: ReactNode;
|
|
36
37
|
data: DataListRetriever<any>;
|
|
37
38
|
tableGenerator?: never;
|
|
38
39
|
tableGeneratorType: ModuleWithPermissions;
|
|
@@ -147,6 +148,7 @@ export const ContentListTable = memo(function ContentListTable(props: ContentLis
|
|
|
147
148
|
fullWidth ? `text-lg` : `text-sm`,
|
|
148
149
|
)}
|
|
149
150
|
>
|
|
151
|
+
{props.titleActions}
|
|
150
152
|
{props.tableGeneratorType.icon && (
|
|
151
153
|
<props.tableGeneratorType.icon
|
|
152
154
|
className={cn(`text-primary`, fullWidth ? `h-6 w-6` : `h-4 w-4`)}
|
|
@@ -177,6 +177,7 @@ export abstract class AbstractService {
|
|
|
177
177
|
endpoint: params.endpoint,
|
|
178
178
|
companyId: params.companyId,
|
|
179
179
|
language: language,
|
|
180
|
+
token: params.token,
|
|
180
181
|
baseUrl: params.baseUrl,
|
|
181
182
|
});
|
|
182
183
|
break;
|
|
@@ -203,6 +204,7 @@ export abstract class AbstractService {
|
|
|
203
204
|
language: language,
|
|
204
205
|
responseType: params.responseType,
|
|
205
206
|
files: params.files,
|
|
207
|
+
token: params.token,
|
|
206
208
|
baseUrl: params.baseUrl,
|
|
207
209
|
});
|
|
208
210
|
break;
|
|
@@ -216,6 +218,7 @@ export abstract class AbstractService {
|
|
|
216
218
|
language: language,
|
|
217
219
|
responseType: params.responseType,
|
|
218
220
|
files: params.files,
|
|
221
|
+
token: params.token,
|
|
219
222
|
baseUrl: params.baseUrl,
|
|
220
223
|
});
|
|
221
224
|
break;
|
|
@@ -226,6 +229,7 @@ export abstract class AbstractService {
|
|
|
226
229
|
companyId: params.companyId,
|
|
227
230
|
language: language,
|
|
228
231
|
responseType: params.responseType,
|
|
232
|
+
token: params.token,
|
|
229
233
|
baseUrl: params.baseUrl,
|
|
230
234
|
});
|
|
231
235
|
break;
|
|
@@ -185,10 +185,11 @@ export async function JsonApiGet(params: {
|
|
|
185
185
|
endpoint: string;
|
|
186
186
|
companyId?: string;
|
|
187
187
|
language: string;
|
|
188
|
+
token?: string;
|
|
188
189
|
baseUrl?: string;
|
|
189
190
|
}): Promise<ApiResponseInterface> {
|
|
190
191
|
runBootstrapper();
|
|
191
|
-
const token = await getToken();
|
|
192
|
+
const token = params.token ?? (await getToken());
|
|
192
193
|
|
|
193
194
|
const apiResponse = await makeRequest({
|
|
194
195
|
method: "GET",
|
|
@@ -211,6 +212,7 @@ export async function JsonApiGet(params: {
|
|
|
211
212
|
endpoint,
|
|
212
213
|
companyId: params.companyId,
|
|
213
214
|
language: params.language,
|
|
215
|
+
token: params.token,
|
|
214
216
|
baseUrl: params.baseUrl,
|
|
215
217
|
}),
|
|
216
218
|
});
|
|
@@ -265,10 +267,11 @@ export async function JsonApiPut(params: {
|
|
|
265
267
|
files?: { [key: string]: File | Blob } | File | Blob;
|
|
266
268
|
language: string;
|
|
267
269
|
responseType?: ApiRequestDataTypeInterface;
|
|
270
|
+
token?: string;
|
|
268
271
|
baseUrl?: string;
|
|
269
272
|
}): Promise<ApiResponseInterface> {
|
|
270
273
|
runBootstrapper();
|
|
271
|
-
const token = await getToken();
|
|
274
|
+
const token = params.token ?? (await getToken());
|
|
272
275
|
|
|
273
276
|
let body = params.body;
|
|
274
277
|
if (!body) {
|
|
@@ -305,10 +308,11 @@ export async function JsonApiPatch(params: {
|
|
|
305
308
|
overridesJsonApiCreation?: boolean;
|
|
306
309
|
responseType?: ApiRequestDataTypeInterface;
|
|
307
310
|
language: string;
|
|
311
|
+
token?: string;
|
|
308
312
|
baseUrl?: string;
|
|
309
313
|
}): Promise<ApiResponseInterface> {
|
|
310
314
|
runBootstrapper();
|
|
311
|
-
const token = await getToken();
|
|
315
|
+
const token = params.token ?? (await getToken());
|
|
312
316
|
|
|
313
317
|
let body = params.body;
|
|
314
318
|
if (!body) {
|
|
@@ -342,10 +346,11 @@ export async function JsonApiDelete(params: {
|
|
|
342
346
|
companyId?: string;
|
|
343
347
|
language: string;
|
|
344
348
|
responseType?: ApiRequestDataTypeInterface;
|
|
349
|
+
token?: string;
|
|
345
350
|
baseUrl?: string;
|
|
346
351
|
}): Promise<ApiResponseInterface> {
|
|
347
352
|
runBootstrapper();
|
|
348
|
-
const token = await getToken();
|
|
353
|
+
const token = params.token ?? (await getToken());
|
|
349
354
|
|
|
350
355
|
const apiResponse = await makeRequest({
|
|
351
356
|
method: "DELETE",
|