@carlonicora/nextjs-jsonapi 6.32.1 → 6.32.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.
- package/dist/{BlockNoteEditor-XIEMUQCO.mjs → BlockNoteEditor-KRNC6EAX.mjs} +2 -2
- package/dist/{BlockNoteEditor-RD3JNEV5.js → BlockNoteEditor-VXSVY6OY.js} +15 -15
- package/dist/{BlockNoteEditor-RD3JNEV5.js.map → BlockNoteEditor-VXSVY6OY.js.map} +1 -1
- package/dist/billing/index.js +378 -378
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-F25BVBEH.mjs → chunk-4SXHRANW.mjs} +50 -30
- package/dist/chunk-4SXHRANW.mjs.map +1 -0
- package/dist/{chunk-SQNFYMYE.js → chunk-GPVLFNLB.js} +523 -503
- package/dist/chunk-GPVLFNLB.js.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/email-automations/index.js +78 -78
- package/dist/email-automations/index.mjs +1 -1
- package/dist/features/analytics/index.js +107 -107
- package/dist/features/analytics/index.mjs +1 -1
- package/dist/features/blog/index.js +93 -93
- package/dist/features/blog/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 +102 -102
- package/dist/features/tokenusage/index.mjs +1 -1
- package/dist/shadcnui/ui/calendar.d.ts +1 -1
- package/dist/shadcnui/ui/calendar.d.ts.map +1 -1
- package/messages/en.json +11 -0
- package/messages/it.json +11 -0
- package/package.json +1 -1
- package/src/shadcnui/ui/__tests__/calendar.spec.tsx +222 -0
- package/src/shadcnui/ui/calendar.tsx +28 -1
- package/dist/chunk-F25BVBEH.mjs.map +0 -1
- package/dist/chunk-SQNFYMYE.js.map +0 -1
- /package/dist/{BlockNoteEditor-XIEMUQCO.mjs.map → BlockNoteEditor-KRNC6EAX.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -710,7 +710,7 @@ __name(BreadcrumbEllipsis, "BreadcrumbEllipsis");
|
|
|
710
710
|
|
|
711
711
|
// src/shadcnui/ui/calendar.tsx
|
|
712
712
|
import * as React2 from "react";
|
|
713
|
-
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
713
|
+
import { DateLib, DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
714
714
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
715
715
|
|
|
716
716
|
// src/contexts/DirectionContext.tsx
|
|
@@ -727,6 +727,31 @@ function useDir() {
|
|
|
727
727
|
}
|
|
728
728
|
__name(useDir, "useDir");
|
|
729
729
|
|
|
730
|
+
// src/shadcnui/ui/use-ui-text.ts
|
|
731
|
+
import { useCallback } from "react";
|
|
732
|
+
function interpolate(text, values) {
|
|
733
|
+
if (!values) return text;
|
|
734
|
+
return text.replace(/\{(\w+)\}/g, (match, name) => name in values ? String(values[name]) : match);
|
|
735
|
+
}
|
|
736
|
+
__name(interpolate, "interpolate");
|
|
737
|
+
function useUiText() {
|
|
738
|
+
const t = useI18nTranslations();
|
|
739
|
+
return useCallback(
|
|
740
|
+
(key, fallback, values) => {
|
|
741
|
+
if (typeof t.has === "function" && !t.has(key)) return interpolate(fallback, values);
|
|
742
|
+
try {
|
|
743
|
+
const text = t(key, values);
|
|
744
|
+
if (!text || text === key || text.endsWith(`.${key}`)) return interpolate(fallback, values);
|
|
745
|
+
return text;
|
|
746
|
+
} catch {
|
|
747
|
+
return interpolate(fallback, values);
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
[t]
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
__name(useUiText, "useUiText");
|
|
754
|
+
|
|
730
755
|
// src/shadcnui/ui/calendar.tsx
|
|
731
756
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
732
757
|
function Calendar({
|
|
@@ -737,10 +762,31 @@ function Calendar({
|
|
|
737
762
|
buttonVariant = "ghost",
|
|
738
763
|
formatters,
|
|
739
764
|
components,
|
|
765
|
+
labels,
|
|
740
766
|
...props
|
|
741
767
|
}) {
|
|
742
768
|
const defaultClassNames = getDefaultClassNames();
|
|
743
769
|
const dir = useDir();
|
|
770
|
+
const uiText = useUiText();
|
|
771
|
+
const translatedLabels = {
|
|
772
|
+
labelPrevious: /* @__PURE__ */ __name(() => uiText("ui.calendar.previous_month", "Go to the Previous Month"), "labelPrevious"),
|
|
773
|
+
labelNext: /* @__PURE__ */ __name(() => uiText("ui.calendar.next_month", "Go to the Next Month"), "labelNext"),
|
|
774
|
+
labelNav: /* @__PURE__ */ __name(() => uiText("ui.calendar.navigation", ""), "labelNav"),
|
|
775
|
+
labelMonthDropdown: /* @__PURE__ */ __name(() => uiText("ui.calendar.choose_month", "Choose the Month"), "labelMonthDropdown"),
|
|
776
|
+
labelYearDropdown: /* @__PURE__ */ __name(() => uiText("ui.calendar.choose_year", "Choose the Year"), "labelYearDropdown"),
|
|
777
|
+
labelDayButton: /* @__PURE__ */ __name((date, modifiers, options, dateLib) => {
|
|
778
|
+
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
779
|
+
if (modifiers.today) label = uiText("ui.calendar.today", "Today, {date}", { date: label });
|
|
780
|
+
if (modifiers.selected) label = uiText("ui.calendar.selected", "{date}, selected", { date: label });
|
|
781
|
+
return label;
|
|
782
|
+
}, "labelDayButton"),
|
|
783
|
+
labelGridcell: /* @__PURE__ */ __name((date, modifiers, options, dateLib) => {
|
|
784
|
+
const label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
785
|
+
return modifiers?.today ? uiText("ui.calendar.today", "Today, {date}", { date: label }) : label;
|
|
786
|
+
}, "labelGridcell"),
|
|
787
|
+
labelWeekNumber: /* @__PURE__ */ __name((weekNumber) => uiText("ui.calendar.week_number", "Week {number}", { number: weekNumber }), "labelWeekNumber"),
|
|
788
|
+
labelWeekNumberHeader: /* @__PURE__ */ __name(() => uiText("ui.calendar.week_number_header", "Week Number"), "labelWeekNumberHeader")
|
|
789
|
+
};
|
|
744
790
|
return /* @__PURE__ */ jsx8(
|
|
745
791
|
DayPicker,
|
|
746
792
|
{
|
|
@@ -751,6 +797,7 @@ function Calendar({
|
|
|
751
797
|
className
|
|
752
798
|
),
|
|
753
799
|
captionLayout,
|
|
800
|
+
labels: { ...translatedLabels, ...labels },
|
|
754
801
|
formatters: {
|
|
755
802
|
formatMonthDropdown: /* @__PURE__ */ __name((date) => date.toLocaleString(props.locale?.code ?? "default", { month: "short" }), "formatMonthDropdown"),
|
|
756
803
|
...formatters
|
|
@@ -944,33 +991,6 @@ __name(CardFooter, "CardFooter");
|
|
|
944
991
|
import * as React3 from "react";
|
|
945
992
|
import useEmblaCarousel from "embla-carousel-react";
|
|
946
993
|
import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
947
|
-
|
|
948
|
-
// src/shadcnui/ui/use-ui-text.ts
|
|
949
|
-
import { useCallback } from "react";
|
|
950
|
-
function interpolate(text, values) {
|
|
951
|
-
if (!values) return text;
|
|
952
|
-
return text.replace(/\{(\w+)\}/g, (match, name) => name in values ? String(values[name]) : match);
|
|
953
|
-
}
|
|
954
|
-
__name(interpolate, "interpolate");
|
|
955
|
-
function useUiText() {
|
|
956
|
-
const t = useI18nTranslations();
|
|
957
|
-
return useCallback(
|
|
958
|
-
(key, fallback, values) => {
|
|
959
|
-
if (typeof t.has === "function" && !t.has(key)) return interpolate(fallback, values);
|
|
960
|
-
try {
|
|
961
|
-
const text = t(key, values);
|
|
962
|
-
if (!text || text === key || text.endsWith(`.${key}`)) return interpolate(fallback, values);
|
|
963
|
-
return text;
|
|
964
|
-
} catch {
|
|
965
|
-
return interpolate(fallback, values);
|
|
966
|
-
}
|
|
967
|
-
},
|
|
968
|
-
[t]
|
|
969
|
-
);
|
|
970
|
-
}
|
|
971
|
-
__name(useUiText, "useUiText");
|
|
972
|
-
|
|
973
|
-
// src/shadcnui/ui/carousel.tsx
|
|
974
994
|
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
975
995
|
var CarouselContext = React3.createContext(null);
|
|
976
996
|
function useCarousel() {
|
|
@@ -10879,7 +10899,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10879
10899
|
import dynamic from "next/dynamic";
|
|
10880
10900
|
import React18 from "react";
|
|
10881
10901
|
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
10882
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10902
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-KRNC6EAX.mjs"), {
|
|
10883
10903
|
ssr: false
|
|
10884
10904
|
});
|
|
10885
10905
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -31090,4 +31110,4 @@ export {
|
|
|
31090
31110
|
useOAuthClients,
|
|
31091
31111
|
useOAuthClient
|
|
31092
31112
|
};
|
|
31093
|
-
//# sourceMappingURL=chunk-
|
|
31113
|
+
//# sourceMappingURL=chunk-4SXHRANW.mjs.map
|