@carlonicora/nextjs-jsonapi 3.4.2 → 3.5.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-F6TGKMTW.js → BlockNoteEditor-7K2ENAU6.js} +9 -9
- package/dist/{BlockNoteEditor-F6TGKMTW.js.map → BlockNoteEditor-7K2ENAU6.js.map} +1 -1
- package/dist/{BlockNoteEditor-3D5D7YL7.mjs → BlockNoteEditor-MSFNIMZP.mjs} +2 -2
- package/dist/billing/index.js +333 -333
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-G5LSXG5K.mjs → chunk-3LF5PPRY.mjs} +30 -19
- package/dist/chunk-3LF5PPRY.mjs.map +1 -0
- package/dist/{chunk-KT4CTWCV.js → chunk-LKFWEYVS.js} +30 -19
- package/dist/chunk-LKFWEYVS.js.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.d.mts +29 -2
- package/dist/components/index.d.ts +29 -2
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/dist/features/help/index.js +31 -31
- package/dist/features/help/index.mjs +1 -1
- package/dist/features/tokenusage/index.js +75 -75
- package/dist/features/tokenusage/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/containers/RoundPageContainer.tsx +63 -14
- package/src/components/navigations/MobileNavigationBar.tsx +9 -2
- package/dist/chunk-G5LSXG5K.mjs.map +0 -1
- package/dist/chunk-KT4CTWCV.js.map +0 -1
- /package/dist/{BlockNoteEditor-3D5D7YL7.mjs.map → BlockNoteEditor-MSFNIMZP.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -10314,7 +10314,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10314
10314
|
import dynamic from "next/dynamic";
|
|
10315
10315
|
import React18 from "react";
|
|
10316
10316
|
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
10317
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10317
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-MSFNIMZP.mjs"), {
|
|
10318
10318
|
ssr: false
|
|
10319
10319
|
});
|
|
10320
10320
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -14867,7 +14867,7 @@ function SlotContent({ item }) {
|
|
|
14867
14867
|
return Icon ? /* @__PURE__ */ jsx159(Icon, { className: "size-6" }) : null;
|
|
14868
14868
|
}
|
|
14869
14869
|
__name(SlotContent, "SlotContent");
|
|
14870
|
-
function MobileNavigationBar() {
|
|
14870
|
+
function MobileNavigationBar({ className } = {}) {
|
|
14871
14871
|
const items = useMobileNavigationItems();
|
|
14872
14872
|
const isMobile = useIsMobile();
|
|
14873
14873
|
const pathname = usePathname3();
|
|
@@ -14877,7 +14877,7 @@ function MobileNavigationBar() {
|
|
|
14877
14877
|
{
|
|
14878
14878
|
"aria-label": "Primary",
|
|
14879
14879
|
"data-testid": "mobile-navigation-bar",
|
|
14880
|
-
className: "bg-sidebar flex w-full shrink-0 flex-row items-stretch rounded-lg border",
|
|
14880
|
+
className: cn("bg-sidebar flex w-full shrink-0 flex-row items-stretch rounded-lg border", className),
|
|
14881
14881
|
children: items.map((item) => {
|
|
14882
14882
|
const active = item.href ? isActiveHref(pathname, item.href) : false;
|
|
14883
14883
|
const tone = active ? "text-primary" : "text-muted-foreground";
|
|
@@ -15236,7 +15236,8 @@ function RoundPageContainer({
|
|
|
15236
15236
|
testId,
|
|
15237
15237
|
defaultDetailsOpen = false,
|
|
15238
15238
|
detailsTitle,
|
|
15239
|
-
detailsIcon
|
|
15239
|
+
detailsIcon,
|
|
15240
|
+
scroll = "document"
|
|
15240
15241
|
}) {
|
|
15241
15242
|
const headerChildren = useHeaderChildren();
|
|
15242
15243
|
const headerLeftContent = useHeaderLeftContent();
|
|
@@ -15254,6 +15255,14 @@ function RoundPageContainer({
|
|
|
15254
15255
|
useEffect41(() => {
|
|
15255
15256
|
setMounted(true);
|
|
15256
15257
|
}, []);
|
|
15258
|
+
useEffect41(() => {
|
|
15259
|
+
document.documentElement.dataset.scrollMode = scroll;
|
|
15260
|
+
}, [scroll]);
|
|
15261
|
+
const isFixed = scroll === "fixed";
|
|
15262
|
+
const shellHeight = isFixed ? `h-[calc(100svh-var(--app-header-h,3rem))]` : `min-h-[calc(100svh-var(--app-header-h,3rem))]`;
|
|
15263
|
+
const clip = isFixed ? `overflow-hidden` : ``;
|
|
15264
|
+
const scrollY = isFixed ? `overflow-y-auto` : ``;
|
|
15265
|
+
const mobileBarClass = isFixed ? `` : `sticky bottom-0 z-30`;
|
|
15257
15266
|
const detailsCookieName = module?.name ? `${DETAILS_COOKIE_NAME}_${module.name}` : DETAILS_COOKIE_NAME;
|
|
15258
15267
|
const setShowDetails = useCallback27(
|
|
15259
15268
|
(value) => {
|
|
@@ -15311,7 +15320,8 @@ function RoundPageContainer({
|
|
|
15311
15320
|
{
|
|
15312
15321
|
"data-testid": testId,
|
|
15313
15322
|
className: cn(
|
|
15314
|
-
"flex
|
|
15323
|
+
"flex w-full flex-col",
|
|
15324
|
+
shellHeight,
|
|
15315
15325
|
// Deliberately NO bottom safe-area inset, here or in
|
|
15316
15326
|
// MobileNavigationBar. iOS still reports 34px of bottom inset
|
|
15317
15327
|
// (measured in an installed PWA), but nothing is drawn in that strip
|
|
@@ -15324,7 +15334,7 @@ function RoundPageContainer({
|
|
|
15324
15334
|
),
|
|
15325
15335
|
children: [
|
|
15326
15336
|
/* @__PURE__ */ jsx166("div", { className: cn("bg-background flex min-h-0 w-full flex-1", isMobile ? "" : "rounded-lg border p-0"), children: /* @__PURE__ */ jsx166("div", { className: "flex w-full flex-col" }) }),
|
|
15327
|
-
/* @__PURE__ */ jsx166(MobileNavigationBar, {})
|
|
15337
|
+
/* @__PURE__ */ jsx166(MobileNavigationBar, { className: mobileBarClass })
|
|
15328
15338
|
]
|
|
15329
15339
|
}
|
|
15330
15340
|
)
|
|
@@ -15346,7 +15356,8 @@ function RoundPageContainer({
|
|
|
15346
15356
|
{
|
|
15347
15357
|
"data-testid": testId,
|
|
15348
15358
|
className: cn(
|
|
15349
|
-
`flex
|
|
15359
|
+
`flex w-full flex-col`,
|
|
15360
|
+
shellHeight,
|
|
15350
15361
|
// Deliberately NO bottom safe-area inset, here or in
|
|
15351
15362
|
// MobileNavigationBar. iOS still reports 34px of bottom inset
|
|
15352
15363
|
// (measured in an installed PWA), but nothing is drawn in that strip
|
|
@@ -15372,7 +15383,7 @@ function RoundPageContainer({
|
|
|
15372
15383
|
fullWidth
|
|
15373
15384
|
}
|
|
15374
15385
|
),
|
|
15375
|
-
/* @__PURE__ */ jsx166("div", { className:
|
|
15386
|
+
/* @__PURE__ */ jsx166("div", { className: cn(`flex w-full`, isFixed && `h-full`, clip), children: layout2 === "rail" && tabs ? (
|
|
15376
15387
|
// Rail layout: the vertical-tab navigation is a flush-left
|
|
15377
15388
|
// sidebar of the card and the content fills the full remaining
|
|
15378
15389
|
// width (like `fullWidth`) — NOT the centred max-w-6xl column.
|
|
@@ -15382,13 +15393,16 @@ function RoundPageContainer({
|
|
|
15382
15393
|
value: activeTab,
|
|
15383
15394
|
onValueChange: handleTabChange,
|
|
15384
15395
|
orientation: "horizontal",
|
|
15385
|
-
className:
|
|
15396
|
+
className: cn(`flex min-w-0 grow data-[orientation=horizontal]:flex-row`, isFixed && `h-full`, clip),
|
|
15386
15397
|
children: [
|
|
15387
15398
|
/* @__PURE__ */ jsx166(
|
|
15388
15399
|
"aside",
|
|
15389
15400
|
{
|
|
15390
15401
|
"data-testid": "round-page-rail",
|
|
15391
|
-
className:
|
|
15402
|
+
className: cn(
|
|
15403
|
+
`hidden shrink-0 border-e p-4 md:flex md:w-56 md:flex-col`,
|
|
15404
|
+
isFixed && `md:overflow-y-auto`
|
|
15405
|
+
),
|
|
15392
15406
|
children: /* @__PURE__ */ jsxs94(TabsList, { className: "flex h-auto w-full flex-col items-stretch gap-0.5 bg-transparent p-0", children: [
|
|
15393
15407
|
ungrouped.map((tab) => /* @__PURE__ */ jsx166(TabsTrigger, { value: tabValue(tab), className: railTriggerClass, children: tab.contentLabel ?? tab.label }, tab.label)),
|
|
15394
15408
|
groups.map((group) => /* @__PURE__ */ jsxs94(Fragment23, { children: [
|
|
@@ -15405,7 +15419,7 @@ function RoundPageContainer({
|
|
|
15405
15419
|
] })
|
|
15406
15420
|
}
|
|
15407
15421
|
),
|
|
15408
|
-
/* @__PURE__ */ jsxs94("div", { className:
|
|
15422
|
+
/* @__PURE__ */ jsxs94("div", { className: cn(`flex min-w-0 grow flex-col`, clip), children: [
|
|
15409
15423
|
/* @__PURE__ */ jsx166("div", { "data-testid": "round-page-rail-select", className: "p-2 md:hidden", children: /* @__PURE__ */ jsxs94(
|
|
15410
15424
|
Select,
|
|
15411
15425
|
{
|
|
@@ -15429,10 +15443,7 @@ function RoundPageContainer({
|
|
|
15429
15443
|
/* @__PURE__ */ jsx166(
|
|
15430
15444
|
"div",
|
|
15431
15445
|
{
|
|
15432
|
-
className: cn(
|
|
15433
|
-
`min-w-0 grow`,
|
|
15434
|
-
activeFillHeight ? `flex flex-col overflow-hidden` : `overflow-y-auto p-4`
|
|
15435
|
-
),
|
|
15446
|
+
className: cn(`min-w-0 grow`, activeFillHeight ? cn(`flex flex-col`, clip) : cn(scrollY, `p-4`)),
|
|
15436
15447
|
children: /* @__PURE__ */ jsxs94(
|
|
15437
15448
|
"div",
|
|
15438
15449
|
{
|
|
@@ -15466,7 +15477,7 @@ function RoundPageContainer({
|
|
|
15466
15477
|
className: cn(
|
|
15467
15478
|
`grow`,
|
|
15468
15479
|
isMobile ? `p-2` : `p-4`,
|
|
15469
|
-
activeFillHeight ? `flex flex-col
|
|
15480
|
+
activeFillHeight ? cn(`flex flex-col`, clip) : scrollY,
|
|
15470
15481
|
fullWidth && `p-0`
|
|
15471
15482
|
),
|
|
15472
15483
|
children: /* @__PURE__ */ jsxs94(
|
|
@@ -15507,7 +15518,7 @@ function RoundPageContainer({
|
|
|
15507
15518
|
className: cn(
|
|
15508
15519
|
`flex w-full `,
|
|
15509
15520
|
isMobile ? `` : `px-4`,
|
|
15510
|
-
activeFillHeight ? `flex-1 min-h-0` :
|
|
15521
|
+
activeFillHeight ? `flex-1 min-h-0` : scrollY
|
|
15511
15522
|
),
|
|
15512
15523
|
children: tabs.map((tab) => /* @__PURE__ */ jsx166(
|
|
15513
15524
|
TabsContent,
|
|
@@ -15568,7 +15579,7 @@ function RoundPageContainer({
|
|
|
15568
15579
|
}
|
|
15569
15580
|
))
|
|
15570
15581
|
] }),
|
|
15571
|
-
/* @__PURE__ */ jsx166(MobileNavigationBar, {})
|
|
15582
|
+
/* @__PURE__ */ jsx166(MobileNavigationBar, { className: mobileBarClass })
|
|
15572
15583
|
]
|
|
15573
15584
|
}
|
|
15574
15585
|
)
|
|
@@ -25532,4 +25543,4 @@ export {
|
|
|
25532
25543
|
useOAuthClients,
|
|
25533
25544
|
useOAuthClient
|
|
25534
25545
|
};
|
|
25535
|
-
//# sourceMappingURL=chunk-
|
|
25546
|
+
//# sourceMappingURL=chunk-3LF5PPRY.mjs.map
|