@carlonicora/nextjs-jsonapi 6.21.0 → 6.22.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.
Files changed (34) hide show
  1. package/dist/{BlockNoteEditor-66ZACETR.mjs → BlockNoteEditor-2XSIQCEB.mjs} +2 -2
  2. package/dist/{BlockNoteEditor-NXCRWS2O.js → BlockNoteEditor-HW3TK7SM.js} +9 -9
  3. package/dist/{BlockNoteEditor-NXCRWS2O.js.map → BlockNoteEditor-HW3TK7SM.js.map} +1 -1
  4. package/dist/billing/index.js +378 -378
  5. package/dist/billing/index.mjs +1 -1
  6. package/dist/{chunk-OHHA5BBX.mjs → chunk-EFQIMPCJ.mjs} +9 -7
  7. package/dist/chunk-EFQIMPCJ.mjs.map +1 -0
  8. package/dist/{chunk-3CGU6WXY.js → chunk-FXRRQ7Q6.js} +9 -7
  9. package/dist/chunk-FXRRQ7Q6.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/email-automations/index.js +78 -78
  17. package/dist/email-automations/index.mjs +1 -1
  18. package/dist/features/analytics/index.js +107 -107
  19. package/dist/features/analytics/index.mjs +1 -1
  20. package/dist/features/blog/index.js +93 -93
  21. package/dist/features/blog/index.mjs +1 -1
  22. package/dist/features/help/index.js +31 -31
  23. package/dist/features/help/index.mjs +1 -1
  24. package/dist/features/tokenusage/index.js +102 -102
  25. package/dist/features/tokenusage/index.mjs +1 -1
  26. package/dist/features/user/contexts/UserContext.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/components/forms/EditorSheet.tsx +2 -2
  29. package/src/components/forms/__tests__/EditorSheet.spec.tsx +16 -0
  30. package/src/features/oauth/components/OAuthClientDetail.tsx +1 -1
  31. package/src/features/user/contexts/UserContext.tsx +6 -2
  32. package/dist/chunk-3CGU6WXY.js.map +0 -1
  33. package/dist/chunk-OHHA5BBX.mjs.map +0 -1
  34. /package/dist/{BlockNoteEditor-66ZACETR.mjs.map → BlockNoteEditor-2XSIQCEB.mjs.map} +0 -0
@@ -81,7 +81,7 @@ import {
81
81
  useCurrentUserContext,
82
82
  useDataListRetriever,
83
83
  usePageUrlGenerator
84
- } from "../chunk-OHHA5BBX.mjs";
84
+ } from "../chunk-EFQIMPCJ.mjs";
85
85
  import "../chunk-VOXD3ZLY.mjs";
86
86
  import {
87
87
  getStripePublishableKey
@@ -10283,8 +10283,8 @@ function EditorSheet({
10283
10283
  render: /* @__PURE__ */ jsx88("div", {}),
10284
10284
  nativeButton: false,
10285
10285
  size: "sm",
10286
- variant: isLabelled ? "outline" : "ghost",
10287
- className: "text-muted-foreground",
10286
+ variant: isLabelled ? "default" : "ghost",
10287
+ className: isLabelled ? void 0 : "text-muted-foreground",
10288
10288
  children: [
10289
10289
  /* @__PURE__ */ jsx88(PencilIcon3, {}),
10290
10290
  isLabelled && t("ui.buttons.edit")
@@ -10868,7 +10868,7 @@ import { useRef as useRef18 } from "react";
10868
10868
  import dynamic from "next/dynamic";
10869
10869
  import React18 from "react";
10870
10870
  import { jsx as jsx91 } from "react/jsx-runtime";
10871
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-66ZACETR.mjs"), {
10871
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-2XSIQCEB.mjs"), {
10872
10872
  ssr: false
10873
10873
  });
10874
10874
  var BlockNoteEditorContainer = React18.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -12495,6 +12495,7 @@ var UserProvider = /* @__PURE__ */ __name(({ children, dehydratedUser }) => {
12495
12495
  type: t(`entities.users`, { count: user ? 1 : 2 })
12496
12496
  };
12497
12497
  const functions = [];
12498
+ const actionBar = [];
12498
12499
  if (user) {
12499
12500
  response.element = `${user.name}${user.isDeleted ? ` (${t(`user.deleted`)})` : ""}`;
12500
12501
  if (user.isDeleted) {
@@ -12502,13 +12503,14 @@ var UserProvider = /* @__PURE__ */ __name(({ children, dehydratedUser }) => {
12502
12503
  } else {
12503
12504
  if (!user.isActivated)
12504
12505
  functions.push(/* @__PURE__ */ jsx112(UserResentInvitationEmail, { user }, `UserResentInvitationEmail`));
12505
- functions.push(/* @__PURE__ */ jsx112(UserDeleter, { user }, `UserDeleter`));
12506
+ actionBar.push(/* @__PURE__ */ jsx112(UserDeleter, { user }, `UserDeleter`));
12506
12507
  if (hasRole(getRoleId().Administrator) && isAccountDeletionEnabled())
12507
12508
  functions.push(/* @__PURE__ */ jsx112(AccountDeletionAdminTrigger, { user }, `AccountDeletionAdminTrigger`));
12508
12509
  }
12509
- functions.push(/* @__PURE__ */ jsx112(UserEditor, { user, propagateChanges: setUser }, `UserEditor`));
12510
+ actionBar.push(/* @__PURE__ */ jsx112(UserEditor, { user, propagateChanges: setUser }, `UserEditor`));
12510
12511
  }
12511
12512
  if (functions.length > 0) response.functions = functions;
12513
+ if (actionBar.length > 0) response.actionBar = actionBar;
12512
12514
  return response;
12513
12515
  }, "title");
12514
12516
  return /* @__PURE__ */ jsx112(SharedProvider, { value: { breadcrumbs: breadcrumb(), title: title() }, children: /* @__PURE__ */ jsx112(
@@ -28965,7 +28967,7 @@ function OAuthClientDetail({
28965
28967
  /* @__PURE__ */ jsx323(Separator, {}),
28966
28968
  /* @__PURE__ */ jsx323("div", { className: "flex flex-wrap gap-x-6 gap-y-2 text-sm text-muted-foreground", children: /* @__PURE__ */ jsx323("span", { children: t("oauth.ui.detail.created", { date: createdDate }) }) }),
28967
28969
  /* @__PURE__ */ jsxs197("div", { className: "flex gap-3 pt-4", children: [
28968
- onEdit && /* @__PURE__ */ jsxs197(Button, { variant: "outline", onClick: onEdit, disabled: isLoading, children: [
28970
+ onEdit && /* @__PURE__ */ jsxs197(Button, { onClick: onEdit, disabled: isLoading, children: [
28969
28971
  /* @__PURE__ */ jsx323(Pencil2, { className: "h-4 w-4 me-2" }),
28970
28972
  t("ui.buttons.edit")
28971
28973
  ] }),
@@ -30885,4 +30887,4 @@ export {
30885
30887
  useOAuthClients,
30886
30888
  useOAuthClient
30887
30889
  };
30888
- //# sourceMappingURL=chunk-OHHA5BBX.mjs.map
30890
+ //# sourceMappingURL=chunk-EFQIMPCJ.mjs.map