@carlonicora/nextjs-jsonapi 4.2.0 → 4.2.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-HXAHDJA7.mjs → BlockNoteEditor-FROUKBVK.mjs} +2 -2
- package/dist/{BlockNoteEditor-LLCZDFLZ.js → BlockNoteEditor-SWO3X5CC.js} +9 -9
- package/dist/{BlockNoteEditor-LLCZDFLZ.js.map → BlockNoteEditor-SWO3X5CC.js.map} +1 -1
- package/dist/billing/index.js +371 -371
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-2VXDZRYY.mjs → chunk-AICMLKWN.mjs} +21 -8
- package/dist/chunk-AICMLKWN.mjs.map +1 -0
- package/dist/{chunk-VDVIUDY5.js → chunk-GYW7LLBQ.js} +369 -356
- package/dist/chunk-GYW7LLBQ.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/features/analytics/index.js +88 -88
- package/dist/features/analytics/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/tables/__tests__/ContentListTable.spec.tsx +1 -1
- package/src/hooks/__tests__/{useDataListRetriever.test.ts → useDataListRetriever.spec.ts} +57 -0
- package/src/hooks/useDataListRetriever.ts +38 -9
- package/src/shadcnui/ui/__tests__/{confirm-dialog.test.tsx → confirm-dialog.spec.tsx} +1 -1
- package/src/shadcnui/ui/__tests__/{cursor-controls.test.tsx → cursor-controls.spec.tsx} +1 -1
- package/src/shadcnui/ui/__tests__/{cursor-menu-items.test.tsx → cursor-menu-items.spec.tsx} +1 -1
- package/src/shadcnui/ui/__tests__/{empty-state.test.tsx → empty-state.spec.tsx} +1 -1
- package/src/shadcnui/ui/__tests__/{spinner.test.tsx → spinner.spec.tsx} +1 -1
- package/dist/chunk-2VXDZRYY.mjs.map +0 -1
- package/dist/chunk-VDVIUDY5.js.map +0 -1
- /package/dist/{BlockNoteEditor-HXAHDJA7.mjs.map → BlockNoteEditor-FROUKBVK.mjs.map} +0 -0
- /package/scripts/{check-rtl-classes.test.ts → check-rtl-classes.spec.ts} +0 -0
- /package/src/client/__tests__/{JsonApiClient.test.ts → JsonApiClient.spec.ts} +0 -0
- /package/src/client/__tests__/{request.test.ts → request.spec.ts} +0 -0
- /package/src/client/hooks/__tests__/{useJsonApiGet.test.tsx → useJsonApiGet.spec.tsx} +0 -0
- /package/src/client/hooks/__tests__/{useJsonApiMutation.test.tsx → useJsonApiMutation.spec.tsx} +0 -0
- /package/src/client/hooks/__tests__/{useRehydration.test.ts → useRehydration.spec.ts} +0 -0
- /package/src/components/editors/__tests__/{BlockNoteEditorAiActions.test.ts → BlockNoteEditorAiActions.spec.ts} +0 -0
- /package/src/components/editors/__tests__/{BlockNoteEditorMentionInlineContent.test.ts → BlockNoteEditorMentionInlineContent.spec.ts} +0 -0
- /package/src/components/forms/__tests__/{CommonEditorDiscardDialog.test.tsx → CommonEditorDiscardDialog.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{EditorSheet.test.tsx → EditorSheet.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{FormCheckbox.test.tsx → FormCheckbox.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{FormDate.test.tsx → FormDate.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{FormInput.test.tsx → FormInput.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{FormSelect.test.tsx → FormSelect.spec.tsx} +0 -0
- /package/src/components/forms/__tests__/{useEditorDialog.test.ts → useEditorDialog.spec.ts} +0 -0
- /package/src/components/grids/__tests__/{ContentListGrid.test.tsx → ContentListGrid.spec.tsx} +0 -0
- /package/src/components/tables/__tests__/{ContentListTable.test.tsx → ContentListTable.rendering.spec.tsx} +0 -0
- /package/src/contexts/__tests__/{DirectionContext.test.tsx → DirectionContext.spec.tsx} +0 -0
- /package/src/contexts/__tests__/{SessionContext.test.tsx → SessionContext.spec.tsx} +0 -0
- /package/src/contexts/__tests__/{SocketContext.session.test.tsx → SocketContext.session.spec.tsx} +0 -0
- /package/src/core/abstracts/__tests__/{AbstractService.locale.test.ts → AbstractService.locale.spec.ts} +0 -0
- /package/src/core/endpoint/__tests__/{EndpointCreator.test.ts → EndpointCreator.spec.ts} +0 -0
- /package/src/core/factories/__tests__/{JsonApiDataFactory.test.ts → JsonApiDataFactory.spec.ts} +0 -0
- /package/src/core/factories/__tests__/{RehydrationFactory.test.ts → RehydrationFactory.spec.ts} +0 -0
- /package/src/core/registry/__tests__/{DataClassRegistry.test.ts → DataClassRegistry.spec.ts} +0 -0
- /package/src/core/registry/__tests__/{ModuleRegistrar.test.ts → ModuleRegistrar.spec.ts} +0 -0
- /package/src/core/registry/__tests__/{viewportStore.test.ts → viewportStore.spec.ts} +0 -0
- /package/src/core/utils/__tests__/{translateResponse.test.ts → translateResponse.spec.ts} +0 -0
- /package/src/features/ai-connection/data/__tests__/{ai-connection.test.ts → ai-connection.spec.ts} +0 -0
- /package/src/features/company/data/{company.test.ts → company.spec.ts} +0 -0
- /package/src/features/company/hooks/{useSubscriptionStatus.test.ts → useSubscriptionStatus.spec.ts} +0 -0
- /package/src/features/user/data/__tests__/{user.test.ts → user.spec.ts} +0 -0
- /package/src/hooks/__tests__/{useDebounce.test.ts → useDebounce.spec.ts} +0 -0
- /package/src/hooks/__tests__/{useSocket.render.test.ts → useSocket.render.spec.ts} +0 -0
- /package/src/i18n/__tests__/{config.test.ts → config.spec.ts} +0 -0
- /package/src/lib/__tests__/{direction.test.ts → direction.spec.ts} +0 -0
- /package/src/next-config/__tests__/{createNextConfig.test.ts → createNextConfig.spec.ts} +0 -0
- /package/src/server/__tests__/{JsonApiServer.test.ts → JsonApiServer.spec.ts} +0 -0
- /package/src/server/__tests__/{ServerSession.read.test.ts → ServerSession.read.spec.ts} +0 -0
- /package/src/server/__tests__/{cache.test.ts → cache.spec.ts} +0 -0
- /package/src/server/__tests__/{cachedGet.test.ts → cachedGet.spec.ts} +0 -0
- /package/src/server/__tests__/{request.test.ts → request.spec.ts} +0 -0
- /package/src/shadcnui/ui/__tests__/{sidebar.menu-skeleton.test.tsx → sidebar.menu-skeleton.spec.tsx} +0 -0
- /package/src/shadcnui/ui/__tests__/{sidebar.session.test.tsx → sidebar.session.spec.tsx} +0 -0
- /package/src/shadcnui/ui/__tests__/{use-ui-text.test.tsx → use-ui-text.spec.tsx} +0 -0
- /package/src/unified/__tests__/{JsonApiGet.cache.test.ts → JsonApiGet.cache.spec.ts} +0 -0
- /package/src/unified/__tests__/{JsonApiRequest.test.ts → JsonApiRequest.spec.ts} +0 -0
- /package/src/utils/__tests__/{date-formatter.test.ts → date-formatter.spec.ts} +0 -0
- /package/src/utils/__tests__/{exists.test.ts → exists.spec.ts} +0 -0
- /package/src/utils/__tests__/{italian-validators.test.ts → italian-validators.spec.ts} +0 -0
- /package/src/utils/__tests__/{map-thenable.test.ts → map-thenable.spec.ts} +0 -0
- /package/src/utils/__tests__/{use-mobile.test.tsx → use-mobile.spec.tsx} +0 -0
- /package/src/utils/{cn.test.ts → cn.spec.ts} +0 -0
- /package/src/utils/{isRemoteImageSrc.test.ts → isRemoteImageSrc.spec.ts} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -6921,17 +6921,17 @@ function useDataListRetriever(params) {
|
|
|
6921
6921
|
return;
|
|
6922
6922
|
}
|
|
6923
6923
|
if (isFetchingRef.current && !fetchParams?.callNext && !fetchParams?.callPrevious) return;
|
|
6924
|
-
if (fetchParams?.callNext || fetchParams?.callPrevious) {
|
|
6925
|
-
isPaginatingRef.current = true;
|
|
6926
|
-
}
|
|
6927
|
-
const thisRequestId = ++requestIdRef.current;
|
|
6928
|
-
isFetchingRef.current = true;
|
|
6929
6924
|
if (stableParams.requiresSearch === true && fetchParams?.isRefine !== true && fetchParams?.isRefresh !== true) {
|
|
6930
6925
|
return;
|
|
6931
6926
|
}
|
|
6932
|
-
if (!nextPage && !previousPage && isLoaded && fetchParams?.callNext !== true && fetchParams?.callPrevious !== true && params.search === searchTermRef.current) {
|
|
6927
|
+
if (fetchParams?.force !== true && !nextPage && !previousPage && isLoaded && fetchParams?.callNext !== true && fetchParams?.callPrevious !== true && params.search === searchTermRef.current) {
|
|
6933
6928
|
return;
|
|
6934
6929
|
}
|
|
6930
|
+
if (fetchParams?.callNext || fetchParams?.callPrevious) {
|
|
6931
|
+
isPaginatingRef.current = true;
|
|
6932
|
+
}
|
|
6933
|
+
const thisRequestId = ++requestIdRef.current;
|
|
6934
|
+
isFetchingRef.current = true;
|
|
6935
6935
|
const currentSearchTerm = searchTermRef.current;
|
|
6936
6936
|
setIsLoaded(false);
|
|
6937
6937
|
try {
|
|
@@ -7035,6 +7035,19 @@ function useDataListRetriever(params) {
|
|
|
7035
7035
|
fetchData({ isRefresh: true });
|
|
7036
7036
|
}
|
|
7037
7037
|
}, [ready, fetchData]);
|
|
7038
|
+
const fetchDataRef = useRef8(fetchData);
|
|
7039
|
+
const isLoadedRef = useRef8(isLoaded);
|
|
7040
|
+
useEffect6(() => {
|
|
7041
|
+
fetchDataRef.current = fetchData;
|
|
7042
|
+
isLoadedRef.current = isLoaded;
|
|
7043
|
+
});
|
|
7044
|
+
const wasHiddenRef = useRef8(false);
|
|
7045
|
+
useEffect6(() => {
|
|
7046
|
+
if (wasHiddenRef.current && isLoadedRef.current) fetchDataRef.current({ isRefresh: true, force: true });
|
|
7047
|
+
return () => {
|
|
7048
|
+
wasHiddenRef.current = true;
|
|
7049
|
+
};
|
|
7050
|
+
}, []);
|
|
7038
7051
|
const loadNext = useCallback9(
|
|
7039
7052
|
async (onlyNewRecords) => {
|
|
7040
7053
|
if (nextPage) {
|
|
@@ -10671,7 +10684,7 @@ import { useRef as useRef18 } from "react";
|
|
|
10671
10684
|
import dynamic from "next/dynamic";
|
|
10672
10685
|
import React18 from "react";
|
|
10673
10686
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
10674
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10687
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-FROUKBVK.mjs"), {
|
|
10675
10688
|
ssr: false
|
|
10676
10689
|
});
|
|
10677
10690
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -28269,4 +28282,4 @@ export {
|
|
|
28269
28282
|
useOAuthClients,
|
|
28270
28283
|
useOAuthClient
|
|
28271
28284
|
};
|
|
28272
|
-
//# sourceMappingURL=chunk-
|
|
28285
|
+
//# sourceMappingURL=chunk-AICMLKWN.mjs.map
|