@carlonicora/nextjs-jsonapi 1.137.5 → 1.138.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-K7FBEMSV.mjs → BlockNoteEditor-JEHEQJAW.mjs} +2 -2
- package/dist/{BlockNoteEditor-SNWR5FUR.js → BlockNoteEditor-L36KO77V.js} +9 -9
- package/dist/{BlockNoteEditor-SNWR5FUR.js.map → BlockNoteEditor-L36KO77V.js.map} +1 -1
- package/dist/billing/index.js +310 -310
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-54IQSYOH.js → chunk-FPTJAORV.js} +14 -8
- package/dist/chunk-FPTJAORV.js.map +1 -0
- package/dist/{chunk-K6HCBBAP.mjs → chunk-JLC2YP35.mjs} +27 -21
- package/dist/chunk-JLC2YP35.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- 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/package.json +1 -1
- package/src/components/forms/FormPlaceAutocomplete.tsx +4 -2
- package/src/components/tables/ContentListTable.tsx +22 -5
- package/dist/chunk-54IQSYOH.js.map +0 -1
- package/dist/chunk-K6HCBBAP.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-K7FBEMSV.mjs.map → BlockNoteEditor-JEHEQJAW.mjs.map} +0 -0
|
@@ -10117,7 +10117,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10117
10117
|
import dynamic from "next/dynamic";
|
|
10118
10118
|
import React17 from "react";
|
|
10119
10119
|
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
10120
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10120
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-JEHEQJAW.mjs"), {
|
|
10121
10121
|
ssr: false
|
|
10122
10122
|
});
|
|
10123
10123
|
var BlockNoteEditorContainer = React17.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -10918,7 +10918,7 @@ function FormPlaceAutocomplete({
|
|
|
10918
10918
|
}, "fetchPlaceDetails");
|
|
10919
10919
|
const handleInputChange = /* @__PURE__ */ __name((value) => {
|
|
10920
10920
|
setInputValue(value);
|
|
10921
|
-
form.setValue(id, value);
|
|
10921
|
+
form.setValue(id, value, { shouldValidate: true });
|
|
10922
10922
|
if (debounceRef.current) {
|
|
10923
10923
|
clearTimeout(debounceRef.current);
|
|
10924
10924
|
}
|
|
@@ -10934,7 +10934,7 @@ function FormPlaceAutocomplete({
|
|
|
10934
10934
|
}, "handleInputChange");
|
|
10935
10935
|
const handleSuggestionSelect = /* @__PURE__ */ __name(async (suggestion) => {
|
|
10936
10936
|
setInputValue(suggestion.description);
|
|
10937
|
-
form.setValue(id, suggestion.description);
|
|
10937
|
+
form.setValue(id, suggestion.description, { shouldValidate: true });
|
|
10938
10938
|
setShowSuggestions(false);
|
|
10939
10939
|
setSuggestions([]);
|
|
10940
10940
|
const addressComponents = await fetchPlaceDetails(suggestion.place_id);
|
|
@@ -16581,7 +16581,7 @@ registerTableGenerator("companies", useCompanyTableStructure);
|
|
|
16581
16581
|
|
|
16582
16582
|
// src/components/tables/ContentListTable.tsx
|
|
16583
16583
|
import { flexRender, getCoreRowModel, getExpandedRowModel, useReactTable } from "@tanstack/react-table";
|
|
16584
|
-
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
16584
|
+
import { ChevronLeft, ChevronRight, Loader2 as Loader23 } from "lucide-react";
|
|
16585
16585
|
import { useTranslations as useTranslations58 } from "next-intl";
|
|
16586
16586
|
import React30, { memo, useMemo as useMemo30, useState as useState60 } from "react";
|
|
16587
16587
|
|
|
@@ -16697,6 +16697,10 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
|
|
|
16697
16697
|
const [expanded, setExpanded] = useState60(
|
|
16698
16698
|
props.defaultExpanded === true ? true : typeof props.defaultExpanded === "object" ? props.defaultExpanded : {}
|
|
16699
16699
|
);
|
|
16700
|
+
const [pendingDirection, setPendingDirection] = useState60(null);
|
|
16701
|
+
React30.useEffect(() => {
|
|
16702
|
+
if (data.isLoaded) setPendingDirection(null);
|
|
16703
|
+
}, [data.isLoaded]);
|
|
16700
16704
|
const { data: tableData, columns: tableColumns } = useTableGenerator(props.tableGeneratorType, {
|
|
16701
16705
|
data: data?.data ?? EMPTY_ARRAY,
|
|
16702
16706
|
fields,
|
|
@@ -16836,10 +16840,11 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
|
|
|
16836
16840
|
size: "sm",
|
|
16837
16841
|
onClick: (e) => {
|
|
16838
16842
|
e.preventDefault();
|
|
16843
|
+
setPendingDirection("prev");
|
|
16839
16844
|
data.previous?.(true);
|
|
16840
16845
|
},
|
|
16841
|
-
disabled: !data.previous,
|
|
16842
|
-
children: /* @__PURE__ */ jsx180(ChevronLeft, { className: "h-4 w-4" })
|
|
16846
|
+
disabled: !data.previous || pendingDirection !== null,
|
|
16847
|
+
children: pendingDirection === "prev" ? /* @__PURE__ */ jsx180(Loader23, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx180(ChevronLeft, { className: "h-4 w-4" })
|
|
16843
16848
|
}
|
|
16844
16849
|
),
|
|
16845
16850
|
data.pageInfo && /* @__PURE__ */ jsx180("span", { className: "text-muted-foreground text-xs", children: `${data.pageInfo.startItem}-${data.pageInfo.endItem}${data.total ? ` of ${data.total}` : ""}` }),
|
|
@@ -16850,10 +16855,11 @@ var ContentListTable = memo(/* @__PURE__ */ __name(function ContentListTable2(pr
|
|
|
16850
16855
|
size: "sm",
|
|
16851
16856
|
onClick: (e) => {
|
|
16852
16857
|
e.preventDefault();
|
|
16858
|
+
setPendingDirection("next");
|
|
16853
16859
|
data.next?.(true);
|
|
16854
16860
|
},
|
|
16855
|
-
disabled: !data.next,
|
|
16856
|
-
children: /* @__PURE__ */ jsx180(ChevronRight, { className: "h-4 w-4" })
|
|
16861
|
+
disabled: !data.next || pendingDirection !== null,
|
|
16862
|
+
children: pendingDirection === "next" ? /* @__PURE__ */ jsx180(Loader23, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx180(ChevronRight, { className: "h-4 w-4" })
|
|
16857
16863
|
}
|
|
16858
16864
|
)
|
|
16859
16865
|
] }) }) }) })
|
|
@@ -17115,7 +17121,7 @@ import { createContext as createContext23, useContext as useContext24, useMemo a
|
|
|
17115
17121
|
|
|
17116
17122
|
// src/features/auth/components/forms/Register.tsx
|
|
17117
17123
|
import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
|
|
17118
|
-
import { Loader2 as
|
|
17124
|
+
import { Loader2 as Loader24 } from "lucide-react";
|
|
17119
17125
|
import { useTranslations as useTranslations61 } from "next-intl";
|
|
17120
17126
|
import Image7 from "next/image";
|
|
17121
17127
|
import { useSearchParams as useSearchParams2 } from "next/navigation";
|
|
@@ -17282,7 +17288,7 @@ function Register() {
|
|
|
17282
17288
|
t("waitlist.invite.validating_title")
|
|
17283
17289
|
] }) }),
|
|
17284
17290
|
/* @__PURE__ */ jsxs109(CardContent, { className: "flex flex-col items-center justify-center space-y-4 py-8", children: [
|
|
17285
|
-
/* @__PURE__ */ jsx189(
|
|
17291
|
+
/* @__PURE__ */ jsx189(Loader24, { className: "h-8 w-8 animate-spin text-primary" }),
|
|
17286
17292
|
/* @__PURE__ */ jsx189("p", { className: "text-muted-foreground", children: t("waitlist.invite.validating_description") })
|
|
17287
17293
|
] })
|
|
17288
17294
|
] });
|
|
@@ -20445,13 +20451,13 @@ __name(MessageList, "MessageList");
|
|
|
20445
20451
|
|
|
20446
20452
|
// src/features/assistant/components/parts/AssistantStatusLine.tsx
|
|
20447
20453
|
import { useTranslations as useTranslations96 } from "next-intl";
|
|
20448
|
-
import { Loader2 as
|
|
20454
|
+
import { Loader2 as Loader25 } from "lucide-react";
|
|
20449
20455
|
import { jsx as jsx237, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
20450
20456
|
function AssistantStatusLine({ status }) {
|
|
20451
20457
|
const t = useTranslations96();
|
|
20452
20458
|
const text = status ?? t("features.assistant.thinking");
|
|
20453
20459
|
return /* @__PURE__ */ jsxs142("div", { className: "text-muted-foreground flex items-center gap-2 px-4 py-2 text-sm", children: [
|
|
20454
|
-
/* @__PURE__ */ jsx237(
|
|
20460
|
+
/* @__PURE__ */ jsx237(Loader25, { className: "h-4 w-4 animate-spin" }),
|
|
20455
20461
|
/* @__PURE__ */ jsx237("span", { children: text })
|
|
20456
20462
|
] });
|
|
20457
20463
|
}
|
|
@@ -20878,7 +20884,7 @@ function ReferralCodeCapture() {
|
|
|
20878
20884
|
__name(ReferralCodeCapture, "ReferralCodeCapture");
|
|
20879
20885
|
|
|
20880
20886
|
// src/features/referral/components/ReferralWidget.tsx
|
|
20881
|
-
import { Copy as Copy2, Loader2 as
|
|
20887
|
+
import { Copy as Copy2, Loader2 as Loader26, Mail, Users } from "lucide-react";
|
|
20882
20888
|
import { useCallback as useCallback41, useRef as useRef38, useState as useState91 } from "react";
|
|
20883
20889
|
|
|
20884
20890
|
// src/features/referral/hooks/useReferralInvite.ts
|
|
@@ -21031,9 +21037,9 @@ function ReferralWidget({
|
|
|
21031
21037
|
);
|
|
21032
21038
|
if (loading) {
|
|
21033
21039
|
if (isDialog) {
|
|
21034
|
-
return /* @__PURE__ */ jsx245("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ jsx245(
|
|
21040
|
+
return /* @__PURE__ */ jsx245("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ jsx245(Loader26, { className: "text-muted-foreground h-6 w-6 animate-spin" }) });
|
|
21035
21041
|
}
|
|
21036
|
-
return /* @__PURE__ */ jsx245(Card, { className: `p-6 ${className ?? ""}`, children: /* @__PURE__ */ jsx245("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ jsx245(
|
|
21042
|
+
return /* @__PURE__ */ jsx245(Card, { className: `p-6 ${className ?? ""}`, children: /* @__PURE__ */ jsx245("div", { className: "flex items-center justify-center py-4", children: /* @__PURE__ */ jsx245(Loader26, { className: "text-muted-foreground h-6 w-6 animate-spin" }) }) });
|
|
21037
21043
|
}
|
|
21038
21044
|
if (error) {
|
|
21039
21045
|
const errorMessage = error instanceof Error ? error.message : "Failed to load referral data";
|
|
@@ -21092,7 +21098,7 @@ function ReferralWidget({
|
|
|
21092
21098
|
onClick: handleSendInvite,
|
|
21093
21099
|
disabled: sending || !email,
|
|
21094
21100
|
"aria-label": sending ? t.sendingButton : t.sendButton,
|
|
21095
|
-
children: sending ? /* @__PURE__ */ jsx245(
|
|
21101
|
+
children: sending ? /* @__PURE__ */ jsx245(Loader26, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx245(Mail, { className: "h-4 w-4" })
|
|
21096
21102
|
}
|
|
21097
21103
|
)
|
|
21098
21104
|
] })
|
|
@@ -22144,7 +22150,7 @@ function OAuthConsentActions({ onApprove, onDeny, isLoading = false }) {
|
|
|
22144
22150
|
__name(OAuthConsentActions, "OAuthConsentActions");
|
|
22145
22151
|
|
|
22146
22152
|
// src/features/oauth/components/consent/OAuthConsentScreen.tsx
|
|
22147
|
-
import { ExternalLink as ExternalLink2, AlertTriangle as AlertTriangle2, Loader2 as
|
|
22153
|
+
import { ExternalLink as ExternalLink2, AlertTriangle as AlertTriangle2, Loader2 as Loader27 } from "lucide-react";
|
|
22148
22154
|
import { jsx as jsx264, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
22149
22155
|
function OAuthConsentScreen({
|
|
22150
22156
|
params,
|
|
@@ -22156,7 +22162,7 @@ function OAuthConsentScreen({
|
|
|
22156
22162
|
const { clientInfo, isLoading, error, approve, deny, isSubmitting } = useOAuthConsent(params);
|
|
22157
22163
|
if (isLoading) {
|
|
22158
22164
|
return /* @__PURE__ */ jsx264("div", { className: "min-h-dvh flex items-center justify-center p-4", children: /* @__PURE__ */ jsx264(Card, { className: "w-full max-w-md", children: /* @__PURE__ */ jsxs165(CardContent, { className: "flex flex-col items-center justify-center py-12", children: [
|
|
22159
|
-
/* @__PURE__ */ jsx264(
|
|
22165
|
+
/* @__PURE__ */ jsx264(Loader27, { className: "h-8 w-8 animate-spin text-muted-foreground" }),
|
|
22160
22166
|
/* @__PURE__ */ jsx264("p", { className: "mt-4 text-muted-foreground", children: "Loading authorization request..." })
|
|
22161
22167
|
] }) }) });
|
|
22162
22168
|
}
|
|
@@ -22479,7 +22485,7 @@ function WaitlistSuccessState() {
|
|
|
22479
22485
|
__name(WaitlistSuccessState, "WaitlistSuccessState");
|
|
22480
22486
|
|
|
22481
22487
|
// src/features/waitlist/components/sections/WaitlistConfirmation.tsx
|
|
22482
|
-
import { CheckCircle as CheckCircle4, Loader2 as
|
|
22488
|
+
import { CheckCircle as CheckCircle4, Loader2 as Loader28, XCircle as XCircle2 } from "lucide-react";
|
|
22483
22489
|
import { useTranslations as useTranslations108 } from "next-intl";
|
|
22484
22490
|
import { useEffect as useEffect71, useState as useState98 } from "react";
|
|
22485
22491
|
import { jsx as jsx269, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
@@ -22502,7 +22508,7 @@ function WaitlistConfirmation({ code }) {
|
|
|
22502
22508
|
}, [code, t]);
|
|
22503
22509
|
if (state === "loading") {
|
|
22504
22510
|
return /* @__PURE__ */ jsxs170("div", { className: "flex flex-col items-center justify-center space-y-4 py-16 text-center", children: [
|
|
22505
|
-
/* @__PURE__ */ jsx269(
|
|
22511
|
+
/* @__PURE__ */ jsx269(Loader28, { className: "text-primary h-12 w-12 animate-spin" }),
|
|
22506
22512
|
/* @__PURE__ */ jsx269("p", { className: "text-muted-foreground", children: t("waitlist.confirmation.loading") })
|
|
22507
22513
|
] });
|
|
22508
22514
|
}
|
|
@@ -23885,4 +23891,4 @@ export {
|
|
|
23885
23891
|
useOAuthClients,
|
|
23886
23892
|
useOAuthClient
|
|
23887
23893
|
};
|
|
23888
|
-
//# sourceMappingURL=chunk-
|
|
23894
|
+
//# sourceMappingURL=chunk-JLC2YP35.mjs.map
|