@carlonicora/nextjs-jsonapi 3.28.0 → 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.
Files changed (30) hide show
  1. package/dist/{BlockNoteEditor-ATZVHS6X.js → BlockNoteEditor-36VL2TNM.js} +9 -9
  2. package/dist/{BlockNoteEditor-ATZVHS6X.js.map → BlockNoteEditor-36VL2TNM.js.map} +1 -1
  3. package/dist/{BlockNoteEditor-CWW2D3SG.mjs → BlockNoteEditor-4IDXT6ZU.mjs} +2 -2
  4. package/dist/billing/index.js +335 -335
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-2IMQ5IKA.mjs → chunk-HPUV6FBW.mjs} +4 -3
  7. package/dist/{chunk-2IMQ5IKA.mjs.map → chunk-HPUV6FBW.mjs.map} +1 -1
  8. package/dist/{chunk-YDPDJIJF.js → chunk-KOTKKBJT.js} +4 -3
  9. package/dist/chunk-KOTKKBJT.js.map +1 -0
  10. package/dist/client/index.js +2 -2
  11. package/dist/client/index.mjs +1 -1
  12. package/dist/components/index.js +2 -2
  13. package/dist/components/index.mjs +1 -1
  14. package/dist/contexts/index.js +2 -2
  15. package/dist/contexts/index.mjs +1 -1
  16. package/dist/features/analytics/index.js +88 -88
  17. package/dist/features/analytics/index.mjs +1 -1
  18. package/dist/features/help/index.js +31 -31
  19. package/dist/features/help/index.mjs +1 -1
  20. package/dist/features/tokenusage/index.js +75 -75
  21. package/dist/features/tokenusage/index.mjs +1 -1
  22. package/dist/testing/index.d.mts +6 -13
  23. package/dist/testing/index.d.ts +6 -13
  24. package/dist/testing/index.js.map +1 -1
  25. package/dist/testing/index.mjs.map +1 -1
  26. package/package.json +44 -42
  27. package/src/features/company/hooks/useSubscriptionStatus.ts +6 -1
  28. package/src/testing/matchers/jsonApiMatchers.ts +8 -13
  29. package/dist/chunk-YDPDJIJF.js.map +0 -1
  30. /package/dist/{BlockNoteEditor-CWW2D3SG.mjs.map → BlockNoteEditor-4IDXT6ZU.mjs.map} +0 -0
@@ -62,7 +62,7 @@ import {
62
62
  useCurrentUserContext,
63
63
  useDataListRetriever,
64
64
  usePageUrlGenerator
65
- } from "../chunk-2IMQ5IKA.mjs";
65
+ } from "../chunk-HPUV6FBW.mjs";
66
66
  import {
67
67
  getRoleId,
68
68
  getStripePublishableKey,
@@ -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-CWW2D3SG.mjs"), {
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 msRemaining = trialEndsAt.getTime() - now.getTime();
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-2IMQ5IKA.mjs.map
27773
+ //# sourceMappingURL=chunk-HPUV6FBW.mjs.map