@raystack/frontier 0.83.0 → 0.84.1
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/package.json +2 -2
- package/react/dist/index.js +744 -692
- package/react/dist/index.mjs +626 -564
package/react/dist/index.mjs
CHANGED
|
@@ -372,8 +372,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
|
|
|
372
372
|
// react/components/avatar-upload/index.tsx
|
|
373
373
|
import "react-image-crop/dist/ReactCrop.css";
|
|
374
374
|
|
|
375
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
376
|
-
var digest = "
|
|
375
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-0QVK1SaAZAp0/core/react/components/avatar-upload/avatar-upload.module.css.js
|
|
376
|
+
var digest = "c4b7b74fb27d901269e404efdc37f7b2067692fa6f9dd65e3135955419a55e7b";
|
|
377
377
|
var css = `._container_1k4dc_1 {
|
|
378
378
|
display: flex;
|
|
379
379
|
flex-direction: column;
|
|
@@ -644,7 +644,7 @@ AvatarUpload.displayName = "AvatarUpload";
|
|
|
644
644
|
import { Flex as Flex2 } from "@raystack/apsara";
|
|
645
645
|
import { cva } from "class-variance-authority";
|
|
646
646
|
|
|
647
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
647
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-9LpHep8PvYE9/core/react/components/container.module.css.js
|
|
648
648
|
var digest2 = "b9a2f372a1ac11fa286c633e640840cce907b7d5e6813cd5ccaf35c745300ea5";
|
|
649
649
|
var css2 = `._container_1e0de_1 {
|
|
650
650
|
min-width: 220px;
|
|
@@ -745,7 +745,7 @@ import { Headline, Flex as Flex3 } from "@raystack/apsara";
|
|
|
745
745
|
// react/assets/logo.png
|
|
746
746
|
var logo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAABZvElEQVR4nNS9C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3CVWmlLrQUZjsinoSvJD3WpP87Iuj+1FdXSikao8xxKaHwcgc1I/iI4LQNPHxvhXWQZqAQTDHjzQ7acFBg7dZpe2B5ByGrAbWc+ggev4JvGdnrB2uETd6WyQJR1EICIo3ZUlYFULX3FaYC/jQXW0pNN1BrrlVzGxvrH1SiLxwlZkIHQbm7N/MGHHJwyJDOBzSAPAQyH2yEfrZdjVJQD27gX+hoj+cKe/JAxoif4aafLJpZqORXIHHuXLZQnC8drrqRK7MyTil4bTkL28SbmwXEpGCIBUk7zsQiYZgkg7gwg8KI6KauKzGpCGEzaCNDoiUPrAIkBqGOD/DwAA//8N10+QXsh1VAAAAABJRU5ErkJggg==";
|
|
747
747
|
|
|
748
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
748
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Yj38JEtvj8a3/core/react/components/header.module.css.js
|
|
749
749
|
var digest3 = "173fa24b9ec28d4c9839c3afd6251e646bf2b2e2e7b6c6153be511f03bbee3c6";
|
|
750
750
|
var css3 = `._container_1op46_1 {
|
|
751
751
|
min-width: 220px;
|
|
@@ -5144,7 +5144,7 @@ var FrontierContextProvider = ({
|
|
|
5144
5144
|
config,
|
|
5145
5145
|
customFetch
|
|
5146
5146
|
}) => {
|
|
5147
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
5147
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5148
5148
|
const [activeOrganization, setActiveOrganization] = useState2();
|
|
5149
5149
|
const [isActiveOrganizationLoading, setIsActiveOrganizationLoading] = useState2(false);
|
|
5150
5150
|
const frontierClient = useMemo(
|
|
@@ -5227,10 +5227,9 @@ var FrontierContextProvider = ({
|
|
|
5227
5227
|
} = useConnectQuery(
|
|
5228
5228
|
FrontierServiceQueries.listSubscriptions,
|
|
5229
5229
|
create3(ListSubscriptionsRequestSchema, {
|
|
5230
|
-
orgId: (_g = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _g : ""
|
|
5231
|
-
billingId: (_h = billingAccount == null ? void 0 : billingAccount.id) != null ? _h : ""
|
|
5230
|
+
orgId: (_g = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _g : ""
|
|
5232
5231
|
}),
|
|
5233
|
-
{ enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
5232
|
+
{ enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) }
|
|
5234
5233
|
);
|
|
5235
5234
|
const subscriptions = (subscriptionsData == null ? void 0 : subscriptionsData.subscriptions) || [];
|
|
5236
5235
|
const { data: plansData, isLoading: isAllPlansLoading } = useConnectQuery(
|
|
@@ -5259,7 +5258,7 @@ var FrontierContextProvider = ({
|
|
|
5259
5258
|
const basePlan = useMemo(() => {
|
|
5260
5259
|
var _a2;
|
|
5261
5260
|
return ((_a2 = config == null ? void 0 : config.billing) == null ? void 0 : _a2.basePlan) ? enrichBasePlan(config.billing.basePlan) : void 0;
|
|
5262
|
-
}, [(
|
|
5261
|
+
}, [(_h = config == null ? void 0 : config.billing) == null ? void 0 : _h.basePlan]);
|
|
5263
5262
|
return /* @__PURE__ */ jsx4(
|
|
5264
5263
|
FrontierContext.Provider,
|
|
5265
5264
|
{
|
|
@@ -5445,8 +5444,8 @@ import {
|
|
|
5445
5444
|
useState as useState4
|
|
5446
5445
|
} from "react";
|
|
5447
5446
|
|
|
5448
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5449
|
-
var digest4 = "
|
|
5447
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-qGZZLB2tGvrZ/core/react/components/onboarding/onboarding.module.css.js
|
|
5448
|
+
var digest4 = "95867c539db3844f2fd14b80185734c022aae7a3c007ab8262dd5a2d95fbcf02";
|
|
5450
5449
|
var css4 = `._container_149m6_1 {
|
|
5451
5450
|
width: 100%;
|
|
5452
5451
|
}
|
|
@@ -5747,8 +5746,8 @@ var shouldShowComponent = (permissions = {}, permisionsRequired) => {
|
|
|
5747
5746
|
return permissions[permisionsRequired] === true;
|
|
5748
5747
|
};
|
|
5749
5748
|
|
|
5750
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5751
|
-
var digest5 = "
|
|
5749
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-UWg328HgbzKD/core/react/components/onboarding/onboarding.module.css.js
|
|
5750
|
+
var digest5 = "69e8b26689e46543f8cecfce85ca59d8b4ed443949343d40644fb02cada984d4";
|
|
5752
5751
|
var css5 = `._container_149m6_1 {
|
|
5753
5752
|
width: 100%;
|
|
5754
5753
|
}
|
|
@@ -5891,8 +5890,8 @@ var OIDCButton = ({ onClick, provider }) => /* @__PURE__ */ jsxs5(
|
|
|
5891
5890
|
}
|
|
5892
5891
|
);
|
|
5893
5892
|
|
|
5894
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5895
|
-
var digest6 = "
|
|
5893
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-n0eaTWvYPpzI/core/react/components/onboarding/onboarding.module.css.js
|
|
5894
|
+
var digest6 = "778adf363e6ac122dfd21216679be5b6bdc493906a0a175644065d652b99472c";
|
|
5896
5895
|
var css6 = `._container_149m6_1 {
|
|
5897
5896
|
width: 100%;
|
|
5898
5897
|
}
|
|
@@ -6085,8 +6084,8 @@ var SignIn = (_a) => {
|
|
|
6085
6084
|
import { Link as Link3, Text as Text6, Flex as Flex7 } from "@raystack/apsara";
|
|
6086
6085
|
import { useCallback as useCallback5 } from "react";
|
|
6087
6086
|
|
|
6088
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6089
|
-
var digest7 = "
|
|
6087
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-lFVPkZZEbSr2/core/react/components/onboarding/onboarding.module.css.js
|
|
6088
|
+
var digest7 = "be66f248f58e60c45488903841867c8f2d7f417e700a023cfb5ef20f3b15ffa8";
|
|
6090
6089
|
var css7 = `._container_149m6_1 {
|
|
6091
6090
|
width: 100%;
|
|
6092
6091
|
}
|
|
@@ -6284,7 +6283,7 @@ import { useQuery as useQuery3, useMutation as useMutation2, createConnectQueryK
|
|
|
6284
6283
|
import { useQueryClient as useQueryClient2 } from "@tanstack/react-query";
|
|
6285
6284
|
import { create as create4 } from "@bufbuild/protobuf";
|
|
6286
6285
|
import { FrontierServiceQueries as FrontierServiceQueries3, CreateCurrentUserPreferencesRequestSchema } from "@raystack/proton/frontier";
|
|
6287
|
-
import { useCallback as useCallback6 } from "react";
|
|
6286
|
+
import { useCallback as useCallback6, useMemo as useMemo2 } from "react";
|
|
6288
6287
|
function getFormattedData(preferences = []) {
|
|
6289
6288
|
return preferences.reduce((acc, preference) => {
|
|
6290
6289
|
if (preference == null ? void 0 : preference.name)
|
|
@@ -6298,20 +6297,20 @@ function usePreferences({
|
|
|
6298
6297
|
const queryClient2 = useQueryClient2();
|
|
6299
6298
|
const transport = useTransport2();
|
|
6300
6299
|
const {
|
|
6301
|
-
data:
|
|
6300
|
+
data: preferencesData,
|
|
6302
6301
|
isLoading: isFetchingPreferences,
|
|
6303
6302
|
refetch
|
|
6304
6303
|
} = useQuery3(
|
|
6305
6304
|
FrontierServiceQueries3.listCurrentUserPreferences,
|
|
6306
6305
|
{},
|
|
6307
6306
|
{
|
|
6308
|
-
enabled: autoFetch
|
|
6309
|
-
select: (data) => {
|
|
6310
|
-
var _a;
|
|
6311
|
-
return getFormattedData((_a = data == null ? void 0 : data.preferences) != null ? _a : []);
|
|
6312
|
-
}
|
|
6307
|
+
enabled: autoFetch
|
|
6313
6308
|
}
|
|
6314
6309
|
);
|
|
6310
|
+
const preferences = useMemo2(() => {
|
|
6311
|
+
var _a;
|
|
6312
|
+
return getFormattedData((_a = preferencesData == null ? void 0 : preferencesData.preferences) != null ? _a : []);
|
|
6313
|
+
}, [preferencesData]);
|
|
6315
6314
|
const {
|
|
6316
6315
|
mutateAsync: updatePreferencesMutation,
|
|
6317
6316
|
isPending: isUpdatingPreferences
|
|
@@ -6358,8 +6357,8 @@ function usePreferences({
|
|
|
6358
6357
|
};
|
|
6359
6358
|
}
|
|
6360
6359
|
|
|
6361
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6362
|
-
var digest8 = "
|
|
6360
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Pbnn9KeVkjMi/core/react/components/onboarding/onboarding.module.css.js
|
|
6361
|
+
var digest8 = "ab3f6aa3127fd38ebdf6495307e6acc866f0b62544cfef81422548e178fd3811";
|
|
6363
6362
|
var css8 = `._container_149m6_1 {
|
|
6364
6363
|
width: 100%;
|
|
6365
6364
|
}
|
|
@@ -6571,8 +6570,8 @@ import { CreateProspectPublicRequestSchema } from "@raystack/proton/frontier";
|
|
|
6571
6570
|
// react/assets/check-circle.svg
|
|
6572
6571
|
var check_circle_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <g id="Check circle">%0A <path id="Vector" fill-rule="evenodd" clip-rule="evenodd"%0A d="M1.5 8C1.5 4.41 4.41 1.5 8 1.5C11.59 1.5 14.5 4.41 14.5 8C14.5 11.59 11.59 14.5 8 14.5C4.41 14.5 1.5 11.59 1.5 8ZM10.4067 6.79067C10.4467 6.73737 10.4756 6.67661 10.4918 6.61197C10.508 6.54732 10.5111 6.48009 10.5009 6.41424C10.4907 6.34838 10.4675 6.28522 10.4326 6.22847C10.3976 6.17171 10.3517 6.12252 10.2975 6.08377C10.2433 6.04502 10.1819 6.0175 10.1169 6.00282C10.0519 5.98814 9.98459 5.98661 9.91899 5.99831C9.85338 6.01001 9.79078 6.0347 9.73485 6.07094C9.67893 6.10718 9.63081 6.15423 9.59333 6.20933L7.436 9.22933L6.35333 8.14667C6.25855 8.05835 6.13319 8.01026 6.00365 8.01255C5.87412 8.01484 5.75053 8.06731 5.65892 8.15892C5.56731 8.25053 5.51484 8.37412 5.51255 8.50365C5.51026 8.63319 5.55835 8.75855 5.64667 8.85333L7.14667 10.3533C7.19799 10.4046 7.25987 10.4441 7.32799 10.4691C7.39612 10.4941 7.46886 10.5039 7.54118 10.498C7.61349 10.492 7.68364 10.4704 7.74675 10.4346C7.80987 10.3988 7.86443 10.3497 7.90667 10.2907L10.4067 6.79067Z"%0A fill="%2330A46C" />%0A </g>%0A</svg>';
|
|
6573
6572
|
|
|
6574
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6575
|
-
var digest9 = "
|
|
6573
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-HANbGIi73UeL/core/react/components/onboarding/onboarding.module.css.js
|
|
6574
|
+
var digest9 = "8450fa15ffe179679d41798ab0033345b50bbee277ed50b1fe16d798295754c2";
|
|
6576
6575
|
var css9 = `._container_149m6_1 {
|
|
6577
6576
|
width: 100%;
|
|
6578
6577
|
}
|
|
@@ -6850,8 +6849,8 @@ import * as yup4 from "yup";
|
|
|
6850
6849
|
import { create as create6 } from "@bufbuild/protobuf";
|
|
6851
6850
|
import { CreateOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
6852
6851
|
|
|
6853
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6854
|
-
var digest10 = "
|
|
6852
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-HYY8b0QRzqmi/core/react/components/organization/organization.module.css.js
|
|
6853
|
+
var digest10 = "5c2d31d0d8cc718667767f66f07293afb5aeef5432ec6f117b01f457b3bfafb8";
|
|
6855
6854
|
var css10 = `._createContainer_ipia2_1 {
|
|
6856
6855
|
margin: auto;
|
|
6857
6856
|
width: 100%;
|
|
@@ -7136,12 +7135,13 @@ import {
|
|
|
7136
7135
|
toast as toast3
|
|
7137
7136
|
} from "@raystack/apsara";
|
|
7138
7137
|
import { Outlet, useNavigate as useNavigate2 } from "@tanstack/react-router";
|
|
7139
|
-
import { useEffect as useEffect2, useMemo as
|
|
7138
|
+
import { useEffect as useEffect2, useMemo as useMemo5 } from "react";
|
|
7140
7139
|
|
|
7141
7140
|
// react/hooks/useOrganizationDomains.ts
|
|
7142
7141
|
import { useQuery as useQuery4 } from "@connectrpc/connect-query";
|
|
7143
7142
|
import { FrontierServiceQueries as FrontierServiceQueries4, ListOrganizationDomainsRequestSchema } from "@raystack/proton/frontier";
|
|
7144
7143
|
import { create as create7 } from "@bufbuild/protobuf";
|
|
7144
|
+
import { useMemo as useMemo3 } from "react";
|
|
7145
7145
|
var useOrganizationDomains = () => {
|
|
7146
7146
|
const { activeOrganization: organization } = useFrontier();
|
|
7147
7147
|
const {
|
|
@@ -7155,23 +7155,23 @@ var useOrganizationDomains = () => {
|
|
|
7155
7155
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
7156
7156
|
}),
|
|
7157
7157
|
{
|
|
7158
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
7159
|
-
select: (d) => {
|
|
7160
|
-
var _a;
|
|
7161
|
-
return (_a = d == null ? void 0 : d.domains) != null ? _a : [];
|
|
7162
|
-
}
|
|
7158
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
7163
7159
|
}
|
|
7164
7160
|
);
|
|
7161
|
+
const domains = useMemo3(() => {
|
|
7162
|
+
var _a;
|
|
7163
|
+
return (_a = domainsData == null ? void 0 : domainsData.domains) != null ? _a : [];
|
|
7164
|
+
}, [domainsData]);
|
|
7165
7165
|
return {
|
|
7166
7166
|
isFetching: isDomainsLoading,
|
|
7167
|
-
domains
|
|
7167
|
+
domains,
|
|
7168
7168
|
refetch: refetchDomains,
|
|
7169
7169
|
error: domainsError
|
|
7170
7170
|
};
|
|
7171
7171
|
};
|
|
7172
7172
|
|
|
7173
7173
|
// react/hooks/usePermissions.ts
|
|
7174
|
-
import { useMemo as
|
|
7174
|
+
import { useMemo as useMemo4 } from "react";
|
|
7175
7175
|
import { useQuery as useQuery5 } from "@connectrpc/connect-query";
|
|
7176
7176
|
import {
|
|
7177
7177
|
FrontierServiceQueries as FrontierServiceQueries5,
|
|
@@ -7180,7 +7180,7 @@ import {
|
|
|
7180
7180
|
} from "@raystack/proton/frontier";
|
|
7181
7181
|
import { create as create8 } from "@bufbuild/protobuf";
|
|
7182
7182
|
var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
7183
|
-
const protobufPermissions =
|
|
7183
|
+
const protobufPermissions = useMemo4(() => {
|
|
7184
7184
|
return permissions.map(
|
|
7185
7185
|
(permission) => create8(BatchCheckPermissionBodySchema, permission)
|
|
7186
7186
|
);
|
|
@@ -7190,7 +7190,7 @@ var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
|
7190
7190
|
create8(BatchCheckPermissionRequestSchema, { bodies: protobufPermissions }),
|
|
7191
7191
|
{ enabled: shouldCalled && permissions.length > 0 }
|
|
7192
7192
|
);
|
|
7193
|
-
const permissionsMap =
|
|
7193
|
+
const permissionsMap = useMemo4(() => {
|
|
7194
7194
|
var _a;
|
|
7195
7195
|
const pairs = (_a = data == null ? void 0 : data.pairs) != null ? _a : [];
|
|
7196
7196
|
if (!pairs.length)
|
|
@@ -7311,8 +7311,8 @@ var PageHeader = ({ title, description }) => {
|
|
|
7311
7311
|
] });
|
|
7312
7312
|
};
|
|
7313
7313
|
|
|
7314
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7315
|
-
var digest11 = "
|
|
7314
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-lw89IZkNtoTC/core/react/components/organization/styles.module.css.js
|
|
7315
|
+
var digest11 = "3f07595631e31f956979ae9cc03eaedb8acda047ac5a3aa320447c66c01e8a38";
|
|
7316
7316
|
var css11 = `._header_11okm_1 {
|
|
7317
7317
|
margin-bottom: var(--rs-space-9);
|
|
7318
7318
|
}
|
|
@@ -7355,8 +7355,8 @@ var css11 = `._header_11okm_1 {
|
|
|
7355
7355
|
})();
|
|
7356
7356
|
var styles_module_css_default = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
7357
7357
|
|
|
7358
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7359
|
-
var digest12 = "
|
|
7358
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-WDi5Mofqn4WV/core/react/components/organization/domain/domain.module.css.js
|
|
7359
|
+
var digest12 = "0ec9f21c229ec7e1aa832c9769f8aa6d46b4228dcc6510ec6fc618d903765e08";
|
|
7360
7360
|
var css12 = `._tableWrapper_jz6z1_1 {
|
|
7361
7361
|
display: flex;
|
|
7362
7362
|
flex-direction: column;
|
|
@@ -7399,6 +7399,7 @@ import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
|
7399
7399
|
function Domain() {
|
|
7400
7400
|
const { isFetching, domains, error: domainsError } = useOrganizationDomains();
|
|
7401
7401
|
const { activeOrganization: organization, config } = useFrontier();
|
|
7402
|
+
const t = useTerminology();
|
|
7402
7403
|
useEffect2(() => {
|
|
7403
7404
|
if (domainsError) {
|
|
7404
7405
|
toast3.error("Something went wrong", {
|
|
@@ -7407,7 +7408,7 @@ function Domain() {
|
|
|
7407
7408
|
}
|
|
7408
7409
|
}, [domainsError]);
|
|
7409
7410
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
7410
|
-
const listOfPermissionsToCheck =
|
|
7411
|
+
const listOfPermissionsToCheck = useMemo5(
|
|
7411
7412
|
() => [
|
|
7412
7413
|
{
|
|
7413
7414
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -7420,7 +7421,7 @@ function Domain() {
|
|
|
7420
7421
|
listOfPermissionsToCheck,
|
|
7421
7422
|
!!(organization == null ? void 0 : organization.id)
|
|
7422
7423
|
);
|
|
7423
|
-
const { canCreateDomain } =
|
|
7424
|
+
const { canCreateDomain } = useMemo5(() => {
|
|
7424
7425
|
return {
|
|
7425
7426
|
canCreateDomain: shouldShowComponent(
|
|
7426
7427
|
permissions,
|
|
@@ -7430,24 +7431,49 @@ function Domain() {
|
|
|
7430
7431
|
}, [permissions, resource]);
|
|
7431
7432
|
const isLoading = isFetching || isPermissionsFetching;
|
|
7432
7433
|
return /* @__PURE__ */ jsxs13(Flex13, { direction: "column", className: styles_module_css_default.pageWrapper, children: [
|
|
7433
|
-
/* @__PURE__ */ jsxs13(
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7434
|
+
/* @__PURE__ */ jsxs13(
|
|
7435
|
+
Flex13,
|
|
7436
|
+
{
|
|
7437
|
+
direction: "column",
|
|
7438
|
+
className: `${styles_module_css_default.container} ${styles_module_css_default.containerFlex}`,
|
|
7439
|
+
children: [
|
|
7440
|
+
/* @__PURE__ */ jsx16(
|
|
7441
|
+
Flex13,
|
|
7442
|
+
{
|
|
7443
|
+
direction: "row",
|
|
7444
|
+
justify: "between",
|
|
7445
|
+
align: "center",
|
|
7446
|
+
className: styles_module_css_default.header,
|
|
7447
|
+
children: /* @__PURE__ */ jsx16(
|
|
7448
|
+
PageHeader,
|
|
7449
|
+
{
|
|
7450
|
+
title: "Allowed email domains",
|
|
7451
|
+
description: `Anyone with an email address at these domains is allowed to sign up
|
|
7452
|
+
for this ${t.organization({ case: "lower" })}.`
|
|
7453
|
+
}
|
|
7454
|
+
)
|
|
7455
|
+
}
|
|
7456
|
+
),
|
|
7457
|
+
/* @__PURE__ */ jsx16(
|
|
7458
|
+
Flex13,
|
|
7459
|
+
{
|
|
7460
|
+
direction: "column",
|
|
7461
|
+
gap: 9,
|
|
7462
|
+
className: styles_module_css_default.contentWrapper,
|
|
7463
|
+
children: /* @__PURE__ */ jsx16(
|
|
7464
|
+
Domains,
|
|
7465
|
+
{
|
|
7466
|
+
domains,
|
|
7467
|
+
isLoading,
|
|
7468
|
+
canCreateDomain,
|
|
7469
|
+
dateFormat: config == null ? void 0 : config.dateFormat
|
|
7470
|
+
}
|
|
7471
|
+
)
|
|
7472
|
+
}
|
|
7473
|
+
)
|
|
7474
|
+
]
|
|
7475
|
+
}
|
|
7476
|
+
),
|
|
7451
7477
|
/* @__PURE__ */ jsx16(Outlet, {})
|
|
7452
7478
|
] });
|
|
7453
7479
|
}
|
|
@@ -7458,7 +7484,7 @@ var Domains = ({
|
|
|
7458
7484
|
dateFormat
|
|
7459
7485
|
}) => {
|
|
7460
7486
|
const navigate = useNavigate2({ from: "/domains" });
|
|
7461
|
-
const columns =
|
|
7487
|
+
const columns = useMemo5(
|
|
7462
7488
|
() => getColumns({
|
|
7463
7489
|
canCreateDomain,
|
|
7464
7490
|
dateFormat: dateFormat || DEFAULT_DATE_FORMAT
|
|
@@ -7538,8 +7564,8 @@ import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
|
7538
7564
|
import { FrontierServiceQueries as FrontierServiceQueries6, CreateOrganizationDomainRequestSchema, ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema2 } from "@raystack/proton/frontier";
|
|
7539
7565
|
import { create as create9 } from "@bufbuild/protobuf";
|
|
7540
7566
|
|
|
7541
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7542
|
-
var digest13 = "
|
|
7567
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-NhX0Kukcq6ue/core/react/components/organization/organization.module.css.js
|
|
7568
|
+
var digest13 = "ff2bd9a7b8ca4c10a01bb88ae591c9197b3ab4a39d4ee9fac43b69dc01ae2623";
|
|
7543
7569
|
var css13 = `._createContainer_ipia2_1 {
|
|
7544
7570
|
margin: auto;
|
|
7545
7571
|
width: 100%;
|
|
@@ -7748,8 +7774,8 @@ var useOrganizationDomain = (domainId) => {
|
|
|
7748
7774
|
// react/components/organization/domain/verify-domain.tsx
|
|
7749
7775
|
import { create as create11 } from "@bufbuild/protobuf";
|
|
7750
7776
|
|
|
7751
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7752
|
-
var digest14 = "
|
|
7777
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Qb9cNqLTc6o7/core/react/components/organization/organization.module.css.js
|
|
7778
|
+
var digest14 = "2252a121067f0ccca762a1c5aa4707bd639f15b083434e05a40632f728b12ef0";
|
|
7753
7779
|
var css14 = `._createContainer_ipia2_1 {
|
|
7754
7780
|
margin: auto;
|
|
7755
7781
|
width: 100%;
|
|
@@ -7926,7 +7952,7 @@ var VerifyDomain = () => {
|
|
|
7926
7952
|
};
|
|
7927
7953
|
|
|
7928
7954
|
// react/components/organization/general/index.tsx
|
|
7929
|
-
import { useMemo as
|
|
7955
|
+
import { useMemo as useMemo6 } from "react";
|
|
7930
7956
|
import {
|
|
7931
7957
|
Button as Button13,
|
|
7932
7958
|
Tooltip as Tooltip3,
|
|
@@ -7952,13 +7978,20 @@ import {
|
|
|
7952
7978
|
import { useEffect as useEffect4 } from "react";
|
|
7953
7979
|
import { useForm as useForm6 } from "react-hook-form";
|
|
7954
7980
|
import * as yup6 from "yup";
|
|
7955
|
-
import {
|
|
7981
|
+
import {
|
|
7982
|
+
createConnectQueryKey as createConnectQueryKey5,
|
|
7983
|
+
useMutation as useMutation5,
|
|
7984
|
+
useTransport as useTransport5
|
|
7985
|
+
} from "@connectrpc/connect-query";
|
|
7956
7986
|
import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
|
7957
|
-
import {
|
|
7987
|
+
import {
|
|
7988
|
+
FrontierServiceQueries as FrontierServiceQueries9,
|
|
7989
|
+
UpdateOrganizationRequestSchema
|
|
7990
|
+
} from "@raystack/proton/frontier";
|
|
7958
7991
|
import { create as create12 } from "@bufbuild/protobuf";
|
|
7959
7992
|
|
|
7960
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7961
|
-
var digest15 = "
|
|
7993
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-SXu1LLQpd2XP/core/react/components/organization/general/general.module.css.js
|
|
7994
|
+
var digest15 = "be48244c1c662b7027259a4b79f1d0f8a89a9d27644068ceac181e351a3f6482";
|
|
7962
7995
|
var css15 = `._profileDescription_kt6u2_1 {
|
|
7963
7996
|
color: var(--rs-color-foreground-base-secondary);
|
|
7964
7997
|
}
|
|
@@ -8037,6 +8070,7 @@ var GeneralOrganization = ({
|
|
|
8037
8070
|
canUpdateWorkspace = false
|
|
8038
8071
|
}) => {
|
|
8039
8072
|
var _a, _b, _c;
|
|
8073
|
+
const t = useTerminology();
|
|
8040
8074
|
const { setActiveOrganization } = useFrontier();
|
|
8041
8075
|
const queryClient2 = useQueryClient5();
|
|
8042
8076
|
const transport = useTransport5();
|
|
@@ -8064,7 +8098,6 @@ var GeneralOrganization = ({
|
|
|
8064
8098
|
}
|
|
8065
8099
|
}
|
|
8066
8100
|
);
|
|
8067
|
-
const t = useTerminology();
|
|
8068
8101
|
const {
|
|
8069
8102
|
reset,
|
|
8070
8103
|
register,
|
|
@@ -8095,7 +8128,7 @@ var GeneralOrganization = ({
|
|
|
8095
8128
|
yield updateOrganization(req);
|
|
8096
8129
|
} catch (error) {
|
|
8097
8130
|
toast6.error("Something went wrong", {
|
|
8098
|
-
description: error instanceof Error ? error.message :
|
|
8131
|
+
description: error instanceof Error ? error.message : `Failed to update ${t.organization({ case: "lower" })}`
|
|
8099
8132
|
});
|
|
8100
8133
|
}
|
|
8101
8134
|
});
|
|
@@ -8112,9 +8145,7 @@ var GeneralOrganization = ({
|
|
|
8112
8145
|
subText: `Pick a logo for your ${t.organization({
|
|
8113
8146
|
case: "lower"
|
|
8114
8147
|
})}.`,
|
|
8115
|
-
initials: getInitials(
|
|
8116
|
-
(organization == null ? void 0 : organization.title) || (organization == null ? void 0 : organization.name)
|
|
8117
|
-
),
|
|
8148
|
+
initials: getInitials((organization == null ? void 0 : organization.title) || (organization == null ? void 0 : organization.name)),
|
|
8118
8149
|
disabled: !canUpdateWorkspace,
|
|
8119
8150
|
"data-test-id": "frontier-sdk-avatar-upload"
|
|
8120
8151
|
}
|
|
@@ -8166,8 +8197,8 @@ var GeneralOrganization = ({
|
|
|
8166
8197
|
] });
|
|
8167
8198
|
};
|
|
8168
8199
|
|
|
8169
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8170
|
-
var digest16 = "
|
|
8200
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-TeCqLlxbaaGx/core/react/components/organization/styles.module.css.js
|
|
8201
|
+
var digest16 = "3bf3500a53695afa2cf5085ae051846635723bed75b42a4021edc5267f31b374";
|
|
8171
8202
|
var css16 = `._header_11okm_1 {
|
|
8172
8203
|
margin-bottom: var(--rs-space-9);
|
|
8173
8204
|
}
|
|
@@ -8213,9 +8244,10 @@ var styles_module_css_default2 = { "header": "_header_11okm_1", "container": "_c
|
|
|
8213
8244
|
// react/components/organization/general/index.tsx
|
|
8214
8245
|
import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
8215
8246
|
function GeneralSetting() {
|
|
8247
|
+
const t = useTerminology();
|
|
8216
8248
|
const { activeOrganization: organization, isActiveOrganizationLoading } = useFrontier();
|
|
8217
8249
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
8218
|
-
const listOfPermissionsToCheck =
|
|
8250
|
+
const listOfPermissionsToCheck = useMemo6(() => {
|
|
8219
8251
|
return [
|
|
8220
8252
|
{
|
|
8221
8253
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -8231,7 +8263,7 @@ function GeneralSetting() {
|
|
|
8231
8263
|
listOfPermissionsToCheck,
|
|
8232
8264
|
!!(organization == null ? void 0 : organization.id)
|
|
8233
8265
|
);
|
|
8234
|
-
const { canUpdateWorkspace, canDeleteWorkspace } =
|
|
8266
|
+
const { canUpdateWorkspace, canDeleteWorkspace } = useMemo6(() => {
|
|
8235
8267
|
return {
|
|
8236
8268
|
canUpdateWorkspace: shouldShowComponent(
|
|
8237
8269
|
permissions,
|
|
@@ -8245,13 +8277,24 @@ function GeneralSetting() {
|
|
|
8245
8277
|
}, [permissions, resource]);
|
|
8246
8278
|
const isLoading = isActiveOrganizationLoading || isPermissionsFetching;
|
|
8247
8279
|
return /* @__PURE__ */ jsx20(Flex17, { direction: "column", style: { width: "100%" }, children: /* @__PURE__ */ jsxs17(Flex17, { direction: "column", className: styles_module_css_default2.container, children: [
|
|
8248
|
-
/* @__PURE__ */ jsx20(
|
|
8249
|
-
|
|
8280
|
+
/* @__PURE__ */ jsx20(
|
|
8281
|
+
Flex17,
|
|
8250
8282
|
{
|
|
8251
|
-
|
|
8252
|
-
|
|
8283
|
+
direction: "row",
|
|
8284
|
+
justify: "between",
|
|
8285
|
+
align: "center",
|
|
8286
|
+
className: styles_module_css_default2.header,
|
|
8287
|
+
children: /* @__PURE__ */ jsx20(
|
|
8288
|
+
PageHeader,
|
|
8289
|
+
{
|
|
8290
|
+
title: "General",
|
|
8291
|
+
description: `Basic configuration for the ${t.organization({
|
|
8292
|
+
case: "lower"
|
|
8293
|
+
})}.`
|
|
8294
|
+
}
|
|
8295
|
+
)
|
|
8253
8296
|
}
|
|
8254
|
-
)
|
|
8297
|
+
),
|
|
8255
8298
|
/* @__PURE__ */ jsxs17(Flex17, { direction: "column", gap: 9, children: [
|
|
8256
8299
|
/* @__PURE__ */ jsx20(
|
|
8257
8300
|
GeneralOrganization,
|
|
@@ -8320,11 +8363,14 @@ import { useNavigate as useNavigate6 } from "@tanstack/react-router";
|
|
|
8320
8363
|
import { useForm as useForm7 } from "react-hook-form";
|
|
8321
8364
|
import * as yup7 from "yup";
|
|
8322
8365
|
import { useMutation as useMutation6 } from "@connectrpc/connect-query";
|
|
8323
|
-
import {
|
|
8366
|
+
import {
|
|
8367
|
+
FrontierServiceQueries as FrontierServiceQueries10,
|
|
8368
|
+
DeleteOrganizationRequestSchema
|
|
8369
|
+
} from "@raystack/proton/frontier";
|
|
8324
8370
|
import { create as create13 } from "@bufbuild/protobuf";
|
|
8325
8371
|
|
|
8326
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8327
|
-
var digest17 = "
|
|
8372
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-zIsntEp05izp/core/react/components/organization/general/general.module.css.js
|
|
8373
|
+
var digest17 = "6202fb83dee16e46d3b070995eb5d02b0646519ecb343bc6cc8da5d520ed390d";
|
|
8328
8374
|
var css17 = `._profileDescription_kt6u2_1 {
|
|
8329
8375
|
color: var(--rs-color-foreground-base-secondary);
|
|
8330
8376
|
}
|
|
@@ -8393,7 +8439,7 @@ var general_module_css_default2 = { "profileDescription": "_profileDescription_k
|
|
|
8393
8439
|
// react/components/organization/general/delete.tsx
|
|
8394
8440
|
import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
8395
8441
|
var orgSchema = yup7.object({
|
|
8396
|
-
|
|
8442
|
+
title: yup7.string()
|
|
8397
8443
|
}).required();
|
|
8398
8444
|
var DeleteOrganization = () => {
|
|
8399
8445
|
var _a;
|
|
@@ -8417,9 +8463,9 @@ var DeleteOrganization = () => {
|
|
|
8417
8463
|
return __async(this, null, function* () {
|
|
8418
8464
|
if (!(organization == null ? void 0 : organization.id))
|
|
8419
8465
|
return;
|
|
8420
|
-
if (data.
|
|
8421
|
-
return setError("
|
|
8422
|
-
message: `The ${t.organization({ case: "lower" })}
|
|
8466
|
+
if (data.title !== organization.title)
|
|
8467
|
+
return setError("title", {
|
|
8468
|
+
message: `The ${t.organization({ case: "lower" })} name does not match`
|
|
8423
8469
|
});
|
|
8424
8470
|
try {
|
|
8425
8471
|
const req = create13(DeleteOrganizationRequestSchema, {
|
|
@@ -8430,12 +8476,12 @@ var DeleteOrganization = () => {
|
|
|
8430
8476
|
window.location = window.location.origin;
|
|
8431
8477
|
} catch (error) {
|
|
8432
8478
|
toast7.error("Something went wrong", {
|
|
8433
|
-
description: (error == null ? void 0 : error.message) ||
|
|
8479
|
+
description: (error == null ? void 0 : error.message) || `Failed to delete ${t.organization({ case: "capital" })}`
|
|
8434
8480
|
});
|
|
8435
8481
|
}
|
|
8436
8482
|
});
|
|
8437
8483
|
}
|
|
8438
|
-
const
|
|
8484
|
+
const title = watch("title", "");
|
|
8439
8485
|
return /* @__PURE__ */ jsx21(Dialog4, { open: true, children: /* @__PURE__ */ jsxs18(Dialog4.Content, { overlayClassName: general_module_css_default2.overlay, width: 600, children: [
|
|
8440
8486
|
/* @__PURE__ */ jsxs18(Dialog4.Header, { children: [
|
|
8441
8487
|
/* @__PURE__ */ jsxs18(Dialog4.Title, { children: [
|
|
@@ -8464,15 +8510,15 @@ var DeleteOrganization = () => {
|
|
|
8464
8510
|
/* @__PURE__ */ jsx21(
|
|
8465
8511
|
InputField7,
|
|
8466
8512
|
__spreadProps(__spreadValues({
|
|
8467
|
-
label: `Please
|
|
8513
|
+
label: `Please enter the name of the ${t.organization({
|
|
8468
8514
|
case: "lower"
|
|
8469
8515
|
})} to confirm.`,
|
|
8470
8516
|
size: "large",
|
|
8471
|
-
error: errors.
|
|
8472
|
-
}, register("
|
|
8517
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
8518
|
+
}, register("title")), {
|
|
8473
8519
|
placeholder: `Provide the ${t.organization({
|
|
8474
8520
|
case: "lower"
|
|
8475
|
-
})}
|
|
8521
|
+
})} name`
|
|
8476
8522
|
})
|
|
8477
8523
|
)
|
|
8478
8524
|
] }) }),
|
|
@@ -8499,7 +8545,7 @@ var DeleteOrganization = () => {
|
|
|
8499
8545
|
variant: "solid",
|
|
8500
8546
|
color: "danger",
|
|
8501
8547
|
type: "submit",
|
|
8502
|
-
disabled: !
|
|
8548
|
+
disabled: !title || !isAcknowledged,
|
|
8503
8549
|
style: { width: "100%" },
|
|
8504
8550
|
"data-test-id": "frontier-sdk-delete-organization-btn",
|
|
8505
8551
|
loading: isSubmitting,
|
|
@@ -8516,7 +8562,7 @@ var DeleteOrganization = () => {
|
|
|
8516
8562
|
};
|
|
8517
8563
|
|
|
8518
8564
|
// react/components/organization/members/index.tsx
|
|
8519
|
-
import { useEffect as useEffect6, useMemo as
|
|
8565
|
+
import { useEffect as useEffect6, useMemo as useMemo8 } from "react";
|
|
8520
8566
|
import {
|
|
8521
8567
|
Button as Button15,
|
|
8522
8568
|
Tooltip as Tooltip4,
|
|
@@ -8528,7 +8574,7 @@ import {
|
|
|
8528
8574
|
import { Outlet as Outlet3, useNavigate as useNavigate8, useRouterState } from "@tanstack/react-router";
|
|
8529
8575
|
|
|
8530
8576
|
// react/hooks/useOrganizationMembers.ts
|
|
8531
|
-
import { useCallback as useCallback7, useEffect as useEffect5, useState as useState7, useMemo as
|
|
8577
|
+
import { useCallback as useCallback7, useEffect as useEffect5, useState as useState7, useMemo as useMemo7 } from "react";
|
|
8532
8578
|
import { useQuery as useQuery7 } from "@connectrpc/connect-query";
|
|
8533
8579
|
import { FrontierServiceQueries as FrontierServiceQueries11, ListOrganizationUsersRequestSchema, ListRolesRequestSchema, ListOrganizationInvitationsRequestSchema } from "@raystack/proton/frontier";
|
|
8534
8580
|
import { create as create14 } from "@bufbuild/protobuf";
|
|
@@ -8556,17 +8602,17 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8556
8602
|
);
|
|
8557
8603
|
}
|
|
8558
8604
|
}, [organizationUsersData]);
|
|
8559
|
-
const { data:
|
|
8605
|
+
const { data: rolesData, isLoading: isRolesLoading, error: rolesError, refetch: refetchRoles } = useQuery7(
|
|
8560
8606
|
FrontierServiceQueries11.listRoles,
|
|
8561
8607
|
create14(ListRolesRequestSchema, {
|
|
8562
8608
|
state: "enabled",
|
|
8563
8609
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
8564
8610
|
}),
|
|
8565
8611
|
{
|
|
8566
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
8567
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
8612
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
8568
8613
|
}
|
|
8569
8614
|
);
|
|
8615
|
+
const roles = useMemo7(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
|
|
8570
8616
|
const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = useQuery7(
|
|
8571
8617
|
FrontierServiceQueries11.listOrganizationInvitations,
|
|
8572
8618
|
create14(ListOrganizationInvitationsRequestSchema, {
|
|
@@ -8584,7 +8630,7 @@ var useOrganizationMembers = ({ showInvitations = false }) => {
|
|
|
8584
8630
|
}, [invitationsData]);
|
|
8585
8631
|
const isFetching = isUsersLoading || isInvitationsLoading || isRolesLoading;
|
|
8586
8632
|
const hasError = usersError || rolesError || invitationsError;
|
|
8587
|
-
const updatedUsers =
|
|
8633
|
+
const updatedUsers = useMemo7(
|
|
8588
8634
|
() => [...users, ...invitations],
|
|
8589
8635
|
[users, invitations]
|
|
8590
8636
|
);
|
|
@@ -8817,8 +8863,8 @@ var MembersActions = ({
|
|
|
8817
8863
|
) }) : null;
|
|
8818
8864
|
};
|
|
8819
8865
|
|
|
8820
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8821
|
-
var digest18 = "
|
|
8866
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-i7vU9s3oubTc/core/react/components/organization/styles.module.css.js
|
|
8867
|
+
var digest18 = "3e156ac77960bf4284ae39a15d8e6b3c9c204b281cff2751ae4a98220e4d00a5";
|
|
8822
8868
|
var css18 = `._header_11okm_1 {
|
|
8823
8869
|
margin-bottom: var(--rs-space-9);
|
|
8824
8870
|
}
|
|
@@ -8861,8 +8907,8 @@ var css18 = `._header_11okm_1 {
|
|
|
8861
8907
|
})();
|
|
8862
8908
|
var styles_module_css_default3 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
8863
8909
|
|
|
8864
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8865
|
-
var digest19 = "
|
|
8910
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-x63Cp3HQA9rS/core/react/components/organization/members/members.module.css.js
|
|
8911
|
+
var digest19 = "2bd7f67aa8446c41083b3cd29ec98dc3468a702631a9a37ac1b06d5f5c18ce85";
|
|
8866
8912
|
var css19 = `._tableWrapper_dtm86_1 {
|
|
8867
8913
|
display: flex;
|
|
8868
8914
|
flex-direction: column;
|
|
@@ -8909,11 +8955,11 @@ import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
|
8909
8955
|
function WorkspaceMembers() {
|
|
8910
8956
|
const { activeOrganization: organization } = useFrontier();
|
|
8911
8957
|
const routerState = useRouterState();
|
|
8912
|
-
const isListRoute =
|
|
8958
|
+
const isListRoute = useMemo8(() => {
|
|
8913
8959
|
return routerState.location.pathname === "/members";
|
|
8914
8960
|
}, [routerState.location.pathname]);
|
|
8915
8961
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
8916
|
-
const listOfPermissionsToCheck =
|
|
8962
|
+
const listOfPermissionsToCheck = useMemo8(
|
|
8917
8963
|
() => [
|
|
8918
8964
|
{
|
|
8919
8965
|
permission: PERMISSIONS.InvitationCreatePermission,
|
|
@@ -8930,7 +8976,7 @@ function WorkspaceMembers() {
|
|
|
8930
8976
|
listOfPermissionsToCheck,
|
|
8931
8977
|
!!(organization == null ? void 0 : organization.id)
|
|
8932
8978
|
);
|
|
8933
|
-
const { canCreateInvite, canDeleteUser } =
|
|
8979
|
+
const { canCreateInvite, canDeleteUser } = useMemo8(() => {
|
|
8934
8980
|
return {
|
|
8935
8981
|
canCreateInvite: shouldShowComponent(
|
|
8936
8982
|
permissions,
|
|
@@ -8994,7 +9040,7 @@ var MembersTable = ({
|
|
|
8994
9040
|
refetch
|
|
8995
9041
|
}) => {
|
|
8996
9042
|
const navigate = useNavigate8({ from: "/members" });
|
|
8997
|
-
const columns =
|
|
9043
|
+
const columns = useMemo8(
|
|
8998
9044
|
() => getColumns2(organizationId, memberRoles, roles, canDeleteUser, refetch),
|
|
8999
9045
|
[organizationId, memberRoles, canDeleteUser, roles, refetch]
|
|
9000
9046
|
);
|
|
@@ -9076,15 +9122,15 @@ import {
|
|
|
9076
9122
|
} from "@raystack/apsara";
|
|
9077
9123
|
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
9078
9124
|
import { useNavigate as useNavigate9 } from "@tanstack/react-router";
|
|
9079
|
-
import { useCallback as useCallback8, useMemo as
|
|
9125
|
+
import { useCallback as useCallback8, useMemo as useMemo9 } from "react";
|
|
9080
9126
|
import { Controller as Controller2, useForm as useForm8 } from "react-hook-form";
|
|
9081
9127
|
import * as yup8 from "yup";
|
|
9082
9128
|
import { useMutation as useMutation8, useQuery as useQuery9 } from "@connectrpc/connect-query";
|
|
9083
9129
|
import { FrontierServiceQueries as FrontierServiceQueries13, CreateOrganizationInvitationRequestSchema, ListOrganizationRolesRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema2, ListOrganizationGroupsRequestSchema } from "@raystack/proton/frontier";
|
|
9084
9130
|
import { create as create16 } from "@bufbuild/protobuf";
|
|
9085
9131
|
|
|
9086
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9087
|
-
var digest20 = "
|
|
9132
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-wr1g9IICnDyE/core/react/components/organization/organization.module.css.js
|
|
9133
|
+
var digest20 = "53da8008be6d0798033c02f1bc7bca4bbf8af7f21d4fdf19bd1c14daf348d47c";
|
|
9088
9134
|
var css20 = `._createContainer_ipia2_1 {
|
|
9089
9135
|
margin: auto;
|
|
9090
9136
|
width: 100%;
|
|
@@ -9156,39 +9202,39 @@ var InviteMember = () => {
|
|
|
9156
9202
|
});
|
|
9157
9203
|
const navigate = useNavigate9({ from: "/members/modal" });
|
|
9158
9204
|
const { activeOrganization: organization } = useFrontier();
|
|
9159
|
-
const { data:
|
|
9205
|
+
const { data: orgRolesData, isLoading: isOrgRolesLoading, error: orgRolesError } = useQuery9(
|
|
9160
9206
|
FrontierServiceQueries13.listOrganizationRoles,
|
|
9161
9207
|
create16(ListOrganizationRolesRequestSchema, {
|
|
9162
9208
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
9163
9209
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
9164
9210
|
}),
|
|
9165
9211
|
{
|
|
9166
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9167
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
9212
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9168
9213
|
}
|
|
9169
9214
|
);
|
|
9170
|
-
const
|
|
9215
|
+
const orgRoles = useMemo9(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
|
|
9216
|
+
const { data: globalRolesData, isLoading: isGlobalRolesLoading, error: globalRolesError } = useQuery9(
|
|
9171
9217
|
FrontierServiceQueries13.listRoles,
|
|
9172
9218
|
create16(ListRolesRequestSchema2, {
|
|
9173
9219
|
scopes: [PERMISSIONS.OrganizationNamespace]
|
|
9174
9220
|
}),
|
|
9175
9221
|
{
|
|
9176
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9177
|
-
select: (data) => (data == null ? void 0 : data.roles) || []
|
|
9222
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9178
9223
|
}
|
|
9179
9224
|
);
|
|
9180
|
-
const
|
|
9225
|
+
const globalRoles = useMemo9(() => (globalRolesData == null ? void 0 : globalRolesData.roles) || [], [globalRolesData]);
|
|
9226
|
+
const { data: teamsData, isLoading: isGroupsLoading, error: groupsError } = useQuery9(
|
|
9181
9227
|
FrontierServiceQueries13.listOrganizationGroups,
|
|
9182
9228
|
create16(ListOrganizationGroupsRequestSchema, {
|
|
9183
9229
|
orgId: (organization == null ? void 0 : organization.id) || ""
|
|
9184
9230
|
}),
|
|
9185
9231
|
{
|
|
9186
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9187
|
-
select: (data) => (data == null ? void 0 : data.groups) || []
|
|
9232
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
9188
9233
|
}
|
|
9189
9234
|
);
|
|
9235
|
+
const teams = useMemo9(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
|
|
9190
9236
|
const isLoading = isOrgRolesLoading || isGlobalRolesLoading || isGroupsLoading;
|
|
9191
|
-
const roles =
|
|
9237
|
+
const roles = useMemo9(
|
|
9192
9238
|
() => [...globalRoles || [], ...orgRoles || []],
|
|
9193
9239
|
[globalRoles, orgRoles]
|
|
9194
9240
|
);
|
|
@@ -9232,7 +9278,7 @@ var InviteMember = () => {
|
|
|
9232
9278
|
}),
|
|
9233
9279
|
[createInvitation, organization == null ? void 0 : organization.id]
|
|
9234
9280
|
);
|
|
9235
|
-
const isDisabled =
|
|
9281
|
+
const isDisabled = useMemo9(() => {
|
|
9236
9282
|
const [emails, type] = values;
|
|
9237
9283
|
const emailList = (emails == null ? void 0 : emails.split(",").map((e) => e.trim()).filter((str) => str.length > 0)) || [];
|
|
9238
9284
|
return emailList.length <= 0 || !type || isSubmitting;
|
|
@@ -9364,8 +9410,8 @@ var bell_slash_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox
|
|
|
9364
9410
|
// react/assets/bell.svg
|
|
9365
9411
|
var bell_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="bell">%0A<path id="Vector" d="M9.90457 11.3878C11.1676 11.238 12.3855 10.941 13.5408 10.5146C12.5829 9.45134 11.9999 8.04376 11.9999 6.5V6.03279C12 6.02187 12 6.01094 12 6C12 3.79086 10.2091 2 8 2C5.79086 2 4 3.79086 4 6L3.99987 6.5C3.99987 8.04376 3.41685 9.45134 2.45898 10.5146C3.61427 10.9411 4.83229 11.238 6.09542 11.3878M9.90457 11.3878C9.27999 11.4619 8.64438 11.5 7.99987 11.5C7.35545 11.5 6.71992 11.4619 6.09542 11.3878M9.90457 11.3878C9.96654 11.5807 10 11.7865 10 12C10 13.1046 9.10457 14 8 14C6.89543 14 6 13.1046 6 12C6 11.7865 6.03346 11.5808 6.09542 11.3878" stroke="%23646464" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
|
|
9366
9412
|
|
|
9367
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9368
|
-
var digest21 = "
|
|
9413
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-wlXaZWxTIPRa/core/react/components/organization/styles.module.css.js
|
|
9414
|
+
var digest21 = "b0ab1223695a1920f16782e29de1565b128d9a545227210951eec4f07b2c862b";
|
|
9369
9415
|
var css21 = `._header_11okm_1 {
|
|
9370
9416
|
margin-bottom: var(--rs-space-9);
|
|
9371
9417
|
}
|
|
@@ -9544,7 +9590,7 @@ var PreferencesSelection = ({
|
|
|
9544
9590
|
};
|
|
9545
9591
|
|
|
9546
9592
|
// react/components/organization/project/index.tsx
|
|
9547
|
-
import { useCallback as useCallback10, useEffect as useEffect7, useMemo as
|
|
9593
|
+
import { useCallback as useCallback10, useEffect as useEffect7, useMemo as useMemo11, useState as useState9 } from "react";
|
|
9548
9594
|
import {
|
|
9549
9595
|
Tooltip as Tooltip5,
|
|
9550
9596
|
EmptyState as EmptyState4,
|
|
@@ -9558,7 +9604,7 @@ import {
|
|
|
9558
9604
|
import { Outlet as Outlet4, useNavigate as useNavigate10, useRouterState as useRouterState2 } from "@tanstack/react-router";
|
|
9559
9605
|
|
|
9560
9606
|
// react/hooks/useOrganizationProjects.ts
|
|
9561
|
-
import { useCallback as useCallback9, useMemo as
|
|
9607
|
+
import { useCallback as useCallback9, useMemo as useMemo10 } from "react";
|
|
9562
9608
|
import { useQuery as useQuery10 } from "@connectrpc/connect-query";
|
|
9563
9609
|
import { FrontierServiceQueries as FrontierServiceQueries14, ListOrganizationProjectsRequestSchema, ListProjectsByCurrentUserRequestSchema } from "@raystack/proton/frontier";
|
|
9564
9610
|
import { create as create17 } from "@bufbuild/protobuf";
|
|
@@ -9602,13 +9648,13 @@ var useOrganizationProjects = ({
|
|
|
9602
9648
|
refetchUserProjects();
|
|
9603
9649
|
}
|
|
9604
9650
|
}, [allProjects, refetchOrgProjects, refetchUserProjects]);
|
|
9605
|
-
const projects =
|
|
9651
|
+
const projects = useMemo10(() => {
|
|
9606
9652
|
return allProjects ? (orgProjectsData == null ? void 0 : orgProjectsData.projects) || [] : (userProjectsData == null ? void 0 : userProjectsData.projects) || [];
|
|
9607
9653
|
}, [allProjects, orgProjectsData == null ? void 0 : orgProjectsData.projects, userProjectsData == null ? void 0 : userProjectsData.projects]);
|
|
9608
|
-
const accessPairs =
|
|
9654
|
+
const accessPairs = useMemo10(() => {
|
|
9609
9655
|
return allProjects ? [] : (userProjectsData == null ? void 0 : userProjectsData.accessPairs) || [];
|
|
9610
9656
|
}, [allProjects, userProjectsData == null ? void 0 : userProjectsData.accessPairs]);
|
|
9611
|
-
const userAccessOnProject =
|
|
9657
|
+
const userAccessOnProject = useMemo10(() => {
|
|
9612
9658
|
return accessPairs.reduce((acc, p) => {
|
|
9613
9659
|
const { projectId, permissions } = p;
|
|
9614
9660
|
acc[projectId] = permissions;
|
|
@@ -9661,7 +9707,7 @@ var getColumns3 = (userAccessOnProject) => [
|
|
|
9661
9707
|
// },
|
|
9662
9708
|
{
|
|
9663
9709
|
header: "Members",
|
|
9664
|
-
accessorKey: "
|
|
9710
|
+
accessorKey: "membersCount",
|
|
9665
9711
|
cell: ({ row, getValue }) => {
|
|
9666
9712
|
const value = getValue();
|
|
9667
9713
|
return value ? /* @__PURE__ */ jsxs23(Text19, { children: [
|
|
@@ -9749,8 +9795,8 @@ var ProjectActions = ({
|
|
|
9749
9795
|
] }) : null;
|
|
9750
9796
|
};
|
|
9751
9797
|
|
|
9752
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9753
|
-
var digest22 = "
|
|
9798
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-H2NxL3G9OZIp/core/react/components/organization/styles.module.css.js
|
|
9799
|
+
var digest22 = "6bc83a998aa28da39d0144e8211d5ee9d75c164fc1b0d6d7d419154f5c5fd41d";
|
|
9754
9800
|
var css22 = `._header_11okm_1 {
|
|
9755
9801
|
margin-bottom: var(--rs-space-9);
|
|
9756
9802
|
}
|
|
@@ -9793,8 +9839,8 @@ var css22 = `._header_11okm_1 {
|
|
|
9793
9839
|
})();
|
|
9794
9840
|
var styles_module_css_default5 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
9795
9841
|
|
|
9796
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9797
|
-
var digest23 = "
|
|
9842
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-LoEq4DPFt2YF/core/react/components/organization/project/project.module.css.js
|
|
9843
|
+
var digest23 = "ff7bfdcb05e6bca38afa4f8f8aaf2bd3aa75085a95b9be62fd352524694d5995";
|
|
9798
9844
|
var css23 = `._tableWrapper_1dq1l_1 {
|
|
9799
9845
|
display: flex;
|
|
9800
9846
|
flex-direction: column;
|
|
@@ -9855,12 +9901,13 @@ function WorkspaceProjects() {
|
|
|
9855
9901
|
withMemberCount: true
|
|
9856
9902
|
});
|
|
9857
9903
|
const { activeOrganization: organization } = useFrontier();
|
|
9904
|
+
const t = useTerminology();
|
|
9858
9905
|
const routerState = useRouterState2();
|
|
9859
|
-
const isListRoute =
|
|
9906
|
+
const isListRoute = useMemo11(() => {
|
|
9860
9907
|
return routerState.location.pathname === "/projects";
|
|
9861
9908
|
}, [routerState.location.pathname]);
|
|
9862
9909
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
9863
|
-
const listOfPermissionsToCheck =
|
|
9910
|
+
const listOfPermissionsToCheck = useMemo11(
|
|
9864
9911
|
() => [
|
|
9865
9912
|
{
|
|
9866
9913
|
permission: PERMISSIONS.ProjectCreatePermission,
|
|
@@ -9877,7 +9924,7 @@ function WorkspaceProjects() {
|
|
|
9877
9924
|
listOfPermissionsToCheck,
|
|
9878
9925
|
!!(organization == null ? void 0 : organization.id)
|
|
9879
9926
|
);
|
|
9880
|
-
const { canCreateProject, canUpdateOrganization } =
|
|
9927
|
+
const { canCreateProject, canUpdateOrganization } = useMemo11(() => {
|
|
9881
9928
|
return {
|
|
9882
9929
|
canCreateProject: shouldShowComponent(
|
|
9883
9930
|
permissions,
|
|
@@ -9910,26 +9957,52 @@ function WorkspaceProjects() {
|
|
|
9910
9957
|
}, [projectsError]);
|
|
9911
9958
|
const isLoading = isPermissionsFetching || isProjectsLoading;
|
|
9912
9959
|
return /* @__PURE__ */ jsxs24(Flex23, { direction: "column", className: styles_module_css_default5.pageWrapper, children: [
|
|
9913
|
-
/* @__PURE__ */ jsxs24(
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9960
|
+
/* @__PURE__ */ jsxs24(
|
|
9961
|
+
Flex23,
|
|
9962
|
+
{
|
|
9963
|
+
direction: "column",
|
|
9964
|
+
className: `${styles_module_css_default5.container} ${styles_module_css_default5.containerFlex}`,
|
|
9965
|
+
children: [
|
|
9966
|
+
/* @__PURE__ */ jsx27(
|
|
9967
|
+
Flex23,
|
|
9968
|
+
{
|
|
9969
|
+
direction: "row",
|
|
9970
|
+
justify: "between",
|
|
9971
|
+
align: "center",
|
|
9972
|
+
className: styles_module_css_default5.header,
|
|
9973
|
+
children: /* @__PURE__ */ jsx27(
|
|
9974
|
+
PageHeader,
|
|
9975
|
+
{
|
|
9976
|
+
title: "Projects",
|
|
9977
|
+
description: `Manage projects in this ${t.organization({
|
|
9978
|
+
case: "lower"
|
|
9979
|
+
})}.`
|
|
9980
|
+
}
|
|
9981
|
+
)
|
|
9982
|
+
}
|
|
9983
|
+
),
|
|
9984
|
+
/* @__PURE__ */ jsx27(
|
|
9985
|
+
Flex23,
|
|
9986
|
+
{
|
|
9987
|
+
direction: "column",
|
|
9988
|
+
gap: 9,
|
|
9989
|
+
className: styles_module_css_default5.contentWrapper,
|
|
9990
|
+
children: /* @__PURE__ */ jsx27(
|
|
9991
|
+
ProjectsTable,
|
|
9992
|
+
{
|
|
9993
|
+
projects,
|
|
9994
|
+
isLoading,
|
|
9995
|
+
canCreateProject,
|
|
9996
|
+
userAccessOnProject,
|
|
9997
|
+
onOrgProjectsFilterChange,
|
|
9998
|
+
canListOrgProjects: canUpdateOrganization
|
|
9999
|
+
}
|
|
10000
|
+
)
|
|
10001
|
+
}
|
|
10002
|
+
)
|
|
10003
|
+
]
|
|
10004
|
+
}
|
|
10005
|
+
),
|
|
9933
10006
|
/* @__PURE__ */ jsx27(Outlet4, {})
|
|
9934
10007
|
] });
|
|
9935
10008
|
}
|
|
@@ -9942,7 +10015,7 @@ var ProjectsTable = ({
|
|
|
9942
10015
|
onOrgProjectsFilterChange
|
|
9943
10016
|
}) => {
|
|
9944
10017
|
const navigate = useNavigate10({ from: "/projects" });
|
|
9945
|
-
const columns =
|
|
10018
|
+
const columns = useMemo11(
|
|
9946
10019
|
() => getColumns3(userAccessOnProject),
|
|
9947
10020
|
[userAccessOnProject]
|
|
9948
10021
|
);
|
|
@@ -9951,7 +10024,7 @@ var ProjectsTable = ({
|
|
|
9951
10024
|
{
|
|
9952
10025
|
data: projects != null ? projects : [],
|
|
9953
10026
|
isLoading,
|
|
9954
|
-
defaultSort: { name: "
|
|
10027
|
+
defaultSort: { name: "title", order: "asc" },
|
|
9955
10028
|
columns,
|
|
9956
10029
|
mode: "client",
|
|
9957
10030
|
children: /* @__PURE__ */ jsxs24(Flex23, { direction: "column", gap: 7, className: project_module_css_default.tableWrapper, children: [
|
|
@@ -10031,8 +10104,8 @@ import { useMutation as useMutation9 } from "@connectrpc/connect-query";
|
|
|
10031
10104
|
import { FrontierServiceQueries as FrontierServiceQueries15, CreateProjectRequestSchema } from "@raystack/proton/frontier";
|
|
10032
10105
|
import { create as create18 } from "@bufbuild/protobuf";
|
|
10033
10106
|
|
|
10034
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10035
|
-
var digest24 = "
|
|
10107
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-TUlPEXLm5FEe/core/react/components/organization/organization.module.css.js
|
|
10108
|
+
var digest24 = "531d4eefdd09f99eb6869b3586b98d5b8bebe419c3a53cd5aaf2947fc29cf71e";
|
|
10036
10109
|
var css24 = `._createContainer_ipia2_1 {
|
|
10037
10110
|
margin: auto;
|
|
10038
10111
|
width: 100%;
|
|
@@ -10225,8 +10298,8 @@ import { useQuery as useQuery11, useMutation as useMutation10 } from "@connectrp
|
|
|
10225
10298
|
import { FrontierServiceQueries as FrontierServiceQueries16, GetProjectRequestSchema, DeleteProjectRequestSchema } from "@raystack/proton/frontier";
|
|
10226
10299
|
import { create as create19 } from "@bufbuild/protobuf";
|
|
10227
10300
|
|
|
10228
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10229
|
-
var digest25 = "
|
|
10301
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-tqDfGihMaxNk/core/react/components/organization/organization.module.css.js
|
|
10302
|
+
var digest25 = "4443c6b7f951b02f49aaddf9dd16ea407cb23972f9a5c72cf18389b79bd72344";
|
|
10230
10303
|
var css25 = `._createContainer_ipia2_1 {
|
|
10231
10304
|
margin: auto;
|
|
10232
10305
|
width: 100%;
|
|
@@ -10281,7 +10354,7 @@ var organization_module_css_default6 = { "createContainer": "_createContainer_ip
|
|
|
10281
10354
|
// react/components/organization/project/delete.tsx
|
|
10282
10355
|
import { Fragment as Fragment6, jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
10283
10356
|
var projectSchema2 = yup10.object({
|
|
10284
|
-
|
|
10357
|
+
title: yup10.string()
|
|
10285
10358
|
}).required();
|
|
10286
10359
|
var DeleteProject = () => {
|
|
10287
10360
|
var _a;
|
|
@@ -10329,12 +10402,12 @@ var DeleteProject = () => {
|
|
|
10329
10402
|
return __async(this, null, function* () {
|
|
10330
10403
|
if (!(organization == null ? void 0 : organization.id) || !projectId)
|
|
10331
10404
|
return;
|
|
10332
|
-
if (data.
|
|
10333
|
-
return setError("
|
|
10405
|
+
if (data.title !== (project == null ? void 0 : project.title))
|
|
10406
|
+
return setError("title", { message: "Project title does not match" });
|
|
10334
10407
|
yield deleteProject(create19(DeleteProjectRequestSchema, { id: projectId }));
|
|
10335
10408
|
});
|
|
10336
10409
|
}
|
|
10337
|
-
const
|
|
10410
|
+
const title = watch("title", "");
|
|
10338
10411
|
return /* @__PURE__ */ jsx29(Dialog7, { open: true, children: /* @__PURE__ */ jsxs26(
|
|
10339
10412
|
Dialog7.Content,
|
|
10340
10413
|
{
|
|
@@ -10369,11 +10442,11 @@ var DeleteProject = () => {
|
|
|
10369
10442
|
/* @__PURE__ */ jsx29(
|
|
10370
10443
|
InputField9,
|
|
10371
10444
|
__spreadProps(__spreadValues({
|
|
10372
|
-
label: "Please
|
|
10445
|
+
label: "Please enter the title of the project to confirm.",
|
|
10373
10446
|
size: "large",
|
|
10374
|
-
error: errors.
|
|
10375
|
-
}, register("
|
|
10376
|
-
placeholder: "
|
|
10447
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
10448
|
+
}, register("title")), {
|
|
10449
|
+
placeholder: "Enter the project title"
|
|
10377
10450
|
})
|
|
10378
10451
|
),
|
|
10379
10452
|
/* @__PURE__ */ jsxs26(Flex25, { gap: "small", children: [
|
|
@@ -10385,7 +10458,7 @@ var DeleteProject = () => {
|
|
|
10385
10458
|
"data-test-id": "frontier-sdk-delete-project-checkbox"
|
|
10386
10459
|
}
|
|
10387
10460
|
),
|
|
10388
|
-
/* @__PURE__ */ jsx29(Text21, { size: "small", children: "I understand that all of the project data will be deleted and want to proceed." })
|
|
10461
|
+
/* @__PURE__ */ jsx29(Text21, { size: "small", children: "I acknowledge and understand that all of the project data will be deleted and want to proceed." })
|
|
10389
10462
|
] }),
|
|
10390
10463
|
/* @__PURE__ */ jsx29(
|
|
10391
10464
|
Button19,
|
|
@@ -10393,7 +10466,7 @@ var DeleteProject = () => {
|
|
|
10393
10466
|
variant: "solid",
|
|
10394
10467
|
color: "danger",
|
|
10395
10468
|
type: "submit",
|
|
10396
|
-
disabled: !
|
|
10469
|
+
disabled: !title || !isAcknowledged,
|
|
10397
10470
|
style: { width: "100%" },
|
|
10398
10471
|
"data-test-id": "frontier-sdk-delete-project-btn",
|
|
10399
10472
|
loading: isSubmitting,
|
|
@@ -10415,7 +10488,7 @@ import {
|
|
|
10415
10488
|
useParams as useParams5,
|
|
10416
10489
|
useRouterState as useRouterState3
|
|
10417
10490
|
} from "@tanstack/react-router";
|
|
10418
|
-
import { useCallback as useCallback13, useEffect as useEffect14, useMemo as
|
|
10491
|
+
import { useCallback as useCallback13, useEffect as useEffect14, useMemo as useMemo16 } from "react";
|
|
10419
10492
|
|
|
10420
10493
|
// react/assets/chevron-left.svg
|
|
10421
10494
|
var chevron_left_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Chevron Left">%0A<path id="Shape" fill-rule="evenodd" clip-rule="evenodd" d="M9.40838 3.36863C9.60983 3.5575 9.62004 3.87391 9.43117 4.07537L5.75177 8.00007L9.43117 11.9248C9.62004 12.1262 9.60983 12.4426 9.40838 12.6315C9.20692 12.8204 8.8905 12.8102 8.70164 12.6087L4.70164 8.34204C4.52133 8.14971 4.52133 7.85043 4.70164 7.6581L8.70164 3.39143C8.8905 3.18997 9.20692 3.17977 9.40838 3.36863Z" fill="%233C4347"/>%0A</g>%0A</svg>%0A';
|
|
@@ -10444,7 +10517,7 @@ import {
|
|
|
10444
10517
|
} from "@raystack/apsara";
|
|
10445
10518
|
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
10446
10519
|
import { useNavigate as useNavigate13, useParams as useParams3 } from "@tanstack/react-router";
|
|
10447
|
-
import { useEffect as useEffect10, useMemo as
|
|
10520
|
+
import { useEffect as useEffect10, useMemo as useMemo12 } from "react";
|
|
10448
10521
|
import { useForm as useForm11 } from "react-hook-form";
|
|
10449
10522
|
import * as yup11 from "yup";
|
|
10450
10523
|
import { useMutation as useMutation11 } from "@connectrpc/connect-query";
|
|
@@ -10478,7 +10551,7 @@ var General = ({
|
|
|
10478
10551
|
reset(project);
|
|
10479
10552
|
}, [reset, project]);
|
|
10480
10553
|
const resource = `app/project:${projectId}`;
|
|
10481
|
-
const listOfPermissionsToCheck =
|
|
10554
|
+
const listOfPermissionsToCheck = useMemo12(
|
|
10482
10555
|
() => [
|
|
10483
10556
|
{
|
|
10484
10557
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -10495,7 +10568,7 @@ var General = ({
|
|
|
10495
10568
|
listOfPermissionsToCheck,
|
|
10496
10569
|
!!projectId
|
|
10497
10570
|
);
|
|
10498
|
-
const { canUpdateProject, canDeleteProject } =
|
|
10571
|
+
const { canUpdateProject, canDeleteProject } = useMemo12(() => {
|
|
10499
10572
|
return {
|
|
10500
10573
|
canUpdateProject: shouldShowComponent(
|
|
10501
10574
|
permissions,
|
|
@@ -10606,7 +10679,7 @@ var GeneralDeleteProject = ({
|
|
|
10606
10679
|
};
|
|
10607
10680
|
|
|
10608
10681
|
// react/components/organization/project/members/index.tsx
|
|
10609
|
-
import { useCallback as useCallback12, useEffect as useEffect13, useMemo as
|
|
10682
|
+
import { useCallback as useCallback12, useEffect as useEffect13, useMemo as useMemo15, useState as useState12 } from "react";
|
|
10610
10683
|
import {
|
|
10611
10684
|
Button as Button21,
|
|
10612
10685
|
EmptyState as EmptyState5,
|
|
@@ -10624,7 +10697,7 @@ import {
|
|
|
10624
10697
|
import { useParams as useParams4 } from "@tanstack/react-router";
|
|
10625
10698
|
|
|
10626
10699
|
// react/hooks/useOrganizationTeams.ts
|
|
10627
|
-
import { useCallback as useCallback11, useEffect as useEffect11, useMemo as
|
|
10700
|
+
import { useCallback as useCallback11, useEffect as useEffect11, useMemo as useMemo13, useState as useState11 } from "react";
|
|
10628
10701
|
import { useQuery as useQuery12 } from "@connectrpc/connect-query";
|
|
10629
10702
|
import { FrontierServiceQueries as FrontierServiceQueries18, ListOrganizationGroupsRequestSchema as ListOrganizationGroupsRequestSchema2, ListCurrentUserGroupsRequestSchema } from "@raystack/proton/frontier";
|
|
10630
10703
|
import { create as create21 } from "@bufbuild/protobuf";
|
|
@@ -10659,7 +10732,7 @@ var useOrganizationTeams = ({
|
|
|
10659
10732
|
}
|
|
10660
10733
|
}
|
|
10661
10734
|
}, [teamsData, showOrgTeams]);
|
|
10662
|
-
const userAccessOnTeam =
|
|
10735
|
+
const userAccessOnTeam = useMemo13(() => {
|
|
10663
10736
|
return accessPairs.reduce((acc, p) => {
|
|
10664
10737
|
const { groupId, permissions } = p;
|
|
10665
10738
|
acc[groupId] = permissions;
|
|
@@ -10683,7 +10756,7 @@ var useOrganizationTeams = ({
|
|
|
10683
10756
|
};
|
|
10684
10757
|
|
|
10685
10758
|
// react/components/organization/project/members/member.columns.tsx
|
|
10686
|
-
import { useEffect as useEffect12 } from "react";
|
|
10759
|
+
import { useEffect as useEffect12, useMemo as useMemo14 } from "react";
|
|
10687
10760
|
import {
|
|
10688
10761
|
Avatar as Avatar3,
|
|
10689
10762
|
Label as Label3,
|
|
@@ -10801,18 +10874,19 @@ var MembersActions2 = ({
|
|
|
10801
10874
|
}
|
|
10802
10875
|
});
|
|
10803
10876
|
}
|
|
10804
|
-
const { data:
|
|
10877
|
+
const { data: policiesData, refetch: refetchPolicies, error: policiesError } = useQuery13(
|
|
10805
10878
|
FrontierServiceQueries19.listPolicies,
|
|
10806
10879
|
create22(ListPoliciesRequestSchema2, {
|
|
10807
10880
|
projectId,
|
|
10808
10881
|
userId: member.isTeam ? void 0 : member.id,
|
|
10809
10882
|
groupId: member.isTeam ? member.id : void 0
|
|
10810
10883
|
}),
|
|
10811
|
-
{ enabled: !!projectId && !!(member == null ? void 0 : member.id)
|
|
10812
|
-
var _a;
|
|
10813
|
-
return (_a = d == null ? void 0 : d.policies) != null ? _a : [];
|
|
10814
|
-
} }
|
|
10884
|
+
{ enabled: !!projectId && !!(member == null ? void 0 : member.id) }
|
|
10815
10885
|
);
|
|
10886
|
+
const policies = useMemo14(() => {
|
|
10887
|
+
var _a;
|
|
10888
|
+
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
10889
|
+
}, [policiesData]);
|
|
10816
10890
|
const { mutateAsync: deletePolicy } = useMutation12(FrontierServiceQueries19.deletePolicy, {
|
|
10817
10891
|
onError: (err) => toast14.error("Something went wrong", { description: err.message })
|
|
10818
10892
|
});
|
|
@@ -10893,8 +10967,8 @@ import {
|
|
|
10893
10967
|
} from "@raystack/proton/frontier";
|
|
10894
10968
|
import { create as create23 } from "@bufbuild/protobuf";
|
|
10895
10969
|
|
|
10896
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10897
|
-
var digest26 = "
|
|
10970
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-ydwOktRJMtsz/core/react/components/organization/project/members/members.module.css.js
|
|
10971
|
+
var digest26 = "66156fdef7624103b80c4c7cdcb06030e8c7b06aeb55fa7b1027e806156d735a";
|
|
10898
10972
|
var css26 = `._inviteDropdownItem_pjksz_1 {
|
|
10899
10973
|
padding: var(--rs-space-3);
|
|
10900
10974
|
user-select: none;
|
|
@@ -10968,7 +11042,7 @@ var Members = ({
|
|
|
10968
11042
|
}) => {
|
|
10969
11043
|
const { projectId } = useParams4({ from: "/projects/$projectId" });
|
|
10970
11044
|
const resource = `app/project:${projectId}`;
|
|
10971
|
-
const listOfPermissionsToCheck =
|
|
11045
|
+
const listOfPermissionsToCheck = useMemo15(
|
|
10972
11046
|
() => [
|
|
10973
11047
|
{
|
|
10974
11048
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -10981,7 +11055,7 @@ var Members = ({
|
|
|
10981
11055
|
listOfPermissionsToCheck,
|
|
10982
11056
|
!!projectId
|
|
10983
11057
|
);
|
|
10984
|
-
const { canUpdateProject } =
|
|
11058
|
+
const { canUpdateProject } = useMemo15(() => {
|
|
10985
11059
|
return {
|
|
10986
11060
|
canUpdateProject: shouldShowComponent(
|
|
10987
11061
|
permissions,
|
|
@@ -10990,7 +11064,7 @@ var Members = ({
|
|
|
10990
11064
|
};
|
|
10991
11065
|
}, [permissions, resource]);
|
|
10992
11066
|
const isLoading = isMemberLoading || isPermissionsFetching;
|
|
10993
|
-
const columns =
|
|
11067
|
+
const columns = useMemo15(
|
|
10994
11068
|
() => getColumns4(
|
|
10995
11069
|
memberRoles,
|
|
10996
11070
|
groupRoles,
|
|
@@ -11001,7 +11075,7 @@ var Members = ({
|
|
|
11001
11075
|
),
|
|
11002
11076
|
[memberRoles, groupRoles, roles, canUpdateProject, projectId, refetch]
|
|
11003
11077
|
);
|
|
11004
|
-
const updatedUsers =
|
|
11078
|
+
const updatedUsers = useMemo15(() => {
|
|
11005
11079
|
const updatedTeams = teams.map((t) => __spreadProps(__spreadValues({}, t), { isTeam: true }));
|
|
11006
11080
|
return (members == null ? void 0 : members.length) || (updatedTeams == null ? void 0 : updatedTeams.length) ? [...updatedTeams, ...members] : [];
|
|
11007
11081
|
}, [members, teams]);
|
|
@@ -11068,24 +11142,25 @@ var AddMemberDropdown = ({
|
|
|
11068
11142
|
setQuery("");
|
|
11069
11143
|
setShowTeam((prev) => !prev);
|
|
11070
11144
|
};
|
|
11071
|
-
const { data:
|
|
11145
|
+
const { data: orgUsersData, isLoading: isOrgUsersLoading, error: orgUsersError } = useQuery14(
|
|
11072
11146
|
FrontierServiceQueries20.listOrganizationUsers,
|
|
11073
11147
|
create23(ListOrganizationUsersRequestSchema2, { id: (organization == null ? void 0 : organization.id) || "" }),
|
|
11074
|
-
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject
|
|
11075
|
-
var _a;
|
|
11076
|
-
return (_a = d == null ? void 0 : d.users) != null ? _a : [];
|
|
11077
|
-
} }
|
|
11148
|
+
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject }
|
|
11078
11149
|
);
|
|
11150
|
+
const orgUsersResp = useMemo15(() => {
|
|
11151
|
+
var _a;
|
|
11152
|
+
return (_a = orgUsersData == null ? void 0 : orgUsersData.users) != null ? _a : [];
|
|
11153
|
+
}, [orgUsersData]);
|
|
11079
11154
|
useEffect13(() => {
|
|
11080
11155
|
if (orgUsersError) {
|
|
11081
11156
|
toast15.error("Something went wrong", { description: orgUsersError.message });
|
|
11082
11157
|
}
|
|
11083
11158
|
}, [orgUsersError]);
|
|
11084
|
-
const invitableUser =
|
|
11159
|
+
const invitableUser = useMemo15(
|
|
11085
11160
|
() => filterUsersfromUsers(orgUsersResp || [], members) || [],
|
|
11086
11161
|
[orgUsersResp, members]
|
|
11087
11162
|
);
|
|
11088
|
-
const topUsers =
|
|
11163
|
+
const topUsers = useMemo15(
|
|
11089
11164
|
() => invitableUser.filter(
|
|
11090
11165
|
(user) => {
|
|
11091
11166
|
var _a, _b;
|
|
@@ -11094,7 +11169,7 @@ var AddMemberDropdown = ({
|
|
|
11094
11169
|
).slice(0, 7),
|
|
11095
11170
|
[invitableUser, query]
|
|
11096
11171
|
);
|
|
11097
|
-
const topTeams =
|
|
11172
|
+
const topTeams = useMemo15(
|
|
11098
11173
|
() => teams.filter(
|
|
11099
11174
|
(team) => query ? team.title && team.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
11100
11175
|
).slice(0, 7),
|
|
@@ -11265,8 +11340,8 @@ var noDataChildren4 = /* @__PURE__ */ jsx32(
|
|
|
11265
11340
|
}
|
|
11266
11341
|
);
|
|
11267
11342
|
|
|
11268
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11269
|
-
var digest27 = "
|
|
11343
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-CjEdVXrvLZ8u/core/react/components/organization/styles.module.css.js
|
|
11344
|
+
var digest27 = "1ad53ed33e5380b5eb831d7f0206dca8505b9fc688c62c77bb72029c13fde13d";
|
|
11270
11345
|
var css27 = `._header_11okm_1 {
|
|
11271
11346
|
margin-bottom: var(--rs-space-9);
|
|
11272
11347
|
}
|
|
@@ -11309,8 +11384,8 @@ var css27 = `._header_11okm_1 {
|
|
|
11309
11384
|
})();
|
|
11310
11385
|
var styles_module_css_default6 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
11311
11386
|
|
|
11312
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11313
|
-
var digest28 = "
|
|
11387
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Y6emwTHz5sH6/core/react/components/organization/project/project.module.css.js
|
|
11388
|
+
var digest28 = "c4fbf5cc44a9dc8cc866a9b03d6cf9ae9d5d6d7c0aecc10ed637fe72316fc6ab";
|
|
11314
11389
|
var css28 = `._tableWrapper_1dq1l_1 {
|
|
11315
11390
|
display: flex;
|
|
11316
11391
|
flex-direction: column;
|
|
@@ -11359,13 +11434,13 @@ var ProjectPage = () => {
|
|
|
11359
11434
|
const { activeOrganization: organization } = useFrontier();
|
|
11360
11435
|
let navigate = useNavigate15({ from: "/projects/$projectId" });
|
|
11361
11436
|
const routeState = useRouterState3();
|
|
11362
|
-
const isDeleteRoute =
|
|
11437
|
+
const isDeleteRoute = useMemo16(() => {
|
|
11363
11438
|
return routeState.matches.some(
|
|
11364
11439
|
(route) => route.routeId === "/projects/$projectId/delete"
|
|
11365
11440
|
);
|
|
11366
11441
|
}, [routeState.matches]);
|
|
11367
11442
|
const {
|
|
11368
|
-
data:
|
|
11443
|
+
data: projectGroupsData,
|
|
11369
11444
|
isLoading: isTeamsLoading,
|
|
11370
11445
|
error: projectGroupsError,
|
|
11371
11446
|
refetch: refetchProjectGroups
|
|
@@ -11376,22 +11451,22 @@ var ProjectPage = () => {
|
|
|
11376
11451
|
withRoles: true
|
|
11377
11452
|
}),
|
|
11378
11453
|
{
|
|
11379
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11380
|
-
select: (d) => {
|
|
11381
|
-
var _a, _b;
|
|
11382
|
-
return {
|
|
11383
|
-
groups: (_a = d == null ? void 0 : d.groups) != null ? _a : [],
|
|
11384
|
-
groupRoles: ((_b = d == null ? void 0 : d.rolePairs) != null ? _b : []).reduce((acc, gr) => {
|
|
11385
|
-
var _a2;
|
|
11386
|
-
const key = (_a2 = gr.groupId) != null ? _a2 : gr.group_id;
|
|
11387
|
-
if (key)
|
|
11388
|
-
acc[key] = gr.roles;
|
|
11389
|
-
return acc;
|
|
11390
|
-
}, {})
|
|
11391
|
-
};
|
|
11392
|
-
}
|
|
11454
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11393
11455
|
}
|
|
11394
11456
|
);
|
|
11457
|
+
const projectGroups = useMemo16(() => {
|
|
11458
|
+
var _a, _b;
|
|
11459
|
+
return {
|
|
11460
|
+
groups: (_a = projectGroupsData == null ? void 0 : projectGroupsData.groups) != null ? _a : [],
|
|
11461
|
+
groupRoles: ((_b = projectGroupsData == null ? void 0 : projectGroupsData.rolePairs) != null ? _b : []).reduce((acc, gr) => {
|
|
11462
|
+
var _a2;
|
|
11463
|
+
const key = (_a2 = gr.groupId) != null ? _a2 : gr.group_id;
|
|
11464
|
+
if (key)
|
|
11465
|
+
acc[key] = gr.roles;
|
|
11466
|
+
return acc;
|
|
11467
|
+
}, {})
|
|
11468
|
+
};
|
|
11469
|
+
}, [projectGroupsData]);
|
|
11395
11470
|
useEffect14(() => {
|
|
11396
11471
|
if (projectGroupsError) {
|
|
11397
11472
|
toast16.error("Something went wrong", {
|
|
@@ -11400,7 +11475,7 @@ var ProjectPage = () => {
|
|
|
11400
11475
|
}
|
|
11401
11476
|
}, [projectGroupsError]);
|
|
11402
11477
|
const {
|
|
11403
|
-
data:
|
|
11478
|
+
data: projectUsersData,
|
|
11404
11479
|
isLoading: isMembersLoadingQuery,
|
|
11405
11480
|
refetch: refetchProjectUsers
|
|
11406
11481
|
} = useQuery15(
|
|
@@ -11410,22 +11485,22 @@ var ProjectPage = () => {
|
|
|
11410
11485
|
withRoles: true
|
|
11411
11486
|
}),
|
|
11412
11487
|
{
|
|
11413
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11414
|
-
select: (d) => {
|
|
11415
|
-
var _a, _b;
|
|
11416
|
-
return {
|
|
11417
|
-
users: (_a = d == null ? void 0 : d.users) != null ? _a : [],
|
|
11418
|
-
memberRoles: ((_b = d == null ? void 0 : d.rolePairs) != null ? _b : []).reduce((acc, mr) => {
|
|
11419
|
-
var _a2;
|
|
11420
|
-
const key = (_a2 = mr.userId) != null ? _a2 : mr.user_id;
|
|
11421
|
-
if (key)
|
|
11422
|
-
acc[key] = mr.roles;
|
|
11423
|
-
return acc;
|
|
11424
|
-
}, {})
|
|
11425
|
-
};
|
|
11426
|
-
}
|
|
11488
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11427
11489
|
}
|
|
11428
11490
|
);
|
|
11491
|
+
const projectUsers = useMemo16(() => {
|
|
11492
|
+
var _a, _b;
|
|
11493
|
+
return {
|
|
11494
|
+
users: (_a = projectUsersData == null ? void 0 : projectUsersData.users) != null ? _a : [],
|
|
11495
|
+
memberRoles: ((_b = projectUsersData == null ? void 0 : projectUsersData.rolePairs) != null ? _b : []).reduce((acc, mr) => {
|
|
11496
|
+
var _a2;
|
|
11497
|
+
const key = (_a2 = mr.userId) != null ? _a2 : mr.user_id;
|
|
11498
|
+
if (key)
|
|
11499
|
+
acc[key] = mr.roles;
|
|
11500
|
+
return acc;
|
|
11501
|
+
}, {})
|
|
11502
|
+
};
|
|
11503
|
+
}, [projectUsersData]);
|
|
11429
11504
|
const {
|
|
11430
11505
|
data: project,
|
|
11431
11506
|
isLoading: isProjectLoadingQuery,
|
|
@@ -11444,7 +11519,7 @@ var ProjectPage = () => {
|
|
|
11444
11519
|
}
|
|
11445
11520
|
}, [projectError]);
|
|
11446
11521
|
const {
|
|
11447
|
-
data:
|
|
11522
|
+
data: rolesData,
|
|
11448
11523
|
isLoading: isProjectRoleLoadingQuery,
|
|
11449
11524
|
error: rolesError
|
|
11450
11525
|
} = useQuery15(
|
|
@@ -11454,13 +11529,13 @@ var ProjectPage = () => {
|
|
|
11454
11529
|
scopes: [PERMISSIONS.ProjectNamespace]
|
|
11455
11530
|
}),
|
|
11456
11531
|
{
|
|
11457
|
-
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11458
|
-
select: (d) => {
|
|
11459
|
-
var _a;
|
|
11460
|
-
return (_a = d == null ? void 0 : d.roles) != null ? _a : [];
|
|
11461
|
-
}
|
|
11532
|
+
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId && !isDeleteRoute
|
|
11462
11533
|
}
|
|
11463
11534
|
);
|
|
11535
|
+
const roles = useMemo16(() => {
|
|
11536
|
+
var _a;
|
|
11537
|
+
return (_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : [];
|
|
11538
|
+
}, [rolesData]);
|
|
11464
11539
|
useEffect14(() => {
|
|
11465
11540
|
if (rolesError) {
|
|
11466
11541
|
toast16.error("Something went wrong", { description: rolesError.message });
|
|
@@ -11526,14 +11601,14 @@ var ProjectPage = () => {
|
|
|
11526
11601
|
// react/components/organization/project/members/remove.tsx
|
|
11527
11602
|
import { Button as Button22, Flex as Flex30, Text as Text25, toast as toast17, Image as Image10, Dialog as Dialog8 } from "@raystack/apsara";
|
|
11528
11603
|
import { useNavigate as useNavigate16, useParams as useParams6 } from "@tanstack/react-router";
|
|
11529
|
-
import { useEffect as useEffect15 } from "react";
|
|
11604
|
+
import { useEffect as useEffect15, useMemo as useMemo17 } from "react";
|
|
11530
11605
|
import { useQuery as useQuery16, useMutation as useMutation14, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport6 } from "@connectrpc/connect-query";
|
|
11531
11606
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
11532
11607
|
import { FrontierServiceQueries as FrontierServiceQueries22, ListPoliciesRequestSchema as ListPoliciesRequestSchema3, DeletePolicyRequestSchema as DeletePolicyRequestSchema3, ListProjectUsersRequestSchema as ListProjectUsersRequestSchema2, ListProjectGroupsRequestSchema as ListProjectGroupsRequestSchema2 } from "@raystack/proton/frontier";
|
|
11533
11608
|
import { create as create25 } from "@bufbuild/protobuf";
|
|
11534
11609
|
|
|
11535
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11536
|
-
var digest29 = "
|
|
11610
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-CkRV0nSZJSTY/core/react/components/organization/organization.module.css.js
|
|
11611
|
+
var digest29 = "0b8b8dc1687eda350581b2baec97db2c1cf27642b116623ee4e346ad0f4f9f72";
|
|
11537
11612
|
var css29 = `._createContainer_ipia2_1 {
|
|
11538
11613
|
margin: auto;
|
|
11539
11614
|
width: 100%;
|
|
@@ -11596,17 +11671,18 @@ var RemoveProjectMember = () => {
|
|
|
11596
11671
|
const { projectId, memberId } = useParams6({
|
|
11597
11672
|
from: "/projects/$projectId/$membertype/$memberId/remove"
|
|
11598
11673
|
});
|
|
11599
|
-
const { data:
|
|
11674
|
+
const { data: policiesData, error: policiesError } = useQuery16(
|
|
11600
11675
|
FrontierServiceQueries22.listPolicies,
|
|
11601
11676
|
create25(ListPoliciesRequestSchema3, {
|
|
11602
11677
|
projectId: projectId || "",
|
|
11603
11678
|
userId: memberId || ""
|
|
11604
11679
|
}),
|
|
11605
|
-
{ enabled: !!projectId && !!memberId
|
|
11606
|
-
var _a;
|
|
11607
|
-
return (_a = d == null ? void 0 : d.policies) != null ? _a : [];
|
|
11608
|
-
} }
|
|
11680
|
+
{ enabled: !!projectId && !!memberId }
|
|
11609
11681
|
);
|
|
11682
|
+
const policies = useMemo17(() => {
|
|
11683
|
+
var _a;
|
|
11684
|
+
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
11685
|
+
}, [policiesData]);
|
|
11610
11686
|
useEffect15(() => {
|
|
11611
11687
|
if (policiesError) {
|
|
11612
11688
|
toast17.error("Something went wrong", { description: policiesError.message });
|
|
@@ -11710,14 +11786,14 @@ var RemoveProjectMember = () => {
|
|
|
11710
11786
|
|
|
11711
11787
|
// react/components/organization/security/index.tsx
|
|
11712
11788
|
import { Switch as Switch2, Separator as Separator7, Box as Box3, Text as Text26, Headline as Headline5, Flex as Flex31, toast as toast18 } from "@raystack/apsara";
|
|
11713
|
-
import { useEffect as useEffect16, useMemo as
|
|
11789
|
+
import { useEffect as useEffect16, useMemo as useMemo18, useState as useState13 } from "react";
|
|
11714
11790
|
import { useQuery as useQuery17, useMutation as useMutation15, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport7 } from "@connectrpc/connect-query";
|
|
11715
11791
|
import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
11716
11792
|
import { FrontierServiceQueries as FrontierServiceQueries23, ListOrganizationPreferencesRequestSchema, CreateOrganizationPreferencesRequestSchema } from "@raystack/proton/frontier";
|
|
11717
11793
|
import { create as create26 } from "@bufbuild/protobuf";
|
|
11718
11794
|
|
|
11719
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11720
|
-
var digest30 = "
|
|
11795
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-nzNoy8tgrfa5/core/react/components/organization/styles.module.css.js
|
|
11796
|
+
var digest30 = "718265b4e739ad31addb4eb327446c1ff800e0c2e3754d70f59c0d6e5a9b5fdb";
|
|
11721
11797
|
var css30 = `._header_11okm_1 {
|
|
11722
11798
|
margin-bottom: var(--rs-space-9);
|
|
11723
11799
|
}
|
|
@@ -11769,7 +11845,7 @@ function WorkspaceSecurity() {
|
|
|
11769
11845
|
const queryClient2 = useQueryClient7();
|
|
11770
11846
|
const transport = useTransport7();
|
|
11771
11847
|
const {
|
|
11772
|
-
data:
|
|
11848
|
+
data: preferencesData,
|
|
11773
11849
|
error: preferencesError
|
|
11774
11850
|
} = useQuery17(
|
|
11775
11851
|
FrontierServiceQueries23.listOrganizationPreferences,
|
|
@@ -11777,13 +11853,13 @@ function WorkspaceSecurity() {
|
|
|
11777
11853
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
11778
11854
|
}),
|
|
11779
11855
|
{
|
|
11780
|
-
enabled: !!(organization == null ? void 0 : organization.id)
|
|
11781
|
-
select: (d) => {
|
|
11782
|
-
var _a;
|
|
11783
|
-
return (_a = d == null ? void 0 : d.preferences) != null ? _a : [];
|
|
11784
|
-
}
|
|
11856
|
+
enabled: !!(organization == null ? void 0 : organization.id)
|
|
11785
11857
|
}
|
|
11786
11858
|
);
|
|
11859
|
+
const preferences = useMemo18(() => {
|
|
11860
|
+
var _a;
|
|
11861
|
+
return (_a = preferencesData == null ? void 0 : preferencesData.preferences) != null ? _a : [];
|
|
11862
|
+
}, [preferencesData]);
|
|
11787
11863
|
useEffect16(() => {
|
|
11788
11864
|
if (preferencesError) {
|
|
11789
11865
|
toast18.error("Something went wrong", {
|
|
@@ -11814,7 +11890,7 @@ function WorkspaceSecurity() {
|
|
|
11814
11890
|
}
|
|
11815
11891
|
}
|
|
11816
11892
|
);
|
|
11817
|
-
const preferencesMap =
|
|
11893
|
+
const preferencesMap = useMemo18(() => {
|
|
11818
11894
|
return preferences.reduce(
|
|
11819
11895
|
(map, el) => {
|
|
11820
11896
|
if (el.name)
|
|
@@ -11850,7 +11926,7 @@ function WorkspaceSecurity() {
|
|
|
11850
11926
|
})
|
|
11851
11927
|
);
|
|
11852
11928
|
};
|
|
11853
|
-
const listOfPermissionsToCheck =
|
|
11929
|
+
const listOfPermissionsToCheck = useMemo18(
|
|
11854
11930
|
() => [
|
|
11855
11931
|
{
|
|
11856
11932
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -11935,7 +12011,7 @@ import {
|
|
|
11935
12011
|
Search as Search2
|
|
11936
12012
|
} from "@raystack/apsara";
|
|
11937
12013
|
import { Link as Link5, useRouteContext, useRouterState as useRouterState4 } from "@tanstack/react-router";
|
|
11938
|
-
import { useCallback as useCallback14, useMemo as
|
|
12014
|
+
import { useCallback as useCallback14, useMemo as useMemo19, useState as useState14 } from "react";
|
|
11939
12015
|
|
|
11940
12016
|
// react/assets/organization.png
|
|
11941
12017
|
var organization_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG9SURBVHgB7ZexTgJBEIZnTmLNG3hvACYWxkbeQH0CoRJpOBOhsDE0RsHEtYHrxCcQ3gA7Egt5hLOzkxeQdW6B3AJLYHANQvgSjmV2M/mZ3Z2ZA9iwZNBkPPeKLxJkHKziBL64y8AsATnPS/Zg+x3+AAdiu1Vx09FtW+OL3trtz739gw/SlqSftqIQ0D8t1cRtAyZEGfBFpU5fr2ANbNVEWZhmHFgyTAEy44syhh8aNzV7c2jvwfcJwyFbQBCNsau5+Yoc6nbLAnrgaIfSzjWNcRaT2oesV8gjYFwCJDUxabK7akS3Bxk+WQIIl0LvSuMUptQTeCz9FjAjIB/pMchkeA0qIoqA5kpqBeARReEY5oQroOGL+1Y4ynrFVCQAW3QF6337ZUCBnVvAam0BgpMfnnbiMJqRKbKn+2swIed3yRMg1d6iKbwu2Z8Ga1isWi1YQwHcTDhAzwdDVCY8BSYLCJB05yueYaJOvWRitEbMxuoWUCPLKsXWBSyCUcDZRSEPI4nmt0SJaqaAsC1HiWED6YI93DBR5byrifMxcQirQnSo0DyT6h2TJ0q1TZgCUm84LRNSleyOvxNs+Bf8AIhCerAOPpdcAAAAAElFTkSuQmCC";
|
|
@@ -12028,8 +12104,8 @@ var getUserNavItems = (options = {}) => {
|
|
|
12028
12104
|
);
|
|
12029
12105
|
};
|
|
12030
12106
|
|
|
12031
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12032
|
-
var digest31 = "
|
|
12107
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-xJ6uj0TuwE18/core/react/components/organization/sidebar/sidebar.module.css.js
|
|
12108
|
+
var digest31 = "0d445cc77e133bdac692e0454204a85005546b9310478a91551335fba4551fe2";
|
|
12033
12109
|
var css31 = `._sidebarWrapper_1ik5g_1 {
|
|
12034
12110
|
box-sizing: border-box;
|
|
12035
12111
|
border-top-left-radius: var(--rs-radius-6);
|
|
@@ -12087,7 +12163,7 @@ var Sidebar = () => {
|
|
|
12087
12163
|
[routerState.location.pathname]
|
|
12088
12164
|
);
|
|
12089
12165
|
const resource = `app/organization:${organizationId}`;
|
|
12090
|
-
const listOfPermissionsToCheck =
|
|
12166
|
+
const listOfPermissionsToCheck = useMemo19(
|
|
12091
12167
|
() => [
|
|
12092
12168
|
{
|
|
12093
12169
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -12100,7 +12176,7 @@ var Sidebar = () => {
|
|
|
12100
12176
|
listOfPermissionsToCheck,
|
|
12101
12177
|
!!organizationId
|
|
12102
12178
|
);
|
|
12103
|
-
const { canSeeBilling } =
|
|
12179
|
+
const { canSeeBilling } = useMemo19(() => {
|
|
12104
12180
|
return {
|
|
12105
12181
|
canSeeBilling: shouldShowComponent(
|
|
12106
12182
|
permissions,
|
|
@@ -12108,7 +12184,7 @@ var Sidebar = () => {
|
|
|
12108
12184
|
)
|
|
12109
12185
|
};
|
|
12110
12186
|
}, [permissions, resource]);
|
|
12111
|
-
const organizationNavItems =
|
|
12187
|
+
const organizationNavItems = useMemo19(
|
|
12112
12188
|
() => getOrganizationNavItems({
|
|
12113
12189
|
showBilling,
|
|
12114
12190
|
canSeeBilling,
|
|
@@ -12124,7 +12200,7 @@ var Sidebar = () => {
|
|
|
12124
12200
|
customRoutes.Organization
|
|
12125
12201
|
]
|
|
12126
12202
|
);
|
|
12127
|
-
const userNavItems =
|
|
12203
|
+
const userNavItems = useMemo19(
|
|
12128
12204
|
() => getUserNavItems({
|
|
12129
12205
|
showPreferences,
|
|
12130
12206
|
customRoutes: customRoutes.User
|
|
@@ -12248,7 +12324,7 @@ var Sidebar = () => {
|
|
|
12248
12324
|
};
|
|
12249
12325
|
|
|
12250
12326
|
// react/components/organization/teams/index.tsx
|
|
12251
|
-
import { useCallback as useCallback15, useEffect as useEffect17, useMemo as
|
|
12327
|
+
import { useCallback as useCallback15, useEffect as useEffect17, useMemo as useMemo20, useState as useState15 } from "react";
|
|
12252
12328
|
import {
|
|
12253
12329
|
Tooltip as Tooltip8,
|
|
12254
12330
|
Skeleton as Skeleton13,
|
|
@@ -12264,8 +12340,8 @@ import { Outlet as Outlet6, useNavigate as useNavigate17, useRouterState as useR
|
|
|
12264
12340
|
import { Text as Text27, DropdownMenu as DropdownMenu4 } from "@raystack/apsara";
|
|
12265
12341
|
import { Link as Link6 } from "@tanstack/react-router";
|
|
12266
12342
|
|
|
12267
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12268
|
-
var digest32 = "
|
|
12343
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-R7kEH9t831Ce/core/react/components/organization/organization.module.css.js
|
|
12344
|
+
var digest32 = "78d139020387f596f0e4f6ae03829f0525ad28944f872377c9dd27af6c320383";
|
|
12269
12345
|
var css32 = `._createContainer_ipia2_1 {
|
|
12270
12346
|
margin: auto;
|
|
12271
12347
|
width: 100%;
|
|
@@ -12406,8 +12482,8 @@ var TeamActions = ({
|
|
|
12406
12482
|
] }) : null;
|
|
12407
12483
|
};
|
|
12408
12484
|
|
|
12409
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12410
|
-
var digest33 = "
|
|
12485
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-q4IsePSR20mw/core/react/components/organization/styles.module.css.js
|
|
12486
|
+
var digest33 = "7c64a54e6edf02974790d5f62676bab26e6239c1101eb618239980c3cdde1dae";
|
|
12411
12487
|
var css33 = `._header_11okm_1 {
|
|
12412
12488
|
margin-bottom: var(--rs-space-9);
|
|
12413
12489
|
}
|
|
@@ -12450,8 +12526,8 @@ var css33 = `._header_11okm_1 {
|
|
|
12450
12526
|
})();
|
|
12451
12527
|
var styles_module_css_default8 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
12452
12528
|
|
|
12453
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12454
|
-
var digest34 = "
|
|
12529
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-AFW80jK36w8F/core/react/components/organization/teams/teams.module.css.js
|
|
12530
|
+
var digest34 = "86745f2d7160fb597db2a27548f755f776ae5b3723cb6de584f72935f037dc20";
|
|
12455
12531
|
var css34 = `._tableWrapper_1dq1l_1 {
|
|
12456
12532
|
display: flex;
|
|
12457
12533
|
flex-direction: column;
|
|
@@ -12501,8 +12577,9 @@ var teamsSelectOptions = [
|
|
|
12501
12577
|
];
|
|
12502
12578
|
function WorkspaceTeams() {
|
|
12503
12579
|
const [showOrgTeams, setShowOrgTeams] = useState15(false);
|
|
12580
|
+
const t = useTerminology();
|
|
12504
12581
|
const routerState = useRouterState5();
|
|
12505
|
-
const isListRoute =
|
|
12582
|
+
const isListRoute = useMemo20(() => {
|
|
12506
12583
|
return routerState.location.pathname === "/teams";
|
|
12507
12584
|
}, [routerState.location.pathname]);
|
|
12508
12585
|
const {
|
|
@@ -12517,7 +12594,7 @@ function WorkspaceTeams() {
|
|
|
12517
12594
|
});
|
|
12518
12595
|
const { activeOrganization: organization } = useFrontier();
|
|
12519
12596
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
12520
|
-
const listOfPermissionsToCheck =
|
|
12597
|
+
const listOfPermissionsToCheck = useMemo20(
|
|
12521
12598
|
() => [
|
|
12522
12599
|
{
|
|
12523
12600
|
permission: PERMISSIONS.GroupCreatePermission,
|
|
@@ -12534,7 +12611,7 @@ function WorkspaceTeams() {
|
|
|
12534
12611
|
listOfPermissionsToCheck,
|
|
12535
12612
|
!!(organization == null ? void 0 : organization.id)
|
|
12536
12613
|
);
|
|
12537
|
-
const { canCreateGroup, canListOrgGroups } =
|
|
12614
|
+
const { canCreateGroup, canListOrgGroups } = useMemo20(() => {
|
|
12538
12615
|
return {
|
|
12539
12616
|
canCreateGroup: shouldShowComponent(
|
|
12540
12617
|
permissions,
|
|
@@ -12560,26 +12637,52 @@ function WorkspaceTeams() {
|
|
|
12560
12637
|
}, [isListRoute, refetch, routerState.location.state.key]);
|
|
12561
12638
|
const isLoading = isPermissionsFetching || isTeamsLoading;
|
|
12562
12639
|
return /* @__PURE__ */ jsxs35(Flex33, { direction: "column", className: styles_module_css_default8.pageWrapper, children: [
|
|
12563
|
-
/* @__PURE__ */ jsxs35(
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12640
|
+
/* @__PURE__ */ jsxs35(
|
|
12641
|
+
Flex33,
|
|
12642
|
+
{
|
|
12643
|
+
direction: "column",
|
|
12644
|
+
className: `${styles_module_css_default8.container} ${styles_module_css_default8.containerFlex}`,
|
|
12645
|
+
children: [
|
|
12646
|
+
/* @__PURE__ */ jsx38(
|
|
12647
|
+
Flex33,
|
|
12648
|
+
{
|
|
12649
|
+
direction: "row",
|
|
12650
|
+
justify: "between",
|
|
12651
|
+
align: "center",
|
|
12652
|
+
className: styles_module_css_default8.header,
|
|
12653
|
+
children: /* @__PURE__ */ jsx38(
|
|
12654
|
+
PageHeader,
|
|
12655
|
+
{
|
|
12656
|
+
title: "Teams",
|
|
12657
|
+
description: `Manage teams in this ${t.organization({
|
|
12658
|
+
case: "lower"
|
|
12659
|
+
})}.`
|
|
12660
|
+
}
|
|
12661
|
+
)
|
|
12662
|
+
}
|
|
12663
|
+
),
|
|
12664
|
+
/* @__PURE__ */ jsx38(
|
|
12665
|
+
Flex33,
|
|
12666
|
+
{
|
|
12667
|
+
direction: "column",
|
|
12668
|
+
gap: 9,
|
|
12669
|
+
className: styles_module_css_default8.contentWrapper,
|
|
12670
|
+
children: /* @__PURE__ */ jsx38(
|
|
12671
|
+
TeamsTable,
|
|
12672
|
+
{
|
|
12673
|
+
teams,
|
|
12674
|
+
isLoading,
|
|
12675
|
+
canCreateGroup,
|
|
12676
|
+
userAccessOnTeam,
|
|
12677
|
+
canListOrgGroups,
|
|
12678
|
+
onOrgTeamsFilterChange
|
|
12679
|
+
}
|
|
12680
|
+
)
|
|
12681
|
+
}
|
|
12682
|
+
)
|
|
12683
|
+
]
|
|
12684
|
+
}
|
|
12685
|
+
),
|
|
12583
12686
|
/* @__PURE__ */ jsx38(Outlet6, {})
|
|
12584
12687
|
] });
|
|
12585
12688
|
}
|
|
@@ -12592,7 +12695,7 @@ var TeamsTable = ({
|
|
|
12592
12695
|
onOrgTeamsFilterChange
|
|
12593
12696
|
}) => {
|
|
12594
12697
|
const navigate = useNavigate17({ from: "/teams" });
|
|
12595
|
-
const columns =
|
|
12698
|
+
const columns = useMemo20(
|
|
12596
12699
|
() => getColumns5(userAccessOnTeam),
|
|
12597
12700
|
[userAccessOnTeam]
|
|
12598
12701
|
);
|
|
@@ -12678,8 +12781,8 @@ import { useMutation as useMutation16 } from "@connectrpc/connect-query";
|
|
|
12678
12781
|
import { FrontierServiceQueries as FrontierServiceQueries24, CreateGroupRequestSchema } from "@raystack/proton/frontier";
|
|
12679
12782
|
import { create as create27 } from "@bufbuild/protobuf";
|
|
12680
12783
|
|
|
12681
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12682
|
-
var digest35 = "
|
|
12784
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-8dSuoqblXRZp/core/react/components/organization/organization.module.css.js
|
|
12785
|
+
var digest35 = "0253ef45b9b4e81a1f6749a0eb8c80b6c6c7fb5e4dac58051c31e8d466e4092b";
|
|
12683
12786
|
var css35 = `._createContainer_ipia2_1 {
|
|
12684
12787
|
margin: auto;
|
|
12685
12788
|
width: 100%;
|
|
@@ -12855,8 +12958,8 @@ import { useMutation as useMutation17, useQuery as useQuery18 } from "@connectrp
|
|
|
12855
12958
|
import { FrontierServiceQueries as FrontierServiceQueries25, DeleteGroupRequestSchema, GetGroupRequestSchema } from "@raystack/proton/frontier";
|
|
12856
12959
|
import { create as create28 } from "@bufbuild/protobuf";
|
|
12857
12960
|
|
|
12858
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12859
|
-
var digest36 = "
|
|
12961
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-8L4UUVttH2Sd/core/react/components/organization/organization.module.css.js
|
|
12962
|
+
var digest36 = "d1a86badaf193bf0872db5fe29a033a650eb6ec019a6dd666c63625fe9df8e58";
|
|
12860
12963
|
var css36 = `._createContainer_ipia2_1 {
|
|
12861
12964
|
margin: auto;
|
|
12862
12965
|
width: 100%;
|
|
@@ -12911,7 +13014,7 @@ var organization_module_css_default10 = { "createContainer": "_createContainer_i
|
|
|
12911
13014
|
// react/components/organization/teams/delete.tsx
|
|
12912
13015
|
import { Fragment as Fragment8, jsx as jsx40, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
12913
13016
|
var teamSchema2 = yup13.object({
|
|
12914
|
-
|
|
13017
|
+
title: yup13.string()
|
|
12915
13018
|
}).required();
|
|
12916
13019
|
var DeleteTeam = () => {
|
|
12917
13020
|
var _a;
|
|
@@ -12957,15 +13060,15 @@ var DeleteTeam = () => {
|
|
|
12957
13060
|
return;
|
|
12958
13061
|
if (!teamId)
|
|
12959
13062
|
return;
|
|
12960
|
-
if (data.
|
|
12961
|
-
return setError("
|
|
13063
|
+
if (data.title !== (team == null ? void 0 : team.title))
|
|
13064
|
+
return setError("title", { message: "Team title does not match" });
|
|
12962
13065
|
const request = create28(DeleteGroupRequestSchema, {
|
|
12963
13066
|
id: teamId,
|
|
12964
13067
|
orgId: organization.id
|
|
12965
13068
|
});
|
|
12966
13069
|
deleteTeamMutation.mutate(request);
|
|
12967
13070
|
}
|
|
12968
|
-
const
|
|
13071
|
+
const title = watch("title", "");
|
|
12969
13072
|
return /* @__PURE__ */ jsx40(Dialog10, { open: true, children: /* @__PURE__ */ jsxs37(
|
|
12970
13073
|
Dialog10.Content,
|
|
12971
13074
|
{
|
|
@@ -13005,11 +13108,11 @@ var DeleteTeam = () => {
|
|
|
13005
13108
|
/* @__PURE__ */ jsx40(
|
|
13006
13109
|
InputField12,
|
|
13007
13110
|
__spreadProps(__spreadValues({
|
|
13008
|
-
label: "Please
|
|
13111
|
+
label: "Please enter the title of the team to confirm.",
|
|
13009
13112
|
size: "large",
|
|
13010
|
-
error: errors.
|
|
13011
|
-
}, register("
|
|
13012
|
-
placeholder: "
|
|
13113
|
+
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
13114
|
+
}, register("title")), {
|
|
13115
|
+
placeholder: "Enter the team title"
|
|
13013
13116
|
})
|
|
13014
13117
|
),
|
|
13015
13118
|
/* @__PURE__ */ jsxs37(Flex35, { gap: "small", children: [
|
|
@@ -13021,14 +13124,14 @@ var DeleteTeam = () => {
|
|
|
13021
13124
|
"data-test-id": "frontier-sdk-delete-team-checkbox"
|
|
13022
13125
|
}
|
|
13023
13126
|
),
|
|
13024
|
-
/* @__PURE__ */ jsx40(Text29, { size: 2, children: "I acknowledge that all of the team data will be deleted and want to proceed." })
|
|
13127
|
+
/* @__PURE__ */ jsx40(Text29, { size: 2, children: "I acknowledge and understand that all of the team data will be deleted and want to proceed." })
|
|
13025
13128
|
] }),
|
|
13026
13129
|
/* @__PURE__ */ jsx40(
|
|
13027
13130
|
Button25,
|
|
13028
13131
|
{
|
|
13029
13132
|
variant: "solid",
|
|
13030
13133
|
color: "danger",
|
|
13031
|
-
disabled: !
|
|
13134
|
+
disabled: !title || !isAcknowledged,
|
|
13032
13135
|
type: "submit",
|
|
13033
13136
|
style: { width: "100%" },
|
|
13034
13137
|
"data-test-id": "frontier-sdk-delete-team-btn-general",
|
|
@@ -13044,7 +13147,7 @@ var DeleteTeam = () => {
|
|
|
13044
13147
|
};
|
|
13045
13148
|
|
|
13046
13149
|
// react/components/organization/teams/team.tsx
|
|
13047
|
-
import { useEffect as useEffect21, useMemo as
|
|
13150
|
+
import { useEffect as useEffect21, useMemo as useMemo23 } from "react";
|
|
13048
13151
|
import { Tabs as Tabs2, Image as Image14, Flex as Flex39, toast as toast24 } from "@raystack/apsara";
|
|
13049
13152
|
import {
|
|
13050
13153
|
Outlet as Outlet7,
|
|
@@ -13066,7 +13169,7 @@ import {
|
|
|
13066
13169
|
} from "@raystack/apsara";
|
|
13067
13170
|
import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
|
|
13068
13171
|
import { useNavigate as useNavigate20, useParams as useParams8 } from "@tanstack/react-router";
|
|
13069
|
-
import { useEffect as useEffect19, useMemo as
|
|
13172
|
+
import { useEffect as useEffect19, useMemo as useMemo21 } from "react";
|
|
13070
13173
|
import { useForm as useForm14 } from "react-hook-form";
|
|
13071
13174
|
import * as yup14 from "yup";
|
|
13072
13175
|
import { useMutation as useMutation18 } from "@connectrpc/connect-query";
|
|
@@ -13096,7 +13199,7 @@ var General2 = ({
|
|
|
13096
13199
|
reset(team);
|
|
13097
13200
|
}, [reset, team]);
|
|
13098
13201
|
const resource = `app/group:${teamId}`;
|
|
13099
|
-
const listOfPermissionsToCheck =
|
|
13202
|
+
const listOfPermissionsToCheck = useMemo21(
|
|
13100
13203
|
() => [
|
|
13101
13204
|
{
|
|
13102
13205
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -13113,7 +13216,7 @@ var General2 = ({
|
|
|
13113
13216
|
listOfPermissionsToCheck,
|
|
13114
13217
|
!!teamId
|
|
13115
13218
|
);
|
|
13116
|
-
const { canUpdateGroup, canDeleteGroup } =
|
|
13219
|
+
const { canUpdateGroup, canDeleteGroup } = useMemo21(() => {
|
|
13117
13220
|
return {
|
|
13118
13221
|
canUpdateGroup: shouldShowComponent(
|
|
13119
13222
|
permissions,
|
|
@@ -13247,7 +13350,7 @@ import {
|
|
|
13247
13350
|
Search as Search3
|
|
13248
13351
|
} from "@raystack/apsara";
|
|
13249
13352
|
import { Link as Link7, useParams as useParams10 } from "@tanstack/react-router";
|
|
13250
|
-
import { useCallback as useCallback16, useEffect as useEffect20, useMemo as
|
|
13353
|
+
import { useCallback as useCallback16, useEffect as useEffect20, useMemo as useMemo22, useState as useState17 } from "react";
|
|
13251
13354
|
|
|
13252
13355
|
// react/components/organization/teams/members/member.columns.tsx
|
|
13253
13356
|
import { useNavigate as useNavigate21, useParams as useParams9 } from "@tanstack/react-router";
|
|
@@ -13468,8 +13571,8 @@ import { useQuery as useQuery20, useMutation as useMutation20 } from "@connectrp
|
|
|
13468
13571
|
import { FrontierServiceQueries as FrontierServiceQueries28, AddGroupUsersRequestSchema, ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema3 } from "@raystack/proton/frontier";
|
|
13469
13572
|
import { create as create31 } from "@bufbuild/protobuf";
|
|
13470
13573
|
|
|
13471
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13472
|
-
var digest37 = "
|
|
13574
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-kmrHfvoQeR2u/core/react/components/organization/teams/members/members.module.css.js
|
|
13575
|
+
var digest37 = "acb1f953d9126d74a93381c110f05ea487cb9caa2e8df7e8a28455e6b3625071";
|
|
13473
13576
|
var css37 = `._inviteDropdownItem_srd80_1 {
|
|
13474
13577
|
padding: var(--rs-space-3);
|
|
13475
13578
|
user-select: none;
|
|
@@ -13549,7 +13652,7 @@ var Members2 = ({
|
|
|
13549
13652
|
}) => {
|
|
13550
13653
|
const { teamId } = useParams10({ from: "/teams/$teamId" });
|
|
13551
13654
|
const resource = `app/group:${teamId}`;
|
|
13552
|
-
const listOfPermissionsToCheck =
|
|
13655
|
+
const listOfPermissionsToCheck = useMemo22(
|
|
13553
13656
|
() => [
|
|
13554
13657
|
{
|
|
13555
13658
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -13562,7 +13665,7 @@ var Members2 = ({
|
|
|
13562
13665
|
listOfPermissionsToCheck,
|
|
13563
13666
|
!!teamId
|
|
13564
13667
|
);
|
|
13565
|
-
const { canUpdateGroup } =
|
|
13668
|
+
const { canUpdateGroup } = useMemo22(() => {
|
|
13566
13669
|
return {
|
|
13567
13670
|
canUpdateGroup: shouldShowComponent(
|
|
13568
13671
|
permissions,
|
|
@@ -13571,7 +13674,7 @@ var Members2 = ({
|
|
|
13571
13674
|
};
|
|
13572
13675
|
}, [permissions, resource]);
|
|
13573
13676
|
const isLoading = isPermissionsFetching || isMemberLoading;
|
|
13574
|
-
const columns =
|
|
13677
|
+
const columns = useMemo22(
|
|
13575
13678
|
() => getColumns6({
|
|
13576
13679
|
roles,
|
|
13577
13680
|
organizationId,
|
|
@@ -13649,12 +13752,12 @@ var AddMemberDropdown2 = ({
|
|
|
13649
13752
|
});
|
|
13650
13753
|
}
|
|
13651
13754
|
}, [orgMembersError]);
|
|
13652
|
-
const invitableUser =
|
|
13755
|
+
const invitableUser = useMemo22(
|
|
13653
13756
|
() => filterUsersfromUsers((orgMembersData == null ? void 0 : orgMembersData.users) || [], members) || [],
|
|
13654
13757
|
[orgMembersData == null ? void 0 : orgMembersData.users, members]
|
|
13655
13758
|
);
|
|
13656
13759
|
const isUserLoading = isOrgMembersLoading;
|
|
13657
|
-
const topUsers =
|
|
13760
|
+
const topUsers = useMemo22(
|
|
13658
13761
|
() => invitableUser.filter(
|
|
13659
13762
|
(user) => query ? user.title && user.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
13660
13763
|
).slice(0, 7),
|
|
@@ -13779,8 +13882,8 @@ import { useQuery as useQuery21 } from "@connectrpc/connect-query";
|
|
|
13779
13882
|
import { FrontierServiceQueries as FrontierServiceQueries29, GetGroupRequestSchema as GetGroupRequestSchema2, ListGroupUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema4 } from "@raystack/proton/frontier";
|
|
13780
13883
|
import { create as create32 } from "@bufbuild/protobuf";
|
|
13781
13884
|
|
|
13782
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13783
|
-
var digest38 = "
|
|
13885
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-KqewDJtuYPjr/core/react/components/organization/styles.module.css.js
|
|
13886
|
+
var digest38 = "a4140684f557fb2a0ac8b3e7957cd1d5b292fc7d0a85722986189fd0e61be3ba";
|
|
13784
13887
|
var css38 = `._header_11okm_1 {
|
|
13785
13888
|
margin-bottom: var(--rs-space-9);
|
|
13786
13889
|
}
|
|
@@ -13823,8 +13926,8 @@ var css38 = `._header_11okm_1 {
|
|
|
13823
13926
|
})();
|
|
13824
13927
|
var styles_module_css_default9 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
13825
13928
|
|
|
13826
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13827
|
-
var digest39 = "
|
|
13929
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-fMWNFGsMIERS/core/react/components/organization/teams/teams.module.css.js
|
|
13930
|
+
var digest39 = "1abb9b163c35aa1efcb19a3176a146c68662e497f17e3635e32ea55f4c3116cd";
|
|
13828
13931
|
var css39 = `._tableWrapper_1dq1l_1 {
|
|
13829
13932
|
display: flex;
|
|
13830
13933
|
flex-direction: column;
|
|
@@ -13873,7 +13976,7 @@ var TeamPage = () => {
|
|
|
13873
13976
|
const { activeOrganization: organization } = useFrontier();
|
|
13874
13977
|
let navigate = useNavigate22({ from: "/teams/$teamId" });
|
|
13875
13978
|
const routerState = useRouterState6();
|
|
13876
|
-
const isDeleteRoute =
|
|
13979
|
+
const isDeleteRoute = useMemo23(() => {
|
|
13877
13980
|
return routerState.matches.some(
|
|
13878
13981
|
(route) => route.routeId === "/teams/$teamId/delete"
|
|
13879
13982
|
);
|
|
@@ -13897,7 +14000,7 @@ var TeamPage = () => {
|
|
|
13897
14000
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId && !isDeleteRoute }
|
|
13898
14001
|
);
|
|
13899
14002
|
const members = (membersData == null ? void 0 : membersData.users) || [];
|
|
13900
|
-
const memberRoles =
|
|
14003
|
+
const memberRoles = useMemo23(() => {
|
|
13901
14004
|
if (!(membersData == null ? void 0 : membersData.rolePairs))
|
|
13902
14005
|
return {};
|
|
13903
14006
|
return membersData.rolePairs.reduce((previous, mr) => {
|
|
@@ -14114,8 +14217,8 @@ var UpdateProfile = () => {
|
|
|
14114
14217
|
] }) });
|
|
14115
14218
|
};
|
|
14116
14219
|
|
|
14117
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14118
|
-
var digest40 = "
|
|
14220
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-1FO3vl9Jqyxe/core/react/components/organization/styles.module.css.js
|
|
14221
|
+
var digest40 = "d4bd20072c8b865dbea1be374730a51d0c7e8102fa887d7ff33d232b6547bcfb";
|
|
14119
14222
|
var css40 = `._header_11okm_1 {
|
|
14120
14223
|
margin-bottom: var(--rs-space-9);
|
|
14121
14224
|
}
|
|
@@ -14187,7 +14290,7 @@ import {
|
|
|
14187
14290
|
Label as Label5
|
|
14188
14291
|
} from "@raystack/apsara";
|
|
14189
14292
|
import { useNavigate as useNavigate23, useParams as useParams12 } from "@tanstack/react-router";
|
|
14190
|
-
import { useCallback as useCallback17, useEffect as useEffect23, useMemo as
|
|
14293
|
+
import { useCallback as useCallback17, useEffect as useEffect23, useMemo as useMemo24 } from "react";
|
|
14191
14294
|
import { Controller as Controller4, useForm as useForm16 } from "react-hook-form";
|
|
14192
14295
|
import * as yup16 from "yup";
|
|
14193
14296
|
import { useQuery as useQuery22, useMutation as useMutation21 } from "@connectrpc/connect-query";
|
|
@@ -14202,8 +14305,8 @@ import {
|
|
|
14202
14305
|
} from "@raystack/proton/frontier";
|
|
14203
14306
|
import { create as create33 } from "@bufbuild/protobuf";
|
|
14204
14307
|
|
|
14205
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14206
|
-
var digest41 = "
|
|
14308
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-MS3kkdlHuy4v/core/react/components/organization/organization.module.css.js
|
|
14309
|
+
var digest41 = "790a3b167ef5a0f1acccf00be72bc83763e146b330b5b82603ac5e2e45883756";
|
|
14207
14310
|
var css41 = `._createContainer_ipia2_1 {
|
|
14208
14311
|
margin: auto;
|
|
14209
14312
|
width: 100%;
|
|
@@ -14307,7 +14410,7 @@ var InviteTeamMembers = () => {
|
|
|
14307
14410
|
create33(ListRolesRequestSchema5, { scopes: [PERMISSIONS.GroupNamespace] }),
|
|
14308
14411
|
{ enabled: !!(organization == null ? void 0 : organization.id) }
|
|
14309
14412
|
);
|
|
14310
|
-
const roles =
|
|
14413
|
+
const roles = useMemo24(() => {
|
|
14311
14414
|
const orgRoles = (orgRolesData == null ? void 0 : orgRolesData.roles) || [];
|
|
14312
14415
|
const systemRoles = (rolesData == null ? void 0 : rolesData.roles) || [];
|
|
14313
14416
|
return [...systemRoles, ...orgRoles];
|
|
@@ -14377,7 +14480,7 @@ var InviteTeamMembers = () => {
|
|
|
14377
14480
|
});
|
|
14378
14481
|
});
|
|
14379
14482
|
}
|
|
14380
|
-
const invitableUser =
|
|
14483
|
+
const invitableUser = useMemo24(
|
|
14381
14484
|
() => filterUsersfromUsers((orgMembersData == null ? void 0 : orgMembersData.users) || [], (teamMembersData == null ? void 0 : teamMembersData.users) || []) || [],
|
|
14382
14485
|
[orgMembersData == null ? void 0 : orgMembersData.users, teamMembersData == null ? void 0 : teamMembersData.users]
|
|
14383
14486
|
);
|
|
@@ -14506,8 +14609,8 @@ import {
|
|
|
14506
14609
|
} from "@raystack/proton/frontier";
|
|
14507
14610
|
import { create as create34 } from "@bufbuild/protobuf";
|
|
14508
14611
|
|
|
14509
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14510
|
-
var digest42 = "
|
|
14612
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-0gr4IrYdBWz0/core/react/components/organization/organization.module.css.js
|
|
14613
|
+
var digest42 = "a314393518576fb87bff836c23dbfa535415a58ad113b370fad7053a6966d814";
|
|
14511
14614
|
var css42 = `._createContainer_ipia2_1 {
|
|
14512
14615
|
margin: auto;
|
|
14513
14616
|
width: 100%;
|
|
@@ -14620,7 +14723,7 @@ var DeleteDomain = () => {
|
|
|
14620
14723
|
if (!(domain == null ? void 0 : domain.id) || !(organization == null ? void 0 : organization.id))
|
|
14621
14724
|
return;
|
|
14622
14725
|
if (data.domain !== domain.name) {
|
|
14623
|
-
return setError("domain", { message: "
|
|
14726
|
+
return setError("domain", { message: "Domain name does not match" });
|
|
14624
14727
|
}
|
|
14625
14728
|
yield deleteOrganizationDomain(
|
|
14626
14729
|
create34(DeleteOrganizationDomainRequestSchema, {
|
|
@@ -14660,11 +14763,11 @@ var DeleteDomain = () => {
|
|
|
14660
14763
|
/* @__PURE__ */ jsx48(
|
|
14661
14764
|
InputField15,
|
|
14662
14765
|
__spreadProps(__spreadValues({
|
|
14663
|
-
label: "Please
|
|
14766
|
+
label: "Please enter the domain name to confirm.",
|
|
14664
14767
|
size: "large",
|
|
14665
14768
|
error: errors.domain && String((_a = errors.domain) == null ? void 0 : _a.message)
|
|
14666
14769
|
}, register("domain")), {
|
|
14667
|
-
placeholder: "
|
|
14770
|
+
placeholder: "Enter the domain name"
|
|
14668
14771
|
})
|
|
14669
14772
|
),
|
|
14670
14773
|
/* @__PURE__ */ jsxs45(Flex43, { gap: "small", children: [
|
|
@@ -14676,7 +14779,7 @@ var DeleteDomain = () => {
|
|
|
14676
14779
|
"data-test-id": "frontier-sdk-delete-domain-checkbox"
|
|
14677
14780
|
}
|
|
14678
14781
|
),
|
|
14679
|
-
/* @__PURE__ */ jsx48(Text34, { size: "small", children: "I acknowledge
|
|
14782
|
+
/* @__PURE__ */ jsx48(Text34, { size: "small", children: "I acknowledge and understand that all of the domain data will be deleted and want to proceed." })
|
|
14680
14783
|
] }),
|
|
14681
14784
|
/* @__PURE__ */ jsx48(
|
|
14682
14785
|
Button30,
|
|
@@ -14707,7 +14810,7 @@ import {
|
|
|
14707
14810
|
Link as Link9
|
|
14708
14811
|
} from "@raystack/apsara";
|
|
14709
14812
|
import { Outlet as Outlet8 } from "@tanstack/react-router";
|
|
14710
|
-
import { useCallback as useCallback20, useEffect as useEffect26 } from "react";
|
|
14813
|
+
import { useCallback as useCallback20, useEffect as useEffect26, useMemo as useMemo28 } from "react";
|
|
14711
14814
|
import {
|
|
14712
14815
|
ListInvoicesRequestSchema,
|
|
14713
14816
|
FrontierServiceQueries as FrontierServiceQueries34,
|
|
@@ -14726,8 +14829,8 @@ import {
|
|
|
14726
14829
|
Amount
|
|
14727
14830
|
} from "@raystack/apsara";
|
|
14728
14831
|
|
|
14729
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14730
|
-
var digest43 = "
|
|
14832
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-fE3mRZv6TMR9/core/react/components/organization/billing/invoices/invoice.module.css.js
|
|
14833
|
+
var digest43 = "045e047d2cf27f2a9337f74777f8d0ec07fa3b9d6cd8dbe09bcaa45133edd497";
|
|
14731
14834
|
var css43 = `._header_gzg1m_1 {
|
|
14732
14835
|
margin-top: calc(-1 * var(--rs-space-9));
|
|
14733
14836
|
padding-top: var(--rs-space-9);
|
|
@@ -14841,8 +14944,8 @@ function Invoices({ isLoading, invoices }) {
|
|
|
14841
14944
|
// react/components/organization/billing/index.tsx
|
|
14842
14945
|
import qs2 from "query-string";
|
|
14843
14946
|
|
|
14844
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14845
|
-
var digest44 = "
|
|
14947
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-pWQ16mEGNK2k/core/react/components/organization/styles.module.css.js
|
|
14948
|
+
var digest44 = "710865a517742efc57ad66dd5d13aa90e22520021d7ea6ce23a49360b5665fe0";
|
|
14846
14949
|
var css44 = `._header_11okm_1 {
|
|
14847
14950
|
margin-bottom: var(--rs-space-9);
|
|
14848
14951
|
}
|
|
@@ -14885,8 +14988,8 @@ var css44 = `._header_11okm_1 {
|
|
|
14885
14988
|
})();
|
|
14886
14989
|
var styles_module_css_default11 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
14887
14990
|
|
|
14888
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14889
|
-
var digest45 = "
|
|
14991
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-WMqgOqc5Bjtg/core/react/components/organization/billing/billing.module.css.js
|
|
14992
|
+
var digest45 = "076c1863ba9ed9f2a10dbb1c95f0d121c4e77fc569bb38e38db232782f276382";
|
|
14890
14993
|
var css45 = `._detailsBox_1vjbh_1 {
|
|
14891
14994
|
padding: var(--rs-space-4);
|
|
14892
14995
|
display: flex;
|
|
@@ -14990,7 +15093,7 @@ var billing_module_css_default = { "detailsBox": "_detailsBox_1vjbh_1", "details
|
|
|
14990
15093
|
|
|
14991
15094
|
// react/components/organization/billing/upcoming-billing-cycle.tsx
|
|
14992
15095
|
import { useNavigate as useNavigate25 } from "@tanstack/react-router";
|
|
14993
|
-
import { useEffect as useEffect25, useMemo as
|
|
15096
|
+
import { useEffect as useEffect25, useMemo as useMemo25 } from "react";
|
|
14994
15097
|
import {
|
|
14995
15098
|
GetUpcomingInvoiceRequestSchema,
|
|
14996
15099
|
FrontierServiceQueries as FrontierServiceQueries32,
|
|
@@ -15012,8 +15115,8 @@ import {
|
|
|
15012
15115
|
// react/assets/line.svg
|
|
15013
15116
|
var line_default = 'data:image/svg+xml,<svg width="2" height="6" viewBox="0 0 2 6" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <path id="Line 1" d="M1 1L1 5" stroke="%233a3f42" stroke-linecap="round" />%0A</svg>';
|
|
15014
15117
|
|
|
15015
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15016
|
-
var digest46 = "
|
|
15118
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-TylnVr50ImeV/core/react/components/organization/billing/billing.module.css.js
|
|
15119
|
+
var digest46 = "5b6980712b03c0ccc0bb929dda484097c40c2073d3ba641c821c18f941806084";
|
|
15017
15120
|
var css46 = `._detailsBox_1vjbh_1 {
|
|
15018
15121
|
padding: var(--rs-space-4);
|
|
15019
15122
|
display: flex;
|
|
@@ -15214,7 +15317,7 @@ var UpcomingBillingCycle = ({
|
|
|
15214
15317
|
}
|
|
15215
15318
|
}
|
|
15216
15319
|
);
|
|
15217
|
-
const { plan, switchablePlan } =
|
|
15320
|
+
const { plan, switchablePlan } = useMemo25(() => {
|
|
15218
15321
|
if ((activeSubscription == null ? void 0 : activeSubscription.planId) && allPlans.length > 0) {
|
|
15219
15322
|
const currentPlan = allPlans.find(
|
|
15220
15323
|
(p) => p.id === activeSubscription.planId
|
|
@@ -15340,8 +15443,8 @@ var UpcomingBillingCycle = ({
|
|
|
15340
15443
|
// react/components/organization/billing/payment-issue.tsx
|
|
15341
15444
|
import { Button as Button32, Skeleton as Skeleton21, Image as Image17, Text as Text37, Flex as Flex46 } from "@raystack/apsara";
|
|
15342
15445
|
|
|
15343
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15344
|
-
var digest47 = "
|
|
15446
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-C7Ns04em3ucc/core/react/components/organization/billing/billing.module.css.js
|
|
15447
|
+
var digest47 = "908f345f3c5a236247bd3f5ef80d3fa9b3cb64a3a70617ff7d74b1032d9920a7";
|
|
15345
15448
|
var css47 = `._detailsBox_1vjbh_1 {
|
|
15346
15449
|
padding: var(--rs-space-4);
|
|
15347
15450
|
display: flex;
|
|
@@ -15496,8 +15599,8 @@ function PaymentIssue({
|
|
|
15496
15599
|
import { Button as Button33, Skeleton as Skeleton22, Text as Text38, Flex as Flex47, toast as toast29 } from "@raystack/apsara";
|
|
15497
15600
|
import { ChangeSubscriptionRequestSchema } from "@raystack/proton/frontier";
|
|
15498
15601
|
|
|
15499
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15500
|
-
var digest48 = "
|
|
15602
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-YSrmG7gGBciF/core/react/components/common/upcoming-plan-change-banner/styles.module.css.js
|
|
15603
|
+
var digest48 = "aa0845d8bc279d199d55c6d79ae2572a9eaeb49c0f4fa8987e9cea1b9b47206b";
|
|
15501
15604
|
var css48 = `._changeBannerBox_1tp17_1 {
|
|
15502
15605
|
padding: var(--rs-space-3);
|
|
15503
15606
|
border-radius: var(--rs-space-2);
|
|
@@ -15529,7 +15632,7 @@ var styles_module_css_default12 = { "changeBannerBox": "_changeBannerBox_1tp17_1
|
|
|
15529
15632
|
|
|
15530
15633
|
// react/components/common/upcoming-plan-change-banner/index.tsx
|
|
15531
15634
|
import dayjs4 from "dayjs";
|
|
15532
|
-
import { useCallback as useCallback19, useMemo as
|
|
15635
|
+
import { useCallback as useCallback19, useMemo as useMemo26 } from "react";
|
|
15533
15636
|
import { create as create36 } from "@bufbuild/protobuf";
|
|
15534
15637
|
import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
|
|
15535
15638
|
import { createConnectQueryKey as createConnectQueryKey10, useTransport as useTransport9 } from "@connectrpc/connect-query";
|
|
@@ -15544,7 +15647,6 @@ function UpcomingPlanChangeBanner({
|
|
|
15544
15647
|
config,
|
|
15545
15648
|
activePlan,
|
|
15546
15649
|
activeOrganization,
|
|
15547
|
-
billingAccount,
|
|
15548
15650
|
basePlan,
|
|
15549
15651
|
allPlans,
|
|
15550
15652
|
isAllPlansLoading
|
|
@@ -15555,14 +15657,13 @@ function UpcomingPlanChangeBanner({
|
|
|
15555
15657
|
FrontierServiceQueries.changeSubscription,
|
|
15556
15658
|
{
|
|
15557
15659
|
onSuccess: () => __async(this, null, function* () {
|
|
15558
|
-
var _a2
|
|
15660
|
+
var _a2;
|
|
15559
15661
|
yield queryClient2.invalidateQueries({
|
|
15560
15662
|
queryKey: createConnectQueryKey10({
|
|
15561
15663
|
schema: FrontierServiceQueries.listSubscriptions,
|
|
15562
15664
|
transport,
|
|
15563
15665
|
input: {
|
|
15564
|
-
orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
|
|
15565
|
-
billingId: (_b2 = billingAccount == null ? void 0 : billingAccount.id) != null ? _b2 : ""
|
|
15666
|
+
orgId: (_a2 = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a2 : ""
|
|
15566
15667
|
},
|
|
15567
15668
|
cardinality: "finite"
|
|
15568
15669
|
})
|
|
@@ -15584,7 +15685,7 @@ function UpcomingPlanChangeBanner({
|
|
|
15584
15685
|
}
|
|
15585
15686
|
)) || [];
|
|
15586
15687
|
const nextPhase = phases == null ? void 0 : phases[0];
|
|
15587
|
-
const upcomingPlan =
|
|
15688
|
+
const upcomingPlan = useMemo26(() => {
|
|
15588
15689
|
if ((nextPhase == null ? void 0 : nextPhase.planId) && allPlans.length > 0) {
|
|
15589
15690
|
const plan = allPlans.find((p) => p.id === (nextPhase == null ? void 0 : nextPhase.planId));
|
|
15590
15691
|
return plan;
|
|
@@ -15601,11 +15702,9 @@ function UpcomingPlanChangeBanner({
|
|
|
15601
15702
|
);
|
|
15602
15703
|
const showLoader = isLoading || isAllPlansLoading;
|
|
15603
15704
|
const onPlanChangeCancel = useCallback19(() => {
|
|
15604
|
-
if (
|
|
15705
|
+
if (subscription == null ? void 0 : subscription.id) {
|
|
15605
15706
|
cancelUpcomingChange(
|
|
15606
15707
|
create36(ChangeSubscriptionRequestSchema, {
|
|
15607
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15608
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
15609
15708
|
id: subscription == null ? void 0 : subscription.id,
|
|
15610
15709
|
change: {
|
|
15611
15710
|
case: "phaseChange",
|
|
@@ -15616,12 +15715,7 @@ function UpcomingPlanChangeBanner({
|
|
|
15616
15715
|
})
|
|
15617
15716
|
);
|
|
15618
15717
|
}
|
|
15619
|
-
}, [
|
|
15620
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15621
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
15622
|
-
subscription == null ? void 0 : subscription.id,
|
|
15623
|
-
cancelUpcomingChange
|
|
15624
|
-
]);
|
|
15718
|
+
}, [subscription == null ? void 0 : subscription.id, cancelUpcomingChange]);
|
|
15625
15719
|
const currentPlanName = getPlanNameWithInterval(activePlan);
|
|
15626
15720
|
const upcomingPlanName = getPlanNameWithInterval(upcomingPlan || basePlan);
|
|
15627
15721
|
const areSimilarPlans = checkSimilarPlans(activePlan, upcomingPlan);
|
|
@@ -15669,8 +15763,8 @@ import qs from "query-string";
|
|
|
15669
15763
|
import * as _ from "lodash";
|
|
15670
15764
|
import { Button as Button34, Skeleton as Skeleton23, Text as Text39, Flex as Flex48 } from "@raystack/apsara";
|
|
15671
15765
|
|
|
15672
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15673
|
-
var digest49 = "
|
|
15766
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-P5mAWVeDJCh0/core/react/components/organization/billing/billing.module.css.js
|
|
15767
|
+
var digest49 = "e11e3ff9743ddd777b583fb5014fac3f13f7bf22f51889b4cc4d707fef4cb2a0";
|
|
15674
15768
|
var css49 = `._detailsBox_1vjbh_1 {
|
|
15675
15769
|
padding: var(--rs-space-4);
|
|
15676
15770
|
display: flex;
|
|
@@ -15785,7 +15879,7 @@ var PaymentMethod3 = ({
|
|
|
15785
15879
|
isLoading,
|
|
15786
15880
|
isAllowed
|
|
15787
15881
|
}) => {
|
|
15788
|
-
const { config, billingAccount } = useFrontier();
|
|
15882
|
+
const { config, billingAccount, activeOrganization } = useFrontier();
|
|
15789
15883
|
const { mutateAsync: createCheckoutMutation, isPending: isActionLoading } = useMutation(FrontierServiceQueries33.createCheckout, {
|
|
15790
15884
|
onError: (err) => {
|
|
15791
15885
|
console.error(err);
|
|
@@ -15805,16 +15899,12 @@ var PaymentMethod3 = ({
|
|
|
15805
15899
|
const isPaymentMethodAvailable = cardLast4 !== "";
|
|
15806
15900
|
const updatePaymentMethod = () => __async(void 0, null, function* () {
|
|
15807
15901
|
var _a, _b, _c;
|
|
15808
|
-
const orgId = (
|
|
15809
|
-
const billingAccountId = (billingAccount == null ? void 0 : billingAccount.id) || "";
|
|
15810
|
-
if (!billingAccountId || !orgId)
|
|
15811
|
-
return;
|
|
15902
|
+
const orgId = (activeOrganization == null ? void 0 : activeOrganization.id) || "";
|
|
15812
15903
|
const query = qs.stringify(
|
|
15813
15904
|
{
|
|
15814
15905
|
details: btoa(
|
|
15815
15906
|
qs.stringify({
|
|
15816
|
-
|
|
15817
|
-
organization_id: billingAccount == null ? void 0 : billingAccount.orgId,
|
|
15907
|
+
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
15818
15908
|
type: "billing"
|
|
15819
15909
|
})
|
|
15820
15910
|
),
|
|
@@ -15826,8 +15916,7 @@ var PaymentMethod3 = ({
|
|
|
15826
15916
|
const success_url = `${(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl}?${query}`;
|
|
15827
15917
|
const resp = yield createCheckoutMutation(
|
|
15828
15918
|
create37(CreateCheckoutRequestSchema, {
|
|
15829
|
-
orgId: (
|
|
15830
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
15919
|
+
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
15831
15920
|
cancelUrl: cancel_url,
|
|
15832
15921
|
successUrl: success_url,
|
|
15833
15922
|
setupBody: {
|
|
@@ -15905,11 +15994,11 @@ var PaymentMethod3 = ({
|
|
|
15905
15994
|
};
|
|
15906
15995
|
|
|
15907
15996
|
// react/hooks/useBillingPermission.ts
|
|
15908
|
-
import { useMemo as
|
|
15997
|
+
import { useMemo as useMemo27 } from "react";
|
|
15909
15998
|
var useBillingPermission = () => {
|
|
15910
15999
|
const { activeOrganization } = useFrontier();
|
|
15911
16000
|
const resource = `app/organization:${activeOrganization == null ? void 0 : activeOrganization.id}`;
|
|
15912
|
-
const listOfPermissionsToCheck =
|
|
16001
|
+
const listOfPermissionsToCheck = useMemo27(
|
|
15913
16002
|
() => [
|
|
15914
16003
|
{
|
|
15915
16004
|
permission: PERMISSIONS.DeletePermission,
|
|
@@ -15922,7 +16011,7 @@ var useBillingPermission = () => {
|
|
|
15922
16011
|
listOfPermissionsToCheck,
|
|
15923
16012
|
!!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
15924
16013
|
);
|
|
15925
|
-
const { isAllowed } =
|
|
16014
|
+
const { isAllowed } = useMemo27(() => {
|
|
15926
16015
|
return {
|
|
15927
16016
|
isAllowed: shouldShowComponent(
|
|
15928
16017
|
permissions,
|
|
@@ -16026,11 +16115,12 @@ function Billing() {
|
|
|
16026
16115
|
isActiveSubscriptionLoading,
|
|
16027
16116
|
paymentMethod,
|
|
16028
16117
|
organizationKyc,
|
|
16029
|
-
isOrganizationKycLoading
|
|
16118
|
+
isOrganizationKycLoading,
|
|
16119
|
+
activeOrganization
|
|
16030
16120
|
} = useFrontier();
|
|
16031
16121
|
const { isAllowed, isFetching } = useBillingPermission();
|
|
16032
16122
|
const {
|
|
16033
|
-
data:
|
|
16123
|
+
data: invoicesData,
|
|
16034
16124
|
isLoading: isInvoicesLoading,
|
|
16035
16125
|
error: invoicesError
|
|
16036
16126
|
} = useConnectQuery3(
|
|
@@ -16041,10 +16131,10 @@ function Billing() {
|
|
|
16041
16131
|
nonzeroAmountOnly: true
|
|
16042
16132
|
}),
|
|
16043
16133
|
{
|
|
16044
|
-
enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && !!(billingAccount == null ? void 0 : billingAccount.orgId)
|
|
16045
|
-
select: (data) => (data == null ? void 0 : data.invoices) || []
|
|
16134
|
+
enabled: !!(billingAccount == null ? void 0 : billingAccount.id) && !!(billingAccount == null ? void 0 : billingAccount.orgId)
|
|
16046
16135
|
}
|
|
16047
16136
|
);
|
|
16137
|
+
const invoices = useMemo28(() => (invoicesData == null ? void 0 : invoicesData.invoices) || [], [invoicesData]);
|
|
16048
16138
|
useEffect26(() => {
|
|
16049
16139
|
if (invoicesError) {
|
|
16050
16140
|
toast31.error("Failed to load invoices", {
|
|
@@ -16065,17 +16155,15 @@ function Billing() {
|
|
|
16065
16155
|
);
|
|
16066
16156
|
const onAddDetailsClick = useCallback20(() => __async(this, null, function* () {
|
|
16067
16157
|
var _a2, _b2, _c2;
|
|
16068
|
-
const orgId = (
|
|
16069
|
-
|
|
16070
|
-
if (!billingAccountId || !orgId)
|
|
16158
|
+
const orgId = (activeOrganization == null ? void 0 : activeOrganization.id) || "";
|
|
16159
|
+
if (!orgId)
|
|
16071
16160
|
return;
|
|
16072
16161
|
try {
|
|
16073
16162
|
const query = qs2.stringify(
|
|
16074
16163
|
{
|
|
16075
16164
|
details: btoa(
|
|
16076
16165
|
qs2.stringify({
|
|
16077
|
-
|
|
16078
|
-
organization_id: billingAccount == null ? void 0 : billingAccount.orgId,
|
|
16166
|
+
organization_id: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
16079
16167
|
type: "billing"
|
|
16080
16168
|
})
|
|
16081
16169
|
),
|
|
@@ -16087,8 +16175,7 @@ function Billing() {
|
|
|
16087
16175
|
const success_url = `${(_b2 = config == null ? void 0 : config.billing) == null ? void 0 : _b2.successUrl}?${query}`;
|
|
16088
16176
|
const resp = yield createCheckoutMutation(
|
|
16089
16177
|
create38(CreateCheckoutRequestSchema2, {
|
|
16090
|
-
orgId: (
|
|
16091
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
16178
|
+
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
16092
16179
|
cancelUrl: cancel_url,
|
|
16093
16180
|
successUrl: success_url,
|
|
16094
16181
|
setupBody: {
|
|
@@ -16106,8 +16193,7 @@ function Billing() {
|
|
|
16106
16193
|
toast31.error("Something went wrong");
|
|
16107
16194
|
}
|
|
16108
16195
|
}), [
|
|
16109
|
-
|
|
16110
|
-
billingAccount == null ? void 0 : billingAccount.orgId,
|
|
16196
|
+
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16111
16197
|
createCheckoutMutation,
|
|
16112
16198
|
(_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.cancelUrl,
|
|
16113
16199
|
(_b = config == null ? void 0 : config.billing) == null ? void 0 : _b.successUrl
|
|
@@ -16175,7 +16261,7 @@ function Billing() {
|
|
|
16175
16261
|
}
|
|
16176
16262
|
|
|
16177
16263
|
// react/components/organization/tokens/index.tsx
|
|
16178
|
-
import { useEffect as useEffect28 } from "react";
|
|
16264
|
+
import { useEffect as useEffect28, useMemo as useMemo30 } from "react";
|
|
16179
16265
|
import {
|
|
16180
16266
|
Button as Button36,
|
|
16181
16267
|
Tooltip as Tooltip13,
|
|
@@ -16232,8 +16318,8 @@ import {
|
|
|
16232
16318
|
} from "@raystack/apsara";
|
|
16233
16319
|
import * as _2 from "lodash";
|
|
16234
16320
|
|
|
16235
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16236
|
-
var digest50 = "
|
|
16321
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-ewVepI6rcqfB/core/react/components/organization/tokens/token.module.css.js
|
|
16322
|
+
var digest50 = "ed497138b9f23ca84dc56d96d2eff8decc77fbffd70e9925ddb9db449340fff0";
|
|
16237
16323
|
var css50 = `._flex1_1rl84_1 {
|
|
16238
16324
|
flex: 1;
|
|
16239
16325
|
}
|
|
@@ -16366,8 +16452,8 @@ var getColumns8 = ({
|
|
|
16366
16452
|
}
|
|
16367
16453
|
];
|
|
16368
16454
|
|
|
16369
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16370
|
-
var digest51 = "
|
|
16455
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-gPSaqHkaxxhR/core/react/components/organization/tokens/token.module.css.js
|
|
16456
|
+
var digest51 = "032e0c3e3bedc7958d55ec7c1ef4a8f6a24875708fbbddac2e4ac13c8d857f5b";
|
|
16371
16457
|
var css51 = `._flex1_1rl84_1 {
|
|
16372
16458
|
flex: 1;
|
|
16373
16459
|
}
|
|
@@ -16463,7 +16549,7 @@ function TransactionsTable({
|
|
|
16463
16549
|
var noDataChildren8 = /* @__PURE__ */ jsx56(EmptyState9, { icon: /* @__PURE__ */ jsx56(ExclamationTriangleIcon, {}), heading: "No Transactions" });
|
|
16464
16550
|
|
|
16465
16551
|
// react/hooks/useTokens.ts
|
|
16466
|
-
import { useMemo as
|
|
16552
|
+
import { useMemo as useMemo29, useEffect as useEffect27 } from "react";
|
|
16467
16553
|
import { useQuery as useQuery23 } from "@connectrpc/connect-query";
|
|
16468
16554
|
import { create as create39 } from "@bufbuild/protobuf";
|
|
16469
16555
|
import { FrontierServiceQueries as FrontierServiceQueries35, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
|
|
@@ -16493,7 +16579,7 @@ var useTokens = () => {
|
|
|
16493
16579
|
toast32.error("Unable to fetch balance");
|
|
16494
16580
|
}
|
|
16495
16581
|
}, [error]);
|
|
16496
|
-
const tokenBalance =
|
|
16582
|
+
const tokenBalance = useMemo29(
|
|
16497
16583
|
() => {
|
|
16498
16584
|
var _a2;
|
|
16499
16585
|
return Number(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
|
|
@@ -16515,8 +16601,8 @@ import { create as create40 } from "@bufbuild/protobuf";
|
|
|
16515
16601
|
// react/assets/coin.svg
|
|
16516
16602
|
var coin_default = 'data:image/svg+xml,<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Credit coin">%0A<path id="credit coin" d="M48 24.0196C47.9983 37.3229 37.2746 48.0052 23.9263 48.0001C10.6771 47.9951 -0.0098551 37.2504 6.81992e-06 23.9446C0.0100138 10.6528 10.7492 -0.012751 24.1099 1.14418e-05C37.3171 0.0127739 48.0017 10.7553 48 24.0196ZM11.2887 24.0977C16.6867 27.289 20.6403 31.8534 24.1954 36.8591C27.1623 31.2874 31.9695 27.6538 36.8726 24.0699C31.3822 20.964 27.5665 16.297 24.0576 11.2374C20.5079 16.2419 16.7425 20.9331 11.2887 24.0977Z" fill="url(%23paint0_linear_8624_16209)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_8624_16209" x1="39.75" y1="7.5" x2="9.75" y2="42.75" gradientUnits="userSpaceOnUse">%0A<stop stop-color="%23E82F72" stop-opacity="0.7"/>%0A<stop offset="1" stop-color="%23ED25B5" stop-opacity="0.7"/>%0A</linearGradient>%0A</defs>%0A</svg>%0A';
|
|
16517
16603
|
|
|
16518
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16519
|
-
var digest52 = "
|
|
16604
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-5Gtc7FcyxGVJ/core/react/components/organization/styles.module.css.js
|
|
16605
|
+
var digest52 = "8baa195e1c5cc3ff81ee51c450030fe02fbf46a795c281ab3910e5d3fcdb4a24";
|
|
16520
16606
|
var css52 = `._header_11okm_1 {
|
|
16521
16607
|
margin-bottom: var(--rs-space-9);
|
|
16522
16608
|
}
|
|
@@ -16559,8 +16645,8 @@ var css52 = `._header_11okm_1 {
|
|
|
16559
16645
|
})();
|
|
16560
16646
|
var styles_module_css_default13 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
16561
16647
|
|
|
16562
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16563
|
-
var digest53 = "
|
|
16648
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-7mwudAsehhl1/core/react/components/organization/tokens/token.module.css.js
|
|
16649
|
+
var digest53 = "8136568ba6d001ad48a92d4d705050dbc1f5dab742a23f64395f8b13a9ead0c1";
|
|
16564
16650
|
var css53 = `._flex1_1rl84_1 {
|
|
16565
16651
|
flex: 1;
|
|
16566
16652
|
}
|
|
@@ -16722,7 +16808,7 @@ function Tokens() {
|
|
|
16722
16808
|
const { isAllowed, isFetching: isPermissionsFetching } = useBillingPermission();
|
|
16723
16809
|
const { tokenBalance, isTokensLoading } = useTokens();
|
|
16724
16810
|
const {
|
|
16725
|
-
data:
|
|
16811
|
+
data: transactionsRawData,
|
|
16726
16812
|
isLoading: isTransactionsListLoading,
|
|
16727
16813
|
error: transactionsError
|
|
16728
16814
|
} = useQuery24(
|
|
@@ -16733,13 +16819,13 @@ function Tokens() {
|
|
|
16733
16819
|
billingId: (_b = billingAccount == null ? void 0 : billingAccount.id) != null ? _b : ""
|
|
16734
16820
|
}),
|
|
16735
16821
|
{
|
|
16736
|
-
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) && !!(billingAccount == null ? void 0 : billingAccount.id)
|
|
16737
|
-
select: (data) => {
|
|
16738
|
-
var _a2;
|
|
16739
|
-
return (_a2 = data == null ? void 0 : data.transactions) != null ? _a2 : [];
|
|
16740
|
-
}
|
|
16822
|
+
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id) && !!(billingAccount == null ? void 0 : billingAccount.id)
|
|
16741
16823
|
}
|
|
16742
16824
|
);
|
|
16825
|
+
const transactionsData = useMemo30(() => {
|
|
16826
|
+
var _a2;
|
|
16827
|
+
return (_a2 = transactionsRawData == null ? void 0 : transactionsRawData.transactions) != null ? _a2 : [];
|
|
16828
|
+
}, [transactionsRawData]);
|
|
16743
16829
|
useEffect28(() => {
|
|
16744
16830
|
if (transactionsError) {
|
|
16745
16831
|
console.error(transactionsError);
|
|
@@ -16805,8 +16891,8 @@ import { useMutation as useMutation23 } from "@connectrpc/connect-query";
|
|
|
16805
16891
|
import { useForm as useForm18 } from "react-hook-form";
|
|
16806
16892
|
import * as yup18 from "yup";
|
|
16807
16893
|
|
|
16808
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16809
|
-
var digest54 = "
|
|
16894
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-trTmySSofG8P/core/react/components/organization/organization.module.css.js
|
|
16895
|
+
var digest54 = "d5a78e53ad07f15f764acaf645067d781b4696a512b8ec374b970ad883e28e4a";
|
|
16810
16896
|
var css54 = `._createContainer_ipia2_1 {
|
|
16811
16897
|
margin: auto;
|
|
16812
16898
|
width: 100%;
|
|
@@ -16858,8 +16944,8 @@ var css54 = `._createContainer_ipia2_1 {
|
|
|
16858
16944
|
})();
|
|
16859
16945
|
var organization_module_css_default13 = { "createContainer": "_createContainer_ipia2_1", "overlay": "_overlay_ipia2_8", "dropdownActionItem": "_dropdownActionItem_ipia2_13", "noSelectItem": "_noSelectItem_ipia2_30", "orgTabsContainer": "_orgTabsContainer_ipia2_35" };
|
|
16860
16946
|
|
|
16861
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16862
|
-
var digest55 = "
|
|
16947
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-fzVxFTOfXFKv/core/react/components/organization/tokens/token.module.css.js
|
|
16948
|
+
var digest55 = "dd641588f16adec47b149bfe242e904dd851be62ce1c9d8a55c15229d72085c2";
|
|
16863
16949
|
var css55 = `._flex1_1rl84_1 {
|
|
16864
16950
|
flex: 1;
|
|
16865
16951
|
}
|
|
@@ -16922,7 +17008,7 @@ var token_module_css_default4 = { "flex1": "_flex1_1rl84_1", "coinIcon": "_coinI
|
|
|
16922
17008
|
|
|
16923
17009
|
// react/components/organization/tokens/add-tokens.tsx
|
|
16924
17010
|
import qs3 from "query-string";
|
|
16925
|
-
import { useMemo as
|
|
17011
|
+
import { useMemo as useMemo31 } from "react";
|
|
16926
17012
|
import { useQuery as useQuery25 } from "@connectrpc/connect-query";
|
|
16927
17013
|
import { create as create41 } from "@bufbuild/protobuf";
|
|
16928
17014
|
import { jsx as jsx58, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
@@ -16939,7 +17025,7 @@ var AddTokens = () => {
|
|
|
16939
17025
|
select: (data) => data == null ? void 0 : data.product
|
|
16940
17026
|
}
|
|
16941
17027
|
);
|
|
16942
|
-
const { productDescription, minQuantity, maxQuantity } =
|
|
17028
|
+
const { productDescription, minQuantity, maxQuantity } = useMemo31(() => {
|
|
16943
17029
|
var _a2;
|
|
16944
17030
|
let productDescription2 = "";
|
|
16945
17031
|
let minQuantity2 = 1;
|
|
@@ -16986,13 +17072,12 @@ var AddTokens = () => {
|
|
|
16986
17072
|
const onSubmit = (data) => __async(void 0, null, function* () {
|
|
16987
17073
|
var _a2, _b;
|
|
16988
17074
|
try {
|
|
16989
|
-
if (!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
17075
|
+
if (!(activeOrganization == null ? void 0 : activeOrganization.id))
|
|
16990
17076
|
return;
|
|
16991
17077
|
const query = qs3.stringify(
|
|
16992
17078
|
{
|
|
16993
17079
|
details: btoa(
|
|
16994
17080
|
qs3.stringify({
|
|
16995
|
-
billing_id: billingAccount == null ? void 0 : billingAccount.id,
|
|
16996
17081
|
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
16997
17082
|
type: "tokens"
|
|
16998
17083
|
})
|
|
@@ -17006,7 +17091,6 @@ var AddTokens = () => {
|
|
|
17006
17091
|
yield createCheckout(
|
|
17007
17092
|
create41(src_exports.CreateCheckoutRequestSchema, {
|
|
17008
17093
|
orgId: (activeOrganization == null ? void 0 : activeOrganization.id) || "",
|
|
17009
|
-
billingId: (billingAccount == null ? void 0 : billingAccount.id) || "",
|
|
17010
17094
|
cancelUrl,
|
|
17011
17095
|
successUrl,
|
|
17012
17096
|
productBody: {
|
|
@@ -17093,7 +17177,7 @@ var AddTokens = () => {
|
|
|
17093
17177
|
};
|
|
17094
17178
|
|
|
17095
17179
|
// react/components/organization/billing/cycle-switch/index.tsx
|
|
17096
|
-
import { useCallback as useCallback22, useMemo as
|
|
17180
|
+
import { useCallback as useCallback22, useMemo as useMemo32 } from "react";
|
|
17097
17181
|
import {
|
|
17098
17182
|
Button as Button38,
|
|
17099
17183
|
Skeleton as Skeleton27,
|
|
@@ -17173,12 +17257,11 @@ var usePlans = () => {
|
|
|
17173
17257
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess, isTrial }) {
|
|
17174
17258
|
var _a2, _b2, _c2, _d, _e;
|
|
17175
17259
|
try {
|
|
17176
|
-
if (
|
|
17260
|
+
if (activeOrganization == null ? void 0 : activeOrganization.id) {
|
|
17177
17261
|
const query = qs4.stringify(
|
|
17178
17262
|
{
|
|
17179
17263
|
details: btoa(
|
|
17180
17264
|
qs4.stringify({
|
|
17181
|
-
billing_id: billingAccount == null ? void 0 : billingAccount.id,
|
|
17182
17265
|
organization_id: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17183
17266
|
type: "plans",
|
|
17184
17267
|
isTrial
|
|
@@ -17197,7 +17280,6 @@ var usePlans = () => {
|
|
|
17197
17280
|
const resp = yield createCheckoutMutation(
|
|
17198
17281
|
create42(CreateCheckoutRequestSchema4, {
|
|
17199
17282
|
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17200
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
17201
17283
|
cancelUrl: cancel_url,
|
|
17202
17284
|
successUrl: success_url,
|
|
17203
17285
|
subscriptionBody: {
|
|
@@ -17232,11 +17314,9 @@ var usePlans = () => {
|
|
|
17232
17314
|
};
|
|
17233
17315
|
const changePlan = useCallback21(
|
|
17234
17316
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess, immediate = false }) {
|
|
17235
|
-
if (
|
|
17317
|
+
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
17236
17318
|
const resp = yield changeSubscriptionMutation(
|
|
17237
17319
|
create42(ChangeSubscriptionRequestSchema2, {
|
|
17238
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17239
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
17240
17320
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
17241
17321
|
change: {
|
|
17242
17322
|
case: "planChange",
|
|
@@ -17252,12 +17332,7 @@ var usePlans = () => {
|
|
|
17252
17332
|
}
|
|
17253
17333
|
}
|
|
17254
17334
|
}),
|
|
17255
|
-
[
|
|
17256
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17257
|
-
activeSubscription == null ? void 0 : activeSubscription.id,
|
|
17258
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
17259
|
-
changeSubscriptionMutation
|
|
17260
|
-
]
|
|
17335
|
+
[activeSubscription == null ? void 0 : activeSubscription.id, changeSubscriptionMutation]
|
|
17261
17336
|
);
|
|
17262
17337
|
const verifyPlanChange = useCallback21(
|
|
17263
17338
|
(_0) => __async(void 0, [_0], function* ({ planId, onSuccess = () => {
|
|
@@ -17338,11 +17413,9 @@ var usePlans = () => {
|
|
|
17338
17413
|
);
|
|
17339
17414
|
const cancelSubscription = useCallback21(
|
|
17340
17415
|
(_0) => __async(void 0, [_0], function* ({ onSuccess }) {
|
|
17341
|
-
if (
|
|
17416
|
+
if (activeSubscription == null ? void 0 : activeSubscription.id) {
|
|
17342
17417
|
const resp = yield cancelSubscriptionMutation(
|
|
17343
17418
|
create42(CancelSubscriptionRequestSchema, {
|
|
17344
|
-
orgId: activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17345
|
-
billingId: billingAccount == null ? void 0 : billingAccount.id,
|
|
17346
17419
|
id: activeSubscription == null ? void 0 : activeSubscription.id,
|
|
17347
17420
|
immediate: false
|
|
17348
17421
|
})
|
|
@@ -17352,12 +17425,7 @@ var usePlans = () => {
|
|
|
17352
17425
|
}
|
|
17353
17426
|
}
|
|
17354
17427
|
}),
|
|
17355
|
-
[
|
|
17356
|
-
activeOrganization == null ? void 0 : activeOrganization.id,
|
|
17357
|
-
billingAccount == null ? void 0 : billingAccount.id,
|
|
17358
|
-
activeSubscription == null ? void 0 : activeSubscription.id,
|
|
17359
|
-
cancelSubscriptionMutation
|
|
17360
|
-
]
|
|
17428
|
+
[activeSubscription == null ? void 0 : activeSubscription.id, cancelSubscriptionMutation]
|
|
17361
17429
|
);
|
|
17362
17430
|
return {
|
|
17363
17431
|
checkoutPlan,
|
|
@@ -17375,8 +17443,8 @@ var usePlans = () => {
|
|
|
17375
17443
|
};
|
|
17376
17444
|
};
|
|
17377
17445
|
|
|
17378
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17379
|
-
var digest56 = "
|
|
17446
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-T12mvuZlpONn/core/react/components/organization/organization.module.css.js
|
|
17447
|
+
var digest56 = "e14ffc4d97012b2a7ec787804822cf8d5918b65a7eaa54b32db98312c27d2c60";
|
|
17380
17448
|
var css56 = `._createContainer_ipia2_1 {
|
|
17381
17449
|
margin: auto;
|
|
17382
17450
|
width: 100%;
|
|
@@ -17453,7 +17521,7 @@ function ConfirmCycleSwitch() {
|
|
|
17453
17521
|
changePlan,
|
|
17454
17522
|
verifyPlanChange
|
|
17455
17523
|
} = usePlans();
|
|
17456
|
-
const nextPlan =
|
|
17524
|
+
const nextPlan = useMemo32(() => {
|
|
17457
17525
|
if (planId && allPlans.length > 0) {
|
|
17458
17526
|
const plan = allPlans.find((p) => p.id === planId);
|
|
17459
17527
|
return plan;
|
|
@@ -17618,8 +17686,8 @@ function groupPlansPricingByInterval(plans) {
|
|
|
17618
17686
|
// react/components/organization/plans/header.tsx
|
|
17619
17687
|
import { Flex as Flex55, Skeleton as Skeleton28, Link as Link11 } from "@raystack/apsara";
|
|
17620
17688
|
|
|
17621
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17622
|
-
var digest57 = "
|
|
17689
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-MlHGFKj9r8oY/core/react/components/organization/plans/plans.module.css.js
|
|
17690
|
+
var digest57 = "d6753b8e5ade07941f806b8daa9808eb171f851419c7ac5ef1e146179dc477ae";
|
|
17623
17691
|
var css57 = `._flex1_3ghb5_1 {
|
|
17624
17692
|
flex: 1;
|
|
17625
17693
|
}
|
|
@@ -17790,7 +17858,7 @@ var PlansHeader = ({ billingSupportEmail, isLoading }) => {
|
|
|
17790
17858
|
// react/components/organization/plans/pricing-column.tsx
|
|
17791
17859
|
import { useNavigate as useNavigate29 } from "@tanstack/react-router";
|
|
17792
17860
|
import * as _4 from "lodash";
|
|
17793
|
-
import { useCallback as useCallback23, useEffect as useEffect29, useMemo as
|
|
17861
|
+
import { useCallback as useCallback23, useEffect as useEffect29, useMemo as useMemo33, useState as useState20 } from "react";
|
|
17794
17862
|
import {
|
|
17795
17863
|
Button as Button39,
|
|
17796
17864
|
Skeleton as Skeleton29,
|
|
@@ -17802,8 +17870,8 @@ import {
|
|
|
17802
17870
|
Amount as Amount3
|
|
17803
17871
|
} from "@raystack/apsara";
|
|
17804
17872
|
|
|
17805
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17806
|
-
var digest58 = "
|
|
17873
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-EkpgffVP7pJS/core/react/components/organization/plans/plans.module.css.js
|
|
17874
|
+
var digest58 = "75815b8d86436a1235ad3edb270b623a30186ad8bc0d50def5e643ce187154ea";
|
|
17807
17875
|
var css58 = `._flex1_3ghb5_1 {
|
|
17808
17876
|
flex: 1;
|
|
17809
17877
|
}
|
|
@@ -18080,7 +18148,7 @@ var PlanPricingColumn = ({
|
|
|
18080
18148
|
const dateFormat = (config == null ? void 0 : config.dateFormat) || DEFAULT_DATE_FORMAT;
|
|
18081
18149
|
const shortDateFormat = (config == null ? void 0 : config.shortDateFormat) || DEFAULT_DATE_SHORT_FORMAT;
|
|
18082
18150
|
const [isTrialCheckoutLoading, setIsTrialCheckoutLoading] = useState20(false);
|
|
18083
|
-
const plans =
|
|
18151
|
+
const plans = useMemo33(() => Object.values(plan.intervals), [plan.intervals]);
|
|
18084
18152
|
const navigate = useNavigate29({ from: "/plans" });
|
|
18085
18153
|
const {
|
|
18086
18154
|
checkoutPlan,
|
|
@@ -18100,7 +18168,7 @@ var PlanPricingColumn = ({
|
|
|
18100
18168
|
}
|
|
18101
18169
|
};
|
|
18102
18170
|
const selectedIntervalPricing = plan.intervals[selectedInterval];
|
|
18103
|
-
const action =
|
|
18171
|
+
const action = useMemo33(() => {
|
|
18104
18172
|
const isCurrentPlanSelectedPlan = (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) === (currentPlan == null ? void 0 : currentPlan.planId);
|
|
18105
18173
|
const isCurrentPlanBasePlan = checkBasePlan(selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) && (currentPlan == null ? void 0 : currentPlan.planId) === void 0;
|
|
18106
18174
|
if (isCurrentPlanSelectedPlan || isCurrentPlanBasePlan) {
|
|
@@ -18131,11 +18199,11 @@ var PlanPricingColumn = ({
|
|
|
18131
18199
|
const isAlreadySubscribed = !_4.isEmpty(currentPlan);
|
|
18132
18200
|
const isUpgrade = action.btnLabel === "Upgrade";
|
|
18133
18201
|
const isCheckoutRequired = _4.isEmpty(paymentMethod) && (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.amount) > 0;
|
|
18134
|
-
const planHasTrial =
|
|
18202
|
+
const planHasTrial = useMemo33(
|
|
18135
18203
|
() => plans.some((p) => Number(p.trial_days) > 0),
|
|
18136
18204
|
[plans]
|
|
18137
18205
|
);
|
|
18138
|
-
const planIds =
|
|
18206
|
+
const planIds = useMemo33(() => plans.map((p) => p.planId), [plans]);
|
|
18139
18207
|
const onPlanActionClick = useCallback23(() => {
|
|
18140
18208
|
if ((action == null ? void 0 : action.showModal) && !isCheckoutRequired && isAlreadySubscribed) {
|
|
18141
18209
|
navigate({
|
|
@@ -18256,8 +18324,8 @@ import { useQuery as useConnectQuery4 } from "@connectrpc/connect-query";
|
|
|
18256
18324
|
import { create as create43 } from "@bufbuild/protobuf";
|
|
18257
18325
|
import { ListFeaturesRequestSchema } from "@raystack/proton/frontier";
|
|
18258
18326
|
|
|
18259
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18260
|
-
var digest59 = "
|
|
18327
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-6cIxWih9tY5u/core/react/components/organization/styles.module.css.js
|
|
18328
|
+
var digest59 = "0d82309a2ffd6caf7e07c3f0fa46db5aa90345ab4f85445c80ca5984c56e1291";
|
|
18261
18329
|
var css59 = `._header_11okm_1 {
|
|
18262
18330
|
margin-bottom: var(--rs-space-9);
|
|
18263
18331
|
}
|
|
@@ -18300,8 +18368,8 @@ var css59 = `._header_11okm_1 {
|
|
|
18300
18368
|
})();
|
|
18301
18369
|
var styles_module_css_default14 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
18302
18370
|
|
|
18303
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18304
|
-
var digest60 = "
|
|
18371
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-XUo9gONjCmrM/core/react/components/organization/plans/plans.module.css.js
|
|
18372
|
+
var digest60 = "84fd93a2489239b70e7fe65cd7e49d2f5220aa40a852040bb801446f95e7b1e2";
|
|
18305
18373
|
var css60 = `._flex1_3ghb5_1 {
|
|
18306
18374
|
flex: 1;
|
|
18307
18375
|
}
|
|
@@ -18569,7 +18637,7 @@ function Plans() {
|
|
|
18569
18637
|
}
|
|
18570
18638
|
|
|
18571
18639
|
// react/components/organization/plans/confirm-change/index.tsx
|
|
18572
|
-
import { useCallback as useCallback24, useEffect as useEffect30, useMemo as
|
|
18640
|
+
import { useCallback as useCallback24, useEffect as useEffect30, useMemo as useMemo34, useState as useState21 } from "react";
|
|
18573
18641
|
import {
|
|
18574
18642
|
Button as Button40,
|
|
18575
18643
|
toast as toast38,
|
|
@@ -18581,8 +18649,8 @@ import {
|
|
|
18581
18649
|
} from "@raystack/apsara";
|
|
18582
18650
|
import { useNavigate as useNavigate30, useParams as useParams15 } from "@tanstack/react-router";
|
|
18583
18651
|
|
|
18584
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18585
|
-
var digest61 = "
|
|
18652
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-UA81ClVAOYR8/core/react/components/organization/plans/plans.module.css.js
|
|
18653
|
+
var digest61 = "ec1f841c83207a47ed699af5a715e9fc5ec8e069b9927a5e51a82d9be7ac9b27";
|
|
18586
18654
|
var css61 = `._flex1_3ghb5_1 {
|
|
18587
18655
|
flex: 1;
|
|
18588
18656
|
}
|
|
@@ -18716,8 +18784,8 @@ var css61 = `._flex1_3ghb5_1 {
|
|
|
18716
18784
|
})();
|
|
18717
18785
|
var plans_module_css_default4 = { "flex1": "_flex1_3ghb5_1", "leftPanel": "_leftPanel_3ghb5_5", "rightPanel": "_rightPanel_3ghb5_9", "planInfoColumn": "_planInfoColumn_3ghb5_15", "planTitle": "_planTitle_3ghb5_25", "planPrice": "_planPrice_3ghb5_33", "planPriceSub": "_planPriceSub_3ghb5_41", "planDescription": "_planDescription_3ghb5_49", "planActionBtn": "_planActionBtn_3ghb5_57", "plansIntervalList": "_plansIntervalList_3ghb5_61", "plansIntervalListItem": "_plansIntervalListItem_3ghb5_61", "plansIntervalListItemText": "_plansIntervalListItemText_3ghb5_65", "featureCell": "_featureCell_3ghb5_76", "featureTableHeading": "_featureTableHeading_3ghb5_83", "featureLabel": "_featureLabel_3ghb5_90", "trialWrapper": "_trialWrapper_3ghb5_101", "trialButton": "_trialButton_3ghb5_105", "discountText": "_discountText_3ghb5_111" };
|
|
18718
18786
|
|
|
18719
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18720
|
-
var digest62 = "
|
|
18787
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-D3XHCsC2erNt/core/react/components/organization/organization.module.css.js
|
|
18788
|
+
var digest62 = "7b2677e89d2fc80a281314fdc62c62b6632538168a62fea78c6ea48cbd13ff32";
|
|
18721
18789
|
var css62 = `._createContainer_ipia2_1 {
|
|
18722
18790
|
margin: auto;
|
|
18723
18791
|
width: 100%;
|
|
@@ -18808,7 +18876,7 @@ function ConfirmPlanChange() {
|
|
|
18808
18876
|
cancelSubscription,
|
|
18809
18877
|
checkBasePlan
|
|
18810
18878
|
} = usePlans();
|
|
18811
|
-
const currentPlan =
|
|
18879
|
+
const currentPlan = useMemo34(
|
|
18812
18880
|
() => allPlans.find((plan) => plan.id === planId),
|
|
18813
18881
|
[allPlans, planId]
|
|
18814
18882
|
);
|
|
@@ -19097,7 +19165,7 @@ import {
|
|
|
19097
19165
|
var key_default = 'data:image/svg+xml,<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="key">%0A<path id="Vector" d="M21.5232 7.04688C23.7323 7.04688 25.5232 8.83774 25.5232 11.0469M29.5232 11.0469C29.5232 15.4652 25.9415 19.0469 21.5232 19.0469C21.0555 19.0469 20.5972 19.0067 20.1516 18.9297C19.4009 18.8 18.6059 18.9642 18.0672 19.5029L14.5232 23.0469H11.5232V26.0469H8.52319V29.0469H3.52319V25.2895C3.52319 24.4939 3.83926 23.7308 4.40187 23.1682L13.0672 14.5029C13.6059 13.9642 13.77 13.1692 13.6403 12.4185C13.5633 11.9728 13.5232 11.5145 13.5232 11.0469C13.5232 6.6286 17.1049 3.04688 21.5232 3.04688C25.9415 3.04688 29.5232 6.6286 29.5232 11.0469Z" stroke="%23646464" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>%0A</g>%0A</svg>%0A';
|
|
19098
19166
|
|
|
19099
19167
|
// react/components/organization/api-keys/index.tsx
|
|
19100
|
-
import { useMemo as
|
|
19168
|
+
import { useMemo as useMemo35 } from "react";
|
|
19101
19169
|
|
|
19102
19170
|
// react/components/organization/api-keys/columns.tsx
|
|
19103
19171
|
import { Button as Button42, Flex as Flex60, Text as Text50 } from "@raystack/apsara";
|
|
@@ -19179,8 +19247,8 @@ import {
|
|
|
19179
19247
|
ListOrganizationServiceUsersRequestSchema
|
|
19180
19248
|
} from "@raystack/proton/frontier";
|
|
19181
19249
|
|
|
19182
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19183
|
-
var digest63 = "
|
|
19250
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-5uJCmu4IT5Tb/core/react/components/organization/styles.module.css.js
|
|
19251
|
+
var digest63 = "6d3f9cbf756248c8af147c1c5cd168f99f3b4f3f4989f9577f15c9441953a207";
|
|
19184
19252
|
var css63 = `._header_11okm_1 {
|
|
19185
19253
|
margin-bottom: var(--rs-space-9);
|
|
19186
19254
|
}
|
|
@@ -19223,8 +19291,8 @@ var css63 = `._header_11okm_1 {
|
|
|
19223
19291
|
})();
|
|
19224
19292
|
var styles_module_css_default15 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
19225
19293
|
|
|
19226
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19227
|
-
var digest64 = "
|
|
19294
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-DysnpZBZGLug/core/react/components/organization/api-keys/styles.module.css.js
|
|
19295
|
+
var digest64 = "02c2fb27cf0681f4eb935069c311575d8a01dd6a6b1ac77f0a6db057f75e8b54";
|
|
19228
19296
|
var css64 = `._container_9t9jq_1 {
|
|
19229
19297
|
height: 100%;
|
|
19230
19298
|
width: 100%;
|
|
@@ -19355,7 +19423,7 @@ var ApiKeysHeader = ({ isLoading }) => {
|
|
|
19355
19423
|
};
|
|
19356
19424
|
var useAccess = (orgId) => {
|
|
19357
19425
|
const resource = `app/organization:${orgId}`;
|
|
19358
|
-
const listOfPermissionsToCheck =
|
|
19426
|
+
const listOfPermissionsToCheck = useMemo35(() => {
|
|
19359
19427
|
return [
|
|
19360
19428
|
{
|
|
19361
19429
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -19367,7 +19435,7 @@ var useAccess = (orgId) => {
|
|
|
19367
19435
|
listOfPermissionsToCheck,
|
|
19368
19436
|
!!orgId
|
|
19369
19437
|
);
|
|
19370
|
-
const canUpdateWorkspace =
|
|
19438
|
+
const canUpdateWorkspace = useMemo35(() => {
|
|
19371
19439
|
return shouldShowComponent(
|
|
19372
19440
|
permissions,
|
|
19373
19441
|
`${PERMISSIONS.UpdatePermission}::${resource}`
|
|
@@ -19431,7 +19499,7 @@ function ApiKeys() {
|
|
|
19431
19499
|
organization == null ? void 0 : organization.id
|
|
19432
19500
|
);
|
|
19433
19501
|
const {
|
|
19434
|
-
data:
|
|
19502
|
+
data: serviceUsersData,
|
|
19435
19503
|
isLoading: isServiceUsersLoading
|
|
19436
19504
|
} = useQuery26(
|
|
19437
19505
|
FrontierServiceQueries39.listOrganizationServiceUsers,
|
|
@@ -19439,13 +19507,13 @@ function ApiKeys() {
|
|
|
19439
19507
|
id: (_a = organization == null ? void 0 : organization.id) != null ? _a : ""
|
|
19440
19508
|
}),
|
|
19441
19509
|
{
|
|
19442
|
-
enabled: Boolean(organization == null ? void 0 : organization.id) && canUpdateWorkspace
|
|
19443
|
-
select: (data) => {
|
|
19444
|
-
var _a2;
|
|
19445
|
-
return (_a2 = data == null ? void 0 : data.serviceusers) != null ? _a2 : [];
|
|
19446
|
-
}
|
|
19510
|
+
enabled: Boolean(organization == null ? void 0 : organization.id) && canUpdateWorkspace
|
|
19447
19511
|
}
|
|
19448
19512
|
);
|
|
19513
|
+
const serviceUsers = useMemo35(() => {
|
|
19514
|
+
var _a2;
|
|
19515
|
+
return (_a2 = serviceUsersData == null ? void 0 : serviceUsersData.serviceusers) != null ? _a2 : [];
|
|
19516
|
+
}, [serviceUsersData]);
|
|
19449
19517
|
const isLoading = isActiveOrganizationLoading || isPermissionsFetching || isServiceUsersLoading;
|
|
19450
19518
|
const serviceAccountsCount = serviceUsers == null ? void 0 : serviceUsers.length;
|
|
19451
19519
|
return /* @__PURE__ */ jsxs61(Flex61, { direction: "column", className: styles_module_css_default15.pageWrapper, children: [
|
|
@@ -19481,7 +19549,7 @@ import { useNavigate as useNavigate34 } from "@tanstack/react-router";
|
|
|
19481
19549
|
import { Controller as Controller5, useForm as useForm19 } from "react-hook-form";
|
|
19482
19550
|
import * as yup19 from "yup";
|
|
19483
19551
|
import { yupResolver as yupResolver19 } from "@hookform/resolvers/yup";
|
|
19484
|
-
import { useCallback as useCallback25 } from "react";
|
|
19552
|
+
import { useCallback as useCallback25, useMemo as useMemo36 } from "react";
|
|
19485
19553
|
import { orderBy } from "lodash";
|
|
19486
19554
|
import {
|
|
19487
19555
|
FrontierServiceQueries as FrontierServiceQueries40,
|
|
@@ -19504,8 +19572,8 @@ import {
|
|
|
19504
19572
|
} from "@connectrpc/connect-query";
|
|
19505
19573
|
import { create as create46 } from "@bufbuild/protobuf";
|
|
19506
19574
|
|
|
19507
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19508
|
-
var digest65 = "
|
|
19575
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-NNpFor4WqXVI/core/react/components/organization/api-keys/styles.module.css.js
|
|
19576
|
+
var digest65 = "d60ebded03b2e1b1123d79b80f2afb0068cedac7efd33cd50435cd7b42ae785d";
|
|
19509
19577
|
var css65 = `._container_9t9jq_1 {
|
|
19510
19578
|
height: 100%;
|
|
19511
19579
|
width: 100%;
|
|
@@ -19607,7 +19675,7 @@ var AddServiceAccount = () => {
|
|
|
19607
19675
|
resolver: yupResolver19(serviceAccountSchema)
|
|
19608
19676
|
});
|
|
19609
19677
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
19610
|
-
const { data:
|
|
19678
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery27(
|
|
19611
19679
|
FrontierServiceQueries40.listOrganizationProjects,
|
|
19612
19680
|
create46(ListOrganizationProjectsRequestSchema2, {
|
|
19613
19681
|
id: orgId,
|
|
@@ -19615,14 +19683,14 @@ var AddServiceAccount = () => {
|
|
|
19615
19683
|
withMemberCount: false
|
|
19616
19684
|
}),
|
|
19617
19685
|
{
|
|
19618
|
-
enabled: Boolean(orgId)
|
|
19619
|
-
select: (data) => {
|
|
19620
|
-
var _a2;
|
|
19621
|
-
const list = (_a2 = data == null ? void 0 : data.projects) != null ? _a2 : [];
|
|
19622
|
-
return orderBy(list, ["title"], ["asc"]);
|
|
19623
|
-
}
|
|
19686
|
+
enabled: Boolean(orgId)
|
|
19624
19687
|
}
|
|
19625
19688
|
);
|
|
19689
|
+
const projects = useMemo36(() => {
|
|
19690
|
+
var _a2;
|
|
19691
|
+
const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
|
|
19692
|
+
return orderBy(list, ["title"], ["asc"]);
|
|
19693
|
+
}, [projectsData]);
|
|
19626
19694
|
const { mutateAsync: createServiceUser } = useMutation25(
|
|
19627
19695
|
FrontierServiceQueries40.createServiceUser
|
|
19628
19696
|
);
|
|
@@ -19816,8 +19884,8 @@ import { useForm as useForm20 } from "react-hook-form";
|
|
|
19816
19884
|
import { useCallback as useCallback26 } from "react";
|
|
19817
19885
|
import { Flex as Flex63, toast as toast41, Button as Button45, InputField as InputField18 } from "@raystack/apsara";
|
|
19818
19886
|
|
|
19819
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19820
|
-
var digest66 = "
|
|
19887
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-CpI1vvewu1rv/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
19888
|
+
var digest66 = "0cff5b7d485d0cbbbe579c04cd6bbacdb8c1294a40ec86300ba9885c69cbdd37";
|
|
19821
19889
|
var css66 = `._flex1_7ygqt_1 {
|
|
19822
19890
|
flex: 1;
|
|
19823
19891
|
}
|
|
@@ -20030,6 +20098,7 @@ import {
|
|
|
20030
20098
|
createConnectQueryKey as createConnectQueryKey12,
|
|
20031
20099
|
useTransport as useTransport11
|
|
20032
20100
|
} from "@connectrpc/connect-query";
|
|
20101
|
+
import { useMemo as useMemo37 } from "react";
|
|
20033
20102
|
import { useQueryClient as useQueryClient12 } from "@tanstack/react-query";
|
|
20034
20103
|
import { create as create48 } from "@bufbuild/protobuf";
|
|
20035
20104
|
import {
|
|
@@ -20044,20 +20113,20 @@ var useServiceUserTokens = ({
|
|
|
20044
20113
|
}) => {
|
|
20045
20114
|
const queryClient2 = useQueryClient12();
|
|
20046
20115
|
const transport = useTransport11();
|
|
20047
|
-
const { data:
|
|
20116
|
+
const { data: tokensData, isLoading } = useQuery28(
|
|
20048
20117
|
FrontierServiceQueries42.listServiceUserTokens,
|
|
20049
20118
|
create48(ListServiceUserTokensRequestSchema2, {
|
|
20050
20119
|
id,
|
|
20051
20120
|
orgId
|
|
20052
20121
|
}),
|
|
20053
20122
|
{
|
|
20054
|
-
enabled: Boolean(id) && Boolean(orgId) && Boolean(enableFetch)
|
|
20055
|
-
select: (data) => {
|
|
20056
|
-
var _a;
|
|
20057
|
-
return (_a = data == null ? void 0 : data.tokens) != null ? _a : [];
|
|
20058
|
-
}
|
|
20123
|
+
enabled: Boolean(id) && Boolean(orgId) && Boolean(enableFetch)
|
|
20059
20124
|
}
|
|
20060
20125
|
);
|
|
20126
|
+
const tokens = useMemo37(() => {
|
|
20127
|
+
var _a;
|
|
20128
|
+
return (_a = tokensData == null ? void 0 : tokensData.tokens) != null ? _a : [];
|
|
20129
|
+
}, [tokensData]);
|
|
20061
20130
|
const getQueryKey = () => {
|
|
20062
20131
|
return createConnectQueryKey12({
|
|
20063
20132
|
schema: FrontierServiceQueries42.listServiceUserTokens,
|
|
@@ -20105,8 +20174,8 @@ var useServiceUserTokens = ({
|
|
|
20105
20174
|
};
|
|
20106
20175
|
};
|
|
20107
20176
|
|
|
20108
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20109
|
-
var digest67 = "
|
|
20177
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-O36UxMfzvUZm/core/react/components/organization/styles.module.css.js
|
|
20178
|
+
var digest67 = "b3ac7c448efac125582b121edcd9f10438a6cd4008aecd0933b0f0be2c0c20fd";
|
|
20110
20179
|
var css67 = `._header_11okm_1 {
|
|
20111
20180
|
margin-bottom: var(--rs-space-9);
|
|
20112
20181
|
}
|
|
@@ -20149,8 +20218,8 @@ var css67 = `._header_11okm_1 {
|
|
|
20149
20218
|
})();
|
|
20150
20219
|
var styles_module_css_default19 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
20151
20220
|
|
|
20152
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20153
|
-
var digest68 = "
|
|
20221
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-k1x3hfBukljd/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
20222
|
+
var digest68 = "2841a512c9c165adfeacc12126015d2a5a53c61e16f912db3a7a3941a827c3e5";
|
|
20154
20223
|
var css68 = `._flex1_7ygqt_1 {
|
|
20155
20224
|
flex: 1;
|
|
20156
20225
|
}
|
|
@@ -20450,8 +20519,8 @@ function ServiceUserPage() {
|
|
|
20450
20519
|
import { Button as Button47, Flex as Flex65, Text as Text53, toast as toast42, Image as Image27, Dialog as Dialog18 } from "@raystack/apsara";
|
|
20451
20520
|
import { useNavigate as useNavigate36, useParams as useParams18 } from "@tanstack/react-router";
|
|
20452
20521
|
|
|
20453
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20454
|
-
var digest69 = "
|
|
20522
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-CzqjLr1iIWaG/core/react/components/organization/api-keys/styles.module.css.js
|
|
20523
|
+
var digest69 = "fdbb0fb49186832637ac45f45e9bf86ffb9dc1df99ef37ad5c8cd08efef62ba3";
|
|
20455
20524
|
var css69 = `._container_9t9jq_1 {
|
|
20456
20525
|
height: 100%;
|
|
20457
20526
|
width: 100%;
|
|
@@ -20637,8 +20706,8 @@ var DeleteServiceAccount = () => {
|
|
|
20637
20706
|
import { Button as Button48, Flex as Flex66, Text as Text54, toast as toast43, Image as Image28, Dialog as Dialog19 } from "@raystack/apsara";
|
|
20638
20707
|
import { useNavigate as useNavigate37, useParams as useParams19 } from "@tanstack/react-router";
|
|
20639
20708
|
|
|
20640
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20641
|
-
var digest70 = "
|
|
20709
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-Gam6pkISh2ws/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
20710
|
+
var digest70 = "63c3f498870838819c519299613deed46b6bba471d8553b4d8fe1b2c747331db";
|
|
20642
20711
|
var css70 = `._flex1_7ygqt_1 {
|
|
20643
20712
|
flex: 1;
|
|
20644
20713
|
}
|
|
@@ -20866,10 +20935,10 @@ import {
|
|
|
20866
20935
|
DataTable as DataTable10
|
|
20867
20936
|
} from "@raystack/apsara";
|
|
20868
20937
|
import { useNavigate as useNavigate38, useParams as useParams20 } from "@tanstack/react-router";
|
|
20869
|
-
import { useCallback as useCallback27, useState as useState25, useEffect as useEffect31 } from "react";
|
|
20938
|
+
import { useCallback as useCallback27, useState as useState25, useEffect as useEffect31, useMemo as useMemo38 } from "react";
|
|
20870
20939
|
|
|
20871
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20872
|
-
var digest71 = "
|
|
20940
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-puAGTXB3hltK/core/react/components/organization/api-keys/service-user/styles.module.css.js
|
|
20941
|
+
var digest71 = "8f02102a2683d0b7c8b428371ba4429328e87a870d1160878e17e27cdb451d77";
|
|
20873
20942
|
var css71 = `._flex1_7ygqt_1 {
|
|
20874
20943
|
flex: 1;
|
|
20875
20944
|
}
|
|
@@ -20984,6 +21053,7 @@ import {
|
|
|
20984
21053
|
ListPoliciesRequestSchema as ListPoliciesRequestSchema5,
|
|
20985
21054
|
DeletePolicyRequestSchema as DeletePolicyRequestSchema5
|
|
20986
21055
|
} from "@raystack/proton/frontier";
|
|
21056
|
+
import { orderBy as orderBy2 } from "lodash";
|
|
20987
21057
|
import { jsx as jsx72, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
20988
21058
|
var getColumns10 = ({
|
|
20989
21059
|
permMap,
|
|
@@ -21037,10 +21107,7 @@ function ManageServiceUserProjects() {
|
|
|
21037
21107
|
);
|
|
21038
21108
|
const navigate = useNavigate38({ from: "/api-keys/$id/projects" });
|
|
21039
21109
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
21040
|
-
const {
|
|
21041
|
-
data: projects = [],
|
|
21042
|
-
isLoading: isProjectsLoading
|
|
21043
|
-
} = useQuery30(
|
|
21110
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery30(
|
|
21044
21111
|
FrontierServiceQueries46.listOrganizationProjects,
|
|
21045
21112
|
create52(ListOrganizationProjectsRequestSchema3, {
|
|
21046
21113
|
id: orgId,
|
|
@@ -21048,23 +21115,15 @@ function ManageServiceUserProjects() {
|
|
|
21048
21115
|
withMemberCount: false
|
|
21049
21116
|
}),
|
|
21050
21117
|
{
|
|
21051
|
-
enabled: Boolean(orgId)
|
|
21052
|
-
select: (data2) => {
|
|
21053
|
-
var _a;
|
|
21054
|
-
const list = (_a = data2 == null ? void 0 : data2.projects) != null ? _a : [];
|
|
21055
|
-
return list.sort(
|
|
21056
|
-
(a, b) => {
|
|
21057
|
-
var _a2, _b;
|
|
21058
|
-
return (((_a2 = a == null ? void 0 : a.title) == null ? void 0 : _a2.toLowerCase()) || "") > (((_b = b == null ? void 0 : b.title) == null ? void 0 : _b.toLowerCase()) || "") ? 1 : -1;
|
|
21059
|
-
}
|
|
21060
|
-
);
|
|
21061
|
-
}
|
|
21118
|
+
enabled: Boolean(orgId)
|
|
21062
21119
|
}
|
|
21063
21120
|
);
|
|
21064
|
-
const {
|
|
21065
|
-
|
|
21066
|
-
|
|
21067
|
-
|
|
21121
|
+
const projects = useMemo38(() => {
|
|
21122
|
+
var _a;
|
|
21123
|
+
const list = (_a = projectsData == null ? void 0 : projectsData.projects) != null ? _a : [];
|
|
21124
|
+
return orderBy2(list, ["title"], ["asc"]);
|
|
21125
|
+
}, [projectsData]);
|
|
21126
|
+
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = useQuery30(
|
|
21068
21127
|
FrontierServiceQueries46.listServiceUserProjects,
|
|
21069
21128
|
create52(ListServiceUserProjectsRequestSchema, {
|
|
21070
21129
|
id,
|
|
@@ -21072,13 +21131,16 @@ function ManageServiceUserProjects() {
|
|
|
21072
21131
|
withPermissions: []
|
|
21073
21132
|
}),
|
|
21074
21133
|
{
|
|
21075
|
-
enabled: Boolean(id) && Boolean(orgId)
|
|
21076
|
-
select: (data2) => {
|
|
21077
|
-
var _a;
|
|
21078
|
-
return (_a = data2 == null ? void 0 : data2.projects) != null ? _a : [];
|
|
21079
|
-
}
|
|
21134
|
+
enabled: Boolean(id) && Boolean(orgId)
|
|
21080
21135
|
}
|
|
21081
21136
|
);
|
|
21137
|
+
const addedProjects = useMemo38(
|
|
21138
|
+
() => {
|
|
21139
|
+
var _a;
|
|
21140
|
+
return (_a = addedProjectsData == null ? void 0 : addedProjectsData.projects) != null ? _a : [];
|
|
21141
|
+
},
|
|
21142
|
+
[addedProjectsData]
|
|
21143
|
+
);
|
|
21082
21144
|
useEffect31(() => {
|
|
21083
21145
|
const permMap = addedProjects.reduce((acc, proj) => {
|
|
21084
21146
|
acc[(proj == null ? void 0 : proj.id) || ""] = { value: true, isLoading: false };
|
|
@@ -21165,7 +21227,7 @@ function ManageServiceUserProjects() {
|
|
|
21165
21227
|
return /* @__PURE__ */ jsx72(Dialog20, { open: true, children: /* @__PURE__ */ jsxs67(
|
|
21166
21228
|
Dialog20.Content,
|
|
21167
21229
|
{
|
|
21168
|
-
|
|
21230
|
+
overlayClassName: styles_module_css_default23.overlay,
|
|
21169
21231
|
className: styles_module_css_default23.manageProjectDialogContent,
|
|
21170
21232
|
children: [
|
|
21171
21233
|
/* @__PURE__ */ jsx72(Dialog20.Header, { children: /* @__PURE__ */ jsxs67(Flex67, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
@@ -21217,7 +21279,7 @@ import {
|
|
|
21217
21279
|
import { Outlet as Outlet13, useNavigate as useNavigate39 } from "@tanstack/react-router";
|
|
21218
21280
|
|
|
21219
21281
|
// react/hooks/useSessions.ts
|
|
21220
|
-
import { useMemo as
|
|
21282
|
+
import { useMemo as useMemo39 } from "react";
|
|
21221
21283
|
import { useQuery as useQuery31, useMutation as useMutation30, createConnectQueryKey as createConnectQueryKey14, useTransport as useTransport13 } from "@connectrpc/connect-query";
|
|
21222
21284
|
import { useQueryClient as useQueryClient14 } from "@tanstack/react-query";
|
|
21223
21285
|
import { FrontierServiceQueries as FrontierServiceQueries47 } from "@raystack/proton/frontier";
|
|
@@ -21249,7 +21311,7 @@ var useSessions = () => {
|
|
|
21249
21311
|
const d = timestampToDayjs(updatedAt);
|
|
21250
21312
|
return d ? d.fromNow() : "Unknown";
|
|
21251
21313
|
};
|
|
21252
|
-
const sessions =
|
|
21314
|
+
const sessions = useMemo39(
|
|
21253
21315
|
() => ((sessionsData == null ? void 0 : sessionsData.sessions) || []).map((session) => {
|
|
21254
21316
|
var _a, _b, _c, _d;
|
|
21255
21317
|
return {
|
|
@@ -21305,8 +21367,8 @@ var useSessions = () => {
|
|
|
21305
21367
|
};
|
|
21306
21368
|
};
|
|
21307
21369
|
|
|
21308
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21309
|
-
var digest72 = "
|
|
21370
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-6GXoIKs3TOJj/core/react/components/organization/styles.module.css.js
|
|
21371
|
+
var digest72 = "a1663e20b6299399ef8a2c023cf5f96e5103e5ab119e0601fcf803895b0dfac5";
|
|
21310
21372
|
var css72 = `._header_11okm_1 {
|
|
21311
21373
|
margin-bottom: var(--rs-space-9);
|
|
21312
21374
|
}
|
|
@@ -21352,8 +21414,8 @@ var styles_module_css_default24 = { "header": "_header_11okm_1", "container": "_
|
|
|
21352
21414
|
// react/components/organization/sessions/session-skeleton.tsx
|
|
21353
21415
|
import { Flex as Flex68, Skeleton as Skeleton35 } from "@raystack/apsara";
|
|
21354
21416
|
|
|
21355
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21356
|
-
var digest73 = "
|
|
21417
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-JPziC0aNIM0W/core/react/components/organization/sessions/sessions.module.css.js
|
|
21418
|
+
var digest73 = "ae67e2a0070ac9c4020a9627f597d27fcd8c26610931cd6830250fc786e3a5fb";
|
|
21357
21419
|
var css73 = `._container_11igd_1 {
|
|
21358
21420
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21359
21421
|
max-height: 80vh;
|
|
@@ -21424,8 +21486,8 @@ var SessionSkeleton = ({ count = 3 }) => {
|
|
|
21424
21486
|
] }, index)) });
|
|
21425
21487
|
};
|
|
21426
21488
|
|
|
21427
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21428
|
-
var digest74 = "
|
|
21489
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-711xVk2j6Guk/core/react/components/organization/sessions/sessions.module.css.js
|
|
21490
|
+
var digest74 = "4c46169aca005cf0053f05bef9ce2d1709e1fb82b82da45a116a2b1665089e8d";
|
|
21429
21491
|
var css74 = `._container_11igd_1 {
|
|
21430
21492
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21431
21493
|
max-height: 80vh;
|
|
@@ -21558,7 +21620,7 @@ var SessionsPage = () => {
|
|
|
21558
21620
|
};
|
|
21559
21621
|
|
|
21560
21622
|
// react/components/organization/sessions/revoke-session-confirm.tsx
|
|
21561
|
-
import { useState as useState26, useMemo as
|
|
21623
|
+
import { useState as useState26, useMemo as useMemo40 } from "react";
|
|
21562
21624
|
import { useNavigate as useNavigate40, useSearch, useRouteContext as useRouteContext2 } from "@tanstack/react-router";
|
|
21563
21625
|
import {
|
|
21564
21626
|
Button as Button51,
|
|
@@ -21580,8 +21642,8 @@ import {
|
|
|
21580
21642
|
Text as Text57
|
|
21581
21643
|
} from "@raystack/apsara";
|
|
21582
21644
|
|
|
21583
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21584
|
-
var digest75 = "
|
|
21645
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-LPLLHrmUrcd5/core/react/components/organization/sessions/sessions.module.css.js
|
|
21646
|
+
var digest75 = "63239800ffe5bf36b8ad4c6520cc827dd032ab275d5dde630210f295da35c008";
|
|
21585
21647
|
var css75 = `._container_11igd_1 {
|
|
21586
21648
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21587
21649
|
max-height: 80vh;
|
|
@@ -21706,8 +21768,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
21706
21768
|
) });
|
|
21707
21769
|
};
|
|
21708
21770
|
|
|
21709
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21710
|
-
var digest76 = "
|
|
21771
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-dfRPNFgygmBu/core/react/components/organization/sessions/sessions.module.css.js
|
|
21772
|
+
var digest76 = "e9174cde03067f672b6fa6e1bc35e16b79fae7b2e9fee797b257195ad80e50d0";
|
|
21711
21773
|
var css76 = `._container_11igd_1 {
|
|
21712
21774
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
21713
21775
|
max-height: 80vh;
|
|
@@ -21788,7 +21850,7 @@ var RevokeSessionConfirm = () => {
|
|
|
21788
21850
|
}
|
|
21789
21851
|
}
|
|
21790
21852
|
});
|
|
21791
|
-
const sessionData =
|
|
21853
|
+
const sessionData = useMemo40(() => {
|
|
21792
21854
|
if (!search.sessionId || sessions.length === 0) {
|
|
21793
21855
|
return null;
|
|
21794
21856
|
}
|
|
@@ -22235,8 +22297,8 @@ var resize_default_default = 'data:image/svg+xml,<svg width="12" height="12" vie
|
|
|
22235
22297
|
// react/assets/resize-expand.svg
|
|
22236
22298
|
var resize_expand_default = 'data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M0.25 6.00001C0.25 2.82437 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82437 11.75 6.00001C11.75 9.17564 9.17564 11.75 6 11.75C2.82436 11.75 0.25 9.17564 0.25 6.00001Z" fill="%2330A46C"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M9 4.96612C9.00007 4.52061 8.4614 4.29747 8.14641 4.61253L4.61366 8.14605C4.29876 8.46102 4.52179 8.9995 4.96718 8.99957L7.85678 9C8.48793 9 8.99957 8.48836 8.99957 7.85721L9 4.96612ZM4.14281 3.00043C3.51167 3.00043 3.00003 3.51207 3.00003 4.14322L3.00046 7.03301C3.00052 7.47837 3.53894 7.70142 3.85393 7.38656L7.38841 3.85363C7.70352 3.53865 7.4804 2.99993 7.03486 3L4.14281 3.00043Z" fill="%233C4347"/>%0A<path d="M0.25 6.00001C0.25 2.82437 2.82436 0.25 6 0.25C9.17564 0.25 11.75 2.82437 11.75 6.00001C11.75 9.17564 9.17564 11.75 6 11.75C2.82436 11.75 0.25 9.17564 0.25 6.00001Z" stroke="%237E868C" stroke-width="0.5"/>%0A</svg>%0A';
|
|
22237
22299
|
|
|
22238
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
22239
|
-
var digest77 = "
|
|
22300
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-eaYHhcNK1fIn/core/react/components/window/window.module.css.js
|
|
22301
|
+
var digest77 = "038dea55f8940bd072c7a2bdd343dc984515021eecedb7d2810b13ac9b760255";
|
|
22240
22302
|
var css77 = `._container_1sgpy_1 {
|
|
22241
22303
|
padding: 0;
|
|
22242
22304
|
}
|
|
@@ -22366,7 +22428,7 @@ function withMaxAllowedInstancesGuard(WrappedComponent, name, error) {
|
|
|
22366
22428
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
22367
22429
|
import { TransportProvider } from "@connectrpc/connect-query";
|
|
22368
22430
|
import { createConnectTransport } from "@connectrpc/connect-web";
|
|
22369
|
-
import { useMemo as
|
|
22431
|
+
import { useMemo as useMemo41 } from "react";
|
|
22370
22432
|
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
22371
22433
|
var multipleFrontierProvidersError = "Frontier: You've added multiple <FrontierProvider> components in your React component tree. Wrap your components in a single <FrontierProvider>.";
|
|
22372
22434
|
var fetchWithCreds = (input, init) => {
|
|
@@ -22377,7 +22439,7 @@ var fetchWithCreds = (input, init) => {
|
|
|
22377
22439
|
var queryClient = new QueryClient();
|
|
22378
22440
|
var FrontierProvider = (props) => {
|
|
22379
22441
|
const _a = props, { children, initialState, config, theme } = _a, options = __objRest(_a, ["children", "initialState", "config", "theme"]);
|
|
22380
|
-
const transport =
|
|
22442
|
+
const transport = useMemo41(
|
|
22381
22443
|
() => createConnectTransport({
|
|
22382
22444
|
baseUrl: config.connectEndpoint || "/frontier-connect",
|
|
22383
22445
|
fetch: fetchWithCreds
|
|
@@ -22447,7 +22509,7 @@ function useConnectQueryPolling(params) {
|
|
|
22447
22509
|
// react/components/Layout/index.tsx
|
|
22448
22510
|
import { Flex as Flex74, Text as Text59 } from "@raystack/apsara";
|
|
22449
22511
|
|
|
22450
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
22512
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2277-W3zvKehhUXAk/core/react/components/Layout/layout.module.css.js
|
|
22451
22513
|
var digest78 = "aa67de61a86cd23e288fc99321cc591754bc899cf7d2ada6cbd1608def558771";
|
|
22452
22514
|
var css78 = `._header_13ipn_1 {
|
|
22453
22515
|
padding: var(--rs-space-5) var(--rs-space-11);
|