@carlonicora/nextjs-jsonapi 1.31.1 → 1.32.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.
- package/dist/{BlockNoteEditor-N5ODXWD2.mjs → BlockNoteEditor-TFL6ZXIJ.mjs} +3 -3
- package/dist/{BlockNoteEditor-PJOOJ3LX.js → BlockNoteEditor-YEVSJSOI.js} +7 -7
- package/dist/{BlockNoteEditor-PJOOJ3LX.js.map → BlockNoteEditor-YEVSJSOI.js.map} +1 -1
- package/dist/billing/index.js +295 -295
- package/dist/billing/index.mjs +2 -2
- package/dist/{chunk-6GVSJFRG.js → chunk-HIF7DYR3.js} +103 -48
- package/dist/chunk-HIF7DYR3.js.map +1 -0
- package/dist/{chunk-C62JXXUX.mjs → chunk-IXVNXOZT.mjs} +8 -1
- package/dist/{chunk-C62JXXUX.mjs.map → chunk-IXVNXOZT.mjs.map} +1 -1
- package/dist/{chunk-OR5NPUWF.js → chunk-NPNKFWV2.js} +9 -2
- package/dist/chunk-NPNKFWV2.js.map +1 -0
- package/dist/{chunk-CQCHSJLC.mjs → chunk-SLANIL6B.mjs} +454 -399
- package/dist/chunk-SLANIL6B.mjs.map +1 -0
- package/dist/client/index.js +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/features/auth/components/buttons/GoogleSignInButton.tsx +41 -0
- package/src/features/auth/components/details/LandingComponent.tsx +3 -1
- package/src/features/auth/components/forms/Login.tsx +3 -1
- package/src/login/config.ts +7 -0
- package/src/login/index.ts +7 -1
- package/dist/chunk-6GVSJFRG.js.map +0 -1
- package/dist/chunk-CQCHSJLC.mjs.map +0 -1
- package/dist/chunk-OR5NPUWF.js.map +0 -1
- /package/dist/{BlockNoteEditor-N5ODXWD2.mjs.map → BlockNoteEditor-TFL6ZXIJ.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
TabsList,
|
|
48
48
|
TabsTrigger,
|
|
49
49
|
useCurrentUserContext
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-SLANIL6B.mjs";
|
|
51
51
|
import {
|
|
52
52
|
getRoleId,
|
|
53
53
|
getStripePublishableKey
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-IXVNXOZT.mjs";
|
|
55
55
|
import {
|
|
56
56
|
StripeCustomerService,
|
|
57
57
|
StripeInvoiceService,
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var _chunkNPNKFWV2js = require('./chunk-NPNKFWV2.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
@@ -964,7 +965,7 @@ var CurrentUserProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
964
965
|
return !!_optionalChain([currentUser, 'access', _37 => _37.roles, 'optionalAccess', _38 => _38.some, 'call', _39 => _39((userRole) => userRole.id === roleId)]);
|
|
965
966
|
}, "hasRole");
|
|
966
967
|
const hasAccesToFeature = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (featureIdentifier) => {
|
|
967
|
-
if (hasRole(
|
|
968
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return true;
|
|
968
969
|
if (!company) return false;
|
|
969
970
|
return company.features.some((feature) => feature.id === featureIdentifier);
|
|
970
971
|
}, "hasAccesToFeature");
|
|
@@ -6534,7 +6535,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, KanbanOverlay, "KanbanOverlay");
|
|
|
6534
6535
|
|
|
6535
6536
|
|
|
6536
6537
|
var Link = React10.forwardRef(({ className, href, children, ...props }, ref) => {
|
|
6537
|
-
const NextIntlLink =
|
|
6538
|
+
const NextIntlLink = _chunkNPNKFWV2js.getI18nLink.call(void 0, );
|
|
6538
6539
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NextIntlLink, { prefetch: false, ref, href, className: _chunkKYG2PIRBjs.cn.call(void 0, `font-medium`, className), ...props, children });
|
|
6539
6540
|
});
|
|
6540
6541
|
Link.displayName = "Link";
|
|
@@ -6864,10 +6865,10 @@ _chunk7QVYU63Ejs.__name.call(void 0, UserAvatarEditor, "UserAvatarEditor");
|
|
|
6864
6865
|
function UserDeleterInternal({ user, onDeleted, companyId }) {
|
|
6865
6866
|
const { currentUser, company } = useCurrentUserContext();
|
|
6866
6867
|
const generateUrl = usePageUrlGenerator();
|
|
6867
|
-
const router =
|
|
6868
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
6868
6869
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
6869
6870
|
let cId;
|
|
6870
|
-
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id ===
|
|
6871
|
+
if (_optionalChain([currentUser, 'optionalAccess', _128 => _128.roles, 'access', _129 => _129.find, 'call', _130 => _130((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)]) && companyId) {
|
|
6871
6872
|
cId = companyId;
|
|
6872
6873
|
} else {
|
|
6873
6874
|
if (!company) return;
|
|
@@ -6909,7 +6910,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
6909
6910
|
} = useCurrentUserContext();
|
|
6910
6911
|
const { company: companyFromContext } = useCompanyContext();
|
|
6911
6912
|
const generateUrl = usePageUrlGenerator();
|
|
6912
|
-
const router =
|
|
6913
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
6913
6914
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
6914
6915
|
const [roles, setRoles] = _react.useState.call(void 0, []);
|
|
6915
6916
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -7008,12 +7009,12 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7008
7009
|
async function fetchRoles() {
|
|
7009
7010
|
const roles2 = await _chunkKYG2PIRBjs.RoleService.findAllRoles({});
|
|
7010
7011
|
const availableRoles = roles2.filter(
|
|
7011
|
-
(role) => role.id !==
|
|
7012
|
+
(role) => role.id !== _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator && (role.requiredFeature === void 0 || _optionalChain([company, 'optionalAccess', _142 => _142.features, 'access', _143 => _143.some, 'call', _144 => _144((feature) => feature.id === _optionalChain([role, 'access', _145 => _145.requiredFeature, 'optionalAccess', _146 => _146.id]))]))
|
|
7012
7013
|
);
|
|
7013
7014
|
setRoles(availableRoles);
|
|
7014
7015
|
}
|
|
7015
7016
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchRoles, "fetchRoles");
|
|
7016
|
-
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id ===
|
|
7017
|
+
if (open && (company || _optionalChain([currentUser, 'optionalAccess', _147 => _147.roles, 'access', _148 => _148.find, 'call', _149 => _149((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)])) && roles.length === 0)
|
|
7017
7018
|
fetchRoles();
|
|
7018
7019
|
}, [company, open]);
|
|
7019
7020
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7034,7 +7035,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7034
7035
|
setContentType(null);
|
|
7035
7036
|
}
|
|
7036
7037
|
}, [file]);
|
|
7037
|
-
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(
|
|
7038
|
+
const canChangeRoles = !(_optionalChain([currentUser, 'optionalAccess', _150 => _150.id]) === _optionalChain([user, 'optionalAccess', _151 => _151.id]) && hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) && (hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.User, action: "update" /* Update */ }) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator));
|
|
7038
7039
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
7039
7040
|
trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTrigger, { children: trigger }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!user }),
|
|
7040
7041
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -7121,7 +7122,7 @@ function UserEditorInternal({ user, propagateChanges, adminCreated, trigger, onR
|
|
|
7121
7122
|
] })
|
|
7122
7123
|
] }),
|
|
7123
7124
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-end gap-x-4", children: [
|
|
7124
|
-
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id ===
|
|
7125
|
+
user && _optionalChain([currentUser, 'optionalAccess', _153 => _153.roles, 'access', _154 => _154.find, 'call', _155 => _155((role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7125
7126
|
UserDeleter,
|
|
7126
7127
|
{
|
|
7127
7128
|
companyId: _optionalChain([user, 'access', _156 => _156.company, 'optionalAccess', _157 => _157.id]),
|
|
@@ -7308,8 +7309,8 @@ _chunk7QVYU63Ejs.__name.call(void 0, errorToast, "errorToast");
|
|
|
7308
7309
|
// src/components/forms/CommonDeleter.tsx
|
|
7309
7310
|
|
|
7310
7311
|
function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }) {
|
|
7311
|
-
const t =
|
|
7312
|
-
const router =
|
|
7312
|
+
const t = _chunkNPNKFWV2js.useI18nTranslations.call(void 0, );
|
|
7313
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
7313
7314
|
const [open, setOpen] = _react.useState.call(void 0, forceShow || false);
|
|
7314
7315
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
7315
7316
|
const handleDelete = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, async () => {
|
|
@@ -7439,8 +7440,8 @@ var DatePickerPopover = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({
|
|
|
7439
7440
|
align = "start",
|
|
7440
7441
|
className
|
|
7441
7442
|
}) => {
|
|
7442
|
-
const locale =
|
|
7443
|
-
const dateFnsLocale =
|
|
7443
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
7444
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
7444
7445
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
7445
7446
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => value || /* @__PURE__ */ new Date());
|
|
7446
7447
|
const dateFormatter = _react.useMemo.call(void 0,
|
|
@@ -8019,8 +8020,8 @@ function FormDate({
|
|
|
8019
8020
|
onChange,
|
|
8020
8021
|
isRequired = false
|
|
8021
8022
|
}) {
|
|
8022
|
-
const locale =
|
|
8023
|
-
const dateFnsLocale =
|
|
8023
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
8024
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
8024
8025
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8025
8026
|
const [displayMonth, setDisplayMonth] = _react.useState.call(void 0, () => {
|
|
8026
8027
|
const currentValue = form.getValues(id);
|
|
@@ -8189,9 +8190,9 @@ function FormDateTime({
|
|
|
8189
8190
|
allowEmpty
|
|
8190
8191
|
}) {
|
|
8191
8192
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
8192
|
-
const t =
|
|
8193
|
-
const locale =
|
|
8194
|
-
const dateFnsLocale =
|
|
8193
|
+
const t = _chunkNPNKFWV2js.useI18nTranslations.call(void 0, );
|
|
8194
|
+
const locale = _chunkNPNKFWV2js.useI18nLocale.call(void 0, );
|
|
8195
|
+
const dateFnsLocale = _chunkNPNKFWV2js.useI18nDateFnsLocale.call(void 0, );
|
|
8195
8196
|
const dateTimeFormatter = _react.useMemo.call(void 0,
|
|
8196
8197
|
() => new Intl.DateTimeFormat(locale, {
|
|
8197
8198
|
year: "numeric",
|
|
@@ -9640,7 +9641,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDetails, "CompanyDetails");
|
|
|
9640
9641
|
function AdminCompanyContainerInternal() {
|
|
9641
9642
|
const { company } = useCompanyContext();
|
|
9642
9643
|
const { hasRole } = useCurrentUserContext();
|
|
9643
|
-
if (!company || !hasRole(
|
|
9644
|
+
if (!company || !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return null;
|
|
9644
9645
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
9645
9646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDetails, {}),
|
|
9646
9647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AdminUsersList, {})
|
|
@@ -9915,7 +9916,7 @@ function CompanyConfigurationEditorInternal({ company }) {
|
|
|
9915
9916
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditorInternal, "CompanyConfigurationEditorInternal");
|
|
9916
9917
|
function CompanyConfigurationEditor(props) {
|
|
9917
9918
|
const { hasRole } = useCurrentUserContext();
|
|
9918
|
-
if (hasRole(
|
|
9919
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9919
9920
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyConfigurationEditorInternal, { ...props });
|
|
9920
9921
|
}
|
|
9921
9922
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigurationEditor");
|
|
@@ -9927,7 +9928,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyConfigurationEditor, "CompanyConfigu
|
|
|
9927
9928
|
|
|
9928
9929
|
function CompanyDeleterInternal({ company }) {
|
|
9929
9930
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
9930
|
-
const router =
|
|
9931
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
9931
9932
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
9932
9933
|
const [isDeleting, setIsDeleting] = _react.useState.call(void 0, false);
|
|
9933
9934
|
const [companyName, setCompanyName] = _react.useState.call(void 0, "");
|
|
@@ -10004,7 +10005,7 @@ function CompanyDeleterInternal({ company }) {
|
|
|
10004
10005
|
_chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleterInternal, "CompanyDeleterInternal");
|
|
10005
10006
|
function CompanyDeleter({ company }) {
|
|
10006
10007
|
const { hasPermissionToModule, hasRole } = useCurrentUserContext();
|
|
10007
|
-
if (!hasRole(
|
|
10008
|
+
if (!hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && !hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10008
10009
|
return null;
|
|
10009
10010
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleterInternal, { company });
|
|
10010
10011
|
}
|
|
@@ -10023,7 +10024,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, CompanyDeleter, "CompanyDeleter");
|
|
|
10023
10024
|
|
|
10024
10025
|
function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
10025
10026
|
const { hasRole } = useCurrentUserContext();
|
|
10026
|
-
const router =
|
|
10027
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
10027
10028
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
10028
10029
|
const [features, setFeatures] = _react.useState.call(void 0, []);
|
|
10029
10030
|
const [file, setFile] = _react.useState.call(void 0, null);
|
|
@@ -10092,14 +10093,14 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10092
10093
|
_react.useEffect.call(void 0, () => {
|
|
10093
10094
|
async function fetchFeatures() {
|
|
10094
10095
|
const allfeatures = await _chunkKYG2PIRBjs.FeatureService.findMany({});
|
|
10095
|
-
if (hasRole(
|
|
10096
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) {
|
|
10096
10097
|
setFeatures(allfeatures);
|
|
10097
10098
|
} else {
|
|
10098
10099
|
setFeatures(allfeatures.filter((feature) => feature.isCore));
|
|
10099
10100
|
}
|
|
10100
10101
|
}
|
|
10101
10102
|
_chunk7QVYU63Ejs.__name.call(void 0, fetchFeatures, "fetchFeatures");
|
|
10102
|
-
if (open && features.length === 0 && (hasRole(
|
|
10103
|
+
if (open && features.length === 0 && (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _239 => _239.env, 'access', _240 => _240.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _241 => _241.toLowerCase, 'call', _242 => _242()]) === "true"))
|
|
10103
10104
|
fetchFeatures();
|
|
10104
10105
|
}, [open, features]);
|
|
10105
10106
|
_react.useEffect.call(void 0, () => {
|
|
@@ -10133,8 +10134,8 @@ function CompanyEditorInternal({ company, propagateChanges, onRevalidate }) {
|
|
|
10133
10134
|
"application/images": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"]
|
|
10134
10135
|
}
|
|
10135
10136
|
};
|
|
10136
|
-
const canAccessFeatures = hasRole(
|
|
10137
|
-
const isAdministrator = hasRole(
|
|
10137
|
+
const canAccessFeatures = hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) && _optionalChain([process, 'access', _243 => _243.env, 'access', _244 => _244.NEXT_PUBLIC_PRIVATE_INSTALLATION, 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) === "true";
|
|
10138
|
+
const isAdministrator = hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator);
|
|
10138
10139
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog, { open, onOpenChange: setOpen, children: [
|
|
10139
10140
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CommonEditorTrigger, { isEdit: !!company }),
|
|
10140
10141
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -10235,9 +10236,9 @@ var CompanyProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ ch
|
|
|
10235
10236
|
};
|
|
10236
10237
|
if (company) response.element = company.name;
|
|
10237
10238
|
const functions = [];
|
|
10238
|
-
if (company && hasRole(
|
|
10239
|
+
if (company && hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "delete" /* Delete */ }))
|
|
10239
10240
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyDeleter, { company }, "companyDeleter"));
|
|
10240
|
-
if (hasRole(
|
|
10241
|
+
if (hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) || hasPermissionToModule({ module: _chunkKYG2PIRBjs.Modules.Company, action: "update" /* Update */ })) {
|
|
10241
10242
|
functions.push(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompanyEditor, { company, propagateChanges: setCompany }, "companyEditor"));
|
|
10242
10243
|
}
|
|
10243
10244
|
if (functions.length > 0) response.functions = functions;
|
|
@@ -10329,7 +10330,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, NotificationMenuItem, "NotificationMenuItem
|
|
|
10329
10330
|
var NotificationContext = _react.createContext.call(void 0, void 0);
|
|
10330
10331
|
var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, ({ children }) => {
|
|
10331
10332
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10332
|
-
const router =
|
|
10333
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
10333
10334
|
const [notifications, setNotifications] = _react.useState.call(void 0, []);
|
|
10334
10335
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
10335
10336
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
@@ -10368,9 +10369,9 @@ var NotificationContextProvider = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(v
|
|
|
10368
10369
|
}, []);
|
|
10369
10370
|
_react.useEffect.call(void 0, () => {
|
|
10370
10371
|
if (hasInitiallyLoaded || !currentUser) return;
|
|
10371
|
-
if (
|
|
10372
|
+
if (_chunkNPNKFWV2js.isRolesConfigured.call(void 0, )) {
|
|
10372
10373
|
const isAdmin = _optionalChain([currentUser, 'access', _254 => _254.roles, 'optionalAccess', _255 => _255.some, 'call', _256 => _256(
|
|
10373
|
-
(role) => role.id ===
|
|
10374
|
+
(role) => role.id === _chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator
|
|
10374
10375
|
)]);
|
|
10375
10376
|
if (isAdmin) {
|
|
10376
10377
|
setHasInitiallyLoaded(true);
|
|
@@ -10594,7 +10595,7 @@ function usePageTracker() {
|
|
|
10594
10595
|
const moduleName = pathParts[0];
|
|
10595
10596
|
const entityId = pathParts.length > 1 ? pathParts[1] : null;
|
|
10596
10597
|
if (!entityId) return;
|
|
10597
|
-
const trackablePages =
|
|
10598
|
+
const trackablePages = _chunkNPNKFWV2js.getTrackablePages.call(void 0, );
|
|
10598
10599
|
const foundModule = trackablePages.find((mod) => mod.pageUrl === `/${moduleName}`);
|
|
10599
10600
|
if (!foundModule) return;
|
|
10600
10601
|
const baseUrl = `/${moduleName}/${entityId}`;
|
|
@@ -10641,7 +10642,7 @@ function usePushNotifications() {
|
|
|
10641
10642
|
try {
|
|
10642
10643
|
const sessionKey = `push_registered_${_optionalChain([currentUser, 'optionalAccess', _263 => _263.id])}`;
|
|
10643
10644
|
const lastRegisteredSubscription = sessionStorage.getItem(sessionKey);
|
|
10644
|
-
const registration = await navigator.serviceWorker.register(`${
|
|
10645
|
+
const registration = await navigator.serviceWorker.register(`${_chunkNPNKFWV2js.getAppUrl.call(void 0, )}/sw.js`);
|
|
10645
10646
|
let permission = Notification.permission;
|
|
10646
10647
|
if (permission === "default") {
|
|
10647
10648
|
permission = await Notification.requestPermission();
|
|
@@ -10674,7 +10675,7 @@ function usePushNotifications() {
|
|
|
10674
10675
|
}
|
|
10675
10676
|
}
|
|
10676
10677
|
}, "register");
|
|
10677
|
-
if (currentUser && !hasRole(
|
|
10678
|
+
if (currentUser && !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator)) register();
|
|
10678
10679
|
}, [currentUser]);
|
|
10679
10680
|
}
|
|
10680
10681
|
_chunk7QVYU63Ejs.__name.call(void 0, usePushNotifications, "usePushNotifications");
|
|
@@ -10885,7 +10886,7 @@ function Header({ children }) {
|
|
|
10885
10886
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
10886
10887
|
const { breadcrumbs } = useSharedContext();
|
|
10887
10888
|
const { company, hasRole, refreshUser, isRefreshing } = useCurrentUserContext();
|
|
10888
|
-
const showTokenStatus = !hasRole(
|
|
10889
|
+
const showTokenStatus = !hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) && company;
|
|
10889
10890
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "header", { className: `sticky top-0 z-10 flex h-12 flex-col items-center justify-start gap-x-4 border-b`, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-sidebar flex h-12 w-full flex-row items-center justify-between pl-2 pr-4", children: [
|
|
10890
10891
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SidebarTrigger, { "aria-label": "Toggle sidebar" }),
|
|
10891
10892
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-row items-center justify-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BreadcrumbNavigation, { items: breadcrumbs }) }),
|
|
@@ -11172,7 +11173,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, AllowedUsersDetails, "AllowedUsersDetails")
|
|
|
11172
11173
|
var _dynamic = require('next/dynamic'); var _dynamic2 = _interopRequireDefault(_dynamic);
|
|
11173
11174
|
|
|
11174
11175
|
|
|
11175
|
-
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-
|
|
11176
|
+
var BlockNoteEditor = _dynamic2.default.call(void 0, () => Promise.resolve().then(() => _interopRequireWildcard(require("./BlockNoteEditor-YEVSJSOI.js"))), {
|
|
11176
11177
|
ssr: false
|
|
11177
11178
|
});
|
|
11178
11179
|
var BlockNoteEditorContainer = React3.default.memo(/* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, function EditorContainer(props) {
|
|
@@ -11602,7 +11603,7 @@ var useCompanyTableStructure = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void
|
|
|
11602
11603
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11603
11604
|
Link,
|
|
11604
11605
|
{
|
|
11605
|
-
href: hasRole(
|
|
11606
|
+
href: hasRole(_chunkNPNKFWV2js.getRoleId.call(void 0, ).Administrator) ? generateUrl({
|
|
11606
11607
|
page: "/administration",
|
|
11607
11608
|
id: _optionalChain([_chunkKYG2PIRBjs.Modules, 'access', _289 => _289.Company, 'access', _290 => _290.pageUrl, 'optionalAccess', _291 => _291.substring, 'call', _292 => _292(1)]),
|
|
11608
11609
|
childPage: company.id
|
|
@@ -12705,6 +12706,58 @@ _chunk7QVYU63Ejs.__name.call(void 0, InnerAuthContainer, "InnerAuthContainer");
|
|
|
12705
12706
|
|
|
12706
12707
|
|
|
12707
12708
|
|
|
12709
|
+
// src/features/auth/components/buttons/GoogleSignInButton.tsx
|
|
12710
|
+
|
|
12711
|
+
function GoogleSignInButton() {
|
|
12712
|
+
if (!_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, )) {
|
|
12713
|
+
return null;
|
|
12714
|
+
}
|
|
12715
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/google`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12716
|
+
Button,
|
|
12717
|
+
{
|
|
12718
|
+
className: "w-full bg-white hover:bg-gray-50 text-gray-700 border border-gray-300",
|
|
12719
|
+
variant: "outline",
|
|
12720
|
+
"data-testid": "page-login-button-google",
|
|
12721
|
+
children: [
|
|
12722
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { className: "mr-2 h-5 w-5", viewBox: "0 0 24 24", children: [
|
|
12723
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12724
|
+
"path",
|
|
12725
|
+
{
|
|
12726
|
+
fill: "#4285F4",
|
|
12727
|
+
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
12728
|
+
}
|
|
12729
|
+
),
|
|
12730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12731
|
+
"path",
|
|
12732
|
+
{
|
|
12733
|
+
fill: "#34A853",
|
|
12734
|
+
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
12735
|
+
}
|
|
12736
|
+
),
|
|
12737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12738
|
+
"path",
|
|
12739
|
+
{
|
|
12740
|
+
fill: "#FBBC05",
|
|
12741
|
+
d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
12742
|
+
}
|
|
12743
|
+
),
|
|
12744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12745
|
+
"path",
|
|
12746
|
+
{
|
|
12747
|
+
fill: "#EA4335",
|
|
12748
|
+
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
12749
|
+
}
|
|
12750
|
+
)
|
|
12751
|
+
] }),
|
|
12752
|
+
"Sign in with Google"
|
|
12753
|
+
]
|
|
12754
|
+
}
|
|
12755
|
+
) });
|
|
12756
|
+
}
|
|
12757
|
+
_chunk7QVYU63Ejs.__name.call(void 0, GoogleSignInButton, "GoogleSignInButton");
|
|
12758
|
+
|
|
12759
|
+
// src/features/auth/components/details/LandingComponent.tsx
|
|
12760
|
+
|
|
12708
12761
|
function LandingComponent() {
|
|
12709
12762
|
const t = _nextintl.useTranslations.call(void 0, );
|
|
12710
12763
|
const { setComponentType } = useAuthContext();
|
|
@@ -12717,8 +12770,8 @@ function LandingComponent() {
|
|
|
12717
12770
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "flex w-full justify-center text-center text-sm", children: t(`common.description`) })
|
|
12718
12771
|
] }),
|
|
12719
12772
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "mt-4 flex w-full flex-col justify-between gap-y-4", children: [
|
|
12720
|
-
|
|
12721
|
-
|
|
12773
|
+
_chunkNPNKFWV2js.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12774
|
+
_chunkNPNKFWV2js.isRegistrationAllowed.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12722
12775
|
Link,
|
|
12723
12776
|
{
|
|
12724
12777
|
href: "#",
|
|
@@ -12729,7 +12782,8 @@ function LandingComponent() {
|
|
|
12729
12782
|
),
|
|
12730
12783
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: "#", className: "flex w-full justify-end", onClick: () => setComponentType(0 /* Login */), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: t(`auth.buttons.login`) }) })
|
|
12731
12784
|
] }),
|
|
12732
|
-
|
|
12785
|
+
_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
12786
|
+
_chunkNPNKFWV2js.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) })
|
|
12733
12787
|
] })
|
|
12734
12788
|
] });
|
|
12735
12789
|
}
|
|
@@ -12892,7 +12946,7 @@ _chunk7QVYU63Ejs.__name.call(void 0, ActivateAccount, "ActivateAccount");
|
|
|
12892
12946
|
|
|
12893
12947
|
function Cookies({ dehydratedAuth, page }) {
|
|
12894
12948
|
const { setUser } = useCurrentUserContext();
|
|
12895
|
-
const router =
|
|
12949
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
12896
12950
|
const [hasSaved, setHasSaved] = _react.useState.call(void 0, false);
|
|
12897
12951
|
_react.useEffect.call(void 0, () => {
|
|
12898
12952
|
if (hasSaved) return;
|
|
@@ -12996,7 +13050,7 @@ function Login() {
|
|
|
12996
13050
|
const { setUser } = useCurrentUserContext();
|
|
12997
13051
|
const { setComponentType } = useAuthContext();
|
|
12998
13052
|
const generateUrl = usePageUrlGenerator();
|
|
12999
|
-
const router =
|
|
13053
|
+
const router = _chunkNPNKFWV2js.useI18nRouter.call(void 0, );
|
|
13000
13054
|
const formSchema = _zod3.z.object({
|
|
13001
13055
|
email: _zod3.z.string().email({
|
|
13002
13056
|
message: t(`common.errors.invalid_email`)
|
|
@@ -13034,7 +13088,7 @@ function Login() {
|
|
|
13034
13088
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardDescription, { className: "text-sm", children: t(`auth.login_description`) })
|
|
13035
13089
|
] }),
|
|
13036
13090
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Form, { ...form, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: form.handleSubmit(onSubmit), children: [
|
|
13037
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children:
|
|
13091
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CardContent, { children: _chunkNPNKFWV2js.isInternalAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
13038
13092
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13039
13093
|
FormInput,
|
|
13040
13094
|
{
|
|
@@ -13059,7 +13113,8 @@ function Login() {
|
|
|
13059
13113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "mt-4 w-full", type: "submit", "data-testid": "form-login-button-submit", children: t(`auth.buttons.login`) })
|
|
13060
13114
|
] }) }),
|
|
13061
13115
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, CardFooter, { className: "flex w-full flex-col gap-y-4 mt-4", children: [
|
|
13062
|
-
|
|
13116
|
+
_chunkNPNKFWV2js.isGoogleAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GoogleSignInButton, {}),
|
|
13117
|
+
_chunkNPNKFWV2js.isDiscordAuthEnabled.call(void 0, ) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Link, { href: `${_chunkNPNKFWV2js.getApiUrl.call(void 0, )}auth/discord`, className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { className: "w-full", variant: `outline`, "data-testid": "page-login-button-initial-login", children: "Login with Discord" }) }),
|
|
13063
13118
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-row justify-between", children: [
|
|
13064
13119
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13065
13120
|
Link,
|
|
@@ -13670,7 +13725,7 @@ function RemoveUserFromRole({ role, user, refresh }) {
|
|
|
13670
13725
|
if (roleUsers.length > 1) setCanRemove(true);
|
|
13671
13726
|
}
|
|
13672
13727
|
_chunk7QVYU63Ejs.__name.call(void 0, checkCompanyAdminDeletability, "checkCompanyAdminDeletability");
|
|
13673
|
-
if (role.id !==
|
|
13728
|
+
if (role.id !== _chunkNPNKFWV2js.getRoleId.call(void 0, ).CompanyAdministrator) {
|
|
13674
13729
|
setCanRemove(true);
|
|
13675
13730
|
return;
|
|
13676
13731
|
}
|
|
@@ -15177,4 +15232,4 @@ _chunk7QVYU63Ejs.__name.call(void 0, OAuthConsentScreen, "OAuthConsentScreen");
|
|
|
15177
15232
|
|
|
15178
15233
|
|
|
15179
15234
|
exports.JsonApiProvider = JsonApiProvider; exports.useJsonApiGet = useJsonApiGet; exports.useJsonApiMutation = useJsonApiMutation; exports.useRehydration = useRehydration; exports.useRehydrationList = useRehydrationList; exports.TableGeneratorRegistry = TableGeneratorRegistry; exports.tableGeneratorRegistry = tableGeneratorRegistry; exports.usePageUrlGenerator = usePageUrlGenerator; exports.useUrlRewriter = useUrlRewriter; exports.useDataListRetriever = useDataListRetriever; exports.useDebounce = useDebounce; exports.registerTableGenerator = registerTableGenerator; exports.useTableGenerator = useTableGenerator; exports.useCustomD3Graph = useCustomD3Graph; exports.SocketContext = SocketContext; exports.SocketProvider = SocketProvider; exports.useSocketContext = useSocketContext; exports.CurrentUserProvider = CurrentUserProvider; exports.useCurrentUserContext = useCurrentUserContext; exports.HeaderChildrenProvider = HeaderChildrenProvider; exports.useHeaderChildren = useHeaderChildren; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AlertAction = AlertAction; exports.buttonVariants = buttonVariants; exports.Button = Button; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogMedia = AlertDialogMedia; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.Avatar = Avatar; exports.AvatarImage = AvatarImage; exports.AvatarFallback = AvatarFallback; exports.AvatarBadge = AvatarBadge; exports.AvatarGroup = AvatarGroup; exports.AvatarGroupCount = AvatarGroupCount; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.Calendar = Calendar; exports.CalendarDayButton = CalendarDayButton; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardAction = CardAction; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.useCarousel = useCarousel; exports.Carousel = Carousel; exports.CarouselContent = CarouselContent; exports.CarouselItem = CarouselItem; exports.CarouselPrevious = CarouselPrevious; exports.CarouselNext = CarouselNext; exports.ChartContainer = ChartContainer; exports.ChartStyle = ChartStyle; exports.ChartTooltip = ChartTooltip; exports.ChartTooltipContent = ChartTooltipContent; exports.ChartLegend = ChartLegend; exports.ChartLegendContent = ChartLegendContent; exports.Checkbox = Checkbox; exports.Collapsible = Collapsible; exports.CollapsibleTrigger = CollapsibleTrigger; exports.CollapsibleContent = CollapsibleContent; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.Input = Input; exports.Textarea = Textarea; exports.InputGroup = InputGroup; exports.InputGroupAddon = InputGroupAddon; exports.InputGroupButton = InputGroupButton; exports.InputGroupText = InputGroupText; exports.InputGroupInput = InputGroupInput; exports.InputGroupTextarea = InputGroupTextarea; exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandInput = CommandInput; exports.CommandList = CommandList; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandSeparator = CommandSeparator; exports.CommandItem = CommandItem; exports.CommandShortcut = CommandShortcut; exports.ContextMenu = ContextMenu; exports.ContextMenuPortal = ContextMenuPortal; exports.ContextMenuTrigger = ContextMenuTrigger; exports.ContextMenuContent = ContextMenuContent; exports.ContextMenuGroup = ContextMenuGroup; exports.ContextMenuLabel = ContextMenuLabel; exports.ContextMenuItem = ContextMenuItem; exports.ContextMenuSub = ContextMenuSub; exports.ContextMenuSubTrigger = ContextMenuSubTrigger; exports.ContextMenuSubContent = ContextMenuSubContent; exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem; exports.ContextMenuRadioGroup = ContextMenuRadioGroup; exports.ContextMenuRadioItem = ContextMenuRadioItem; exports.ContextMenuSeparator = ContextMenuSeparator; exports.ContextMenuShortcut = ContextMenuShortcut; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerPortal = DrawerPortal; exports.DrawerClose = DrawerClose; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerFooter = DrawerFooter; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DropdownMenu = DropdownMenu; exports.DropdownMenuPortal = DropdownMenuPortal; exports.DropdownMenuTrigger = DropdownMenuTrigger; exports.DropdownMenuContent = DropdownMenuContent; exports.DropdownMenuGroup = DropdownMenuGroup; exports.DropdownMenuLabel = DropdownMenuLabel; exports.DropdownMenuItem = DropdownMenuItem; exports.DropdownMenuSub = DropdownMenuSub; exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger; exports.DropdownMenuSubContent = DropdownMenuSubContent; exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem; exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup; exports.DropdownMenuRadioItem = DropdownMenuRadioItem; exports.DropdownMenuSeparator = DropdownMenuSeparator; exports.DropdownMenuShortcut = DropdownMenuShortcut; exports.Label = Label; exports.Separator = Separator; exports.FieldSet = FieldSet; exports.FieldLegend = FieldLegend; exports.FieldGroup = FieldGroup; exports.Field = Field; exports.FieldContent = FieldContent; exports.FieldLabel = FieldLabel; exports.FieldTitle = FieldTitle; exports.FieldDescription = FieldDescription; exports.FieldSeparator = FieldSeparator; exports.FieldError = FieldError; exports.Form = Form; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.InputOTP = InputOTP; exports.InputOTPGroup = InputOTPGroup; exports.InputOTPSlot = InputOTPSlot; exports.InputOTPSeparator = InputOTPSeparator; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuPositioner = NavigationMenuPositioner; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.Popover = Popover; exports.PopoverTrigger = PopoverTrigger; exports.PopoverContent = PopoverContent; exports.PopoverHeader = PopoverHeader; exports.PopoverTitle = PopoverTitle; exports.PopoverDescription = PopoverDescription; exports.Progress = Progress; exports.ProgressTrack = ProgressTrack; exports.ProgressIndicator = ProgressIndicator; exports.ProgressLabel = ProgressLabel; exports.ProgressValue = ProgressValue; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.ResizablePanelGroup = ResizablePanelGroup; exports.ResizablePanel = ResizablePanel; exports.ResizableHandle = ResizableHandle; exports.ScrollArea = ScrollArea; exports.ScrollBar = ScrollBar; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Skeleton = Skeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip2; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.useSidebar = useSidebar; exports.SidebarProvider = SidebarProvider; exports.Sidebar = Sidebar; exports.SidebarTrigger = SidebarTrigger; exports.SidebarRail = SidebarRail; exports.SidebarInset = SidebarInset; exports.SidebarInput = SidebarInput; exports.SidebarHeader = SidebarHeader; exports.SidebarFooter = SidebarFooter; exports.SidebarSeparator = SidebarSeparator; exports.SidebarContent = SidebarContent; exports.SidebarGroup = SidebarGroup; exports.SidebarGroupLabel = SidebarGroupLabel; exports.SidebarGroupAction = SidebarGroupAction; exports.SidebarGroupContent = SidebarGroupContent; exports.SidebarMenu = SidebarMenu; exports.SidebarMenuItem = SidebarMenuItem; exports.SidebarMenuButton = SidebarMenuButton; exports.SidebarMenuAction = SidebarMenuAction; exports.SidebarMenuBadge = SidebarMenuBadge; exports.SidebarMenuSkeleton = SidebarMenuSkeleton; exports.SidebarMenuSub = SidebarMenuSub; exports.SidebarMenuSubItem = SidebarMenuSubItem; exports.SidebarMenuSubButton = SidebarMenuSubButton; exports.Slider = Slider; exports.Toaster = Toaster; exports.Switch = Switch; exports.Table = Table; exports.TableHeader = TableHeader; exports.TableBody = TableBody; exports.TableFooter = TableFooter; exports.TableRow = TableRow; exports.TableHead = TableHead; exports.TableCell = TableCell; exports.TableCaption = TableCaption; exports.Tabs = Tabs; exports.tabsListVariants = tabsListVariants; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.KanbanRoot = KanbanRoot; exports.KanbanBoard = KanbanBoard; exports.KanbanColumn = KanbanColumn; exports.KanbanColumnHandle = KanbanColumnHandle; exports.KanbanItem = KanbanItem; exports.KanbanItemHandle = KanbanItemHandle; exports.KanbanOverlay = KanbanOverlay; exports.Link = Link; exports.MultiSelect = MultiSelect; exports.BreadcrumbNavigation = BreadcrumbNavigation; exports.ContentTitle = ContentTitle; exports.SharedProvider = SharedProvider; exports.useSharedContext = useSharedContext; exports.CompanyDetails = CompanyDetails; exports.TokenStatusIndicator = TokenStatusIndicator; exports.Header = Header; exports.ModeToggleSwitch = ModeToggleSwitch; exports.PageSection = PageSection; exports.recentPagesAtom = recentPagesAtom; exports.RecentPagesNavigator = RecentPagesNavigator; exports.PageContainer = PageContainer; exports.ReactMarkdownContainer = ReactMarkdownContainer; exports.TabsContainer = TabsContainer; exports.AttributeElement = AttributeElement; exports.UserDetails = UserDetails; exports.UserAvatar = UserAvatar; exports.UserIndexDetails = UserIndexDetails; exports.UserContainer = UserContainer; exports.UserIndexContainer = UserIndexContainer; exports.UsersListContainer = UsersListContainer; exports.AdminUsersList = AdminUsersList; exports.CompanyUsersList = CompanyUsersList; exports.ContributorsList = ContributorsList; exports.RelevantUsersList = RelevantUsersList; exports.RoleUsersList = RoleUsersList; exports.UserListInAdd = UserListInAdd; exports.UsersList = UsersList; exports.UsersListByContentIds = UsersListByContentIds; exports.AllowedUsersDetails = AllowedUsersDetails; exports.ErrorDetails = ErrorDetails; exports.errorToast = errorToast; exports.BlockNoteEditorContainer = BlockNoteEditorContainer; exports.CommonAssociationTrigger = CommonAssociationTrigger; exports.CommonAssociationCommandDialog = CommonAssociationCommandDialog; exports.triggerAssociationToast = triggerAssociationToast; exports.CommonDeleter = CommonDeleter; exports.CommonEditorButtons = CommonEditorButtons; exports.CommonEditorHeader = CommonEditorHeader; exports.CommonEditorTrigger = CommonEditorTrigger; exports.DatePickerPopover = DatePickerPopover; exports.DateRangeSelector = DateRangeSelector; exports.useFileUpload = useFileUpload; exports.FileUploader = FileUploader; exports.FileUploaderContent = FileUploaderContent; exports.FileUploaderItem = FileUploaderItem; exports.FileInput = FileInput; exports.FormFieldWrapper = FormFieldWrapper; exports.FormCheckbox = FormCheckbox; exports.FormDate = FormDate; exports.FormDateTime = FormDateTime; exports.FormInput = FormInput; exports.PasswordInput = PasswordInput; exports.FormPassword = FormPassword; exports.FormPlaceAutocomplete = FormPlaceAutocomplete; exports.FormSelect = FormSelect; exports.FormSlider = FormSlider; exports.FormSwitch = FormSwitch; exports.FormTextarea = FormTextarea; exports.GdprConsentCheckbox = GdprConsentCheckbox; exports.FormFeatures = FormFeatures; exports.PageContainerContentDetails = PageContainerContentDetails; exports.PageContentContainer = PageContentContainer; exports.cellComponent = cellComponent; exports.cellDate = cellDate; exports.cellId = cellId; exports.cellLink = cellLink; exports.cellUrl = cellUrl; exports.ContentTableSearch = ContentTableSearch; exports.ContentListTable = ContentListTable; exports.GdprConsentSection = GdprConsentSection; exports.AuthContainer = AuthContainer; exports.LandingComponent = LandingComponent; exports.AcceptInvitation = AcceptInvitation; exports.ActivateAccount = ActivateAccount; exports.Cookies = Cookies; exports.ForgotPassword = ForgotPassword; exports.Login = Login; exports.Logout = Logout; exports.RefreshUser = RefreshUser; exports.ResetPassword = ResetPassword; exports.AdminCompanyContainer = AdminCompanyContainer; exports.CompanyContainer = CompanyContainer; exports.CompanyConfigurationSecurityForm = CompanyConfigurationSecurityForm; exports.CompanyConfigurationEditor = CompanyConfigurationEditor; exports.CompanyDeleter = CompanyDeleter; exports.CompanyEditor = CompanyEditor; exports.CompaniesList = CompaniesList; exports.ContentsList = ContentsList; exports.ContentsListById = ContentsListById; exports.RelevantContentsList = RelevantContentsList; exports.NotificationErrorBoundary = NotificationErrorBoundary; exports.generateNotificationData = generateNotificationData; exports.NotificationToast = NotificationToast; exports.NotificationMenuItem = NotificationMenuItem; exports.NotificationContextProvider = NotificationContextProvider; exports.useNotificationContext = useNotificationContext; exports.NotificationsList = NotificationsList; exports.NotificationsListContainer = NotificationsListContainer; exports.NotificationModal = NotificationModal; exports.PushNotificationProvider = PushNotificationProvider; exports.RoleProvider = RoleProvider; exports.useRoleContext = useRoleContext; exports.RoleDetails = RoleDetails; exports.RoleContainer = RoleContainer; exports.FormRoles = FormRoles; exports.RemoveUserFromRole = RemoveUserFromRole; exports.UserRoleAdd = UserRoleAdd; exports.useRoleTableStructure = useRoleTableStructure; exports.RolesList = RolesList; exports.UserRolesList = UserRolesList; exports.OAuthRedirectUriInput = OAuthRedirectUriInput; exports.OAuthScopeSelector = OAuthScopeSelector; exports.OAuthClientSecretDisplay = OAuthClientSecretDisplay; exports.OAuthClientCard = OAuthClientCard; exports.OAuthClientList = OAuthClientList; exports.OAuthClientForm = OAuthClientForm; exports.OAuthClientDetail = OAuthClientDetail; exports.OAuthConsentHeader = OAuthConsentHeader; exports.OAuthScopeList = OAuthScopeList; exports.OAuthConsentActions = OAuthConsentActions; exports.useOAuthConsent = useOAuthConsent; exports.OAuthConsentScreen = OAuthConsentScreen; exports.AddUserToRole = AddUserToRole; exports.UserAvatarEditor = UserAvatarEditor; exports.UserDeleter = UserDeleter; exports.UserEditor = UserEditor; exports.UserMultiSelect = UserMultiSelect; exports.UserReactivator = UserReactivator; exports.UserResentInvitationEmail = UserResentInvitationEmail; exports.UserSelector = UserSelector; exports.UserProvider = UserProvider; exports.useUserContext = useUserContext; exports.CompanyProvider = CompanyProvider; exports.useCompanyContext = useCompanyContext; exports.CommonProvider = CommonProvider; exports.useCommonContext = useCommonContext; exports.useNotificationSync = useNotificationSync; exports.usePageTracker = usePageTracker; exports.useSocket = useSocket; exports.useSubscriptionStatus = useSubscriptionStatus; exports.useUserSearch = useUserSearch; exports.useUserTableStructure = useUserTableStructure; exports.useContentTableStructure = useContentTableStructure; exports.useOAuthClients = useOAuthClients; exports.useOAuthClient = useOAuthClient;
|
|
15180
|
-
//# sourceMappingURL=chunk-
|
|
15235
|
+
//# sourceMappingURL=chunk-HIF7DYR3.js.map
|