@carlonicora/nextjs-jsonapi 3.28.1 → 3.28.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-ATZVHS6X.js → BlockNoteEditor-36VL2TNM.js} +9 -9
- package/dist/{BlockNoteEditor-ATZVHS6X.js.map → BlockNoteEditor-36VL2TNM.js.map} +1 -1
- package/dist/{BlockNoteEditor-CWW2D3SG.mjs → BlockNoteEditor-4IDXT6ZU.mjs} +2 -2
- package/dist/billing/index.js +335 -335
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-2IMQ5IKA.mjs → chunk-HPUV6FBW.mjs} +4 -3
- package/dist/{chunk-2IMQ5IKA.mjs.map → chunk-HPUV6FBW.mjs.map} +1 -1
- package/dist/{chunk-YDPDJIJF.js → chunk-KOTKKBJT.js} +4 -3
- package/dist/chunk-KOTKKBJT.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/features/company/hooks/useSubscriptionStatus.ts +6 -1
- package/dist/chunk-YDPDJIJF.js.map +0 -1
- /package/dist/{BlockNoteEditor-CWW2D3SG.mjs.map → BlockNoteEditor-4IDXT6ZU.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -10437,7 +10437,7 @@ import { useRef as useRef17 } from "react";
|
|
|
10437
10437
|
import dynamic from "next/dynamic";
|
|
10438
10438
|
import React18 from "react";
|
|
10439
10439
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
10440
|
-
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-
|
|
10440
|
+
var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-4IDXT6ZU.mjs"), {
|
|
10441
10441
|
ssr: false
|
|
10442
10442
|
});
|
|
10443
10443
|
var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
|
|
@@ -17123,7 +17123,8 @@ function useSubscriptionStatus() {
|
|
|
17123
17123
|
const trialEndsAt = new Date(createdAt);
|
|
17124
17124
|
trialEndsAt.setDate(trialEndsAt.getDate() + TRIAL_DAYS);
|
|
17125
17125
|
const now = /* @__PURE__ */ new Date();
|
|
17126
|
-
const
|
|
17126
|
+
const dstShiftMs = (now.getTimezoneOffset() - trialEndsAt.getTimezoneOffset()) * 60 * 1e3;
|
|
17127
|
+
const msRemaining = trialEndsAt.getTime() - now.getTime() + dstShiftMs;
|
|
17127
17128
|
const daysRemaining = Math.ceil(msRemaining / (1e3 * 60 * 60 * 24));
|
|
17128
17129
|
const trialElapsed = daysRemaining <= 0;
|
|
17129
17130
|
return {
|
|
@@ -27769,4 +27770,4 @@ export {
|
|
|
27769
27770
|
useOAuthClients,
|
|
27770
27771
|
useOAuthClient
|
|
27771
27772
|
};
|
|
27772
|
-
//# sourceMappingURL=chunk-
|
|
27773
|
+
//# sourceMappingURL=chunk-HPUV6FBW.mjs.map
|