@raystack/frontier 0.94.0 → 0.95.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/admin/dist/index.d.ts +63 -2
- package/admin/dist/index.js +2618 -2404
- package/admin/dist/index.mjs +2310 -2102
- package/package.json +8 -8
- package/react/dist/index.d.ts +30 -28
- package/react/dist/index.js +557 -559
- package/react/dist/index.mjs +666 -670
package/react/dist/index.mjs
CHANGED
|
@@ -368,8 +368,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
|
|
|
368
368
|
// react/components/avatar-upload/index.tsx
|
|
369
369
|
import "react-image-crop/dist/ReactCrop.css";
|
|
370
370
|
|
|
371
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
372
|
-
var digest = "
|
|
371
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-9jYvkz1vjbLE/sdk/react/components/avatar-upload/avatar-upload.module.css.js
|
|
372
|
+
var digest = "364809dd312ca8fae9c0e39b81e919b5191d6ccb3616358d7dab7185750f1311";
|
|
373
373
|
var css = `._container_1k4dc_1 {
|
|
374
374
|
display: flex;
|
|
375
375
|
flex-direction: column;
|
|
@@ -640,8 +640,8 @@ AvatarUpload.displayName = "AvatarUpload";
|
|
|
640
640
|
import { Flex as Flex2 } from "@raystack/apsara";
|
|
641
641
|
import { cva } from "class-variance-authority";
|
|
642
642
|
|
|
643
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
644
|
-
var digest2 = "
|
|
643
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-3fc4sZeeF9cc/sdk/react/components/container.module.css.js
|
|
644
|
+
var digest2 = "41bd556a31d950d9b6db4d6dd9f0b3638b1123f326dda2588ec991288d377540";
|
|
645
645
|
var css2 = `._container_1e0de_1 {
|
|
646
646
|
min-width: 220px;
|
|
647
647
|
max-width: 480px;
|
|
@@ -741,8 +741,8 @@ import { Headline, Flex as Flex3 } from "@raystack/apsara";
|
|
|
741
741
|
// react/assets/logo.png
|
|
742
742
|
var logo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAABZvElEQVR4nNS9CZAeR3Ymlq/67xt9X2igL6DRQIMASIInyAHBIXjNDGdGszMaWdbE2pJshxW2YqW1HCGtHCs55JD2sLwrybK1G7JXVnjlWB07M9JoODMYDs8BSfAACeJGA+gD3Y1G3/f9/+n4qyoz38t8WX/9ALWxW0Gi68/KyvPl9773Misz83Nf/4GQUkohpRBCivy/Ivyp7tX/IKI4IgoF4VzhUxDSCoku4ALd38DHccMleNNg85JJiTsh+fSZQF9knC4U/y4TH7hyqmaXbra+7jCp0UAnPtNr4BYpugETEt5DFKLvAUQmEqBIqvL/KpGSOgMZyp2AnBIrkG7lTMbxy2CXL07QCVfSDLHscpUFq94yKoU06ThNzXZMPlxKOz36Ixo/KIa0ZEW6tXYSYwuARibTi5J2pJS0iVA4I0P2CEItg1IjIfQPoF7Sf6Ulkbo0IAKI65cvD+gRFd7LfBtnsFSFgoXESxjcEiqAKSVt8XhISTZceMNFTsGl6hIw/0qn/UBIKazGEJxYGKxC4Xa/kh7VHSFJv5KyodgRkgM44c6IlyyoC52fCQVrDKrBYNfXh9PR21K67anHLu27OH8X2HAfhZFCcJIyF4ZGiCWVSOWbIZQrAMjE7SiN+pNKthRuKYmStBnI2KDVk5KODdUoXEM4SCbj0kradtLtfiHZcHe0qTZ2lbBHNJkudGMKJCg+oHUvI9ysWEhSOxSYsyTPLY0kqjaHKu/kIqwSR7Iu3Q4FF0uje5AQiWnYWVEzQDjCQlUiM5pgEanKKZUoTS2lNOJtN5nEciRxC2lOYI0zsEZFDhfbriHpVPSHiKZTd9rZku1pty5x6aVkw/mMnBK4bEGLgqVRQbgo6pHjuApgS4V0FJyNxDbGuXJJw5340mi6GPhjuIL8swi4QIoAItUIMs+xIlnN/8lFshWSqTzYSWlzL9oKLicwOI+0mI8TuNWIe9qmQM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PR7Y4YDEHe2b6qa7yMwOcT3QSxoWqqihxlNd9UeSGZuEAzNUX4+dUCWqRKYsRQkrI9xvSZWlIQpbRdCHD9QQnMAG87ybtY35jInIOE4kCZoOtbOSDhpCi0iQB6h3CVWmlLrQUZjsinoSvJD3WpP87Iuj+1FdXSikao8xxKaHwcgc1I/iI4LQNPHxvhXWQZqAQTDHjzQ7acFBg7dZpe2B5ByGrAbWc+ggev4JvGdnrB2uETd6WyQJR1EICIo3ZUlYFULX3FaYC/jQXW0pNN1BrrlVzGxvrH1SiLxwlZkIHQbm7N/MGHHJwyJDOBzSAPAQyH2yEfrZdjVJQD27gX+hoj+cKe/JAxoif4aafLJpZqORXIHHuXLZQnC8drrqRK7MyTil4bTkL28SbmwXEpGCIBUk7zsQiYZgkg7gwg8KI6KauKzGpCGEzaCNDoiUPrAIkBqGOD/DwAA//8N10+QXsh1VAAAAABJRU5ErkJggg==";
|
|
743
743
|
|
|
744
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
745
|
-
var digest3 = "
|
|
744
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-DN0lz39bT5KI/sdk/react/components/header.module.css.js
|
|
745
|
+
var digest3 = "9a9f5016c5d60a6b5dc39d170be7edf1817fe5f8f54ee53aafdff8263751d045";
|
|
746
746
|
var css3 = `._container_1op46_1 {
|
|
747
747
|
min-width: 220px;
|
|
748
748
|
max-width: 100%;
|
|
@@ -1409,8 +1409,8 @@ import {
|
|
|
1409
1409
|
useState as useState4
|
|
1410
1410
|
} from "react";
|
|
1411
1411
|
|
|
1412
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1413
|
-
var digest4 = "
|
|
1412
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-WTu8Ct0fYwco/sdk/react/components/onboarding/onboarding.module.css.js
|
|
1413
|
+
var digest4 = "d1f8f8fefb7247afbd4e075d653d89cbf3be0ff511a7c00b42590ed7b0852b45";
|
|
1414
1414
|
var css4 = `._container_149m6_1 {
|
|
1415
1415
|
width: 100%;
|
|
1416
1416
|
}
|
|
@@ -1712,8 +1712,8 @@ var shouldShowComponent = (permissions = {}, permisionsRequired) => {
|
|
|
1712
1712
|
return permissions[permisionsRequired] === true;
|
|
1713
1713
|
};
|
|
1714
1714
|
|
|
1715
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1716
|
-
var digest5 = "
|
|
1715
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-6ktR973S8JI4/sdk/react/components/onboarding/onboarding.module.css.js
|
|
1716
|
+
var digest5 = "2afd5f93ef6ac83363c90dc6930cf5282394cb353a0757f1d86cdeb8d65e7dc9";
|
|
1717
1717
|
var css5 = `._container_149m6_1 {
|
|
1718
1718
|
width: 100%;
|
|
1719
1719
|
}
|
|
@@ -1856,8 +1856,8 @@ var OIDCButton = ({ onClick, provider }) => /* @__PURE__ */ jsxs5(
|
|
|
1856
1856
|
}
|
|
1857
1857
|
);
|
|
1858
1858
|
|
|
1859
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1860
|
-
var digest6 = "
|
|
1859
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-neh86rBIcgWh/sdk/react/components/onboarding/onboarding.module.css.js
|
|
1860
|
+
var digest6 = "5ccd179564ac6df2a14c543b665ac49f12914a43a91420844b1aee99ce2911c6";
|
|
1861
1861
|
var css6 = `._container_149m6_1 {
|
|
1862
1862
|
width: 100%;
|
|
1863
1863
|
}
|
|
@@ -2050,8 +2050,8 @@ var SignIn = (_a) => {
|
|
|
2050
2050
|
import { Link as Link3, Text as Text6, Flex as Flex7 } from "@raystack/apsara";
|
|
2051
2051
|
import { useCallback as useCallback5 } from "react";
|
|
2052
2052
|
|
|
2053
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2054
|
-
var digest7 = "
|
|
2053
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-oQOG1u9XhhzT/sdk/react/components/onboarding/onboarding.module.css.js
|
|
2054
|
+
var digest7 = "8a941af506635c29ff398951a724ea39a7666b9dd7697046a9aa6c5c5fa6c949";
|
|
2055
2055
|
var css7 = `._container_149m6_1 {
|
|
2056
2056
|
width: 100%;
|
|
2057
2057
|
}
|
|
@@ -2331,8 +2331,8 @@ function usePreferences({
|
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2335
|
-
var digest8 = "
|
|
2334
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-Rv2quDhYSdkq/sdk/react/components/onboarding/onboarding.module.css.js
|
|
2335
|
+
var digest8 = "5e41a2de342afd7cda80c8802343196f43e26eb73826e59434f55fd52c423859";
|
|
2336
2336
|
var css8 = `._container_149m6_1 {
|
|
2337
2337
|
width: 100%;
|
|
2338
2338
|
}
|
|
@@ -2544,8 +2544,8 @@ import { CreateProspectPublicRequestSchema } from "@raystack/proton/frontier";
|
|
|
2544
2544
|
// react/assets/check-circle.svg
|
|
2545
2545
|
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>';
|
|
2546
2546
|
|
|
2547
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2548
|
-
var digest9 = "
|
|
2547
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-bS9DIbE7Acp3/sdk/react/components/onboarding/onboarding.module.css.js
|
|
2548
|
+
var digest9 = "3079c2c9f50b881ce15f65c23db42872568fa8ce6eab0fbb339c11c3f6bcb020";
|
|
2549
2549
|
var css9 = `._container_149m6_1 {
|
|
2550
2550
|
width: 100%;
|
|
2551
2551
|
}
|
|
@@ -2823,8 +2823,8 @@ import * as yup4 from "yup";
|
|
|
2823
2823
|
import { create as create6 } from "@bufbuild/protobuf";
|
|
2824
2824
|
import { CreateOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
2825
2825
|
|
|
2826
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2827
|
-
var digest10 = "
|
|
2826
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-SevBAvAiy6c5/sdk/react/components/organization/organization.module.css.js
|
|
2827
|
+
var digest10 = "48a3767e000f862d904a162aa608adc4872191dadaa5163a99eb2c4fbdc9647a";
|
|
2828
2828
|
var css10 = `._createContainer_9rhtd_1 {
|
|
2829
2829
|
margin: auto;
|
|
2830
2830
|
width: 100%;
|
|
@@ -2882,44 +2882,9 @@ var css10 = `._createContainer_9rhtd_1 {
|
|
|
2882
2882
|
})();
|
|
2883
2883
|
var organization_module_css_default = { "createContainer": "_createContainer_9rhtd_1", "overlay": "_overlay_9rhtd_8", "dropdownActionItem": "_dropdownActionItem_9rhtd_13", "noSelectItem": "_noSelectItem_9rhtd_30", "orgTabsContainer": "_orgTabsContainer_9rhtd_35", "invite-member-emails-textarea": "_invite-member-emails-textarea_9rhtd_39", "inviteMemberEmailsTextarea": "_invite-member-emails-textarea_9rhtd_39" };
|
|
2884
2884
|
|
|
2885
|
-
//
|
|
2886
|
-
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
2887
|
-
import { merge } from "lodash";
|
|
2885
|
+
// shared/terminology.tsx
|
|
2886
|
+
import { createContext as createContext2, useContext as useContext2, useMemo as useMemo3 } from "react";
|
|
2888
2887
|
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2889
|
-
var defaultCustomization = {
|
|
2890
|
-
terminology: {
|
|
2891
|
-
organization: { singular: "Organization", plural: "Organizations" },
|
|
2892
|
-
project: { singular: "Project", plural: "Projects" },
|
|
2893
|
-
team: { singular: "Team", plural: "Teams" },
|
|
2894
|
-
member: { singular: "Member", plural: "Members" },
|
|
2895
|
-
user: { singular: "User", plural: "Users" },
|
|
2896
|
-
appName: "Frontier"
|
|
2897
|
-
},
|
|
2898
|
-
messages: {
|
|
2899
|
-
billing: {},
|
|
2900
|
-
general: {}
|
|
2901
|
-
}
|
|
2902
|
-
};
|
|
2903
|
-
var CustomizationContext = createContext2(
|
|
2904
|
-
defaultCustomization
|
|
2905
|
-
);
|
|
2906
|
-
var CustomizationProvider = ({
|
|
2907
|
-
children,
|
|
2908
|
-
config = {}
|
|
2909
|
-
}) => {
|
|
2910
|
-
const mergedConfig = merge(
|
|
2911
|
-
{},
|
|
2912
|
-
defaultCustomization,
|
|
2913
|
-
config
|
|
2914
|
-
);
|
|
2915
|
-
return /* @__PURE__ */ jsx12(CustomizationContext.Provider, { value: mergedConfig, children });
|
|
2916
|
-
};
|
|
2917
|
-
var useCustomizationContext = () => {
|
|
2918
|
-
const context = useContext2(CustomizationContext);
|
|
2919
|
-
return context || defaultCustomization;
|
|
2920
|
-
};
|
|
2921
|
-
|
|
2922
|
-
// react/hooks/useTerminology.ts
|
|
2923
2888
|
var applyCase = (text, caseType) => {
|
|
2924
2889
|
switch (caseType) {
|
|
2925
2890
|
case "lower":
|
|
@@ -2927,7 +2892,7 @@ var applyCase = (text, caseType) => {
|
|
|
2927
2892
|
case "upper":
|
|
2928
2893
|
return text.toUpperCase();
|
|
2929
2894
|
case "capital":
|
|
2930
|
-
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
2895
|
+
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
2931
2896
|
default:
|
|
2932
2897
|
return text;
|
|
2933
2898
|
}
|
|
@@ -2941,16 +2906,60 @@ var createEntity = (singular, plural) => {
|
|
|
2941
2906
|
return applyCase(text, caseType);
|
|
2942
2907
|
};
|
|
2943
2908
|
};
|
|
2909
|
+
var DEFAULT_TERMINOLOGY = {
|
|
2910
|
+
organization: { singular: "Organization", plural: "Organizations" },
|
|
2911
|
+
project: { singular: "Project", plural: "Projects" },
|
|
2912
|
+
team: { singular: "Team", plural: "Teams" },
|
|
2913
|
+
member: { singular: "Member", plural: "Members" },
|
|
2914
|
+
user: { singular: "User", plural: "Users" },
|
|
2915
|
+
appName: "Frontier"
|
|
2916
|
+
};
|
|
2917
|
+
function createTerminologyMap(terminology, defaults = DEFAULT_TERMINOLOGY) {
|
|
2918
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
2919
|
+
const t = terminology || defaults;
|
|
2920
|
+
return {
|
|
2921
|
+
organization: createEntity(
|
|
2922
|
+
((_a = t.organization) == null ? void 0 : _a.singular) || defaults.organization.singular,
|
|
2923
|
+
((_b = t.organization) == null ? void 0 : _b.plural) || defaults.organization.plural
|
|
2924
|
+
),
|
|
2925
|
+
project: createEntity(
|
|
2926
|
+
((_c = t.project) == null ? void 0 : _c.singular) || defaults.project.singular,
|
|
2927
|
+
((_d = t.project) == null ? void 0 : _d.plural) || defaults.project.plural
|
|
2928
|
+
),
|
|
2929
|
+
team: createEntity(
|
|
2930
|
+
((_e = t.team) == null ? void 0 : _e.singular) || defaults.team.singular,
|
|
2931
|
+
((_f = t.team) == null ? void 0 : _f.plural) || defaults.team.plural
|
|
2932
|
+
),
|
|
2933
|
+
member: createEntity(
|
|
2934
|
+
((_g = t.member) == null ? void 0 : _g.singular) || defaults.member.singular,
|
|
2935
|
+
((_h = t.member) == null ? void 0 : _h.plural) || defaults.member.plural
|
|
2936
|
+
),
|
|
2937
|
+
user: createEntity(
|
|
2938
|
+
((_i = t.user) == null ? void 0 : _i.singular) || defaults.user.singular,
|
|
2939
|
+
((_j = t.user) == null ? void 0 : _j.plural) || defaults.user.plural
|
|
2940
|
+
),
|
|
2941
|
+
appName: createEntity(
|
|
2942
|
+
t.appName || defaults.appName,
|
|
2943
|
+
t.appName || defaults.appName
|
|
2944
|
+
)
|
|
2945
|
+
};
|
|
2946
|
+
}
|
|
2947
|
+
var TerminologyContext = createContext2(
|
|
2948
|
+
createTerminologyMap()
|
|
2949
|
+
);
|
|
2950
|
+
var TerminologyProvider = ({
|
|
2951
|
+
children,
|
|
2952
|
+
terminology,
|
|
2953
|
+
defaults
|
|
2954
|
+
}) => {
|
|
2955
|
+
const map = useMemo3(
|
|
2956
|
+
() => createTerminologyMap(terminology, defaults),
|
|
2957
|
+
[terminology, defaults]
|
|
2958
|
+
);
|
|
2959
|
+
return /* @__PURE__ */ jsx12(TerminologyContext.Provider, { value: map, children });
|
|
2960
|
+
};
|
|
2944
2961
|
var useTerminology = () => {
|
|
2945
|
-
|
|
2946
|
-
const { terminology } = context;
|
|
2947
|
-
return Object.entries(terminology).filter(([key]) => key !== "appName").reduce((acc, [key, value]) => {
|
|
2948
|
-
const entity = value;
|
|
2949
|
-
acc[key] = createEntity(entity.singular, entity.plural);
|
|
2950
|
-
return acc;
|
|
2951
|
-
}, {
|
|
2952
|
-
appName: createEntity(terminology.appName, terminology.appName)
|
|
2953
|
-
});
|
|
2962
|
+
return useContext2(TerminologyContext);
|
|
2954
2963
|
};
|
|
2955
2964
|
|
|
2956
2965
|
// react/components/organization/create.tsx
|
|
@@ -3083,13 +3092,13 @@ import {
|
|
|
3083
3092
|
toast as toast3
|
|
3084
3093
|
} from "@raystack/apsara";
|
|
3085
3094
|
import { Outlet, useNavigate as useNavigate2 } from "@tanstack/react-router";
|
|
3086
|
-
import { useEffect as useEffect2, useMemo as
|
|
3095
|
+
import { useEffect as useEffect2, useMemo as useMemo6 } from "react";
|
|
3087
3096
|
|
|
3088
3097
|
// react/hooks/useOrganizationDomains.ts
|
|
3089
3098
|
import { useQuery as useQuery4 } from "@connectrpc/connect-query";
|
|
3090
3099
|
import { FrontierServiceQueries as FrontierServiceQueries4, ListOrganizationDomainsRequestSchema } from "@raystack/proton/frontier";
|
|
3091
3100
|
import { create as create7 } from "@bufbuild/protobuf";
|
|
3092
|
-
import { useMemo as
|
|
3101
|
+
import { useMemo as useMemo4 } from "react";
|
|
3093
3102
|
var useOrganizationDomains = () => {
|
|
3094
3103
|
const { activeOrganization: organization } = useFrontier();
|
|
3095
3104
|
const {
|
|
@@ -3106,7 +3115,7 @@ var useOrganizationDomains = () => {
|
|
|
3106
3115
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
3107
3116
|
}
|
|
3108
3117
|
);
|
|
3109
|
-
const domains =
|
|
3118
|
+
const domains = useMemo4(() => {
|
|
3110
3119
|
var _a;
|
|
3111
3120
|
return (_a = domainsData == null ? void 0 : domainsData.domains) != null ? _a : [];
|
|
3112
3121
|
}, [domainsData]);
|
|
@@ -3119,7 +3128,7 @@ var useOrganizationDomains = () => {
|
|
|
3119
3128
|
};
|
|
3120
3129
|
|
|
3121
3130
|
// react/hooks/usePermissions.ts
|
|
3122
|
-
import { useMemo as
|
|
3131
|
+
import { useMemo as useMemo5 } from "react";
|
|
3123
3132
|
import { useQuery as useQuery5 } from "@connectrpc/connect-query";
|
|
3124
3133
|
import {
|
|
3125
3134
|
FrontierServiceQueries as FrontierServiceQueries5,
|
|
@@ -3128,7 +3137,7 @@ import {
|
|
|
3128
3137
|
} from "@raystack/proton/frontier";
|
|
3129
3138
|
import { create as create8 } from "@bufbuild/protobuf";
|
|
3130
3139
|
var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
3131
|
-
const protobufPermissions =
|
|
3140
|
+
const protobufPermissions = useMemo5(() => {
|
|
3132
3141
|
return permissions.map(
|
|
3133
3142
|
(permission) => create8(BatchCheckPermissionBodySchema, permission)
|
|
3134
3143
|
);
|
|
@@ -3138,7 +3147,7 @@ var usePermissions = (permissions = [], shouldCalled = true) => {
|
|
|
3138
3147
|
create8(BatchCheckPermissionRequestSchema, { bodies: protobufPermissions }),
|
|
3139
3148
|
{ enabled: shouldCalled && permissions.length > 0 }
|
|
3140
3149
|
);
|
|
3141
|
-
const permissionsMap =
|
|
3150
|
+
const permissionsMap = useMemo5(() => {
|
|
3142
3151
|
var _a;
|
|
3143
3152
|
const pairs = (_a = data == null ? void 0 : data.pairs) != null ? _a : [];
|
|
3144
3153
|
if (!pairs.length)
|
|
@@ -3259,8 +3268,8 @@ var PageHeader = ({ title, description }) => {
|
|
|
3259
3268
|
] });
|
|
3260
3269
|
};
|
|
3261
3270
|
|
|
3262
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3263
|
-
var digest11 = "
|
|
3271
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-DqMBngKxeJse/sdk/react/components/organization/styles.module.css.js
|
|
3272
|
+
var digest11 = "5f5a3f6f7a8ae905e1ce2892c4e2ac5f19bac58d0b77369552b53b3cbc7ff28a";
|
|
3264
3273
|
var css11 = `._header_11okm_1 {
|
|
3265
3274
|
margin-bottom: var(--rs-space-9);
|
|
3266
3275
|
}
|
|
@@ -3303,8 +3312,8 @@ var css11 = `._header_11okm_1 {
|
|
|
3303
3312
|
})();
|
|
3304
3313
|
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" };
|
|
3305
3314
|
|
|
3306
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3307
|
-
var digest12 = "
|
|
3315
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-810Rbmbhf3kf/sdk/react/components/organization/domain/domain.module.css.js
|
|
3316
|
+
var digest12 = "27c577ffb600d7662e1cca6e1fb436cdbdc024fb6973f3b1d2e95f788830469b";
|
|
3308
3317
|
var css12 = `._tableWrapper_jz6z1_1 {
|
|
3309
3318
|
display: flex;
|
|
3310
3319
|
flex-direction: column;
|
|
@@ -3356,7 +3365,7 @@ function Domain() {
|
|
|
3356
3365
|
}
|
|
3357
3366
|
}, [domainsError]);
|
|
3358
3367
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
3359
|
-
const listOfPermissionsToCheck =
|
|
3368
|
+
const listOfPermissionsToCheck = useMemo6(
|
|
3360
3369
|
() => [
|
|
3361
3370
|
{
|
|
3362
3371
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -3369,7 +3378,7 @@ function Domain() {
|
|
|
3369
3378
|
listOfPermissionsToCheck,
|
|
3370
3379
|
!!(organization == null ? void 0 : organization.id)
|
|
3371
3380
|
);
|
|
3372
|
-
const { canCreateDomain } =
|
|
3381
|
+
const { canCreateDomain } = useMemo6(() => {
|
|
3373
3382
|
return {
|
|
3374
3383
|
canCreateDomain: shouldShowComponent(
|
|
3375
3384
|
permissions,
|
|
@@ -3432,7 +3441,7 @@ var Domains = ({
|
|
|
3432
3441
|
dateFormat
|
|
3433
3442
|
}) => {
|
|
3434
3443
|
const navigate = useNavigate2({ from: "/domains" });
|
|
3435
|
-
const columns =
|
|
3444
|
+
const columns = useMemo6(
|
|
3436
3445
|
() => getColumns({
|
|
3437
3446
|
canCreateDomain,
|
|
3438
3447
|
dateFormat: dateFormat || DEFAULT_DATE_FORMAT
|
|
@@ -3512,8 +3521,8 @@ import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
|
|
|
3512
3521
|
import { FrontierServiceQueries as FrontierServiceQueries6, CreateOrganizationDomainRequestSchema, ListOrganizationDomainsRequestSchema as ListOrganizationDomainsRequestSchema2 } from "@raystack/proton/frontier";
|
|
3513
3522
|
import { create as create9 } from "@bufbuild/protobuf";
|
|
3514
3523
|
|
|
3515
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3516
|
-
var digest13 = "
|
|
3524
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-x241CPBPGJ1i/sdk/react/components/organization/organization.module.css.js
|
|
3525
|
+
var digest13 = "f5c5a4fce5473089c3808063fbe30d79fc25b05bfe66d7fac77a20d93ad069a7";
|
|
3517
3526
|
var css13 = `._createContainer_9rhtd_1 {
|
|
3518
3527
|
margin: auto;
|
|
3519
3528
|
width: 100%;
|
|
@@ -3728,8 +3737,8 @@ var useOrganizationDomain = (domainId) => {
|
|
|
3728
3737
|
// react/components/organization/domain/verify-domain.tsx
|
|
3729
3738
|
import { create as create11 } from "@bufbuild/protobuf";
|
|
3730
3739
|
|
|
3731
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3732
|
-
var digest14 = "
|
|
3740
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-24tJMo93Dasy/sdk/react/components/organization/organization.module.css.js
|
|
3741
|
+
var digest14 = "abab9c1deb03b8399da39ee36f548eb6ee1835274d96d8a64a0a791756a408c5";
|
|
3733
3742
|
var css14 = `._createContainer_9rhtd_1 {
|
|
3734
3743
|
margin: auto;
|
|
3735
3744
|
width: 100%;
|
|
@@ -3912,7 +3921,7 @@ var VerifyDomain = () => {
|
|
|
3912
3921
|
};
|
|
3913
3922
|
|
|
3914
3923
|
// react/views/general/general-page.tsx
|
|
3915
|
-
import { useMemo as
|
|
3924
|
+
import { useMemo as useMemo7, useState as useState7 } from "react";
|
|
3916
3925
|
import {
|
|
3917
3926
|
Button as Button14,
|
|
3918
3927
|
Tooltip as Tooltip3,
|
|
@@ -3949,8 +3958,8 @@ import {
|
|
|
3949
3958
|
} from "@raystack/proton/frontier";
|
|
3950
3959
|
import { create as create12 } from "@bufbuild/protobuf";
|
|
3951
3960
|
|
|
3952
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3953
|
-
var digest15 = "
|
|
3961
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-EloE5KH82hOh/sdk/react/views/general/general.module.css.js
|
|
3962
|
+
var digest15 = "9ea1f93a6f1795ba19d2226c928e519a780ecf5c20966e926ec9f487664cc130";
|
|
3954
3963
|
var css15 = `._profileDescription_6kdmg_1 {
|
|
3955
3964
|
color: var(--rs-color-foreground-base-secondary);
|
|
3956
3965
|
}
|
|
@@ -4178,8 +4187,8 @@ import {
|
|
|
4178
4187
|
} from "@raystack/proton/frontier";
|
|
4179
4188
|
import { create as create13 } from "@bufbuild/protobuf";
|
|
4180
4189
|
|
|
4181
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4182
|
-
var digest16 = "
|
|
4190
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-Dr0TY4YbJU3X/sdk/react/views/general/general.module.css.js
|
|
4191
|
+
var digest16 = "ac2bd1877127597c280b9fb67b955c3c8e28ca35b118ca6fcbcec34e53689b9e";
|
|
4183
4192
|
var css16 = `._profileDescription_6kdmg_1 {
|
|
4184
4193
|
color: var(--rs-color-foreground-base-secondary);
|
|
4185
4194
|
}
|
|
@@ -4373,8 +4382,8 @@ var DeleteOrganizationDialog = ({
|
|
|
4373
4382
|
] }) });
|
|
4374
4383
|
};
|
|
4375
4384
|
|
|
4376
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4377
|
-
var digest17 = "
|
|
4385
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-WrGRqH5uxrUu/sdk/react/components/organization/styles.module.css.js
|
|
4386
|
+
var digest17 = "2330f8a1f3f5c6dd9ecd0fd62825a7df4d90423b225c76cc78cbda6f5e854c33";
|
|
4378
4387
|
var css17 = `._header_11okm_1 {
|
|
4379
4388
|
margin-bottom: var(--rs-space-9);
|
|
4380
4389
|
}
|
|
@@ -4423,7 +4432,7 @@ function GeneralPage({ onDeleteSuccess } = {}) {
|
|
|
4423
4432
|
const t = useTerminology();
|
|
4424
4433
|
const { activeOrganization: organization, isActiveOrganizationLoading } = useFrontier();
|
|
4425
4434
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
4426
|
-
const listOfPermissionsToCheck =
|
|
4435
|
+
const listOfPermissionsToCheck = useMemo7(() => {
|
|
4427
4436
|
return [
|
|
4428
4437
|
{
|
|
4429
4438
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -4439,7 +4448,7 @@ function GeneralPage({ onDeleteSuccess } = {}) {
|
|
|
4439
4448
|
listOfPermissionsToCheck,
|
|
4440
4449
|
!!(organization == null ? void 0 : organization.id)
|
|
4441
4450
|
);
|
|
4442
|
-
const { canUpdateWorkspace, canDeleteWorkspace } =
|
|
4451
|
+
const { canUpdateWorkspace, canDeleteWorkspace } = useMemo7(() => {
|
|
4443
4452
|
return {
|
|
4444
4453
|
canUpdateWorkspace: shouldShowComponent(
|
|
4445
4454
|
permissions,
|
|
@@ -4526,7 +4535,7 @@ function GeneralSetting() {
|
|
|
4526
4535
|
}
|
|
4527
4536
|
|
|
4528
4537
|
// react/views/members/members-page.tsx
|
|
4529
|
-
import { useMemo as
|
|
4538
|
+
import { useMemo as useMemo10, useState as useState11 } from "react";
|
|
4530
4539
|
import {
|
|
4531
4540
|
Button as Button17,
|
|
4532
4541
|
Tooltip as Tooltip4,
|
|
@@ -4537,7 +4546,7 @@ import {
|
|
|
4537
4546
|
} from "@raystack/apsara";
|
|
4538
4547
|
|
|
4539
4548
|
// react/hooks/useOrganizationMembers.ts
|
|
4540
|
-
import { useCallback as useCallback7, useEffect as useEffect5, useState as useState8, useMemo as
|
|
4549
|
+
import { useCallback as useCallback7, useEffect as useEffect5, useState as useState8, useMemo as useMemo8 } from "react";
|
|
4541
4550
|
import { useQuery as useQuery7 } from "@connectrpc/connect-query";
|
|
4542
4551
|
import { FrontierServiceQueries as FrontierServiceQueries11, ListOrganizationUsersRequestSchema, ListRolesRequestSchema, ListOrganizationInvitationsRequestSchema } from "@raystack/proton/frontier";
|
|
4543
4552
|
import { create as create14 } from "@bufbuild/protobuf";
|
|
@@ -4579,7 +4588,7 @@ var useOrganizationMembers = ({
|
|
|
4579
4588
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
4580
4589
|
}
|
|
4581
4590
|
);
|
|
4582
|
-
const roles =
|
|
4591
|
+
const roles = useMemo8(() => (rolesData == null ? void 0 : rolesData.roles) || [], [rolesData]);
|
|
4583
4592
|
const { data: invitationsData, isLoading: isInvitationsLoading, error: invitationsError, refetch: refetchInvitations } = useQuery7(
|
|
4584
4593
|
FrontierServiceQueries11.listOrganizationInvitations,
|
|
4585
4594
|
create14(ListOrganizationInvitationsRequestSchema, {
|
|
@@ -4589,7 +4598,7 @@ var useOrganizationMembers = ({
|
|
|
4589
4598
|
);
|
|
4590
4599
|
const isFetching = isUsersLoading || isInvitationsLoading || isRolesLoading;
|
|
4591
4600
|
const hasError = usersError || rolesError || invitationsError;
|
|
4592
|
-
const updatedUsers =
|
|
4601
|
+
const updatedUsers = useMemo8(() => {
|
|
4593
4602
|
const invitations = ((invitationsData == null ? void 0 : invitationsData.invitations) || []).map((user) => {
|
|
4594
4603
|
return __spreadProps(__spreadValues({}, user), {
|
|
4595
4604
|
email: user.userId,
|
|
@@ -4627,7 +4636,7 @@ import {
|
|
|
4627
4636
|
Label
|
|
4628
4637
|
} from "@raystack/apsara";
|
|
4629
4638
|
import { yupResolver as yupResolver8 } from "@hookform/resolvers/yup";
|
|
4630
|
-
import { useCallback as useCallback8, useMemo as
|
|
4639
|
+
import { useCallback as useCallback8, useMemo as useMemo9 } from "react";
|
|
4631
4640
|
import { Controller as Controller2, useForm as useForm8 } from "react-hook-form";
|
|
4632
4641
|
import * as yup8 from "yup";
|
|
4633
4642
|
import { useMutation as useMutation7, useQuery as useQuery8 } from "@connectrpc/connect-query";
|
|
@@ -4640,8 +4649,8 @@ import {
|
|
|
4640
4649
|
} from "@raystack/proton/frontier";
|
|
4641
4650
|
import { create as create15 } from "@bufbuild/protobuf";
|
|
4642
4651
|
|
|
4643
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4644
|
-
var digest18 = "
|
|
4652
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-smXmJNDaAvQz/sdk/react/components/organization/organization.module.css.js
|
|
4653
|
+
var digest18 = "b45fe8e2a4c97c2e76300b47d883d37dc11488b5e2b9481797a6e0d52c0d6829";
|
|
4645
4654
|
var css18 = `._createContainer_9rhtd_1 {
|
|
4646
4655
|
margin: auto;
|
|
4647
4656
|
width: 100%;
|
|
@@ -4731,7 +4740,7 @@ var InviteMemberDialog = ({
|
|
|
4731
4740
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
4732
4741
|
}
|
|
4733
4742
|
);
|
|
4734
|
-
const orgRoles =
|
|
4743
|
+
const orgRoles = useMemo9(() => (orgRolesData == null ? void 0 : orgRolesData.roles) || [], [orgRolesData]);
|
|
4735
4744
|
const { data: globalRolesData, isLoading: isGlobalRolesLoading } = useQuery8(
|
|
4736
4745
|
FrontierServiceQueries12.listRoles,
|
|
4737
4746
|
create15(ListRolesRequestSchema2, {
|
|
@@ -4741,7 +4750,7 @@ var InviteMemberDialog = ({
|
|
|
4741
4750
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
4742
4751
|
}
|
|
4743
4752
|
);
|
|
4744
|
-
const globalRoles =
|
|
4753
|
+
const globalRoles = useMemo9(
|
|
4745
4754
|
() => (globalRolesData == null ? void 0 : globalRolesData.roles) || [],
|
|
4746
4755
|
[globalRolesData]
|
|
4747
4756
|
);
|
|
@@ -4754,9 +4763,9 @@ var InviteMemberDialog = ({
|
|
|
4754
4763
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
4755
4764
|
}
|
|
4756
4765
|
);
|
|
4757
|
-
const teams =
|
|
4766
|
+
const teams = useMemo9(() => (teamsData == null ? void 0 : teamsData.groups) || [], [teamsData]);
|
|
4758
4767
|
const isLoading = isOrgRolesLoading || isGlobalRolesLoading || isGroupsLoading;
|
|
4759
|
-
const roles =
|
|
4768
|
+
const roles = useMemo9(
|
|
4760
4769
|
() => [...globalRoles || [], ...orgRoles || []],
|
|
4761
4770
|
[globalRoles, orgRoles]
|
|
4762
4771
|
);
|
|
@@ -4800,7 +4809,7 @@ var InviteMemberDialog = ({
|
|
|
4800
4809
|
}),
|
|
4801
4810
|
[createInvitation, organization == null ? void 0 : organization.id]
|
|
4802
4811
|
);
|
|
4803
|
-
const isDisabled =
|
|
4812
|
+
const isDisabled = useMemo9(() => {
|
|
4804
4813
|
const [emails, type] = values;
|
|
4805
4814
|
const emailList = (emails == null ? void 0 : emails.split(",").map((e) => e.trim()).filter((str) => str.length > 0)) || [];
|
|
4806
4815
|
return emailList.length <= 0 || !type || isSubmitting;
|
|
@@ -5035,8 +5044,8 @@ var RemoveMemberDialog = ({
|
|
|
5035
5044
|
] }) });
|
|
5036
5045
|
};
|
|
5037
5046
|
|
|
5038
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5039
|
-
var digest19 = "
|
|
5047
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-KyoQ71FKLMy7/sdk/react/components/organization/styles.module.css.js
|
|
5048
|
+
var digest19 = "c0d444a37399a35b21359b717d64f15d375b1201d7fc44bc133acf4a4560b1a2";
|
|
5040
5049
|
var css19 = `._header_11okm_1 {
|
|
5041
5050
|
margin-bottom: var(--rs-space-9);
|
|
5042
5051
|
}
|
|
@@ -5079,8 +5088,8 @@ var css19 = `._header_11okm_1 {
|
|
|
5079
5088
|
})();
|
|
5080
5089
|
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" };
|
|
5081
5090
|
|
|
5082
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5083
|
-
var digest20 = "
|
|
5091
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-0075qBhncx6a/sdk/react/views/members/members.module.css.js
|
|
5092
|
+
var digest20 = "e0857bacf7d2e52190b51e4c2801487ea872faa03552f50ee8256607f73dc8d0";
|
|
5084
5093
|
var css20 = `._tableWrapper_1od7v_1 {
|
|
5085
5094
|
display: flex;
|
|
5086
5095
|
flex-direction: column;
|
|
@@ -5138,12 +5147,10 @@ import {
|
|
|
5138
5147
|
getAvatarColor,
|
|
5139
5148
|
DropdownMenu
|
|
5140
5149
|
} from "@raystack/apsara";
|
|
5141
|
-
import { useMutation as useMutation9
|
|
5150
|
+
import { useMutation as useMutation9 } from "@connectrpc/connect-query";
|
|
5142
5151
|
import {
|
|
5143
5152
|
FrontierServiceQueries as FrontierServiceQueries14,
|
|
5144
|
-
|
|
5145
|
-
CreatePolicyRequestSchema,
|
|
5146
|
-
ListPoliciesRequestSchema
|
|
5153
|
+
SetOrganizationMemberRoleRequestSchema
|
|
5147
5154
|
} from "@raystack/proton/frontier";
|
|
5148
5155
|
import { create as create17 } from "@bufbuild/protobuf";
|
|
5149
5156
|
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
@@ -5227,30 +5234,8 @@ var MembersActions = ({
|
|
|
5227
5234
|
onRemoveMember
|
|
5228
5235
|
}) => {
|
|
5229
5236
|
const [isMenuOpen, setIsMenuOpen] = useState10(false);
|
|
5230
|
-
const {
|
|
5231
|
-
FrontierServiceQueries14.
|
|
5232
|
-
create17(ListPoliciesRequestSchema, {
|
|
5233
|
-
orgId: organizationId,
|
|
5234
|
-
userId: member.id
|
|
5235
|
-
}),
|
|
5236
|
-
{
|
|
5237
|
-
enabled: isMenuOpen && !!member.id,
|
|
5238
|
-
staleTime: 6e4,
|
|
5239
|
-
gcTime: 3e5
|
|
5240
|
-
}
|
|
5241
|
-
);
|
|
5242
|
-
const { mutateAsync: deletePolicy } = useMutation9(
|
|
5243
|
-
FrontierServiceQueries14.deletePolicy,
|
|
5244
|
-
{
|
|
5245
|
-
onError: (error) => {
|
|
5246
|
-
toast10.error("Something went wrong", {
|
|
5247
|
-
description: (error == null ? void 0 : error.message) || "Failed to delete policy"
|
|
5248
|
-
});
|
|
5249
|
-
}
|
|
5250
|
-
}
|
|
5251
|
-
);
|
|
5252
|
-
const { mutateAsync: createPolicy } = useMutation9(
|
|
5253
|
-
FrontierServiceQueries14.createPolicy,
|
|
5237
|
+
const { mutateAsync: setMemberRole } = useMutation9(
|
|
5238
|
+
FrontierServiceQueries14.setOrganizationMemberRole,
|
|
5254
5239
|
{
|
|
5255
5240
|
onSuccess: () => {
|
|
5256
5241
|
refetch();
|
|
@@ -5258,7 +5243,7 @@ var MembersActions = ({
|
|
|
5258
5243
|
},
|
|
5259
5244
|
onError: (error) => {
|
|
5260
5245
|
toast10.error("Something went wrong", {
|
|
5261
|
-
description: (error == null ? void 0 : error.message) || "Failed to
|
|
5246
|
+
description: (error == null ? void 0 : error.message) || "Failed to update member role"
|
|
5262
5247
|
});
|
|
5263
5248
|
}
|
|
5264
5249
|
}
|
|
@@ -5266,32 +5251,12 @@ var MembersActions = ({
|
|
|
5266
5251
|
function updateRole(role) {
|
|
5267
5252
|
return __async(this, null, function* () {
|
|
5268
5253
|
try {
|
|
5269
|
-
const
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
policies.map((p) => {
|
|
5274
|
-
const req = create17(DeletePolicyRequestSchema, {
|
|
5275
|
-
id: p.id
|
|
5276
|
-
});
|
|
5277
|
-
return deletePolicy(req);
|
|
5278
|
-
})
|
|
5279
|
-
);
|
|
5280
|
-
const deleteErrors = deleteResults.filter(
|
|
5281
|
-
(result) => result.status === "rejected"
|
|
5282
|
-
).map((result) => result.reason);
|
|
5283
|
-
if (deleteErrors.length > 0) {
|
|
5284
|
-
console.warn("Some policy deletions failed:", deleteErrors);
|
|
5285
|
-
}
|
|
5286
|
-
const createReq = create17(CreatePolicyRequestSchema, {
|
|
5287
|
-
body: {
|
|
5288
|
-
roleId: role.id,
|
|
5289
|
-
title: role.name,
|
|
5290
|
-
resource,
|
|
5291
|
-
principal
|
|
5292
|
-
}
|
|
5254
|
+
const req = create17(SetOrganizationMemberRoleRequestSchema, {
|
|
5255
|
+
orgId: organizationId,
|
|
5256
|
+
userId: member == null ? void 0 : member.id,
|
|
5257
|
+
roleId: role.id
|
|
5293
5258
|
});
|
|
5294
|
-
yield
|
|
5259
|
+
yield setMemberRole(req);
|
|
5295
5260
|
} catch (error) {
|
|
5296
5261
|
toast10.error("Something went wrong", {
|
|
5297
5262
|
description: (error == null ? void 0 : error.message) || "Failed to update member role"
|
|
@@ -5304,11 +5269,7 @@ var MembersActions = ({
|
|
|
5304
5269
|
{
|
|
5305
5270
|
placement: "bottom-end",
|
|
5306
5271
|
open: isMenuOpen,
|
|
5307
|
-
onOpenChange:
|
|
5308
|
-
setIsMenuOpen(open);
|
|
5309
|
-
if (open)
|
|
5310
|
-
refetchPolicies();
|
|
5311
|
-
},
|
|
5272
|
+
onOpenChange: setIsMenuOpen,
|
|
5312
5273
|
children: [
|
|
5313
5274
|
/* @__PURE__ */ jsx25(DropdownMenu.Trigger, { asChild: true, style: { cursor: "pointer" }, children: /* @__PURE__ */ jsx25(DotsHorizontalIcon, {}) }),
|
|
5314
5275
|
/* @__PURE__ */ jsx25(DropdownMenu.Content, { portal: false, children: /* @__PURE__ */ jsxs21(DropdownMenu.Group, { style: { padding: 0 }, children: [
|
|
@@ -5353,7 +5314,7 @@ function MembersPage({
|
|
|
5353
5314
|
} = {}) {
|
|
5354
5315
|
const { activeOrganization: organization } = useFrontier();
|
|
5355
5316
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
5356
|
-
const listOfPermissionsToCheck =
|
|
5317
|
+
const listOfPermissionsToCheck = useMemo10(
|
|
5357
5318
|
() => [
|
|
5358
5319
|
{
|
|
5359
5320
|
permission: PERMISSIONS.InvitationCreatePermission,
|
|
@@ -5370,7 +5331,7 @@ function MembersPage({
|
|
|
5370
5331
|
listOfPermissionsToCheck,
|
|
5371
5332
|
!!(organization == null ? void 0 : organization.id)
|
|
5372
5333
|
);
|
|
5373
|
-
const { canCreateInvite, canDeleteUser } =
|
|
5334
|
+
const { canCreateInvite, canDeleteUser } = useMemo10(() => {
|
|
5374
5335
|
return {
|
|
5375
5336
|
canCreateInvite: shouldShowComponent(
|
|
5376
5337
|
permissions,
|
|
@@ -5478,7 +5439,7 @@ var MembersTable = ({
|
|
|
5478
5439
|
onRemoveMember,
|
|
5479
5440
|
onInviteClick
|
|
5480
5441
|
}) => {
|
|
5481
|
-
const columns =
|
|
5442
|
+
const columns = useMemo10(
|
|
5482
5443
|
() => getColumns2(
|
|
5483
5444
|
organizationId,
|
|
5484
5445
|
memberRoles,
|
|
@@ -5566,8 +5527,8 @@ var bell_slash_default = 'data:image/svg+xml,<svg width="16" height="16" viewBox
|
|
|
5566
5527
|
// react/assets/bell.svg
|
|
5567
5528
|
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';
|
|
5568
5529
|
|
|
5569
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5570
|
-
var digest21 = "
|
|
5530
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-XOO3tZH32Bam/sdk/react/components/organization/styles.module.css.js
|
|
5531
|
+
var digest21 = "b2219ece223604f0324add0d11d6317d9a3b17d2c5a21b04d58607d1e7070cc3";
|
|
5571
5532
|
var css21 = `._header_11okm_1 {
|
|
5572
5533
|
margin-bottom: var(--rs-space-9);
|
|
5573
5534
|
}
|
|
@@ -5755,7 +5716,7 @@ function UserPreferences() {
|
|
|
5755
5716
|
import { useNavigate as useNavigate5 } from "@tanstack/react-router";
|
|
5756
5717
|
|
|
5757
5718
|
// react/views/projects/list/projects-list-page.tsx
|
|
5758
|
-
import { useCallback as useCallback10, useEffect as useEffect8, useMemo as
|
|
5719
|
+
import { useCallback as useCallback10, useEffect as useEffect8, useMemo as useMemo12, useState as useState13 } from "react";
|
|
5759
5720
|
import {
|
|
5760
5721
|
Tooltip as Tooltip5,
|
|
5761
5722
|
EmptyState as EmptyState4,
|
|
@@ -5768,8 +5729,8 @@ import {
|
|
|
5768
5729
|
} from "@raystack/apsara";
|
|
5769
5730
|
|
|
5770
5731
|
// react/hooks/useOrganizationProjects.ts
|
|
5771
|
-
import { useCallback as useCallback9, useMemo as
|
|
5772
|
-
import { useQuery as
|
|
5732
|
+
import { useCallback as useCallback9, useMemo as useMemo11 } from "react";
|
|
5733
|
+
import { useQuery as useQuery9 } from "@connectrpc/connect-query";
|
|
5773
5734
|
import { FrontierServiceQueries as FrontierServiceQueries15, ListOrganizationProjectsRequestSchema, ListProjectsByCurrentUserRequestSchema } from "@raystack/proton/frontier";
|
|
5774
5735
|
import { create as create18 } from "@bufbuild/protobuf";
|
|
5775
5736
|
var useOrganizationProjects = ({
|
|
@@ -5782,7 +5743,7 @@ var useOrganizationProjects = ({
|
|
|
5782
5743
|
isLoading: isOrgProjectsLoading,
|
|
5783
5744
|
error: orgProjectsError,
|
|
5784
5745
|
refetch: refetchOrgProjects
|
|
5785
|
-
} =
|
|
5746
|
+
} = useQuery9(
|
|
5786
5747
|
FrontierServiceQueries15.listOrganizationProjects,
|
|
5787
5748
|
create18(ListOrganizationProjectsRequestSchema, {
|
|
5788
5749
|
id: (organization == null ? void 0 : organization.id) || "",
|
|
@@ -5795,7 +5756,7 @@ var useOrganizationProjects = ({
|
|
|
5795
5756
|
isLoading: isUserProjectsLoading,
|
|
5796
5757
|
error: userProjectsError,
|
|
5797
5758
|
refetch: refetchUserProjects
|
|
5798
|
-
} =
|
|
5759
|
+
} = useQuery9(
|
|
5799
5760
|
FrontierServiceQueries15.listProjectsByCurrentUser,
|
|
5800
5761
|
create18(ListProjectsByCurrentUserRequestSchema, {
|
|
5801
5762
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
@@ -5812,13 +5773,13 @@ var useOrganizationProjects = ({
|
|
|
5812
5773
|
refetchUserProjects();
|
|
5813
5774
|
}
|
|
5814
5775
|
}, [allProjects, refetchOrgProjects, refetchUserProjects]);
|
|
5815
|
-
const projects =
|
|
5776
|
+
const projects = useMemo11(() => {
|
|
5816
5777
|
return allProjects ? (orgProjectsData == null ? void 0 : orgProjectsData.projects) || [] : (userProjectsData == null ? void 0 : userProjectsData.projects) || [];
|
|
5817
5778
|
}, [allProjects, orgProjectsData == null ? void 0 : orgProjectsData.projects, userProjectsData == null ? void 0 : userProjectsData.projects]);
|
|
5818
|
-
const accessPairs =
|
|
5779
|
+
const accessPairs = useMemo11(() => {
|
|
5819
5780
|
return allProjects ? [] : (userProjectsData == null ? void 0 : userProjectsData.accessPairs) || [];
|
|
5820
5781
|
}, [allProjects, userProjectsData == null ? void 0 : userProjectsData.accessPairs]);
|
|
5821
|
-
const userAccessOnProject =
|
|
5782
|
+
const userAccessOnProject = useMemo11(() => {
|
|
5822
5783
|
return accessPairs.reduce((acc, p) => {
|
|
5823
5784
|
const { projectId, permissions } = p;
|
|
5824
5785
|
acc[projectId] = permissions;
|
|
@@ -5839,8 +5800,8 @@ var useOrganizationProjects = ({
|
|
|
5839
5800
|
// react/views/projects/list/projects-columns.tsx
|
|
5840
5801
|
import { Text as Text20, DropdownMenu as DropdownMenu2 } from "@raystack/apsara";
|
|
5841
5802
|
|
|
5842
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
5843
|
-
var digest22 = "
|
|
5803
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-vWLVrskNHZNx/sdk/react/components/organization/organization.module.css.js
|
|
5804
|
+
var digest22 = "6d36ea1e1047de9c450a8de3ae8b1f7d489d62a71e0de51bb41ef6ee979161e0";
|
|
5844
5805
|
var css22 = `._createContainer_9rhtd_1 {
|
|
5845
5806
|
margin: auto;
|
|
5846
5807
|
width: 100%;
|
|
@@ -6013,8 +5974,8 @@ import {
|
|
|
6013
5974
|
} from "@raystack/proton/frontier";
|
|
6014
5975
|
import { create as create19 } from "@bufbuild/protobuf";
|
|
6015
5976
|
|
|
6016
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6017
|
-
var digest23 = "
|
|
5977
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-05jNeeDzCKns/sdk/react/components/organization/organization.module.css.js
|
|
5978
|
+
var digest23 = "10836190f5346d499e973b8fbde20c9b4a1c75ce6182b9653c4077fe718b7ee3";
|
|
6018
5979
|
var css23 = `._createContainer_9rhtd_1 {
|
|
6019
5980
|
margin: auto;
|
|
6020
5981
|
width: 100%;
|
|
@@ -6210,7 +6171,7 @@ import { yupResolver as yupResolver10 } from "@hookform/resolvers/yup";
|
|
|
6210
6171
|
import { useEffect as useEffect7, useState as useState12 } from "react";
|
|
6211
6172
|
import { useForm as useForm10 } from "react-hook-form";
|
|
6212
6173
|
import * as yup10 from "yup";
|
|
6213
|
-
import { useQuery as
|
|
6174
|
+
import { useQuery as useQuery10, useMutation as useMutation11 } from "@connectrpc/connect-query";
|
|
6214
6175
|
import {
|
|
6215
6176
|
FrontierServiceQueries as FrontierServiceQueries17,
|
|
6216
6177
|
GetProjectRequestSchema,
|
|
@@ -6218,8 +6179,8 @@ import {
|
|
|
6218
6179
|
} from "@raystack/proton/frontier";
|
|
6219
6180
|
import { create as create20 } from "@bufbuild/protobuf";
|
|
6220
6181
|
|
|
6221
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6222
|
-
var digest24 = "
|
|
6182
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-75sP2b8tigr0/sdk/react/components/organization/organization.module.css.js
|
|
6183
|
+
var digest24 = "13dd32dd57f580ba631510ea174e211dac0dadc2ded1d6174d135d3b1ff85dc6";
|
|
6223
6184
|
var css24 = `._createContainer_9rhtd_1 {
|
|
6224
6185
|
margin: auto;
|
|
6225
6186
|
width: 100%;
|
|
@@ -6312,7 +6273,7 @@ var DeleteProjectDialog = ({
|
|
|
6312
6273
|
data: project,
|
|
6313
6274
|
isLoading: isProjectQueryLoading,
|
|
6314
6275
|
error: projectError
|
|
6315
|
-
} =
|
|
6276
|
+
} = useQuery10(
|
|
6316
6277
|
FrontierServiceQueries17.getProject,
|
|
6317
6278
|
create20(GetProjectRequestSchema, { id: projectId || "" }),
|
|
6318
6279
|
{
|
|
@@ -6418,8 +6379,8 @@ var DeleteProjectDialog = ({
|
|
|
6418
6379
|
) });
|
|
6419
6380
|
};
|
|
6420
6381
|
|
|
6421
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6422
|
-
var digest25 = "
|
|
6382
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-7DLVZYmZ8cyQ/sdk/react/components/organization/styles.module.css.js
|
|
6383
|
+
var digest25 = "d53c927937a6b745bc637ff4a9dc21d8a3f4d2403d2f98ad14dae70134b28fec";
|
|
6423
6384
|
var css25 = `._header_11okm_1 {
|
|
6424
6385
|
margin-bottom: var(--rs-space-9);
|
|
6425
6386
|
}
|
|
@@ -6462,8 +6423,8 @@ var css25 = `._header_11okm_1 {
|
|
|
6462
6423
|
})();
|
|
6463
6424
|
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" };
|
|
6464
6425
|
|
|
6465
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
6466
|
-
var digest26 = "
|
|
6426
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-IUmG0ovfizzw/sdk/react/views/projects/list/projects.module.css.js
|
|
6427
|
+
var digest26 = "422b9cbd90c4b329dd76289ead69e75118cbca7b20c8858d9603c34d4c87fc2d";
|
|
6467
6428
|
var css26 = `._tableWrapper_1h6in_1 {
|
|
6468
6429
|
display: flex;
|
|
6469
6430
|
flex-direction: column;
|
|
@@ -6527,7 +6488,7 @@ function ProjectsListPage({
|
|
|
6527
6488
|
});
|
|
6528
6489
|
const { activeOrganization: organization } = useFrontier();
|
|
6529
6490
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
6530
|
-
const listOfPermissionsToCheck =
|
|
6491
|
+
const listOfPermissionsToCheck = useMemo12(
|
|
6531
6492
|
() => [
|
|
6532
6493
|
{
|
|
6533
6494
|
permission: PERMISSIONS.ProjectCreatePermission,
|
|
@@ -6544,7 +6505,7 @@ function ProjectsListPage({
|
|
|
6544
6505
|
listOfPermissionsToCheck,
|
|
6545
6506
|
!!(organization == null ? void 0 : organization.id)
|
|
6546
6507
|
);
|
|
6547
|
-
const { canCreateProject, canUpdateOrganization } =
|
|
6508
|
+
const { canCreateProject, canUpdateOrganization } = useMemo12(() => {
|
|
6548
6509
|
return {
|
|
6549
6510
|
canCreateProject: shouldShowComponent(
|
|
6550
6511
|
permissions,
|
|
@@ -6666,7 +6627,7 @@ var ProjectsTable = ({
|
|
|
6666
6627
|
onDeleteProjectClick,
|
|
6667
6628
|
onAddProjectClick
|
|
6668
6629
|
}) => {
|
|
6669
|
-
const columns =
|
|
6630
|
+
const columns = useMemo12(
|
|
6670
6631
|
() => getColumns3(userAccessOnProject, onProjectClick, onDeleteProjectClick),
|
|
6671
6632
|
[userAccessOnProject, onProjectClick, onDeleteProjectClick]
|
|
6672
6633
|
);
|
|
@@ -6739,13 +6700,13 @@ var noDataChildren3 = /* @__PURE__ */ jsx33(
|
|
|
6739
6700
|
|
|
6740
6701
|
// react/views/projects/details/project-detail-page.tsx
|
|
6741
6702
|
import { Tabs, Image as Image11, toast as toast18, Flex as Flex31 } from "@raystack/apsara";
|
|
6742
|
-
import { useCallback as useCallback13, useEffect as useEffect14, useMemo as
|
|
6703
|
+
import { useCallback as useCallback13, useEffect as useEffect14, useMemo as useMemo18, useState as useState16 } from "react";
|
|
6743
6704
|
|
|
6744
6705
|
// react/assets/chevron-left.svg
|
|
6745
6706
|
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';
|
|
6746
6707
|
|
|
6747
6708
|
// react/views/projects/details/project-detail-page.tsx
|
|
6748
|
-
import { useQuery as
|
|
6709
|
+
import { useQuery as useQuery15 } from "@connectrpc/connect-query";
|
|
6749
6710
|
import {
|
|
6750
6711
|
FrontierServiceQueries as FrontierServiceQueries23,
|
|
6751
6712
|
ListProjectGroupsRequestSchema as ListProjectGroupsRequestSchema2,
|
|
@@ -6767,7 +6728,7 @@ import {
|
|
|
6767
6728
|
InputField as InputField10
|
|
6768
6729
|
} from "@raystack/apsara";
|
|
6769
6730
|
import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
|
|
6770
|
-
import { useEffect as useEffect9, useMemo as
|
|
6731
|
+
import { useEffect as useEffect9, useMemo as useMemo13 } from "react";
|
|
6771
6732
|
import { useForm as useForm11 } from "react-hook-form";
|
|
6772
6733
|
import * as yup11 from "yup";
|
|
6773
6734
|
import { useMutation as useMutation12 } from "@connectrpc/connect-query";
|
|
@@ -6808,7 +6769,7 @@ var ProjectGeneral = ({
|
|
|
6808
6769
|
reset(project);
|
|
6809
6770
|
}, [reset, project]);
|
|
6810
6771
|
const resource = `app/project:${projectId}`;
|
|
6811
|
-
const listOfPermissionsToCheck =
|
|
6772
|
+
const listOfPermissionsToCheck = useMemo13(
|
|
6812
6773
|
() => [
|
|
6813
6774
|
{
|
|
6814
6775
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -6825,7 +6786,7 @@ var ProjectGeneral = ({
|
|
|
6825
6786
|
listOfPermissionsToCheck,
|
|
6826
6787
|
!!projectId
|
|
6827
6788
|
);
|
|
6828
|
-
const { canUpdateProject, canDeleteProject } =
|
|
6789
|
+
const { canUpdateProject, canDeleteProject } = useMemo13(() => {
|
|
6829
6790
|
return {
|
|
6830
6791
|
canUpdateProject: shouldShowComponent(
|
|
6831
6792
|
permissions,
|
|
@@ -6932,7 +6893,7 @@ var GeneralDeleteProject = ({
|
|
|
6932
6893
|
};
|
|
6933
6894
|
|
|
6934
6895
|
// react/views/projects/details/project-members.tsx
|
|
6935
|
-
import { useCallback as useCallback12, useEffect as useEffect12, useMemo as
|
|
6896
|
+
import { useCallback as useCallback12, useEffect as useEffect12, useMemo as useMemo16, useState as useState15 } from "react";
|
|
6936
6897
|
import {
|
|
6937
6898
|
Button as Button22,
|
|
6938
6899
|
EmptyState as EmptyState5,
|
|
@@ -6949,8 +6910,8 @@ import {
|
|
|
6949
6910
|
} from "@raystack/apsara";
|
|
6950
6911
|
|
|
6951
6912
|
// react/hooks/useOrganizationTeams.ts
|
|
6952
|
-
import { useCallback as useCallback11, useEffect as useEffect10, useMemo as
|
|
6953
|
-
import { useQuery as
|
|
6913
|
+
import { useCallback as useCallback11, useEffect as useEffect10, useMemo as useMemo14, useState as useState14 } from "react";
|
|
6914
|
+
import { useQuery as useQuery11 } from "@connectrpc/connect-query";
|
|
6954
6915
|
import { FrontierServiceQueries as FrontierServiceQueries19, ListOrganizationGroupsRequestSchema as ListOrganizationGroupsRequestSchema2, ListCurrentUserGroupsRequestSchema } from "@raystack/proton/frontier";
|
|
6955
6916
|
import { create as create22 } from "@bufbuild/protobuf";
|
|
6956
6917
|
var useOrganizationTeams = ({
|
|
@@ -6961,12 +6922,12 @@ var useOrganizationTeams = ({
|
|
|
6961
6922
|
const [teams, setTeams] = useState14([]);
|
|
6962
6923
|
const [accessPairs, setAccessPairs] = useState14([]);
|
|
6963
6924
|
const { activeOrganization: organization } = useFrontier();
|
|
6964
|
-
const { data: orgTeamsData, isLoading: isOrgTeamsLoading, error: orgTeamsError, refetch: refetchOrgTeams } =
|
|
6925
|
+
const { data: orgTeamsData, isLoading: isOrgTeamsLoading, error: orgTeamsError, refetch: refetchOrgTeams } = useQuery11(
|
|
6965
6926
|
FrontierServiceQueries19.listOrganizationGroups,
|
|
6966
6927
|
create22(ListOrganizationGroupsRequestSchema2, { orgId: (organization == null ? void 0 : organization.id) || "", withMemberCount }),
|
|
6967
6928
|
{ enabled: !!(organization == null ? void 0 : organization.id) && showOrgTeams }
|
|
6968
6929
|
);
|
|
6969
|
-
const { data: userTeamsData, isLoading: isUserTeamsLoading, error: userTeamsError, refetch: refetchUserTeams } =
|
|
6930
|
+
const { data: userTeamsData, isLoading: isUserTeamsLoading, error: userTeamsError, refetch: refetchUserTeams } = useQuery11(
|
|
6970
6931
|
FrontierServiceQueries19.listCurrentUserGroups,
|
|
6971
6932
|
create22(ListCurrentUserGroupsRequestSchema, { orgId: (organization == null ? void 0 : organization.id) || "", withPermissions, withMemberCount }),
|
|
6972
6933
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !showOrgTeams }
|
|
@@ -6984,7 +6945,7 @@ var useOrganizationTeams = ({
|
|
|
6984
6945
|
}
|
|
6985
6946
|
}
|
|
6986
6947
|
}, [teamsData, showOrgTeams]);
|
|
6987
|
-
const userAccessOnTeam =
|
|
6948
|
+
const userAccessOnTeam = useMemo14(() => {
|
|
6988
6949
|
return accessPairs.reduce((acc, p) => {
|
|
6989
6950
|
const { groupId, permissions } = p;
|
|
6990
6951
|
acc[groupId] = permissions;
|
|
@@ -7008,7 +6969,7 @@ var useOrganizationTeams = ({
|
|
|
7008
6969
|
};
|
|
7009
6970
|
|
|
7010
6971
|
// react/views/projects/details/project-member-columns.tsx
|
|
7011
|
-
import { useEffect as useEffect11, useMemo as
|
|
6972
|
+
import { useEffect as useEffect11, useMemo as useMemo15 } from "react";
|
|
7012
6973
|
import {
|
|
7013
6974
|
Avatar as Avatar3,
|
|
7014
6975
|
Label as Label3,
|
|
@@ -7018,12 +6979,12 @@ import {
|
|
|
7018
6979
|
DropdownMenu as DropdownMenu3,
|
|
7019
6980
|
getAvatarColor as getAvatarColor2
|
|
7020
6981
|
} from "@raystack/apsara";
|
|
7021
|
-
import { useQuery as
|
|
6982
|
+
import { useQuery as useQuery12, useMutation as useMutation13 } from "@connectrpc/connect-query";
|
|
7022
6983
|
import {
|
|
7023
6984
|
FrontierServiceQueries as FrontierServiceQueries20,
|
|
7024
|
-
ListPoliciesRequestSchema
|
|
7025
|
-
DeletePolicyRequestSchema
|
|
7026
|
-
CreatePolicyRequestSchema
|
|
6985
|
+
ListPoliciesRequestSchema,
|
|
6986
|
+
DeletePolicyRequestSchema,
|
|
6987
|
+
CreatePolicyRequestSchema
|
|
7027
6988
|
} from "@raystack/proton/frontier";
|
|
7028
6989
|
import { create as create23 } from "@bufbuild/protobuf";
|
|
7029
6990
|
|
|
@@ -7116,9 +7077,9 @@ var MembersActions2 = ({
|
|
|
7116
7077
|
function removeMember() {
|
|
7117
7078
|
onRemoveMember == null ? void 0 : onRemoveMember(member == null ? void 0 : member.id);
|
|
7118
7079
|
}
|
|
7119
|
-
const { data: policiesData, refetch: refetchPolicies, error: policiesError } =
|
|
7080
|
+
const { data: policiesData, refetch: refetchPolicies, error: policiesError } = useQuery12(
|
|
7120
7081
|
FrontierServiceQueries20.listPolicies,
|
|
7121
|
-
create23(
|
|
7082
|
+
create23(ListPoliciesRequestSchema, {
|
|
7122
7083
|
projectId,
|
|
7123
7084
|
userId: member.isTeam ? void 0 : member.id,
|
|
7124
7085
|
groupId: member.isTeam ? member.id : void 0
|
|
@@ -7130,7 +7091,7 @@ var MembersActions2 = ({
|
|
|
7130
7091
|
toast15.error("Something went wrong", { description: policiesError.message });
|
|
7131
7092
|
}
|
|
7132
7093
|
}, [policiesError]);
|
|
7133
|
-
const policies =
|
|
7094
|
+
const policies = useMemo15(() => {
|
|
7134
7095
|
var _a;
|
|
7135
7096
|
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
7136
7097
|
}, [policiesData]);
|
|
@@ -7153,11 +7114,11 @@ var MembersActions2 = ({
|
|
|
7153
7114
|
const principal = member.isTeam ? `app/group:${member == null ? void 0 : member.id}` : `app/user:${member == null ? void 0 : member.id}`;
|
|
7154
7115
|
yield Promise.all(
|
|
7155
7116
|
(policies || []).map(
|
|
7156
|
-
(p) => deletePolicy(create23(
|
|
7117
|
+
(p) => deletePolicy(create23(DeletePolicyRequestSchema, { id: p.id || "" }))
|
|
7157
7118
|
)
|
|
7158
7119
|
);
|
|
7159
7120
|
yield createPolicy(
|
|
7160
|
-
create23(
|
|
7121
|
+
create23(CreatePolicyRequestSchema, {
|
|
7161
7122
|
body: {
|
|
7162
7123
|
roleId: role.id,
|
|
7163
7124
|
title: role.title || role.name,
|
|
@@ -7207,7 +7168,7 @@ var MembersActions2 = ({
|
|
|
7207
7168
|
};
|
|
7208
7169
|
|
|
7209
7170
|
// react/views/projects/details/project-members.tsx
|
|
7210
|
-
import { useQuery as
|
|
7171
|
+
import { useQuery as useQuery13, useMutation as useMutation14 } from "@connectrpc/connect-query";
|
|
7211
7172
|
import {
|
|
7212
7173
|
FrontierServiceQueries as FrontierServiceQueries21,
|
|
7213
7174
|
ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema2,
|
|
@@ -7215,8 +7176,8 @@ import {
|
|
|
7215
7176
|
} from "@raystack/proton/frontier";
|
|
7216
7177
|
import { create as create24 } from "@bufbuild/protobuf";
|
|
7217
7178
|
|
|
7218
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7219
|
-
var digest27 = "
|
|
7179
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-RgFxyb6QAe4A/sdk/react/views/projects/details/project-members.module.css.js
|
|
7180
|
+
var digest27 = "485039153b6d9e8b90c97aae2b0d5480f5781049062376694994225878bde912";
|
|
7220
7181
|
var css27 = `._inviteDropdownItem_1t7zh_1 {
|
|
7221
7182
|
padding: var(--rs-space-3);
|
|
7222
7183
|
user-select: none;
|
|
@@ -7292,7 +7253,7 @@ var ProjectMembers = ({
|
|
|
7292
7253
|
onRemoveMember
|
|
7293
7254
|
}) => {
|
|
7294
7255
|
const resource = `app/project:${projectId}`;
|
|
7295
|
-
const listOfPermissionsToCheck =
|
|
7256
|
+
const listOfPermissionsToCheck = useMemo16(
|
|
7296
7257
|
() => [
|
|
7297
7258
|
{
|
|
7298
7259
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -7305,7 +7266,7 @@ var ProjectMembers = ({
|
|
|
7305
7266
|
listOfPermissionsToCheck,
|
|
7306
7267
|
!!projectId
|
|
7307
7268
|
);
|
|
7308
|
-
const { canUpdateProject } =
|
|
7269
|
+
const { canUpdateProject } = useMemo16(() => {
|
|
7309
7270
|
return {
|
|
7310
7271
|
canUpdateProject: shouldShowComponent(
|
|
7311
7272
|
permissions,
|
|
@@ -7314,7 +7275,7 @@ var ProjectMembers = ({
|
|
|
7314
7275
|
};
|
|
7315
7276
|
}, [permissions, resource]);
|
|
7316
7277
|
const isLoading = isMemberLoading || isPermissionsFetching;
|
|
7317
|
-
const columns =
|
|
7278
|
+
const columns = useMemo16(
|
|
7318
7279
|
() => getColumns4(
|
|
7319
7280
|
memberRoles,
|
|
7320
7281
|
groupRoles,
|
|
@@ -7326,7 +7287,7 @@ var ProjectMembers = ({
|
|
|
7326
7287
|
),
|
|
7327
7288
|
[memberRoles, groupRoles, roles, canUpdateProject, projectId, refetch, onRemoveMember]
|
|
7328
7289
|
);
|
|
7329
|
-
const updatedUsers =
|
|
7290
|
+
const updatedUsers = useMemo16(() => {
|
|
7330
7291
|
const updatedTeams = teams.map((t) => __spreadProps(__spreadValues({}, t), { isTeam: true }));
|
|
7331
7292
|
return (members == null ? void 0 : members.length) || (updatedTeams == null ? void 0 : updatedTeams.length) ? [...updatedTeams, ...members] : [];
|
|
7332
7293
|
}, [members, teams]);
|
|
@@ -7394,12 +7355,12 @@ var AddMemberDropdown = ({
|
|
|
7394
7355
|
setQuery("");
|
|
7395
7356
|
setShowTeam((prev) => !prev);
|
|
7396
7357
|
};
|
|
7397
|
-
const { data: orgUsersData, isLoading: isOrgUsersLoading, error: orgUsersError } =
|
|
7358
|
+
const { data: orgUsersData, isLoading: isOrgUsersLoading, error: orgUsersError } = useQuery13(
|
|
7398
7359
|
FrontierServiceQueries21.listOrganizationUsers,
|
|
7399
7360
|
create24(ListOrganizationUsersRequestSchema2, { id: (organization == null ? void 0 : organization.id) || "" }),
|
|
7400
7361
|
{ enabled: !!(organization == null ? void 0 : organization.id) && canUpdateProject }
|
|
7401
7362
|
);
|
|
7402
|
-
const orgUsersResp =
|
|
7363
|
+
const orgUsersResp = useMemo16(() => {
|
|
7403
7364
|
var _a;
|
|
7404
7365
|
return (_a = orgUsersData == null ? void 0 : orgUsersData.users) != null ? _a : [];
|
|
7405
7366
|
}, [orgUsersData]);
|
|
@@ -7408,11 +7369,11 @@ var AddMemberDropdown = ({
|
|
|
7408
7369
|
toast16.error("Something went wrong", { description: orgUsersError.message });
|
|
7409
7370
|
}
|
|
7410
7371
|
}, [orgUsersError]);
|
|
7411
|
-
const invitableUser =
|
|
7372
|
+
const invitableUser = useMemo16(
|
|
7412
7373
|
() => filterUsersfromUsers(orgUsersResp || [], members) || [],
|
|
7413
7374
|
[orgUsersResp, members]
|
|
7414
7375
|
);
|
|
7415
|
-
const topUsers =
|
|
7376
|
+
const topUsers = useMemo16(
|
|
7416
7377
|
() => invitableUser.filter(
|
|
7417
7378
|
(user) => {
|
|
7418
7379
|
var _a, _b;
|
|
@@ -7421,7 +7382,7 @@ var AddMemberDropdown = ({
|
|
|
7421
7382
|
).slice(0, 7),
|
|
7422
7383
|
[invitableUser, query]
|
|
7423
7384
|
);
|
|
7424
|
-
const topTeams =
|
|
7385
|
+
const topTeams = useMemo16(
|
|
7425
7386
|
() => teams.filter(
|
|
7426
7387
|
(team) => query ? team.title && team.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
7427
7388
|
).slice(0, 7),
|
|
@@ -7594,9 +7555,9 @@ var noDataChildren4 = /* @__PURE__ */ jsx36(
|
|
|
7594
7555
|
|
|
7595
7556
|
// react/views/projects/details/remove-project-member-dialog.tsx
|
|
7596
7557
|
import { Button as Button23, Flex as Flex30, Text as Text26, toast as toast17, Image as Image10, Dialog as Dialog9 } from "@raystack/apsara";
|
|
7597
|
-
import { useEffect as useEffect13, useMemo as
|
|
7558
|
+
import { useEffect as useEffect13, useMemo as useMemo17 } from "react";
|
|
7598
7559
|
import {
|
|
7599
|
-
useQuery as
|
|
7560
|
+
useQuery as useQuery14,
|
|
7600
7561
|
useMutation as useMutation15,
|
|
7601
7562
|
createConnectQueryKey as createConnectQueryKey6,
|
|
7602
7563
|
useTransport as useTransport6
|
|
@@ -7604,15 +7565,15 @@ import {
|
|
|
7604
7565
|
import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
|
|
7605
7566
|
import {
|
|
7606
7567
|
FrontierServiceQueries as FrontierServiceQueries22,
|
|
7607
|
-
ListPoliciesRequestSchema as
|
|
7608
|
-
DeletePolicyRequestSchema as
|
|
7568
|
+
ListPoliciesRequestSchema as ListPoliciesRequestSchema2,
|
|
7569
|
+
DeletePolicyRequestSchema as DeletePolicyRequestSchema2,
|
|
7609
7570
|
ListProjectUsersRequestSchema,
|
|
7610
7571
|
ListProjectGroupsRequestSchema
|
|
7611
7572
|
} from "@raystack/proton/frontier";
|
|
7612
7573
|
import { create as create25 } from "@bufbuild/protobuf";
|
|
7613
7574
|
|
|
7614
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7615
|
-
var digest28 = "
|
|
7575
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-IHCRU6hjtIZz/sdk/react/components/organization/organization.module.css.js
|
|
7576
|
+
var digest28 = "8295161fbd98faba366b1ee59a35c69d96d81fb2a948e26d23ce666773642afa";
|
|
7616
7577
|
var css28 = `._createContainer_9rhtd_1 {
|
|
7617
7578
|
margin: auto;
|
|
7618
7579
|
width: 100%;
|
|
@@ -7683,9 +7644,9 @@ var RemoveProjectMemberDialog = ({
|
|
|
7683
7644
|
const handleOpenChange = (value) => {
|
|
7684
7645
|
onOpenChange == null ? void 0 : onOpenChange(value);
|
|
7685
7646
|
};
|
|
7686
|
-
const { data: policiesData, error: policiesError } =
|
|
7647
|
+
const { data: policiesData, error: policiesError } = useQuery14(
|
|
7687
7648
|
FrontierServiceQueries22.listPolicies,
|
|
7688
|
-
create25(
|
|
7649
|
+
create25(ListPoliciesRequestSchema2, {
|
|
7689
7650
|
projectId: projectId || "",
|
|
7690
7651
|
userId: memberId || ""
|
|
7691
7652
|
}),
|
|
@@ -7696,7 +7657,7 @@ var RemoveProjectMemberDialog = ({
|
|
|
7696
7657
|
toast17.error("Something went wrong", { description: policiesError.message });
|
|
7697
7658
|
}
|
|
7698
7659
|
}, [policiesError]);
|
|
7699
|
-
const policies =
|
|
7660
|
+
const policies = useMemo17(() => {
|
|
7700
7661
|
var _a;
|
|
7701
7662
|
return (_a = policiesData == null ? void 0 : policiesData.policies) != null ? _a : [];
|
|
7702
7663
|
}, [policiesData]);
|
|
@@ -7711,7 +7672,7 @@ var RemoveProjectMemberDialog = ({
|
|
|
7711
7672
|
try {
|
|
7712
7673
|
yield Promise.all(
|
|
7713
7674
|
(policies || []).map(
|
|
7714
|
-
(p) => deletePolicy(create25(
|
|
7675
|
+
(p) => deletePolicy(create25(DeletePolicyRequestSchema2, { id: p.id || "" }))
|
|
7715
7676
|
)
|
|
7716
7677
|
);
|
|
7717
7678
|
if (projectId) {
|
|
@@ -7798,8 +7759,8 @@ var RemoveProjectMemberDialog = ({
|
|
|
7798
7759
|
) });
|
|
7799
7760
|
};
|
|
7800
7761
|
|
|
7801
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7802
|
-
var digest29 = "
|
|
7762
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-cYraxsqi23UG/sdk/react/components/organization/styles.module.css.js
|
|
7763
|
+
var digest29 = "5a7f323a7db49f72e2bcbfd465169340bc911a495ca4af2a5bf293e683589e4b";
|
|
7803
7764
|
var css29 = `._header_11okm_1 {
|
|
7804
7765
|
margin-bottom: var(--rs-space-9);
|
|
7805
7766
|
}
|
|
@@ -7842,8 +7803,8 @@ var css29 = `._header_11okm_1 {
|
|
|
7842
7803
|
})();
|
|
7843
7804
|
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" };
|
|
7844
7805
|
|
|
7845
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
7846
|
-
var digest30 = "
|
|
7806
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-509cJIyvUOsI/sdk/react/views/projects/details/project-detail.module.css.js
|
|
7807
|
+
var digest30 = "50f325a5e60b60db0e60676d5038672f0e553d402327306a234827d8f055bde7";
|
|
7847
7808
|
var css30 = `._tabContent_13419_1 {
|
|
7848
7809
|
height: 100%;
|
|
7849
7810
|
}
|
|
@@ -7883,7 +7844,7 @@ var ProjectDetailPage = ({
|
|
|
7883
7844
|
isLoading: isTeamsLoading,
|
|
7884
7845
|
error: projectGroupsError,
|
|
7885
7846
|
refetch: refetchProjectGroups
|
|
7886
|
-
} =
|
|
7847
|
+
} = useQuery15(
|
|
7887
7848
|
FrontierServiceQueries23.listProjectGroups,
|
|
7888
7849
|
create26(ListProjectGroupsRequestSchema2, {
|
|
7889
7850
|
id: projectId || "",
|
|
@@ -7893,7 +7854,7 @@ var ProjectDetailPage = ({
|
|
|
7893
7854
|
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId
|
|
7894
7855
|
}
|
|
7895
7856
|
);
|
|
7896
|
-
const projectGroups =
|
|
7857
|
+
const projectGroups = useMemo18(
|
|
7897
7858
|
() => {
|
|
7898
7859
|
var _a, _b;
|
|
7899
7860
|
return {
|
|
@@ -7922,7 +7883,7 @@ var ProjectDetailPage = ({
|
|
|
7922
7883
|
data: projectUsersData,
|
|
7923
7884
|
isLoading: isMembersLoadingQuery,
|
|
7924
7885
|
refetch: refetchProjectUsers
|
|
7925
|
-
} =
|
|
7886
|
+
} = useQuery15(
|
|
7926
7887
|
FrontierServiceQueries23.listProjectUsers,
|
|
7927
7888
|
create26(ListProjectUsersRequestSchema2, {
|
|
7928
7889
|
id: projectId || "",
|
|
@@ -7932,7 +7893,7 @@ var ProjectDetailPage = ({
|
|
|
7932
7893
|
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId
|
|
7933
7894
|
}
|
|
7934
7895
|
);
|
|
7935
|
-
const projectUsers =
|
|
7896
|
+
const projectUsers = useMemo18(
|
|
7936
7897
|
() => {
|
|
7937
7898
|
var _a, _b;
|
|
7938
7899
|
return {
|
|
@@ -7954,7 +7915,7 @@ var ProjectDetailPage = ({
|
|
|
7954
7915
|
data: project,
|
|
7955
7916
|
isLoading: isProjectLoadingQuery,
|
|
7956
7917
|
error: projectError
|
|
7957
|
-
} =
|
|
7918
|
+
} = useQuery15(
|
|
7958
7919
|
FrontierServiceQueries23.getProject,
|
|
7959
7920
|
create26(GetProjectRequestSchema2, { id: projectId || "" }),
|
|
7960
7921
|
{
|
|
@@ -7973,7 +7934,7 @@ var ProjectDetailPage = ({
|
|
|
7973
7934
|
data: rolesData,
|
|
7974
7935
|
isLoading: isProjectRoleLoadingQuery,
|
|
7975
7936
|
error: rolesError
|
|
7976
|
-
} =
|
|
7937
|
+
} = useQuery15(
|
|
7977
7938
|
FrontierServiceQueries23.listRoles,
|
|
7978
7939
|
create26(ListRolesRequestSchema3, {
|
|
7979
7940
|
state: "enabled",
|
|
@@ -7983,7 +7944,7 @@ var ProjectDetailPage = ({
|
|
|
7983
7944
|
enabled: !!(organization == null ? void 0 : organization.id) && !!projectId
|
|
7984
7945
|
}
|
|
7985
7946
|
);
|
|
7986
|
-
const roles =
|
|
7947
|
+
const roles = useMemo18(() => {
|
|
7987
7948
|
var _a;
|
|
7988
7949
|
return (_a = rolesData == null ? void 0 : rolesData.roles) != null ? _a : [];
|
|
7989
7950
|
}, [rolesData]);
|
|
@@ -8124,14 +8085,14 @@ var ProjectPage = () => {
|
|
|
8124
8085
|
|
|
8125
8086
|
// react/views/security/security-page.tsx
|
|
8126
8087
|
import { Switch as Switch2, Separator as Separator7, Text as Text27, Flex as Flex32, toast as toast19 } from "@raystack/apsara";
|
|
8127
|
-
import { useEffect as useEffect15, useMemo as
|
|
8128
|
-
import { useQuery as
|
|
8088
|
+
import { useEffect as useEffect15, useMemo as useMemo19, useState as useState17 } from "react";
|
|
8089
|
+
import { useQuery as useQuery16, useMutation as useMutation16, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport7 } from "@connectrpc/connect-query";
|
|
8129
8090
|
import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
|
|
8130
8091
|
import { FrontierServiceQueries as FrontierServiceQueries24, ListOrganizationPreferencesRequestSchema, CreateOrganizationPreferencesRequestSchema } from "@raystack/proton/frontier";
|
|
8131
8092
|
import { create as create27 } from "@bufbuild/protobuf";
|
|
8132
8093
|
|
|
8133
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8134
|
-
var digest31 = "
|
|
8094
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-6Ec06zkCkx4v/sdk/react/components/organization/styles.module.css.js
|
|
8095
|
+
var digest31 = "c8c89b940f9541b5a0f6455fe2bdeef3c8b7f8eda7a4ee4423746d1501e72e65";
|
|
8135
8096
|
var css31 = `._header_11okm_1 {
|
|
8136
8097
|
margin-bottom: var(--rs-space-9);
|
|
8137
8098
|
}
|
|
@@ -8185,7 +8146,7 @@ function SecurityPage(_props = {}) {
|
|
|
8185
8146
|
const {
|
|
8186
8147
|
data: preferencesData,
|
|
8187
8148
|
error: preferencesError
|
|
8188
|
-
} =
|
|
8149
|
+
} = useQuery16(
|
|
8189
8150
|
FrontierServiceQueries24.listOrganizationPreferences,
|
|
8190
8151
|
create27(ListOrganizationPreferencesRequestSchema, {
|
|
8191
8152
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
@@ -8194,7 +8155,7 @@ function SecurityPage(_props = {}) {
|
|
|
8194
8155
|
enabled: !!(organization == null ? void 0 : organization.id)
|
|
8195
8156
|
}
|
|
8196
8157
|
);
|
|
8197
|
-
const preferences =
|
|
8158
|
+
const preferences = useMemo19(() => {
|
|
8198
8159
|
var _a;
|
|
8199
8160
|
return (_a = preferencesData == null ? void 0 : preferencesData.preferences) != null ? _a : [];
|
|
8200
8161
|
}, [preferencesData]);
|
|
@@ -8228,7 +8189,7 @@ function SecurityPage(_props = {}) {
|
|
|
8228
8189
|
}
|
|
8229
8190
|
}
|
|
8230
8191
|
);
|
|
8231
|
-
const preferencesMap =
|
|
8192
|
+
const preferencesMap = useMemo19(() => {
|
|
8232
8193
|
return preferences.reduce(
|
|
8233
8194
|
(map, el) => {
|
|
8234
8195
|
if (el.name)
|
|
@@ -8264,7 +8225,7 @@ function SecurityPage(_props = {}) {
|
|
|
8264
8225
|
})
|
|
8265
8226
|
);
|
|
8266
8227
|
};
|
|
8267
|
-
const listOfPermissionsToCheck =
|
|
8228
|
+
const listOfPermissionsToCheck = useMemo19(
|
|
8268
8229
|
() => [
|
|
8269
8230
|
{
|
|
8270
8231
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -8355,7 +8316,7 @@ import {
|
|
|
8355
8316
|
Search as Search2
|
|
8356
8317
|
} from "@raystack/apsara";
|
|
8357
8318
|
import { Link as Link4, useRouteContext, useRouterState } from "@tanstack/react-router";
|
|
8358
|
-
import { useCallback as useCallback14, useMemo as
|
|
8319
|
+
import { useCallback as useCallback14, useMemo as useMemo20, useState as useState18 } from "react";
|
|
8359
8320
|
|
|
8360
8321
|
// react/assets/organization.png
|
|
8361
8322
|
var organization_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG9SURBVHgB7ZexTgJBEIZnTmLNG3hvACYWxkbeQH0CoRJpOBOhsDE0RsHEtYHrxCcQ3gA7Egt5hLOzkxeQdW6B3AJLYHANQvgSjmV2M/mZ3Z2ZA9iwZNBkPPeKLxJkHKziBL64y8AsATnPS/Zg+x3+AAdiu1Vx09FtW+OL3trtz739gw/SlqSftqIQ0D8t1cRtAyZEGfBFpU5fr2ANbNVEWZhmHFgyTAEy44syhh8aNzV7c2jvwfcJwyFbQBCNsau5+Yoc6nbLAnrgaIfSzjWNcRaT2oesV8gjYFwCJDUxabK7akS3Bxk+WQIIl0LvSuMUptQTeCz9FjAjIB/pMchkeA0qIoqA5kpqBeARReEY5oQroOGL+1Y4ynrFVCQAW3QF6337ZUCBnVvAam0BgpMfnnbiMJqRKbKn+2swIed3yRMg1d6iKbwu2Z8Ga1isWi1YQwHcTDhAzwdDVCY8BSYLCJB05yueYaJOvWRitEbMxuoWUCPLKsXWBSyCUcDZRSEPI4nmt0SJaqaAsC1HiWED6YI93DBR5byrifMxcQirQnSo0DyT6h2TJ0q1TZgCUm84LRNSleyOvxNs+Bf8AIhCerAOPpdcAAAAAElFTkSuQmCC";
|
|
@@ -8448,8 +8409,8 @@ var getUserNavItems = (options = {}) => {
|
|
|
8448
8409
|
);
|
|
8449
8410
|
};
|
|
8450
8411
|
|
|
8451
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8452
|
-
var digest32 = "
|
|
8412
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-C91gbYGZo5ZB/sdk/react/components/organization/sidebar/sidebar.module.css.js
|
|
8413
|
+
var digest32 = "bc80c80d16a8b9dce2755a754df4d879ff420a5e7dd1367e0c9fcbbab7c0455b";
|
|
8453
8414
|
var css32 = `._sidebarWrapper_1ik5g_1 {
|
|
8454
8415
|
box-sizing: border-box;
|
|
8455
8416
|
border-top-left-radius: var(--rs-radius-6);
|
|
@@ -8507,7 +8468,7 @@ var Sidebar = () => {
|
|
|
8507
8468
|
[routerState.location.pathname]
|
|
8508
8469
|
);
|
|
8509
8470
|
const resource = `app/organization:${organizationId}`;
|
|
8510
|
-
const listOfPermissionsToCheck =
|
|
8471
|
+
const listOfPermissionsToCheck = useMemo20(
|
|
8511
8472
|
() => [
|
|
8512
8473
|
{
|
|
8513
8474
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -8520,7 +8481,7 @@ var Sidebar = () => {
|
|
|
8520
8481
|
listOfPermissionsToCheck,
|
|
8521
8482
|
!!organizationId
|
|
8522
8483
|
);
|
|
8523
|
-
const { canSeeBilling } =
|
|
8484
|
+
const { canSeeBilling } = useMemo20(() => {
|
|
8524
8485
|
return {
|
|
8525
8486
|
canSeeBilling: shouldShowComponent(
|
|
8526
8487
|
permissions,
|
|
@@ -8528,7 +8489,7 @@ var Sidebar = () => {
|
|
|
8528
8489
|
)
|
|
8529
8490
|
};
|
|
8530
8491
|
}, [permissions, resource]);
|
|
8531
|
-
const organizationNavItems =
|
|
8492
|
+
const organizationNavItems = useMemo20(
|
|
8532
8493
|
() => getOrganizationNavItems({
|
|
8533
8494
|
showBilling,
|
|
8534
8495
|
canSeeBilling,
|
|
@@ -8544,7 +8505,7 @@ var Sidebar = () => {
|
|
|
8544
8505
|
customRoutes.Organization
|
|
8545
8506
|
]
|
|
8546
8507
|
);
|
|
8547
|
-
const userNavItems =
|
|
8508
|
+
const userNavItems = useMemo20(
|
|
8548
8509
|
() => getUserNavItems({
|
|
8549
8510
|
showPreferences,
|
|
8550
8511
|
customRoutes: customRoutes.User
|
|
@@ -8671,7 +8632,7 @@ var Sidebar = () => {
|
|
|
8671
8632
|
import { useNavigate as useNavigate7 } from "@tanstack/react-router";
|
|
8672
8633
|
|
|
8673
8634
|
// react/views/teams/list/teams-list-page.tsx
|
|
8674
|
-
import { useCallback as useCallback15, useMemo as
|
|
8635
|
+
import { useCallback as useCallback15, useMemo as useMemo21, useState as useState20 } from "react";
|
|
8675
8636
|
import {
|
|
8676
8637
|
Tooltip as Tooltip8,
|
|
8677
8638
|
Skeleton as Skeleton14,
|
|
@@ -8685,8 +8646,8 @@ import {
|
|
|
8685
8646
|
// react/views/teams/list/teams-columns.tsx
|
|
8686
8647
|
import { Text as Text28, DropdownMenu as DropdownMenu4 } from "@raystack/apsara";
|
|
8687
8648
|
|
|
8688
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8689
|
-
var digest33 = "
|
|
8649
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-897CQ34CplgN/sdk/react/components/organization/organization.module.css.js
|
|
8650
|
+
var digest33 = "946a7d7a579501ae59383919ca1d43e112cf9ec35f925a5e8c97dbdcd5b61935";
|
|
8690
8651
|
var css33 = `._createContainer_9rhtd_1 {
|
|
8691
8652
|
margin: auto;
|
|
8692
8653
|
width: 100%;
|
|
@@ -8754,7 +8715,7 @@ var getColumns5 = (userAccessOnTeam, onTeamClick, onDeleteTeamClick) => [
|
|
|
8754
8715
|
},
|
|
8755
8716
|
{
|
|
8756
8717
|
header: "Members",
|
|
8757
|
-
accessorKey: "
|
|
8718
|
+
accessorKey: "membersCount",
|
|
8758
8719
|
cell: ({ row, getValue }) => {
|
|
8759
8720
|
const value = getValue();
|
|
8760
8721
|
return value ? /* @__PURE__ */ jsxs35(Text28, { children: [
|
|
@@ -8847,8 +8808,8 @@ import {
|
|
|
8847
8808
|
} from "@raystack/proton/frontier";
|
|
8848
8809
|
import { create as create28 } from "@bufbuild/protobuf";
|
|
8849
8810
|
|
|
8850
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
8851
|
-
var digest34 = "
|
|
8811
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-4FylmFggF0jd/sdk/react/components/organization/organization.module.css.js
|
|
8812
|
+
var digest34 = "4075de4ad603c9e3855bbfdce9f63851e9a0d057e6f95f66e5d0b88e2b47a220";
|
|
8852
8813
|
var css34 = `._createContainer_9rhtd_1 {
|
|
8853
8814
|
margin: auto;
|
|
8854
8815
|
width: 100%;
|
|
@@ -9029,7 +8990,7 @@ import { yupResolver as yupResolver13 } from "@hookform/resolvers/yup";
|
|
|
9029
8990
|
import { useEffect as useEffect16, useState as useState19 } from "react";
|
|
9030
8991
|
import { useForm as useForm13 } from "react-hook-form";
|
|
9031
8992
|
import * as yup13 from "yup";
|
|
9032
|
-
import { useMutation as useMutation18, useQuery as
|
|
8993
|
+
import { useMutation as useMutation18, useQuery as useQuery17 } from "@connectrpc/connect-query";
|
|
9033
8994
|
import {
|
|
9034
8995
|
FrontierServiceQueries as FrontierServiceQueries26,
|
|
9035
8996
|
DeleteGroupRequestSchema,
|
|
@@ -9037,8 +8998,8 @@ import {
|
|
|
9037
8998
|
} from "@raystack/proton/frontier";
|
|
9038
8999
|
import { create as create29 } from "@bufbuild/protobuf";
|
|
9039
9000
|
|
|
9040
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9041
|
-
var digest35 = "
|
|
9001
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-WQA0K9ehL1A1/sdk/react/components/organization/organization.module.css.js
|
|
9002
|
+
var digest35 = "a0c7d2fe191bc7d17b24a484ec83e25d5b5dda0c35ef7d83ad99cbfc433afaaa";
|
|
9042
9003
|
var css35 = `._createContainer_9rhtd_1 {
|
|
9043
9004
|
margin: auto;
|
|
9044
9005
|
width: 100%;
|
|
@@ -9131,7 +9092,7 @@ var DeleteTeamDialog = ({
|
|
|
9131
9092
|
data: teamData,
|
|
9132
9093
|
isLoading: isTeamLoading,
|
|
9133
9094
|
error: teamError
|
|
9134
|
-
} =
|
|
9095
|
+
} = useQuery17(
|
|
9135
9096
|
FrontierServiceQueries26.getGroup,
|
|
9136
9097
|
create29(GetGroupRequestSchema, {
|
|
9137
9098
|
id: teamId || "",
|
|
@@ -9245,8 +9206,8 @@ var DeleteTeamDialog = ({
|
|
|
9245
9206
|
) });
|
|
9246
9207
|
};
|
|
9247
9208
|
|
|
9248
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9249
|
-
var digest36 = "
|
|
9209
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-F90eyzSVfC7x/sdk/react/components/organization/styles.module.css.js
|
|
9210
|
+
var digest36 = "45953d042b33ee135017b4fffe69b330682ef45ea9030d5802b1ad539273b138";
|
|
9250
9211
|
var css36 = `._header_11okm_1 {
|
|
9251
9212
|
margin-bottom: var(--rs-space-9);
|
|
9252
9213
|
}
|
|
@@ -9289,8 +9250,8 @@ var css36 = `._header_11okm_1 {
|
|
|
9289
9250
|
})();
|
|
9290
9251
|
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" };
|
|
9291
9252
|
|
|
9292
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9293
|
-
var digest37 = "
|
|
9253
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-OCbzyd9S9BM4/sdk/react/views/teams/list/teams.module.css.js
|
|
9254
|
+
var digest37 = "606c37c4b0cd5e01fcc02edb184e572e6c152f75017c0745e25681348a287069";
|
|
9294
9255
|
var css37 = `._tableWrapper_1ja5a_1 {
|
|
9295
9256
|
display: flex;
|
|
9296
9257
|
flex-direction: column;
|
|
@@ -9354,7 +9315,7 @@ function TeamsListPage({
|
|
|
9354
9315
|
});
|
|
9355
9316
|
const { activeOrganization: organization } = useFrontier();
|
|
9356
9317
|
const resource = `app/organization:${organization == null ? void 0 : organization.id}`;
|
|
9357
|
-
const listOfPermissionsToCheck =
|
|
9318
|
+
const listOfPermissionsToCheck = useMemo21(
|
|
9358
9319
|
() => [
|
|
9359
9320
|
{
|
|
9360
9321
|
permission: PERMISSIONS.GroupCreatePermission,
|
|
@@ -9371,7 +9332,7 @@ function TeamsListPage({
|
|
|
9371
9332
|
listOfPermissionsToCheck,
|
|
9372
9333
|
!!(organization == null ? void 0 : organization.id)
|
|
9373
9334
|
);
|
|
9374
|
-
const { canCreateGroup, canListOrgGroups } =
|
|
9335
|
+
const { canCreateGroup, canListOrgGroups } = useMemo21(() => {
|
|
9375
9336
|
return {
|
|
9376
9337
|
canCreateGroup: shouldShowComponent(
|
|
9377
9338
|
permissions,
|
|
@@ -9483,7 +9444,7 @@ var TeamsTable = ({
|
|
|
9483
9444
|
onDeleteTeamClick,
|
|
9484
9445
|
onAddTeamClick
|
|
9485
9446
|
}) => {
|
|
9486
|
-
const columns =
|
|
9447
|
+
const columns = useMemo21(
|
|
9487
9448
|
() => getColumns5(userAccessOnTeam, onTeamClick, onDeleteTeamClick),
|
|
9488
9449
|
[userAccessOnTeam, onTeamClick, onDeleteTeamClick]
|
|
9489
9450
|
);
|
|
@@ -9553,7 +9514,7 @@ var noDataChildren5 = /* @__PURE__ */ jsx47(
|
|
|
9553
9514
|
);
|
|
9554
9515
|
|
|
9555
9516
|
// react/views/teams/details/team-detail-page.tsx
|
|
9556
|
-
import { useEffect as useEffect20, useMemo as
|
|
9517
|
+
import { useEffect as useEffect20, useMemo as useMemo25, useState as useState22 } from "react";
|
|
9557
9518
|
import { Tabs as Tabs2, Image as Image16, Flex as Flex41, toast as toast26 } from "@raystack/apsara";
|
|
9558
9519
|
|
|
9559
9520
|
// react/views/teams/details/team-general.tsx
|
|
@@ -9568,7 +9529,7 @@ import {
|
|
|
9568
9529
|
InputField as InputField13
|
|
9569
9530
|
} from "@raystack/apsara";
|
|
9570
9531
|
import { yupResolver as yupResolver14 } from "@hookform/resolvers/yup";
|
|
9571
|
-
import { useEffect as useEffect17, useMemo as
|
|
9532
|
+
import { useEffect as useEffect17, useMemo as useMemo22 } from "react";
|
|
9572
9533
|
import { useForm as useForm14 } from "react-hook-form";
|
|
9573
9534
|
import * as yup14 from "yup";
|
|
9574
9535
|
import { useMutation as useMutation19 } from "@connectrpc/connect-query";
|
|
@@ -9602,7 +9563,7 @@ var TeamGeneral = ({
|
|
|
9602
9563
|
reset(team);
|
|
9603
9564
|
}, [reset, team]);
|
|
9604
9565
|
const resource = `app/group:${teamId}`;
|
|
9605
|
-
const listOfPermissionsToCheck =
|
|
9566
|
+
const listOfPermissionsToCheck = useMemo22(
|
|
9606
9567
|
() => [
|
|
9607
9568
|
{
|
|
9608
9569
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -9619,7 +9580,7 @@ var TeamGeneral = ({
|
|
|
9619
9580
|
listOfPermissionsToCheck,
|
|
9620
9581
|
!!teamId
|
|
9621
9582
|
);
|
|
9622
|
-
const { canUpdateGroup, canDeleteGroup } =
|
|
9583
|
+
const { canUpdateGroup, canDeleteGroup } = useMemo22(() => {
|
|
9623
9584
|
return {
|
|
9624
9585
|
canUpdateGroup: shouldShowComponent(
|
|
9625
9586
|
permissions,
|
|
@@ -9737,7 +9698,7 @@ import {
|
|
|
9737
9698
|
Popover as Popover2,
|
|
9738
9699
|
Search as Search3
|
|
9739
9700
|
} from "@raystack/apsara";
|
|
9740
|
-
import { useCallback as useCallback16, useEffect as useEffect18, useMemo as
|
|
9701
|
+
import { useCallback as useCallback16, useEffect as useEffect18, useMemo as useMemo23, useState as useState21 } from "react";
|
|
9741
9702
|
|
|
9742
9703
|
// react/views/teams/details/team-member-columns.tsx
|
|
9743
9704
|
import {
|
|
@@ -9749,13 +9710,13 @@ import {
|
|
|
9749
9710
|
DropdownMenu as DropdownMenu5,
|
|
9750
9711
|
getAvatarColor as getAvatarColor3
|
|
9751
9712
|
} from "@raystack/apsara";
|
|
9752
|
-
import { useMutation as useMutation20, useQuery as
|
|
9713
|
+
import { useMutation as useMutation20, useQuery as useQuery18 } from "@connectrpc/connect-query";
|
|
9753
9714
|
import {
|
|
9754
9715
|
FrontierServiceQueries as FrontierServiceQueries28,
|
|
9755
9716
|
RemoveGroupUserRequestSchema,
|
|
9756
|
-
DeletePolicyRequestSchema as
|
|
9757
|
-
CreatePolicyRequestSchema as
|
|
9758
|
-
ListPoliciesRequestSchema as
|
|
9717
|
+
DeletePolicyRequestSchema as DeletePolicyRequestSchema3,
|
|
9718
|
+
CreatePolicyRequestSchema as CreatePolicyRequestSchema2,
|
|
9719
|
+
ListPoliciesRequestSchema as ListPoliciesRequestSchema3
|
|
9759
9720
|
} from "@raystack/proton/frontier";
|
|
9760
9721
|
import { create as create31 } from "@bufbuild/protobuf";
|
|
9761
9722
|
import { jsx as jsx49, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
@@ -9864,9 +9825,9 @@ var MembersActions3 = ({
|
|
|
9864
9825
|
});
|
|
9865
9826
|
removeGroupUserMutation.mutate(request);
|
|
9866
9827
|
}
|
|
9867
|
-
const { refetch: refetchPolicies } =
|
|
9828
|
+
const { refetch: refetchPolicies } = useQuery18(
|
|
9868
9829
|
FrontierServiceQueries28.listPolicies,
|
|
9869
|
-
create31(
|
|
9830
|
+
create31(ListPoliciesRequestSchema3, {
|
|
9870
9831
|
groupId: teamId,
|
|
9871
9832
|
userId: member == null ? void 0 : member.id
|
|
9872
9833
|
}),
|
|
@@ -9906,13 +9867,13 @@ var MembersActions3 = ({
|
|
|
9906
9867
|
const policiesResponse = yield refetchPolicies();
|
|
9907
9868
|
const policies = ((_a = policiesResponse == null ? void 0 : policiesResponse.data) == null ? void 0 : _a.policies) || [];
|
|
9908
9869
|
const deletePromises = policies.map((p) => {
|
|
9909
|
-
const deleteRequest = create31(
|
|
9870
|
+
const deleteRequest = create31(DeletePolicyRequestSchema3, {
|
|
9910
9871
|
id: p.id
|
|
9911
9872
|
});
|
|
9912
9873
|
return deletePolicyMutation.mutateAsync(deleteRequest);
|
|
9913
9874
|
});
|
|
9914
9875
|
yield Promise.all(deletePromises);
|
|
9915
|
-
const createRequest = create31(
|
|
9876
|
+
const createRequest = create31(CreatePolicyRequestSchema2, {
|
|
9916
9877
|
body: {
|
|
9917
9878
|
roleId: role.id,
|
|
9918
9879
|
title: role.name,
|
|
@@ -9960,7 +9921,7 @@ var MembersActions3 = ({
|
|
|
9960
9921
|
};
|
|
9961
9922
|
|
|
9962
9923
|
// react/views/teams/details/team-members.tsx
|
|
9963
|
-
import { useQuery as
|
|
9924
|
+
import { useQuery as useQuery19, useMutation as useMutation21 } from "@connectrpc/connect-query";
|
|
9964
9925
|
import {
|
|
9965
9926
|
FrontierServiceQueries as FrontierServiceQueries29,
|
|
9966
9927
|
AddGroupUsersRequestSchema,
|
|
@@ -9968,8 +9929,8 @@ import {
|
|
|
9968
9929
|
} from "@raystack/proton/frontier";
|
|
9969
9930
|
import { create as create32 } from "@bufbuild/protobuf";
|
|
9970
9931
|
|
|
9971
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
9972
|
-
var digest38 = "
|
|
9932
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-CoiztZCtjXVD/sdk/react/views/teams/details/team-members.module.css.js
|
|
9933
|
+
var digest38 = "dcdd01f6c22f1bd21b7e7d7a94485dc106a7257baa7443381f947817d28af5c3";
|
|
9973
9934
|
var css38 = `._inviteDropdownItem_rqd99_1 {
|
|
9974
9935
|
padding: var(--rs-space-3);
|
|
9975
9936
|
user-select: none;
|
|
@@ -10051,7 +10012,7 @@ var TeamMembers = ({
|
|
|
10051
10012
|
onInviteClick
|
|
10052
10013
|
}) => {
|
|
10053
10014
|
const resource = `app/group:${teamId}`;
|
|
10054
|
-
const listOfPermissionsToCheck =
|
|
10015
|
+
const listOfPermissionsToCheck = useMemo23(
|
|
10055
10016
|
() => [
|
|
10056
10017
|
{
|
|
10057
10018
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -10064,7 +10025,7 @@ var TeamMembers = ({
|
|
|
10064
10025
|
listOfPermissionsToCheck,
|
|
10065
10026
|
!!teamId
|
|
10066
10027
|
);
|
|
10067
|
-
const { canUpdateGroup } =
|
|
10028
|
+
const { canUpdateGroup } = useMemo23(() => {
|
|
10068
10029
|
return {
|
|
10069
10030
|
canUpdateGroup: shouldShowComponent(
|
|
10070
10031
|
permissions,
|
|
@@ -10073,7 +10034,7 @@ var TeamMembers = ({
|
|
|
10073
10034
|
};
|
|
10074
10035
|
}, [permissions, resource]);
|
|
10075
10036
|
const isLoading = isPermissionsFetching || isMemberLoading;
|
|
10076
|
-
const columns =
|
|
10037
|
+
const columns = useMemo23(
|
|
10077
10038
|
() => getColumns6({
|
|
10078
10039
|
roles,
|
|
10079
10040
|
organizationId,
|
|
@@ -10155,7 +10116,7 @@ var AddMemberDropdown2 = ({
|
|
|
10155
10116
|
data: orgMembersData,
|
|
10156
10117
|
isLoading: isOrgMembersLoading,
|
|
10157
10118
|
error: orgMembersError
|
|
10158
|
-
} =
|
|
10119
|
+
} = useQuery19(
|
|
10159
10120
|
FrontierServiceQueries29.listOrganizationUsers,
|
|
10160
10121
|
create32(ListOrganizationUsersRequestSchema3, {
|
|
10161
10122
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
@@ -10169,12 +10130,12 @@ var AddMemberDropdown2 = ({
|
|
|
10169
10130
|
});
|
|
10170
10131
|
}
|
|
10171
10132
|
}, [orgMembersError]);
|
|
10172
|
-
const invitableUser =
|
|
10133
|
+
const invitableUser = useMemo23(
|
|
10173
10134
|
() => filterUsersfromUsers((orgMembersData == null ? void 0 : orgMembersData.users) || [], members) || [],
|
|
10174
10135
|
[orgMembersData == null ? void 0 : orgMembersData.users, members]
|
|
10175
10136
|
);
|
|
10176
10137
|
const isUserLoading = isOrgMembersLoading;
|
|
10177
|
-
const topUsers =
|
|
10138
|
+
const topUsers = useMemo23(
|
|
10178
10139
|
() => invitableUser.filter(
|
|
10179
10140
|
(user) => query ? user.title && user.title.toLowerCase().includes(query.toLowerCase()) : true
|
|
10180
10141
|
).slice(0, 7),
|
|
@@ -10310,13 +10271,13 @@ import {
|
|
|
10310
10271
|
Select as Select5,
|
|
10311
10272
|
Label as Label5
|
|
10312
10273
|
} from "@raystack/apsara";
|
|
10313
|
-
import { useCallback as useCallback17, useEffect as useEffect19, useMemo as
|
|
10274
|
+
import { useCallback as useCallback17, useEffect as useEffect19, useMemo as useMemo24 } from "react";
|
|
10314
10275
|
import { Controller as Controller3, useForm as useForm15 } from "react-hook-form";
|
|
10315
10276
|
import * as yup15 from "yup";
|
|
10316
|
-
import { useQuery as
|
|
10277
|
+
import { useQuery as useQuery20, useMutation as useMutation22 } from "@connectrpc/connect-query";
|
|
10317
10278
|
import {
|
|
10318
10279
|
FrontierServiceQueries as FrontierServiceQueries30,
|
|
10319
|
-
CreatePolicyRequestSchema as
|
|
10280
|
+
CreatePolicyRequestSchema as CreatePolicyRequestSchema3,
|
|
10320
10281
|
AddGroupUsersRequestSchema as AddGroupUsersRequestSchema2,
|
|
10321
10282
|
ListOrganizationUsersRequestSchema as ListOrganizationUsersRequestSchema4,
|
|
10322
10283
|
ListGroupUsersRequestSchema,
|
|
@@ -10325,8 +10286,8 @@ import {
|
|
|
10325
10286
|
} from "@raystack/proton/frontier";
|
|
10326
10287
|
import { create as create33 } from "@bufbuild/protobuf";
|
|
10327
10288
|
|
|
10328
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10329
|
-
var digest39 = "
|
|
10289
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-Wn3w8FgNdGID/sdk/react/components/organization/organization.module.css.js
|
|
10290
|
+
var digest39 = "c4a97045c0cc76dbdafcf8f1acf0d4ee11ee7ac85282f82b0c1037f0d65a6aa2";
|
|
10330
10291
|
var css39 = `._createContainer_9rhtd_1 {
|
|
10331
10292
|
margin: auto;
|
|
10332
10293
|
width: 100%;
|
|
@@ -10415,7 +10376,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10415
10376
|
data: orgMembersData,
|
|
10416
10377
|
isLoading: isOrgMembersLoading,
|
|
10417
10378
|
error: orgMembersError
|
|
10418
|
-
} =
|
|
10379
|
+
} = useQuery20(
|
|
10419
10380
|
FrontierServiceQueries30.listOrganizationUsers,
|
|
10420
10381
|
create33(ListOrganizationUsersRequestSchema4, {
|
|
10421
10382
|
id: (organization == null ? void 0 : organization.id) || ""
|
|
@@ -10433,7 +10394,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10433
10394
|
data: teamMembersData,
|
|
10434
10395
|
isLoading: isTeamMembersLoading,
|
|
10435
10396
|
error: teamMembersError
|
|
10436
|
-
} =
|
|
10397
|
+
} = useQuery20(
|
|
10437
10398
|
FrontierServiceQueries30.listGroupUsers,
|
|
10438
10399
|
create33(ListGroupUsersRequestSchema, {
|
|
10439
10400
|
id: teamId || "",
|
|
@@ -10453,7 +10414,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10453
10414
|
data: orgRolesData,
|
|
10454
10415
|
isLoading: isOrgRolesLoading,
|
|
10455
10416
|
error: orgRolesError
|
|
10456
|
-
} =
|
|
10417
|
+
} = useQuery20(
|
|
10457
10418
|
FrontierServiceQueries30.listOrganizationRoles,
|
|
10458
10419
|
create33(ListOrganizationRolesRequestSchema2, {
|
|
10459
10420
|
orgId: (organization == null ? void 0 : organization.id) || "",
|
|
@@ -10465,14 +10426,14 @@ var InviteTeamMemberDialog = ({
|
|
|
10465
10426
|
data: rolesData,
|
|
10466
10427
|
isLoading: isRolesLoading,
|
|
10467
10428
|
error: rolesError
|
|
10468
|
-
} =
|
|
10429
|
+
} = useQuery20(
|
|
10469
10430
|
FrontierServiceQueries30.listRoles,
|
|
10470
10431
|
create33(ListRolesRequestSchema4, {
|
|
10471
10432
|
scopes: [PERMISSIONS.GroupNamespace]
|
|
10472
10433
|
}),
|
|
10473
10434
|
{ enabled: !!(organization == null ? void 0 : organization.id) && open }
|
|
10474
10435
|
);
|
|
10475
|
-
const roles =
|
|
10436
|
+
const roles = useMemo24(() => {
|
|
10476
10437
|
const orgRoles = (orgRolesData == null ? void 0 : orgRolesData.roles) || [];
|
|
10477
10438
|
const systemRoles = (rolesData == null ? void 0 : rolesData.roles) || [];
|
|
10478
10439
|
return [...systemRoles, ...orgRoles];
|
|
@@ -10508,7 +10469,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10508
10469
|
if ((role == null ? void 0 : role.name) && role.name !== PERMISSIONS.RoleGroupMember) {
|
|
10509
10470
|
const resource = `${PERMISSIONS.GroupPrincipal}:${teamId}`;
|
|
10510
10471
|
const principal = `${PERMISSIONS.UserPrincipal}:${userId}`;
|
|
10511
|
-
const request = create33(
|
|
10472
|
+
const request = create33(CreatePolicyRequestSchema3, {
|
|
10512
10473
|
body: {
|
|
10513
10474
|
roleId,
|
|
10514
10475
|
resource,
|
|
@@ -10545,7 +10506,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10545
10506
|
handleOpenChange(false);
|
|
10546
10507
|
});
|
|
10547
10508
|
}
|
|
10548
|
-
const invitableUser =
|
|
10509
|
+
const invitableUser = useMemo24(
|
|
10549
10510
|
() => filterUsersfromUsers(
|
|
10550
10511
|
(orgMembersData == null ? void 0 : orgMembersData.users) || [],
|
|
10551
10512
|
(teamMembersData == null ? void 0 : teamMembersData.users) || []
|
|
@@ -10664,7 +10625,7 @@ var InviteTeamMemberDialog = ({
|
|
|
10664
10625
|
};
|
|
10665
10626
|
|
|
10666
10627
|
// react/views/teams/details/team-detail-page.tsx
|
|
10667
|
-
import { useQuery as
|
|
10628
|
+
import { useQuery as useQuery21 } from "@connectrpc/connect-query";
|
|
10668
10629
|
import {
|
|
10669
10630
|
FrontierServiceQueries as FrontierServiceQueries31,
|
|
10670
10631
|
GetGroupRequestSchema as GetGroupRequestSchema2,
|
|
@@ -10673,8 +10634,8 @@ import {
|
|
|
10673
10634
|
} from "@raystack/proton/frontier";
|
|
10674
10635
|
import { create as create34 } from "@bufbuild/protobuf";
|
|
10675
10636
|
|
|
10676
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10677
|
-
var digest40 = "
|
|
10637
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-ipMnHwLOyndM/sdk/react/components/organization/styles.module.css.js
|
|
10638
|
+
var digest40 = "eeb67e54cbec62a565b897e007d4950e04c454a2413106eddcb81e963ec273cd";
|
|
10678
10639
|
var css40 = `._header_11okm_1 {
|
|
10679
10640
|
margin-bottom: var(--rs-space-9);
|
|
10680
10641
|
}
|
|
@@ -10717,8 +10678,8 @@ var css40 = `._header_11okm_1 {
|
|
|
10717
10678
|
})();
|
|
10718
10679
|
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" };
|
|
10719
10680
|
|
|
10720
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10721
|
-
var digest41 = "
|
|
10681
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-j0MxUwueIjlJ/sdk/react/views/teams/details/team-detail.module.css.js
|
|
10682
|
+
var digest41 = "52a1cf6d73e0913fbd9ec47f4c3cbb09532694543b9b37ebaddc346ef6d31716";
|
|
10722
10683
|
var css41 = `._tabContent_1i08o_1 {
|
|
10723
10684
|
height: 100%;
|
|
10724
10685
|
}
|
|
@@ -10751,7 +10712,7 @@ var TeamDetailPage = ({ teamId, onBack }) => {
|
|
|
10751
10712
|
data: teamData,
|
|
10752
10713
|
isLoading: isTeamLoading,
|
|
10753
10714
|
error: teamError
|
|
10754
|
-
} =
|
|
10715
|
+
} = useQuery21(
|
|
10755
10716
|
FrontierServiceQueries31.getGroup,
|
|
10756
10717
|
create34(GetGroupRequestSchema2, {
|
|
10757
10718
|
id: teamId || "",
|
|
@@ -10773,7 +10734,7 @@ var TeamDetailPage = ({ teamId, onBack }) => {
|
|
|
10773
10734
|
isLoading: isMembersLoading,
|
|
10774
10735
|
error: membersError,
|
|
10775
10736
|
refetch: refetchMembers
|
|
10776
|
-
} =
|
|
10737
|
+
} = useQuery21(
|
|
10777
10738
|
FrontierServiceQueries31.listGroupUsers,
|
|
10778
10739
|
create34(ListGroupUsersRequestSchema2, {
|
|
10779
10740
|
id: teamId || "",
|
|
@@ -10783,7 +10744,7 @@ var TeamDetailPage = ({ teamId, onBack }) => {
|
|
|
10783
10744
|
{ enabled: !!(organization == null ? void 0 : organization.id) && !!teamId }
|
|
10784
10745
|
);
|
|
10785
10746
|
const members = (membersData == null ? void 0 : membersData.users) || [];
|
|
10786
|
-
const memberRoles =
|
|
10747
|
+
const memberRoles = useMemo25(() => {
|
|
10787
10748
|
if (!(membersData == null ? void 0 : membersData.rolePairs))
|
|
10788
10749
|
return {};
|
|
10789
10750
|
return membersData.rolePairs.reduce(
|
|
@@ -10800,7 +10761,7 @@ var TeamDetailPage = ({ teamId, onBack }) => {
|
|
|
10800
10761
|
});
|
|
10801
10762
|
}
|
|
10802
10763
|
}, [membersError]);
|
|
10803
|
-
const { data: rolesData, error: rolesError } =
|
|
10764
|
+
const { data: rolesData, error: rolesError } = useQuery21(
|
|
10804
10765
|
FrontierServiceQueries31.listRoles,
|
|
10805
10766
|
create34(ListRolesRequestSchema5, {
|
|
10806
10767
|
state: "enabled",
|
|
@@ -11079,8 +11040,8 @@ var UpdateProfile = () => {
|
|
|
11079
11040
|
] }) });
|
|
11080
11041
|
};
|
|
11081
11042
|
|
|
11082
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11083
|
-
var digest42 = "
|
|
11043
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-A1IvG9CK00WJ/sdk/react/components/organization/styles.module.css.js
|
|
11044
|
+
var digest42 = "154f38e762a151554ea64e4e1a69bc2c44c2c81b39b7b54290f1a6db3319c837";
|
|
11084
11045
|
var css42 = `._header_11okm_1 {
|
|
11085
11046
|
margin-bottom: var(--rs-space-9);
|
|
11086
11047
|
}
|
|
@@ -11170,8 +11131,8 @@ import {
|
|
|
11170
11131
|
} from "@raystack/proton/frontier";
|
|
11171
11132
|
import { create as create35 } from "@bufbuild/protobuf";
|
|
11172
11133
|
|
|
11173
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11174
|
-
var digest43 = "
|
|
11134
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-wpUuZJY6M29g/sdk/react/components/organization/organization.module.css.js
|
|
11135
|
+
var digest43 = "b530e2b869961189eb1a63a9c0f68a08a0b0e71427b7dca94af64279c377aad8";
|
|
11175
11136
|
var css43 = `._createContainer_9rhtd_1 {
|
|
11176
11137
|
margin: auto;
|
|
11177
11138
|
width: 100%;
|
|
@@ -11379,7 +11340,7 @@ import {
|
|
|
11379
11340
|
Tooltip as Tooltip12,
|
|
11380
11341
|
Link as Link6
|
|
11381
11342
|
} from "@raystack/apsara";
|
|
11382
|
-
import { useCallback as useCallback22, useEffect as useEffect24, useMemo as
|
|
11343
|
+
import { useCallback as useCallback22, useEffect as useEffect24, useMemo as useMemo30, useState as useState25 } from "react";
|
|
11383
11344
|
import {
|
|
11384
11345
|
ListInvoicesRequestSchema,
|
|
11385
11346
|
FrontierServiceQueries as FrontierServiceQueries35,
|
|
@@ -11398,8 +11359,8 @@ import {
|
|
|
11398
11359
|
Amount
|
|
11399
11360
|
} from "@raystack/apsara";
|
|
11400
11361
|
|
|
11401
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11402
|
-
var digest44 = "
|
|
11362
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-K23sVz51YbVX/sdk/react/views/billing/invoices/invoice.module.css.js
|
|
11363
|
+
var digest44 = "aa55313840d1e45c5d274a6c66b867c78c46e2dd0639a39c77b63b26b712256b";
|
|
11403
11364
|
var css44 = `._header_gzg1m_1 {
|
|
11404
11365
|
margin-top: calc(-1 * var(--rs-space-9));
|
|
11405
11366
|
padding-top: var(--rs-space-9);
|
|
@@ -11513,8 +11474,8 @@ function Invoices({ isLoading, invoices }) {
|
|
|
11513
11474
|
// react/views/billing/billing-page.tsx
|
|
11514
11475
|
import qs3 from "query-string";
|
|
11515
11476
|
|
|
11516
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11517
|
-
var digest45 = "
|
|
11477
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-u6yAJqW7Me6g/sdk/react/components/organization/styles.module.css.js
|
|
11478
|
+
var digest45 = "77e2bc582f296a438c4200c4678bf3956ff5bcde5b7b6b45bf6e2bb886c28c63";
|
|
11518
11479
|
var css45 = `._header_11okm_1 {
|
|
11519
11480
|
margin-bottom: var(--rs-space-9);
|
|
11520
11481
|
}
|
|
@@ -11557,8 +11518,8 @@ var css45 = `._header_11okm_1 {
|
|
|
11557
11518
|
})();
|
|
11558
11519
|
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" };
|
|
11559
11520
|
|
|
11560
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11561
|
-
var digest46 = "
|
|
11521
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-xK6alU2cvV7e/sdk/react/views/billing/billing.module.css.js
|
|
11522
|
+
var digest46 = "06860a3b8c848d8e3b2408708d93df6b16ae1df2cfb3d4ee616cadd5cce0f528";
|
|
11562
11523
|
var css46 = `._detailsBox_1vjbh_1 {
|
|
11563
11524
|
padding: var(--rs-space-4);
|
|
11564
11525
|
display: flex;
|
|
@@ -11661,7 +11622,7 @@ var css46 = `._detailsBox_1vjbh_1 {
|
|
|
11661
11622
|
var billing_module_css_default = { "detailsBox": "_detailsBox_1vjbh_1", "detailsBoxHeading": "_detailsBoxHeading_1vjbh_13", "detailsBoxRowLabel": "_detailsBoxRowLabel_1vjbh_21", "detailsBoxRowValue": "_detailsBoxRowValue_1vjbh_29", "currentPlanInfoBox": "_currentPlanInfoBox_1vjbh_37", "billingCycleBox": "_billingCycleBox_1vjbh_44", "currentPlanInfoText": "_currentPlanInfoText_1vjbh_51", "flex1": "_flex1_1vjbh_56", "paymentIssueBox": "_paymentIssueBox_1vjbh_60", "paymentIssueText": "_paymentIssueText_1vjbh_67", "retryPaymentBtn": "_retryPaymentBtn_1vjbh_71", "changeBannerBox": "_changeBannerBox_1vjbh_82" };
|
|
11662
11623
|
|
|
11663
11624
|
// react/views/billing/upcoming-billing-cycle.tsx
|
|
11664
|
-
import { useEffect as useEffect23, useMemo as
|
|
11625
|
+
import { useEffect as useEffect23, useMemo as useMemo26 } from "react";
|
|
11665
11626
|
import {
|
|
11666
11627
|
GetUpcomingInvoiceRequestSchema,
|
|
11667
11628
|
FrontierServiceQueries as FrontierServiceQueries33,
|
|
@@ -11683,8 +11644,8 @@ import {
|
|
|
11683
11644
|
// react/assets/line.svg
|
|
11684
11645
|
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>';
|
|
11685
11646
|
|
|
11686
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11687
|
-
var digest47 = "
|
|
11647
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-W05CG4DnQ9n6/sdk/react/views/billing/billing.module.css.js
|
|
11648
|
+
var digest47 = "63b6afaff6d0752b86d4451fadcee1002e481bed2d43052abfe6f60849187cb3";
|
|
11688
11649
|
var css47 = `._detailsBox_1vjbh_1 {
|
|
11689
11650
|
padding: var(--rs-space-4);
|
|
11690
11651
|
display: flex;
|
|
@@ -11880,7 +11841,7 @@ var UpcomingBillingCycle = ({
|
|
|
11880
11841
|
}
|
|
11881
11842
|
}
|
|
11882
11843
|
);
|
|
11883
|
-
const { plan, switchablePlan } =
|
|
11844
|
+
const { plan, switchablePlan } = useMemo26(() => {
|
|
11884
11845
|
if ((activeSubscription == null ? void 0 : activeSubscription.planId) && allPlans.length > 0) {
|
|
11885
11846
|
const currentPlan = allPlans.find(
|
|
11886
11847
|
(p) => p.id === activeSubscription.planId
|
|
@@ -12005,8 +11966,8 @@ var UpcomingBillingCycle = ({
|
|
|
12005
11966
|
// react/views/billing/payment-issue.tsx
|
|
12006
11967
|
import { Button as Button33, Skeleton as Skeleton21, Image as Image18, Text as Text38, Flex as Flex47 } from "@raystack/apsara";
|
|
12007
11968
|
|
|
12008
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12009
|
-
var digest48 = "
|
|
11969
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-pnQoz5ImiW6h/sdk/react/views/billing/billing.module.css.js
|
|
11970
|
+
var digest48 = "cdbd5b9bf0b9aee68e5935a17505796d1109bee3f28d87ae80994a6e2b350dd9";
|
|
12010
11971
|
var css48 = `._detailsBox_1vjbh_1 {
|
|
12011
11972
|
padding: var(--rs-space-4);
|
|
12012
11973
|
display: flex;
|
|
@@ -12161,8 +12122,8 @@ function PaymentIssue({
|
|
|
12161
12122
|
import { Button as Button34, Skeleton as Skeleton22, Text as Text39, Flex as Flex48, toast as toast30 } from "@raystack/apsara";
|
|
12162
12123
|
import { ChangeSubscriptionRequestSchema } from "@raystack/proton/frontier";
|
|
12163
12124
|
|
|
12164
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12165
|
-
var digest49 = "
|
|
12125
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-uYOAebKT5Y5N/sdk/react/components/common/upcoming-plan-change-banner/styles.module.css.js
|
|
12126
|
+
var digest49 = "0dc58da40c034419f97f3031696b3a1655f4b3a3dfb9703bbcf5bf9492d48f82";
|
|
12166
12127
|
var css49 = `._changeBannerBox_1tp17_1 {
|
|
12167
12128
|
padding: var(--rs-space-3);
|
|
12168
12129
|
border-radius: var(--rs-space-2);
|
|
@@ -12194,7 +12155,7 @@ var styles_module_css_default12 = { "changeBannerBox": "_changeBannerBox_1tp17_1
|
|
|
12194
12155
|
|
|
12195
12156
|
// react/components/common/upcoming-plan-change-banner/index.tsx
|
|
12196
12157
|
import dayjs3 from "dayjs";
|
|
12197
|
-
import { useCallback as useCallback19, useMemo as
|
|
12158
|
+
import { useCallback as useCallback19, useMemo as useMemo27 } from "react";
|
|
12198
12159
|
import { create as create37 } from "@bufbuild/protobuf";
|
|
12199
12160
|
import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
|
|
12200
12161
|
import { createConnectQueryKey as createConnectQueryKey10, useTransport as useTransport9 } from "@connectrpc/connect-query";
|
|
@@ -12247,7 +12208,7 @@ function UpcomingPlanChangeBanner({
|
|
|
12247
12208
|
}
|
|
12248
12209
|
)) || [];
|
|
12249
12210
|
const nextPhase = phases == null ? void 0 : phases[0];
|
|
12250
|
-
const upcomingPlan =
|
|
12211
|
+
const upcomingPlan = useMemo27(() => {
|
|
12251
12212
|
if ((nextPhase == null ? void 0 : nextPhase.planId) && allPlans.length > 0) {
|
|
12252
12213
|
const plan = allPlans.find((p) => p.id === (nextPhase == null ? void 0 : nextPhase.planId));
|
|
12253
12214
|
return plan;
|
|
@@ -12325,8 +12286,8 @@ import qs from "query-string";
|
|
|
12325
12286
|
import * as _ from "lodash";
|
|
12326
12287
|
import { Button as Button35, Skeleton as Skeleton23, Text as Text40, Flex as Flex49 } from "@raystack/apsara";
|
|
12327
12288
|
|
|
12328
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12329
|
-
var digest50 = "
|
|
12289
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-FEfaEiGk20rn/sdk/react/views/billing/billing.module.css.js
|
|
12290
|
+
var digest50 = "20929116b33f586b4f09900f53e5c987c0a5fd02946dcf6fbd4f937b4e196268";
|
|
12330
12291
|
var css50 = `._detailsBox_1vjbh_1 {
|
|
12331
12292
|
padding: var(--rs-space-4);
|
|
12332
12293
|
display: flex;
|
|
@@ -12556,11 +12517,11 @@ var PaymentMethod3 = ({
|
|
|
12556
12517
|
};
|
|
12557
12518
|
|
|
12558
12519
|
// react/hooks/useBillingPermission.ts
|
|
12559
|
-
import { useMemo as
|
|
12520
|
+
import { useMemo as useMemo28 } from "react";
|
|
12560
12521
|
var useBillingPermission = () => {
|
|
12561
12522
|
const { activeOrganization } = useFrontier();
|
|
12562
12523
|
const resource = `app/organization:${activeOrganization == null ? void 0 : activeOrganization.id}`;
|
|
12563
|
-
const listOfPermissionsToCheck =
|
|
12524
|
+
const listOfPermissionsToCheck = useMemo28(
|
|
12564
12525
|
() => [
|
|
12565
12526
|
{
|
|
12566
12527
|
permission: PERMISSIONS.DeletePermission,
|
|
@@ -12573,7 +12534,7 @@ var useBillingPermission = () => {
|
|
|
12573
12534
|
listOfPermissionsToCheck,
|
|
12574
12535
|
!!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
12575
12536
|
);
|
|
12576
|
-
const { isAllowed } =
|
|
12537
|
+
const { isAllowed } = useMemo28(() => {
|
|
12577
12538
|
return {
|
|
12578
12539
|
isAllowed: shouldShowComponent(
|
|
12579
12540
|
permissions,
|
|
@@ -12588,7 +12549,7 @@ var useBillingPermission = () => {
|
|
|
12588
12549
|
};
|
|
12589
12550
|
|
|
12590
12551
|
// react/views/billing/confirm-cycle-switch-dialog.tsx
|
|
12591
|
-
import { useCallback as useCallback21, useMemo as
|
|
12552
|
+
import { useCallback as useCallback21, useMemo as useMemo29 } from "react";
|
|
12592
12553
|
import {
|
|
12593
12554
|
Button as Button36,
|
|
12594
12555
|
Skeleton as Skeleton24,
|
|
@@ -12600,8 +12561,8 @@ import {
|
|
|
12600
12561
|
} from "@raystack/apsara";
|
|
12601
12562
|
import * as _2 from "lodash";
|
|
12602
12563
|
|
|
12603
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12604
|
-
var digest51 = "
|
|
12564
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-Jy17ZugL6Xz4/sdk/react/components/organization/organization.module.css.js
|
|
12565
|
+
var digest51 = "83f20cfd3b1dfa0f87ba8a47e9d1d8c5848d6d6c6642bf4218561b55701d2765";
|
|
12605
12566
|
var css51 = `._createContainer_9rhtd_1 {
|
|
12606
12567
|
margin: auto;
|
|
12607
12568
|
width: 100%;
|
|
@@ -12939,7 +12900,7 @@ function ConfirmCycleSwitchDialog({
|
|
|
12939
12900
|
changePlan,
|
|
12940
12901
|
verifyPlanChange
|
|
12941
12902
|
} = usePlans();
|
|
12942
|
-
const nextPlan =
|
|
12903
|
+
const nextPlan = useMemo29(() => {
|
|
12943
12904
|
if (planId && allPlans.length > 0) {
|
|
12944
12905
|
const plan = allPlans.find((p) => p.id === planId);
|
|
12945
12906
|
return plan;
|
|
@@ -13160,7 +13121,7 @@ function BillingPage({ onNavigateToPlans }) {
|
|
|
13160
13121
|
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
13161
13122
|
}
|
|
13162
13123
|
);
|
|
13163
|
-
const invoices =
|
|
13124
|
+
const invoices = useMemo30(() => (invoicesData == null ? void 0 : invoicesData.invoices) || [], [invoicesData]);
|
|
13164
13125
|
useEffect24(() => {
|
|
13165
13126
|
if (invoicesError) {
|
|
13166
13127
|
toast34.error("Failed to load invoices", {
|
|
@@ -13322,7 +13283,7 @@ function Billing() {
|
|
|
13322
13283
|
}
|
|
13323
13284
|
|
|
13324
13285
|
// react/views/tokens/tokens-page.tsx
|
|
13325
|
-
import { useEffect as useEffect26, useMemo as
|
|
13286
|
+
import { useEffect as useEffect26, useMemo as useMemo33, useState as useState26 } from "react";
|
|
13326
13287
|
import {
|
|
13327
13288
|
Button as Button39,
|
|
13328
13289
|
Tooltip as Tooltip13,
|
|
@@ -13358,8 +13319,8 @@ import {
|
|
|
13358
13319
|
} from "@raystack/apsara";
|
|
13359
13320
|
import * as _3 from "lodash";
|
|
13360
13321
|
|
|
13361
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13362
|
-
var digest52 = "
|
|
13322
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-JZ39O47MjDCj/sdk/react/views/tokens/token.module.css.js
|
|
13323
|
+
var digest52 = "d21de3dbb13cb92930c15841ca7ecf9edde34f39fdfa619e2acf51f63bb97b1e";
|
|
13363
13324
|
var css52 = `._flex1_1rl84_1 {
|
|
13364
13325
|
flex: 1;
|
|
13365
13326
|
}
|
|
@@ -13492,8 +13453,8 @@ var getColumns8 = ({
|
|
|
13492
13453
|
}
|
|
13493
13454
|
];
|
|
13494
13455
|
|
|
13495
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13496
|
-
var digest53 = "
|
|
13456
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-JRvW7vRCstgf/sdk/react/views/tokens/token.module.css.js
|
|
13457
|
+
var digest53 = "75b3803b99b0dacba6c6530767b92c7f2cf5257c1835566575b4ab33d2ca4b12";
|
|
13497
13458
|
var css53 = `._flex1_1rl84_1 {
|
|
13498
13459
|
flex: 1;
|
|
13499
13460
|
}
|
|
@@ -13589,8 +13550,8 @@ function TransactionsTable({
|
|
|
13589
13550
|
var noDataChildren8 = /* @__PURE__ */ jsx68(EmptyState9, { icon: /* @__PURE__ */ jsx68(ExclamationTriangleIcon, {}), heading: "No Transactions" });
|
|
13590
13551
|
|
|
13591
13552
|
// react/hooks/useTokens.ts
|
|
13592
|
-
import { useMemo as
|
|
13593
|
-
import { useQuery as
|
|
13553
|
+
import { useMemo as useMemo31, useEffect as useEffect25 } from "react";
|
|
13554
|
+
import { useQuery as useQuery22 } from "@connectrpc/connect-query";
|
|
13594
13555
|
import { create as create41 } from "@bufbuild/protobuf";
|
|
13595
13556
|
import { FrontierServiceQueries as FrontierServiceQueries36, GetBillingBalanceRequestSchema } from "@raystack/proton/frontier";
|
|
13596
13557
|
import { toast as toast35 } from "@raystack/apsara";
|
|
@@ -13602,7 +13563,7 @@ var useTokens = () => {
|
|
|
13602
13563
|
isLoading: isTokensLoading,
|
|
13603
13564
|
error,
|
|
13604
13565
|
refetch
|
|
13605
|
-
} =
|
|
13566
|
+
} = useQuery22(
|
|
13606
13567
|
FrontierServiceQueries36.getBillingBalance,
|
|
13607
13568
|
create41(GetBillingBalanceRequestSchema, {
|
|
13608
13569
|
id: (_a = billingAccount == null ? void 0 : billingAccount.id) != null ? _a : ""
|
|
@@ -13618,7 +13579,7 @@ var useTokens = () => {
|
|
|
13618
13579
|
toast35.error("Unable to fetch balance");
|
|
13619
13580
|
}
|
|
13620
13581
|
}, [error]);
|
|
13621
|
-
const tokenBalance =
|
|
13582
|
+
const tokenBalance = useMemo31(
|
|
13622
13583
|
() => {
|
|
13623
13584
|
var _a2;
|
|
13624
13585
|
return BigInt(((_a2 = data == null ? void 0 : data.balance) == null ? void 0 : _a2.amount) || "0");
|
|
@@ -13633,14 +13594,14 @@ var useTokens = () => {
|
|
|
13633
13594
|
};
|
|
13634
13595
|
|
|
13635
13596
|
// react/views/tokens/tokens-page.tsx
|
|
13636
|
-
import { useQuery as
|
|
13597
|
+
import { useQuery as useQuery24 } from "@connectrpc/connect-query";
|
|
13637
13598
|
import { create as create43 } from "@bufbuild/protobuf";
|
|
13638
13599
|
|
|
13639
13600
|
// react/assets/coin.svg
|
|
13640
13601
|
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';
|
|
13641
13602
|
|
|
13642
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13643
|
-
var digest54 = "
|
|
13603
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-kgq1UEr44oCW/sdk/react/components/organization/styles.module.css.js
|
|
13604
|
+
var digest54 = "e1787a83a6539a931d50ba357a04a1067ee63b51ec486bcc1df445dd400daf1a";
|
|
13644
13605
|
var css54 = `._header_11okm_1 {
|
|
13645
13606
|
margin-bottom: var(--rs-space-9);
|
|
13646
13607
|
}
|
|
@@ -13683,8 +13644,8 @@ var css54 = `._header_11okm_1 {
|
|
|
13683
13644
|
})();
|
|
13684
13645
|
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" };
|
|
13685
13646
|
|
|
13686
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13687
|
-
var digest55 = "
|
|
13647
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-IIyRkwhQpMX4/sdk/react/views/tokens/token.module.css.js
|
|
13648
|
+
var digest55 = "e5396de7590bd0baf2da43029ba002be392f6514c4a9b4e2a3a74a9537019e5c";
|
|
13688
13649
|
var css55 = `._flex1_1rl84_1 {
|
|
13689
13650
|
flex: 1;
|
|
13690
13651
|
}
|
|
@@ -13761,8 +13722,8 @@ import { useMutation as useMutation24 } from "@connectrpc/connect-query";
|
|
|
13761
13722
|
import { useForm as useForm18 } from "react-hook-form";
|
|
13762
13723
|
import * as yup18 from "yup";
|
|
13763
13724
|
|
|
13764
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13765
|
-
var digest56 = "
|
|
13725
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-UWxaUR4FOIUu/sdk/react/components/organization/organization.module.css.js
|
|
13726
|
+
var digest56 = "6c17a9fb984217e6ad52b5dffdc8391496e2e00c326e109ddbfbe49a80d84fc6";
|
|
13766
13727
|
var css56 = `._createContainer_9rhtd_1 {
|
|
13767
13728
|
margin: auto;
|
|
13768
13729
|
width: 100%;
|
|
@@ -13820,8 +13781,8 @@ var css56 = `._createContainer_9rhtd_1 {
|
|
|
13820
13781
|
})();
|
|
13821
13782
|
var organization_module_css_default15 = { "createContainer": "_createContainer_9rhtd_1", "overlay": "_overlay_9rhtd_8", "dropdownActionItem": "_dropdownActionItem_9rhtd_13", "noSelectItem": "_noSelectItem_9rhtd_30", "orgTabsContainer": "_orgTabsContainer_9rhtd_35", "invite-member-emails-textarea": "_invite-member-emails-textarea_9rhtd_39", "inviteMemberEmailsTextarea": "_invite-member-emails-textarea_9rhtd_39" };
|
|
13822
13783
|
|
|
13823
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13824
|
-
var digest57 = "
|
|
13784
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-8eXCsWyHtfPl/sdk/react/views/tokens/token.module.css.js
|
|
13785
|
+
var digest57 = "28f49f2d52ba0ddb1973734723e84821e4b38f34bba04deec944104f299af57a";
|
|
13825
13786
|
var css57 = `._flex1_1rl84_1 {
|
|
13826
13787
|
flex: 1;
|
|
13827
13788
|
}
|
|
@@ -13884,8 +13845,8 @@ var token_module_css_default4 = { "flex1": "_flex1_1rl84_1", "coinIcon": "_coinI
|
|
|
13884
13845
|
|
|
13885
13846
|
// react/views/tokens/add-tokens-dialog.tsx
|
|
13886
13847
|
import qs4 from "query-string";
|
|
13887
|
-
import { useMemo as
|
|
13888
|
-
import { useQuery as
|
|
13848
|
+
import { useMemo as useMemo32 } from "react";
|
|
13849
|
+
import { useQuery as useQuery23 } from "@connectrpc/connect-query";
|
|
13889
13850
|
import { create as create42 } from "@bufbuild/protobuf";
|
|
13890
13851
|
import { jsx as jsx69, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
13891
13852
|
var AddTokensDialog = ({ open, onOpenChange }) => {
|
|
@@ -13893,7 +13854,7 @@ var AddTokensDialog = ({ open, onOpenChange }) => {
|
|
|
13893
13854
|
const { config, activeOrganization, billingAccount } = useFrontier();
|
|
13894
13855
|
const handleClose = () => onOpenChange == null ? void 0 : onOpenChange(false);
|
|
13895
13856
|
const tokenProductId = ((_a = config == null ? void 0 : config.billing) == null ? void 0 : _a.tokenProductId) || DEFAULT_TOKEN_PRODUCT_NAME;
|
|
13896
|
-
const { data: product, isLoading } =
|
|
13857
|
+
const { data: product, isLoading } = useQuery23(
|
|
13897
13858
|
src_exports.FrontierServiceQueries.getProduct,
|
|
13898
13859
|
{ id: tokenProductId },
|
|
13899
13860
|
{
|
|
@@ -13901,7 +13862,7 @@ var AddTokensDialog = ({ open, onOpenChange }) => {
|
|
|
13901
13862
|
select: (data) => data == null ? void 0 : data.product
|
|
13902
13863
|
}
|
|
13903
13864
|
);
|
|
13904
|
-
const { productDescription, minQuantity, maxQuantity } =
|
|
13865
|
+
const { productDescription, minQuantity, maxQuantity } = useMemo32(() => {
|
|
13905
13866
|
var _a2;
|
|
13906
13867
|
let productDescription2 = "";
|
|
13907
13868
|
let minQuantity2 = 1;
|
|
@@ -14156,7 +14117,7 @@ function TokensPage(_props = {}) {
|
|
|
14156
14117
|
data: transactionsRawData,
|
|
14157
14118
|
isLoading: isTransactionsListLoading,
|
|
14158
14119
|
error: transactionsError
|
|
14159
|
-
} =
|
|
14120
|
+
} = useQuery24(
|
|
14160
14121
|
src_exports.FrontierServiceQueries.listBillingTransactions,
|
|
14161
14122
|
create43(src_exports.ListBillingTransactionsRequestSchema, {
|
|
14162
14123
|
orgId: (_a = activeOrganization == null ? void 0 : activeOrganization.id) != null ? _a : "",
|
|
@@ -14166,7 +14127,7 @@ function TokensPage(_props = {}) {
|
|
|
14166
14127
|
enabled: !!(activeOrganization == null ? void 0 : activeOrganization.id)
|
|
14167
14128
|
}
|
|
14168
14129
|
);
|
|
14169
|
-
const transactionsData =
|
|
14130
|
+
const transactionsData = useMemo33(() => {
|
|
14170
14131
|
var _a2;
|
|
14171
14132
|
return (_a2 = transactionsRawData == null ? void 0 : transactionsRawData.transactions) != null ? _a2 : [];
|
|
14172
14133
|
}, [transactionsRawData]);
|
|
@@ -14283,8 +14244,8 @@ function groupPlansPricingByInterval(plans) {
|
|
|
14283
14244
|
// react/views/plans/plans-header.tsx
|
|
14284
14245
|
import { Flex as Flex56, Skeleton as Skeleton28, Link as Link8 } from "@raystack/apsara";
|
|
14285
14246
|
|
|
14286
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14287
|
-
var digest58 = "
|
|
14247
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-4zTAjr0874h5/sdk/react/views/plans/plans.module.css.js
|
|
14248
|
+
var digest58 = "ac07158945a037a43be5fb82b9feeeaf0285bc4c40143c3b9ddaff803bb7cbc2";
|
|
14288
14249
|
var css58 = `._flex1_3ghb5_1 {
|
|
14289
14250
|
flex: 1;
|
|
14290
14251
|
}
|
|
@@ -14454,7 +14415,7 @@ var PlansHeader = ({ billingSupportEmail, isLoading }) => {
|
|
|
14454
14415
|
|
|
14455
14416
|
// react/views/plans/pricing-column.tsx
|
|
14456
14417
|
import * as _4 from "lodash";
|
|
14457
|
-
import { useCallback as useCallback23, useEffect as useEffect27, useMemo as
|
|
14418
|
+
import { useCallback as useCallback23, useEffect as useEffect27, useMemo as useMemo34, useState as useState27 } from "react";
|
|
14458
14419
|
import {
|
|
14459
14420
|
Button as Button40,
|
|
14460
14421
|
Skeleton as Skeleton29,
|
|
@@ -14466,8 +14427,8 @@ import {
|
|
|
14466
14427
|
Amount as Amount3
|
|
14467
14428
|
} from "@raystack/apsara";
|
|
14468
14429
|
|
|
14469
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14470
|
-
var digest59 = "
|
|
14430
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-k7defzENR3tj/sdk/react/views/plans/plans.module.css.js
|
|
14431
|
+
var digest59 = "3a132109214dd89f1ca41b9b0f3ce66bd579e02dedc693343fa162733ebc9f91";
|
|
14471
14432
|
var css59 = `._flex1_3ghb5_1 {
|
|
14472
14433
|
flex: 1;
|
|
14473
14434
|
}
|
|
@@ -14745,7 +14706,7 @@ var PlanPricingColumn = ({
|
|
|
14745
14706
|
const dateFormat = (config == null ? void 0 : config.dateFormat) || DEFAULT_DATE_FORMAT;
|
|
14746
14707
|
const shortDateFormat = (config == null ? void 0 : config.shortDateFormat) || DEFAULT_DATE_SHORT_FORMAT;
|
|
14747
14708
|
const [isTrialCheckoutLoading, setIsTrialCheckoutLoading] = useState27(false);
|
|
14748
|
-
const plans =
|
|
14709
|
+
const plans = useMemo34(() => Object.values(plan.intervals), [plan.intervals]);
|
|
14749
14710
|
const {
|
|
14750
14711
|
checkoutPlan,
|
|
14751
14712
|
isLoading,
|
|
@@ -14764,7 +14725,7 @@ var PlanPricingColumn = ({
|
|
|
14764
14725
|
}
|
|
14765
14726
|
};
|
|
14766
14727
|
const selectedIntervalPricing = plan.intervals[selectedInterval];
|
|
14767
|
-
const action =
|
|
14728
|
+
const action = useMemo34(() => {
|
|
14768
14729
|
const isCurrentPlanSelectedPlan = (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) === (currentPlan == null ? void 0 : currentPlan.planId);
|
|
14769
14730
|
const isCurrentPlanBasePlan = checkBasePlan(selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId) && (currentPlan == null ? void 0 : currentPlan.planId) === void 0;
|
|
14770
14731
|
if (isCurrentPlanSelectedPlan || isCurrentPlanBasePlan) {
|
|
@@ -14795,11 +14756,11 @@ var PlanPricingColumn = ({
|
|
|
14795
14756
|
const isAlreadySubscribed = !_4.isEmpty(currentPlan);
|
|
14796
14757
|
const isUpgrade = action.btnLabel === "Upgrade";
|
|
14797
14758
|
const isCheckoutRequired = _4.isEmpty(paymentMethod) && (selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.amount) > 0;
|
|
14798
|
-
const planHasTrial =
|
|
14759
|
+
const planHasTrial = useMemo34(
|
|
14799
14760
|
() => plans.some((p) => Number(p.trialDays) > 0),
|
|
14800
14761
|
[plans]
|
|
14801
14762
|
);
|
|
14802
|
-
const planIds =
|
|
14763
|
+
const planIds = useMemo34(() => plans.map((p) => p.planId), [plans]);
|
|
14803
14764
|
const onPlanActionClick = useCallback23(() => {
|
|
14804
14765
|
if ((action == null ? void 0 : action.showModal) && !isCheckoutRequired && isAlreadySubscribed) {
|
|
14805
14766
|
onConfirmPlanChange == null ? void 0 : onConfirmPlanChange(selectedIntervalPricing == null ? void 0 : selectedIntervalPricing.planId);
|
|
@@ -14911,7 +14872,7 @@ var PlanPricingColumn = ({
|
|
|
14911
14872
|
};
|
|
14912
14873
|
|
|
14913
14874
|
// react/views/plans/confirm-plan-change-dialog.tsx
|
|
14914
|
-
import { useCallback as useCallback24, useEffect as useEffect28, useMemo as
|
|
14875
|
+
import { useCallback as useCallback24, useEffect as useEffect28, useMemo as useMemo35, useState as useState28 } from "react";
|
|
14915
14876
|
import {
|
|
14916
14877
|
Button as Button41,
|
|
14917
14878
|
toast as toast39,
|
|
@@ -14922,8 +14883,8 @@ import {
|
|
|
14922
14883
|
Dialog as Dialog16
|
|
14923
14884
|
} from "@raystack/apsara";
|
|
14924
14885
|
|
|
14925
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14926
|
-
var digest60 = "
|
|
14886
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-1Ijei1wmcRQJ/sdk/react/views/plans/plans.module.css.js
|
|
14887
|
+
var digest60 = "cadd4b7a5c59e959f4ba7c9827c86aea71372a4f7e831de7c4d4e9737dc3edfa";
|
|
14927
14888
|
var css60 = `._flex1_3ghb5_1 {
|
|
14928
14889
|
flex: 1;
|
|
14929
14890
|
}
|
|
@@ -15057,8 +15018,8 @@ var css60 = `._flex1_3ghb5_1 {
|
|
|
15057
15018
|
})();
|
|
15058
15019
|
var plans_module_css_default3 = { "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" };
|
|
15059
15020
|
|
|
15060
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15061
|
-
var digest61 = "
|
|
15021
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-pFam1joFDhm2/sdk/react/components/organization/organization.module.css.js
|
|
15022
|
+
var digest61 = "8b9f54808c71bf95015cdf31698f6903375bbc66880f805b043b852686c31fbf";
|
|
15062
15023
|
var css61 = `._createContainer_9rhtd_1 {
|
|
15063
15024
|
margin: auto;
|
|
15064
15025
|
width: 100%;
|
|
@@ -15117,10 +15078,45 @@ var css61 = `._createContainer_9rhtd_1 {
|
|
|
15117
15078
|
var organization_module_css_default16 = { "createContainer": "_createContainer_9rhtd_1", "overlay": "_overlay_9rhtd_8", "dropdownActionItem": "_dropdownActionItem_9rhtd_13", "noSelectItem": "_noSelectItem_9rhtd_30", "orgTabsContainer": "_orgTabsContainer_9rhtd_35", "invite-member-emails-textarea": "_invite-member-emails-textarea_9rhtd_39", "inviteMemberEmailsTextarea": "_invite-member-emails-textarea_9rhtd_39" };
|
|
15118
15079
|
|
|
15119
15080
|
// react/hooks/useMessages.ts
|
|
15120
|
-
import { useContext as
|
|
15081
|
+
import { useContext as useContext4 } from "react";
|
|
15121
15082
|
import { get as get3 } from "lodash";
|
|
15083
|
+
|
|
15084
|
+
// react/contexts/CustomizationContext.tsx
|
|
15085
|
+
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
15086
|
+
import { merge } from "lodash";
|
|
15087
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
15088
|
+
var defaultCustomization = {
|
|
15089
|
+
terminology: {
|
|
15090
|
+
organization: { singular: "Organization", plural: "Organizations" },
|
|
15091
|
+
project: { singular: "Project", plural: "Projects" },
|
|
15092
|
+
team: { singular: "Team", plural: "Teams" },
|
|
15093
|
+
member: { singular: "Member", plural: "Members" },
|
|
15094
|
+
user: { singular: "User", plural: "Users" },
|
|
15095
|
+
appName: "Frontier"
|
|
15096
|
+
},
|
|
15097
|
+
messages: {
|
|
15098
|
+
billing: {},
|
|
15099
|
+
general: {}
|
|
15100
|
+
}
|
|
15101
|
+
};
|
|
15102
|
+
var CustomizationContext = createContext3(
|
|
15103
|
+
defaultCustomization
|
|
15104
|
+
);
|
|
15105
|
+
var CustomizationProvider = ({
|
|
15106
|
+
children,
|
|
15107
|
+
config = {}
|
|
15108
|
+
}) => {
|
|
15109
|
+
const mergedConfig = merge(
|
|
15110
|
+
{},
|
|
15111
|
+
defaultCustomization,
|
|
15112
|
+
config
|
|
15113
|
+
);
|
|
15114
|
+
return /* @__PURE__ */ jsx74(CustomizationContext.Provider, { value: mergedConfig, children: /* @__PURE__ */ jsx74(TerminologyProvider, { terminology: mergedConfig.terminology, children }) });
|
|
15115
|
+
};
|
|
15116
|
+
|
|
15117
|
+
// react/hooks/useMessages.ts
|
|
15122
15118
|
var useMessages = () => {
|
|
15123
|
-
const context =
|
|
15119
|
+
const context = useContext4(CustomizationContext);
|
|
15124
15120
|
const config = context || defaultCustomization;
|
|
15125
15121
|
const { messages } = config;
|
|
15126
15122
|
const getMessage = (path) => {
|
|
@@ -15131,7 +15127,7 @@ var useMessages = () => {
|
|
|
15131
15127
|
};
|
|
15132
15128
|
|
|
15133
15129
|
// react/views/plans/confirm-plan-change-dialog.tsx
|
|
15134
|
-
import { jsx as
|
|
15130
|
+
import { jsx as jsx75, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
15135
15131
|
function ConfirmPlanChangeDialog({
|
|
15136
15132
|
open,
|
|
15137
15133
|
onOpenChange,
|
|
@@ -15157,7 +15153,7 @@ function ConfirmPlanChangeDialog({
|
|
|
15157
15153
|
cancelSubscription,
|
|
15158
15154
|
checkBasePlan
|
|
15159
15155
|
} = usePlans();
|
|
15160
|
-
const currentPlan =
|
|
15156
|
+
const currentPlan = useMemo35(
|
|
15161
15157
|
() => allPlans.find((plan) => plan.id === planId),
|
|
15162
15158
|
[allPlans, planId]
|
|
15163
15159
|
);
|
|
@@ -15246,18 +15242,18 @@ function ConfirmPlanChangeDialog({
|
|
|
15246
15242
|
const cycleSwitchDate = (activeSubscription == null ? void 0 : activeSubscription.currentPeriodEndAt) ? (_a = timestampToDayjs(activeSubscription == null ? void 0 : activeSubscription.currentPeriodEndAt)) == null ? void 0 : _a.format(
|
|
15247
15243
|
(config == null ? void 0 : config.dateFormat) || DEFAULT_DATE_FORMAT
|
|
15248
15244
|
) : "the next billing cycle";
|
|
15249
|
-
return /* @__PURE__ */
|
|
15245
|
+
return /* @__PURE__ */ jsx75(Dialog16, { open, onOpenChange, children: /* @__PURE__ */ jsxs59(
|
|
15250
15246
|
Dialog16.Content,
|
|
15251
15247
|
{
|
|
15252
15248
|
style: { padding: 0, maxWidth: "600px", width: "100%" },
|
|
15253
15249
|
overlayClassName: organization_module_css_default16.overlay,
|
|
15254
15250
|
children: [
|
|
15255
|
-
/* @__PURE__ */
|
|
15256
|
-
isLoading ? /* @__PURE__ */
|
|
15251
|
+
/* @__PURE__ */ jsx75(Dialog16.Header, { children: /* @__PURE__ */ jsxs59(Flex58, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
15252
|
+
isLoading ? /* @__PURE__ */ jsx75(Skeleton30, { containerClassName: plans_module_css_default3.flex1 }) : /* @__PURE__ */ jsxs59(Text48, { size: "large", weight: "medium", children: [
|
|
15257
15253
|
"Verify ",
|
|
15258
15254
|
planAction == null ? void 0 : planAction.btnLabel
|
|
15259
15255
|
] }),
|
|
15260
|
-
/* @__PURE__ */
|
|
15256
|
+
/* @__PURE__ */ jsx75(
|
|
15261
15257
|
Image23,
|
|
15262
15258
|
{
|
|
15263
15259
|
alt: "cross",
|
|
@@ -15268,13 +15264,13 @@ function ConfirmPlanChangeDialog({
|
|
|
15268
15264
|
}
|
|
15269
15265
|
)
|
|
15270
15266
|
] }) }),
|
|
15271
|
-
/* @__PURE__ */
|
|
15272
|
-
isLoading ? /* @__PURE__ */
|
|
15273
|
-
/* @__PURE__ */
|
|
15274
|
-
/* @__PURE__ */
|
|
15267
|
+
/* @__PURE__ */ jsx75(Dialog16.Body, { children: /* @__PURE__ */ jsxs59(Flex58, { direction: "column", gap: 7, children: [
|
|
15268
|
+
isLoading ? /* @__PURE__ */ jsx75(Skeleton30, {}) : /* @__PURE__ */ jsxs59(Flex58, { gap: 3, children: [
|
|
15269
|
+
/* @__PURE__ */ jsx75(Text48, { size: "small", weight: "medium", children: "Current plan:" }),
|
|
15270
|
+
/* @__PURE__ */ jsx75(Text48, { size: "small", variant: "secondary", children: currentPlanName })
|
|
15275
15271
|
] }),
|
|
15276
|
-
isLoading ? /* @__PURE__ */
|
|
15277
|
-
/* @__PURE__ */
|
|
15272
|
+
isLoading ? /* @__PURE__ */ jsx75(Skeleton30, {}) : /* @__PURE__ */ jsxs59(Flex58, { gap: 3, children: [
|
|
15273
|
+
/* @__PURE__ */ jsx75(Text48, { size: "small", weight: "medium", children: "New plan:" }),
|
|
15278
15274
|
/* @__PURE__ */ jsxs59(Text48, { size: "small", variant: "secondary", children: [
|
|
15279
15275
|
upcomingPlanName,
|
|
15280
15276
|
" (",
|
|
@@ -15282,10 +15278,10 @@ function ConfirmPlanChangeDialog({
|
|
|
15282
15278
|
")"
|
|
15283
15279
|
] })
|
|
15284
15280
|
] }),
|
|
15285
|
-
isLoading ? /* @__PURE__ */
|
|
15281
|
+
isLoading ? /* @__PURE__ */ jsx75(Skeleton30, { count: 2 }) : /* @__PURE__ */ jsx75(Text48, { size: "small", variant: "secondary", children: planChangeMessage || isUpgrade && DEFAULT_PLAN_UPGRADE_MESSAGE })
|
|
15286
15282
|
] }) }),
|
|
15287
|
-
/* @__PURE__ */
|
|
15288
|
-
/* @__PURE__ */
|
|
15283
|
+
/* @__PURE__ */ jsx75(Dialog16.Footer, { children: /* @__PURE__ */ jsxs59(Flex58, { justify: "end", gap: 5, children: [
|
|
15284
|
+
/* @__PURE__ */ jsx75(
|
|
15289
15285
|
Button41,
|
|
15290
15286
|
{
|
|
15291
15287
|
variant: "outline",
|
|
@@ -15295,7 +15291,7 @@ function ConfirmPlanChangeDialog({
|
|
|
15295
15291
|
children: "Cancel"
|
|
15296
15292
|
}
|
|
15297
15293
|
),
|
|
15298
|
-
/* @__PURE__ */
|
|
15294
|
+
/* @__PURE__ */ jsx75(
|
|
15299
15295
|
Button41,
|
|
15300
15296
|
{
|
|
15301
15297
|
onClick: onConfirm,
|
|
@@ -15317,8 +15313,8 @@ import { useQuery as useConnectQuery4 } from "@connectrpc/connect-query";
|
|
|
15317
15313
|
import { create as create44 } from "@bufbuild/protobuf";
|
|
15318
15314
|
import { ListFeaturesRequestSchema } from "@raystack/proton/frontier";
|
|
15319
15315
|
|
|
15320
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15321
|
-
var digest62 = "
|
|
15316
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-prMSiC21t79g/sdk/react/components/organization/styles.module.css.js
|
|
15317
|
+
var digest62 = "349940abd94119b41346b43465f1db479076c0c07a3c823e12caa3afa1088f23";
|
|
15322
15318
|
var css62 = `._header_11okm_1 {
|
|
15323
15319
|
margin-bottom: var(--rs-space-9);
|
|
15324
15320
|
}
|
|
@@ -15361,8 +15357,8 @@ var css62 = `._header_11okm_1 {
|
|
|
15361
15357
|
})();
|
|
15362
15358
|
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" };
|
|
15363
15359
|
|
|
15364
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15365
|
-
var digest63 = "
|
|
15360
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-rZPmGGoAAKxQ/sdk/react/views/plans/plans.module.css.js
|
|
15361
|
+
var digest63 = "b34af8a3ba0d8f5e7b73139085871f76995a2e53d21e24176f422f39620a46d7";
|
|
15366
15362
|
var css63 = `._flex1_3ghb5_1 {
|
|
15367
15363
|
flex: 1;
|
|
15368
15364
|
}
|
|
@@ -15497,16 +15493,16 @@ var css63 = `._flex1_3ghb5_1 {
|
|
|
15497
15493
|
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" };
|
|
15498
15494
|
|
|
15499
15495
|
// react/views/plans/plans-page.tsx
|
|
15500
|
-
import { jsx as
|
|
15496
|
+
import { jsx as jsx76, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
15501
15497
|
var PlansLoader = () => {
|
|
15502
|
-
return /* @__PURE__ */
|
|
15498
|
+
return /* @__PURE__ */ jsx76(Flex59, { direction: "column", gap: 4, children: [...new Array(2)].map((_5, i) => /* @__PURE__ */ jsx76(Skeleton31, { containerClassName: plans_module_css_default4.flex1 }, `loader-${i}`)) });
|
|
15503
15499
|
};
|
|
15504
15500
|
var NoPlans = () => {
|
|
15505
|
-
return /* @__PURE__ */
|
|
15501
|
+
return /* @__PURE__ */ jsx76(
|
|
15506
15502
|
EmptyState10,
|
|
15507
15503
|
{
|
|
15508
|
-
icon: /* @__PURE__ */
|
|
15509
|
-
heading: /* @__PURE__ */
|
|
15504
|
+
icon: /* @__PURE__ */ jsx76(ExclamationTriangleIcon, {}),
|
|
15505
|
+
heading: /* @__PURE__ */ jsx76("span", { style: { fontWeight: "bold" }, children: "No Plans Available" }),
|
|
15510
15506
|
subHeading: "Sorry, No plans available at this moment. Please try again later"
|
|
15511
15507
|
}
|
|
15512
15508
|
);
|
|
@@ -15519,7 +15515,7 @@ var PlansList = ({
|
|
|
15519
15515
|
onConfirmPlanChange
|
|
15520
15516
|
}) => {
|
|
15521
15517
|
if (plans.length === 0)
|
|
15522
|
-
return /* @__PURE__ */
|
|
15518
|
+
return /* @__PURE__ */ jsx76(NoPlans, {});
|
|
15523
15519
|
const groupedPlans = groupPlansPricingByInterval(plans).sort(
|
|
15524
15520
|
(a, b) => a.weightage - b.weightage
|
|
15525
15521
|
);
|
|
@@ -15539,34 +15535,34 @@ var PlansList = ({
|
|
|
15539
15535
|
return acc;
|
|
15540
15536
|
}, {});
|
|
15541
15537
|
const sortedFeatures = Object.entries(featureTitleMap).sort((f1, f2) => f1[1] - f2[1]).map((f) => f[0]).filter((f) => Boolean(f));
|
|
15542
|
-
return /* @__PURE__ */
|
|
15538
|
+
return /* @__PURE__ */ jsx76(Flex59, { children: /* @__PURE__ */ jsxs60(Flex59, { style: { overflow: "hidden", flex: 1 }, children: [
|
|
15543
15539
|
/* @__PURE__ */ jsxs60("div", { className: plans_module_css_default4.leftPanel, children: [
|
|
15544
|
-
/* @__PURE__ */
|
|
15540
|
+
/* @__PURE__ */ jsx76("div", { className: plans_module_css_default4.planInfoColumn, children: "" }),
|
|
15545
15541
|
/* @__PURE__ */ jsxs60(Flex59, { direction: "column", children: [
|
|
15546
|
-
/* @__PURE__ */
|
|
15542
|
+
/* @__PURE__ */ jsx76(
|
|
15547
15543
|
Flex59,
|
|
15548
15544
|
{
|
|
15549
15545
|
align: "center",
|
|
15550
15546
|
justify: "start",
|
|
15551
15547
|
className: plans_module_css_default4.featureCell,
|
|
15552
|
-
children: /* @__PURE__ */
|
|
15548
|
+
children: /* @__PURE__ */ jsx76(Text49, { size: "small", className: plans_module_css_default4.featureTableHeading, children: "Features" })
|
|
15553
15549
|
}
|
|
15554
15550
|
),
|
|
15555
15551
|
sortedFeatures.map((feature) => {
|
|
15556
|
-
return /* @__PURE__ */
|
|
15552
|
+
return /* @__PURE__ */ jsx76(
|
|
15557
15553
|
Flex59,
|
|
15558
15554
|
{
|
|
15559
15555
|
align: "center",
|
|
15560
15556
|
justify: "start",
|
|
15561
15557
|
className: plans_module_css_default4.featureCell,
|
|
15562
|
-
children: /* @__PURE__ */
|
|
15558
|
+
children: /* @__PURE__ */ jsx76(Text49, { size: 3, className: plans_module_css_default4.featureLabel, children: feature })
|
|
15563
15559
|
},
|
|
15564
15560
|
feature
|
|
15565
15561
|
);
|
|
15566
15562
|
})
|
|
15567
15563
|
] })
|
|
15568
15564
|
] }),
|
|
15569
|
-
/* @__PURE__ */
|
|
15565
|
+
/* @__PURE__ */ jsx76(Flex59, { className: plans_module_css_default4.rightPanel, children: groupedPlans.map((plan) => /* @__PURE__ */ jsx76(
|
|
15570
15566
|
PlanPricingColumn,
|
|
15571
15567
|
{
|
|
15572
15568
|
plan,
|
|
@@ -15611,7 +15607,7 @@ function PlansPage(_props = {}) {
|
|
|
15611
15607
|
};
|
|
15612
15608
|
return /* @__PURE__ */ jsxs60(Flex59, { direction: "column", style: { width: "100%", overflow: "hidden" }, children: [
|
|
15613
15609
|
/* @__PURE__ */ jsxs60(Flex59, { direction: "column", className: styles_module_css_default14.container, children: [
|
|
15614
|
-
/* @__PURE__ */
|
|
15610
|
+
/* @__PURE__ */ jsx76(Flex59, { direction: "row", justify: "between", align: "center", className: styles_module_css_default14.header, children: /* @__PURE__ */ jsx76(
|
|
15615
15611
|
PlansHeader,
|
|
15616
15612
|
{
|
|
15617
15613
|
billingSupportEmail: (_a = config.billing) == null ? void 0 : _a.supportEmail,
|
|
@@ -15619,7 +15615,7 @@ function PlansPage(_props = {}) {
|
|
|
15619
15615
|
}
|
|
15620
15616
|
) }),
|
|
15621
15617
|
/* @__PURE__ */ jsxs60(Flex59, { direction: "column", gap: 7, children: [
|
|
15622
|
-
/* @__PURE__ */
|
|
15618
|
+
/* @__PURE__ */ jsx76(
|
|
15623
15619
|
UpcomingPlanChangeBanner,
|
|
15624
15620
|
{
|
|
15625
15621
|
isLoading,
|
|
@@ -15627,7 +15623,7 @@ function PlansPage(_props = {}) {
|
|
|
15627
15623
|
isAllowed: canChangePlan
|
|
15628
15624
|
}
|
|
15629
15625
|
),
|
|
15630
|
-
isLoading ? /* @__PURE__ */
|
|
15626
|
+
isLoading ? /* @__PURE__ */ jsx76(PlansLoader, {}) : /* @__PURE__ */ jsx76(
|
|
15631
15627
|
PlansList,
|
|
15632
15628
|
{
|
|
15633
15629
|
plans,
|
|
@@ -15639,7 +15635,7 @@ function PlansPage(_props = {}) {
|
|
|
15639
15635
|
)
|
|
15640
15636
|
] })
|
|
15641
15637
|
] }),
|
|
15642
|
-
/* @__PURE__ */
|
|
15638
|
+
/* @__PURE__ */ jsx76(
|
|
15643
15639
|
ConfirmPlanChangeDialog,
|
|
15644
15640
|
{
|
|
15645
15641
|
open: confirmPlanChangeState.open,
|
|
@@ -15651,9 +15647,9 @@ function PlansPage(_props = {}) {
|
|
|
15651
15647
|
}
|
|
15652
15648
|
|
|
15653
15649
|
// react/components/organization/plans/index.tsx
|
|
15654
|
-
import { jsx as
|
|
15650
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
15655
15651
|
function Plans() {
|
|
15656
|
-
return /* @__PURE__ */
|
|
15652
|
+
return /* @__PURE__ */ jsx77(PlansPage, {});
|
|
15657
15653
|
}
|
|
15658
15654
|
|
|
15659
15655
|
// react/components/organization/api-keys/index.tsx
|
|
@@ -15673,11 +15669,11 @@ import {
|
|
|
15673
15669
|
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';
|
|
15674
15670
|
|
|
15675
15671
|
// react/views/api-keys/list/api-keys-list-page.tsx
|
|
15676
|
-
import { useMemo as
|
|
15672
|
+
import { useMemo as useMemo37, useState as useState30 } from "react";
|
|
15677
15673
|
|
|
15678
15674
|
// react/views/api-keys/list/api-keys-columns.tsx
|
|
15679
15675
|
import { Button as Button42, Flex as Flex60, Text as Text50 } from "@raystack/apsara";
|
|
15680
|
-
import { jsx as
|
|
15676
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
15681
15677
|
var getColumns9 = ({
|
|
15682
15678
|
dateFormat,
|
|
15683
15679
|
onDeleteClick
|
|
@@ -15688,7 +15684,7 @@ var getColumns9 = ({
|
|
|
15688
15684
|
accessorKey: "title",
|
|
15689
15685
|
cell: ({ row, getValue }) => {
|
|
15690
15686
|
const value = getValue();
|
|
15691
|
-
return /* @__PURE__ */
|
|
15687
|
+
return /* @__PURE__ */ jsx78(Text50, { children: value });
|
|
15692
15688
|
}
|
|
15693
15689
|
},
|
|
15694
15690
|
{
|
|
@@ -15697,7 +15693,7 @@ var getColumns9 = ({
|
|
|
15697
15693
|
cell: ({ row, getValue }) => {
|
|
15698
15694
|
var _a, _b;
|
|
15699
15695
|
const value = getValue();
|
|
15700
|
-
return /* @__PURE__ */
|
|
15696
|
+
return /* @__PURE__ */ jsx78(Flex60, { direction: "column", children: /* @__PURE__ */ jsx78(Text50, { children: (_b = (_a = timestampToDayjs(value)) == null ? void 0 : _a.format(dateFormat)) != null ? _b : "-" }) });
|
|
15701
15697
|
}
|
|
15702
15698
|
},
|
|
15703
15699
|
{
|
|
@@ -15706,7 +15702,7 @@ var getColumns9 = ({
|
|
|
15706
15702
|
enableSorting: false,
|
|
15707
15703
|
cell: ({ row, getValue }) => {
|
|
15708
15704
|
const value = getValue();
|
|
15709
|
-
return /* @__PURE__ */
|
|
15705
|
+
return /* @__PURE__ */ jsx78(
|
|
15710
15706
|
Button42,
|
|
15711
15707
|
{
|
|
15712
15708
|
variant: "text",
|
|
@@ -15717,7 +15713,7 @@ var getColumns9 = ({
|
|
|
15717
15713
|
e.stopPropagation();
|
|
15718
15714
|
onDeleteClick == null ? void 0 : onDeleteClick(value);
|
|
15719
15715
|
},
|
|
15720
|
-
children: /* @__PURE__ */
|
|
15716
|
+
children: /* @__PURE__ */ jsx78(TrashIcon, {})
|
|
15721
15717
|
}
|
|
15722
15718
|
);
|
|
15723
15719
|
}
|
|
@@ -15726,15 +15722,15 @@ var getColumns9 = ({
|
|
|
15726
15722
|
};
|
|
15727
15723
|
|
|
15728
15724
|
// react/views/api-keys/list/api-keys-list-page.tsx
|
|
15729
|
-
import { useQuery as
|
|
15725
|
+
import { useQuery as useQuery26 } from "@connectrpc/connect-query";
|
|
15730
15726
|
import { create as create47 } from "@bufbuild/protobuf";
|
|
15731
15727
|
import {
|
|
15732
15728
|
FrontierServiceQueries as FrontierServiceQueries41,
|
|
15733
15729
|
ListOrganizationServiceUsersRequestSchema as ListOrganizationServiceUsersRequestSchema3
|
|
15734
15730
|
} from "@raystack/proton/frontier";
|
|
15735
15731
|
|
|
15736
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15737
|
-
var digest64 = "
|
|
15732
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-9ZaYbHT7cBOx/sdk/react/components/organization/styles.module.css.js
|
|
15733
|
+
var digest64 = "d03516ffe94c61f9eafa03fe808567538f9bad49cbcf9d705ea0f64e31e1ce12";
|
|
15738
15734
|
var css64 = `._header_11okm_1 {
|
|
15739
15735
|
margin-bottom: var(--rs-space-9);
|
|
15740
15736
|
}
|
|
@@ -15777,8 +15773,8 @@ var css64 = `._header_11okm_1 {
|
|
|
15777
15773
|
})();
|
|
15778
15774
|
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" };
|
|
15779
15775
|
|
|
15780
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15781
|
-
var digest65 = "
|
|
15776
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-F51svgXV0qcw/sdk/react/views/api-keys/list/api-keys.module.css.js
|
|
15777
|
+
var digest65 = "a7333de4c57297d0e771530ce66269d176a647f7306316526e47d5a91c6f1737";
|
|
15782
15778
|
var css65 = `._container_9t9jq_1 {
|
|
15783
15779
|
height: 100%;
|
|
15784
15780
|
width: 100%;
|
|
@@ -15873,7 +15869,7 @@ import {
|
|
|
15873
15869
|
import { Controller as Controller5, useForm as useForm19 } from "react-hook-form";
|
|
15874
15870
|
import * as yup19 from "yup";
|
|
15875
15871
|
import { yupResolver as yupResolver19 } from "@hookform/resolvers/yup";
|
|
15876
|
-
import { useCallback as useCallback25, useMemo as
|
|
15872
|
+
import { useCallback as useCallback25, useMemo as useMemo36 } from "react";
|
|
15877
15873
|
import { orderBy } from "lodash";
|
|
15878
15874
|
import {
|
|
15879
15875
|
FrontierServiceQueries as FrontierServiceQueries39,
|
|
@@ -15890,14 +15886,14 @@ import {
|
|
|
15890
15886
|
import { useQueryClient as useQueryClient11 } from "@tanstack/react-query";
|
|
15891
15887
|
import {
|
|
15892
15888
|
useMutation as useMutation25,
|
|
15893
|
-
useQuery as
|
|
15889
|
+
useQuery as useQuery25,
|
|
15894
15890
|
createConnectQueryKey as createConnectQueryKey11,
|
|
15895
15891
|
useTransport as useTransport10
|
|
15896
15892
|
} from "@connectrpc/connect-query";
|
|
15897
15893
|
import { create as create45 } from "@bufbuild/protobuf";
|
|
15898
15894
|
|
|
15899
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15900
|
-
var digest66 = "
|
|
15895
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-bQPd4xd30nZV/sdk/react/views/api-keys/list/api-keys.module.css.js
|
|
15896
|
+
var digest66 = "6087086b846429fe12a1fbecf4fc043f055ecfb41f34af23f1307a89bd8fff6a";
|
|
15901
15897
|
var css66 = `._container_9t9jq_1 {
|
|
15902
15898
|
height: 100%;
|
|
15903
15899
|
width: 100%;
|
|
@@ -15977,7 +15973,7 @@ var css66 = `._container_9t9jq_1 {
|
|
|
15977
15973
|
var api_keys_module_css_default2 = { "container": "_container_9t9jq_1", "content": "_content_9t9jq_7", "stateContent": "_stateContent_9t9jq_14", "flex1": "_flex1_9t9jq_18", "tableToolbarSearchWrapper": "_tableToolbarSearchWrapper_9t9jq_22", "tableToolbar": "_tableToolbar_9t9jq_22", "addDialogContent": "_addDialogContent_9t9jq_32", "overlay": "_overlay_9t9jq_38", "tableWrapper": "_tableWrapper_9t9jq_42", "tableRoot": "_tableRoot_9t9jq_50", "tableHeader": "_tableHeader_9t9jq_57", "tableSearchWrapper": "_tableSearchWrapper_9t9jq_61" };
|
|
15978
15974
|
|
|
15979
15975
|
// react/views/api-keys/list/add-service-account-dialog.tsx
|
|
15980
|
-
import { jsx as
|
|
15976
|
+
import { jsx as jsx79, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
15981
15977
|
var DEFAULT_KEY_NAME = "Initial Generated Key";
|
|
15982
15978
|
var serviceAccountSchema = yup19.object({
|
|
15983
15979
|
title: yup19.string().required("Name is a required field"),
|
|
@@ -16003,7 +15999,7 @@ var AddServiceAccountDialog = ({
|
|
|
16003
15999
|
resolver: yupResolver19(serviceAccountSchema)
|
|
16004
16000
|
});
|
|
16005
16001
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
16006
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
16002
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery25(
|
|
16007
16003
|
FrontierServiceQueries39.listOrganizationProjects,
|
|
16008
16004
|
create45(ListOrganizationProjectsRequestSchema2, {
|
|
16009
16005
|
id: orgId,
|
|
@@ -16014,7 +16010,7 @@ var AddServiceAccountDialog = ({
|
|
|
16014
16010
|
enabled: Boolean(orgId) && open
|
|
16015
16011
|
}
|
|
16016
16012
|
);
|
|
16017
|
-
const projects =
|
|
16013
|
+
const projects = useMemo36(() => {
|
|
16018
16014
|
var _a2;
|
|
16019
16015
|
const list = (_a2 = projectsData == null ? void 0 : projectsData.projects) != null ? _a2 : [];
|
|
16020
16016
|
return orderBy(list, ["title"], ["asc"]);
|
|
@@ -16105,15 +16101,15 @@ var AddServiceAccountDialog = ({
|
|
|
16105
16101
|
onCreated
|
|
16106
16102
|
]
|
|
16107
16103
|
);
|
|
16108
|
-
return /* @__PURE__ */
|
|
16104
|
+
return /* @__PURE__ */ jsx79(Dialog17, { open, onOpenChange, children: /* @__PURE__ */ jsx79(
|
|
16109
16105
|
Dialog17.Content,
|
|
16110
16106
|
{
|
|
16111
16107
|
overlayClassName: api_keys_module_css_default2.overlay,
|
|
16112
16108
|
className: api_keys_module_css_default2.addDialogContent,
|
|
16113
16109
|
children: /* @__PURE__ */ jsxs61("form", { onSubmit: handleSubmit(onSubmit), children: [
|
|
16114
|
-
/* @__PURE__ */
|
|
16115
|
-
/* @__PURE__ */
|
|
16116
|
-
/* @__PURE__ */
|
|
16110
|
+
/* @__PURE__ */ jsx79(Dialog17.Header, { children: /* @__PURE__ */ jsxs61(Flex61, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
16111
|
+
/* @__PURE__ */ jsx79(Text51, { size: 6, weight: 500, children: "New Service Account" }),
|
|
16112
|
+
/* @__PURE__ */ jsx79(
|
|
16117
16113
|
Image24,
|
|
16118
16114
|
{
|
|
16119
16115
|
alt: "cross",
|
|
@@ -16124,14 +16120,14 @@ var AddServiceAccountDialog = ({
|
|
|
16124
16120
|
}
|
|
16125
16121
|
)
|
|
16126
16122
|
] }) }),
|
|
16127
|
-
/* @__PURE__ */
|
|
16123
|
+
/* @__PURE__ */ jsx79(Dialog17.Body, { children: /* @__PURE__ */ jsxs61(Flex61, { direction: "column", gap: 5, children: [
|
|
16128
16124
|
/* @__PURE__ */ jsxs61(Text51, { children: [
|
|
16129
16125
|
"Create a dedicated service account to facilitate secure API interactions on behalf of the",
|
|
16130
16126
|
" ",
|
|
16131
16127
|
t.organization({ case: "lower" }),
|
|
16132
16128
|
"."
|
|
16133
16129
|
] }),
|
|
16134
|
-
isProjectsLoading ? /* @__PURE__ */
|
|
16130
|
+
isProjectsLoading ? /* @__PURE__ */ jsx79(Skeleton32, { height: "25px" }) : /* @__PURE__ */ jsx79(
|
|
16135
16131
|
InputField17,
|
|
16136
16132
|
__spreadProps(__spreadValues({
|
|
16137
16133
|
label: "Name"
|
|
@@ -16142,8 +16138,8 @@ var AddServiceAccountDialog = ({
|
|
|
16142
16138
|
})
|
|
16143
16139
|
),
|
|
16144
16140
|
/* @__PURE__ */ jsxs61(Flex61, { direction: "column", gap: 2, children: [
|
|
16145
|
-
/* @__PURE__ */
|
|
16146
|
-
isProjectsLoading ? /* @__PURE__ */
|
|
16141
|
+
/* @__PURE__ */ jsx79(Label6, { children: "Project" }),
|
|
16142
|
+
isProjectsLoading ? /* @__PURE__ */ jsx79(Skeleton32, { height: "25px" }) : /* @__PURE__ */ jsx79(
|
|
16147
16143
|
Controller5,
|
|
16148
16144
|
{
|
|
16149
16145
|
render: ({ field }) => {
|
|
@@ -16153,8 +16149,8 @@ var AddServiceAccountDialog = ({
|
|
|
16153
16149
|
__spreadProps(__spreadValues({}, rest), {
|
|
16154
16150
|
onValueChange: handleSelectValueChange(onChange),
|
|
16155
16151
|
children: [
|
|
16156
|
-
/* @__PURE__ */
|
|
16157
|
-
/* @__PURE__ */
|
|
16152
|
+
/* @__PURE__ */ jsx79(Select6.Trigger, { ref, children: /* @__PURE__ */ jsx79(Select6.Value, { placeholder: "Select a project" }) }),
|
|
16153
|
+
/* @__PURE__ */ jsx79(Select6.Content, { style: { width: "100% !important" }, children: /* @__PURE__ */ jsx79(Select6.Viewport, { style: { maxHeight: "300px" }, children: projects.map((project) => /* @__PURE__ */ jsx79(
|
|
16158
16154
|
Select6.Item,
|
|
16159
16155
|
{
|
|
16160
16156
|
value: project.id || "",
|
|
@@ -16170,10 +16166,10 @@ var AddServiceAccountDialog = ({
|
|
|
16170
16166
|
control
|
|
16171
16167
|
}
|
|
16172
16168
|
),
|
|
16173
|
-
/* @__PURE__ */
|
|
16169
|
+
/* @__PURE__ */ jsx79(Text51, { size: "mini", variant: "danger", children: errors.project_id && String((_b = errors.project_id) == null ? void 0 : _b.message) })
|
|
16174
16170
|
] })
|
|
16175
16171
|
] }) }),
|
|
16176
|
-
/* @__PURE__ */
|
|
16172
|
+
/* @__PURE__ */ jsx79(Dialog17.Footer, { children: /* @__PURE__ */ jsx79(Flex61, { justify: "end", children: /* @__PURE__ */ jsx79(
|
|
16177
16173
|
Button43,
|
|
16178
16174
|
{
|
|
16179
16175
|
variant: "solid",
|
|
@@ -16195,8 +16191,8 @@ var AddServiceAccountDialog = ({
|
|
|
16195
16191
|
// react/views/api-keys/list/delete-service-account-dialog.tsx
|
|
16196
16192
|
import { Button as Button44, Flex as Flex62, Text as Text52, toast as toast41, Image as Image25, Dialog as Dialog18 } from "@raystack/apsara";
|
|
16197
16193
|
|
|
16198
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16199
|
-
var digest67 = "
|
|
16194
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-h17RDPxcowfh/sdk/react/views/api-keys/list/api-keys.module.css.js
|
|
16195
|
+
var digest67 = "536f3951cabe9fd425c8b468df81b867e78a5921455044f577489df03002db2c";
|
|
16200
16196
|
var css67 = `._container_9t9jq_1 {
|
|
16201
16197
|
height: 100%;
|
|
16202
16198
|
width: 100%;
|
|
@@ -16284,7 +16280,7 @@ import {
|
|
|
16284
16280
|
DeleteServiceUserRequestSchema
|
|
16285
16281
|
} from "@raystack/proton/frontier";
|
|
16286
16282
|
import { create as create46 } from "@bufbuild/protobuf";
|
|
16287
|
-
import { jsx as
|
|
16283
|
+
import { jsx as jsx80, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
16288
16284
|
var DeleteServiceAccountDialog = ({
|
|
16289
16285
|
open,
|
|
16290
16286
|
onOpenChange,
|
|
@@ -16326,15 +16322,15 @@ var DeleteServiceAccountDialog = ({
|
|
|
16326
16322
|
}
|
|
16327
16323
|
});
|
|
16328
16324
|
}
|
|
16329
|
-
return /* @__PURE__ */
|
|
16325
|
+
return /* @__PURE__ */ jsx80(Dialog18, { open, onOpenChange, children: /* @__PURE__ */ jsxs62(
|
|
16330
16326
|
Dialog18.Content,
|
|
16331
16327
|
{
|
|
16332
16328
|
overlayClassName: api_keys_module_css_default3.overlay,
|
|
16333
16329
|
className: api_keys_module_css_default3.addDialogContent,
|
|
16334
16330
|
children: [
|
|
16335
|
-
/* @__PURE__ */
|
|
16336
|
-
/* @__PURE__ */
|
|
16337
|
-
/* @__PURE__ */
|
|
16331
|
+
/* @__PURE__ */ jsx80(Dialog18.Header, { children: /* @__PURE__ */ jsxs62(Flex62, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
16332
|
+
/* @__PURE__ */ jsx80(Text52, { size: "large", weight: "medium", children: "Delete Service Account" }),
|
|
16333
|
+
/* @__PURE__ */ jsx80(
|
|
16338
16334
|
Image25,
|
|
16339
16335
|
{
|
|
16340
16336
|
alt: "cross",
|
|
@@ -16345,9 +16341,9 @@ var DeleteServiceAccountDialog = ({
|
|
|
16345
16341
|
}
|
|
16346
16342
|
)
|
|
16347
16343
|
] }) }),
|
|
16348
|
-
/* @__PURE__ */
|
|
16349
|
-
/* @__PURE__ */
|
|
16350
|
-
/* @__PURE__ */
|
|
16344
|
+
/* @__PURE__ */ jsx80(Dialog18.Body, { children: /* @__PURE__ */ jsx80(Flex62, { direction: "column", gap: 5, children: /* @__PURE__ */ jsx80(Text52, { children: "This is an irreversible and permanent action doing this might result in deletion of the service account and the keys associated with it. Do you wish to proceed?" }) }) }),
|
|
16345
|
+
/* @__PURE__ */ jsx80(Dialog18.Footer, { children: /* @__PURE__ */ jsxs62(Flex62, { justify: "end", gap: 5, children: [
|
|
16346
|
+
/* @__PURE__ */ jsx80(
|
|
16351
16347
|
Button44,
|
|
16352
16348
|
{
|
|
16353
16349
|
variant: "outline",
|
|
@@ -16358,7 +16354,7 @@ var DeleteServiceAccountDialog = ({
|
|
|
16358
16354
|
children: "Cancel"
|
|
16359
16355
|
}
|
|
16360
16356
|
),
|
|
16361
|
-
/* @__PURE__ */
|
|
16357
|
+
/* @__PURE__ */ jsx80(
|
|
16362
16358
|
Button44,
|
|
16363
16359
|
{
|
|
16364
16360
|
variant: "solid",
|
|
@@ -16379,18 +16375,18 @@ var DeleteServiceAccountDialog = ({
|
|
|
16379
16375
|
};
|
|
16380
16376
|
|
|
16381
16377
|
// react/views/api-keys/list/api-keys-list-page.tsx
|
|
16382
|
-
import { jsx as
|
|
16378
|
+
import { jsx as jsx81, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
16383
16379
|
var NoServiceAccounts = ({
|
|
16384
16380
|
onCreateClick
|
|
16385
16381
|
}) => {
|
|
16386
16382
|
const t = useTerminology();
|
|
16387
|
-
return /* @__PURE__ */
|
|
16383
|
+
return /* @__PURE__ */ jsx81(Flex63, { justify: "center", align: "center", className: api_keys_module_css_default.stateContent, children: /* @__PURE__ */ jsx81(
|
|
16388
16384
|
EmptyState11,
|
|
16389
16385
|
{
|
|
16390
|
-
icon: /* @__PURE__ */
|
|
16386
|
+
icon: /* @__PURE__ */ jsx81(Image26, { src: key_default, alt: "keyIcon" }),
|
|
16391
16387
|
heading: "No service account found",
|
|
16392
16388
|
subHeading: `Create a new account to use the APIs of ${t.appName()} platform`,
|
|
16393
|
-
primaryAction: /* @__PURE__ */
|
|
16389
|
+
primaryAction: /* @__PURE__ */ jsx81(
|
|
16394
16390
|
Button45,
|
|
16395
16391
|
{
|
|
16396
16392
|
"data-test-id": "frontier-sdk-new-service-account-btn",
|
|
@@ -16404,10 +16400,10 @@ var NoServiceAccounts = ({
|
|
|
16404
16400
|
) });
|
|
16405
16401
|
};
|
|
16406
16402
|
var NoAccess = () => {
|
|
16407
|
-
return /* @__PURE__ */
|
|
16403
|
+
return /* @__PURE__ */ jsx81(Flex63, { justify: "center", align: "center", className: api_keys_module_css_default.stateContent, children: /* @__PURE__ */ jsx81(
|
|
16408
16404
|
EmptyState11,
|
|
16409
16405
|
{
|
|
16410
|
-
icon: /* @__PURE__ */
|
|
16406
|
+
icon: /* @__PURE__ */ jsx81(ExclamationTriangleIcon, {}),
|
|
16411
16407
|
heading: "Restricted Access",
|
|
16412
16408
|
subHeading: "Admin access required, please reach out to your admin incase you want to generate a key"
|
|
16413
16409
|
}
|
|
@@ -16417,11 +16413,11 @@ var ApiKeysHeader = ({ isLoading }) => {
|
|
|
16417
16413
|
const t = useTerminology();
|
|
16418
16414
|
if (isLoading) {
|
|
16419
16415
|
return /* @__PURE__ */ jsxs63(Flex63, { direction: "column", gap: 2, className: api_keys_module_css_default.flex1, children: [
|
|
16420
|
-
/* @__PURE__ */
|
|
16421
|
-
/* @__PURE__ */
|
|
16416
|
+
/* @__PURE__ */ jsx81(Skeleton33, {}),
|
|
16417
|
+
/* @__PURE__ */ jsx81(Skeleton33, {})
|
|
16422
16418
|
] });
|
|
16423
16419
|
}
|
|
16424
|
-
return /* @__PURE__ */
|
|
16420
|
+
return /* @__PURE__ */ jsx81(
|
|
16425
16421
|
PageHeader,
|
|
16426
16422
|
{
|
|
16427
16423
|
title: "API Keys",
|
|
@@ -16431,7 +16427,7 @@ var ApiKeysHeader = ({ isLoading }) => {
|
|
|
16431
16427
|
};
|
|
16432
16428
|
var useAccess = (orgId) => {
|
|
16433
16429
|
const resource = `app/organization:${orgId}`;
|
|
16434
|
-
const listOfPermissionsToCheck =
|
|
16430
|
+
const listOfPermissionsToCheck = useMemo37(() => {
|
|
16435
16431
|
return [
|
|
16436
16432
|
{
|
|
16437
16433
|
permission: PERMISSIONS.UpdatePermission,
|
|
@@ -16443,7 +16439,7 @@ var useAccess = (orgId) => {
|
|
|
16443
16439
|
listOfPermissionsToCheck,
|
|
16444
16440
|
!!orgId
|
|
16445
16441
|
);
|
|
16446
|
-
const canUpdateWorkspace =
|
|
16442
|
+
const canUpdateWorkspace = useMemo37(() => {
|
|
16447
16443
|
return shouldShowComponent(
|
|
16448
16444
|
permissions,
|
|
16449
16445
|
`${PERMISSIONS.UpdatePermission}::${resource}`
|
|
@@ -16466,7 +16462,7 @@ var ServiceAccountsTable = ({
|
|
|
16466
16462
|
dateFormat: dateFormat || DEFAULT_DATE_FORMAT,
|
|
16467
16463
|
onDeleteClick
|
|
16468
16464
|
});
|
|
16469
|
-
return /* @__PURE__ */
|
|
16465
|
+
return /* @__PURE__ */ jsx81(
|
|
16470
16466
|
DataTable9,
|
|
16471
16467
|
{
|
|
16472
16468
|
data: serviceUsers,
|
|
@@ -16477,8 +16473,8 @@ var ServiceAccountsTable = ({
|
|
|
16477
16473
|
onRowClick: (row) => onServiceAccountClick == null ? void 0 : onServiceAccountClick(row.id),
|
|
16478
16474
|
children: /* @__PURE__ */ jsxs63(Flex63, { direction: "column", gap: 7, className: api_keys_module_css_default.tableWrapper, children: [
|
|
16479
16475
|
/* @__PURE__ */ jsxs63(Flex63, { justify: "between", gap: 3, children: [
|
|
16480
|
-
/* @__PURE__ */
|
|
16481
|
-
isLoading ? /* @__PURE__ */
|
|
16476
|
+
/* @__PURE__ */ jsx81(Flex63, { gap: 3, justify: "start", className: api_keys_module_css_default.tableSearchWrapper, children: isLoading ? /* @__PURE__ */ jsx81(Skeleton33, { height: "32px", containerClassName: api_keys_module_css_default.flex1 }) : /* @__PURE__ */ jsx81(DataTable9.Search, { placeholder: "Search...", size: "medium" }) }),
|
|
16477
|
+
isLoading ? /* @__PURE__ */ jsx81(Skeleton33, { height: "32px", width: "64px" }) : /* @__PURE__ */ jsx81(
|
|
16482
16478
|
Button45,
|
|
16483
16479
|
{
|
|
16484
16480
|
variant: "solid",
|
|
@@ -16489,7 +16485,7 @@ var ServiceAccountsTable = ({
|
|
|
16489
16485
|
}
|
|
16490
16486
|
)
|
|
16491
16487
|
] }),
|
|
16492
|
-
/* @__PURE__ */
|
|
16488
|
+
/* @__PURE__ */ jsx81(
|
|
16493
16489
|
DataTable9.Content,
|
|
16494
16490
|
{
|
|
16495
16491
|
classNames: {
|
|
@@ -16514,7 +16510,7 @@ function ApiKeysListPage({
|
|
|
16514
16510
|
const { isPermissionsFetching, canUpdateWorkspace } = useAccess(
|
|
16515
16511
|
organization == null ? void 0 : organization.id
|
|
16516
16512
|
);
|
|
16517
|
-
const { data: serviceUsersData, isLoading: isServiceUsersLoading } =
|
|
16513
|
+
const { data: serviceUsersData, isLoading: isServiceUsersLoading } = useQuery26(
|
|
16518
16514
|
FrontierServiceQueries41.listOrganizationServiceUsers,
|
|
16519
16515
|
create47(ListOrganizationServiceUsersRequestSchema3, {
|
|
16520
16516
|
id: (_a = organization == null ? void 0 : organization.id) != null ? _a : ""
|
|
@@ -16523,7 +16519,7 @@ function ApiKeysListPage({
|
|
|
16523
16519
|
enabled: Boolean(organization == null ? void 0 : organization.id) && canUpdateWorkspace
|
|
16524
16520
|
}
|
|
16525
16521
|
);
|
|
16526
|
-
const serviceUsers =
|
|
16522
|
+
const serviceUsers = useMemo37(
|
|
16527
16523
|
() => {
|
|
16528
16524
|
var _a2;
|
|
16529
16525
|
return (_a2 = serviceUsersData == null ? void 0 : serviceUsersData.serviceusers) != null ? _a2 : [];
|
|
@@ -16561,23 +16557,23 @@ function ApiKeysListPage({
|
|
|
16561
16557
|
direction: "column",
|
|
16562
16558
|
className: `${styles_module_css_default15.container} ${styles_module_css_default15.containerFlex}`,
|
|
16563
16559
|
children: [
|
|
16564
|
-
/* @__PURE__ */
|
|
16560
|
+
/* @__PURE__ */ jsx81(
|
|
16565
16561
|
Flex63,
|
|
16566
16562
|
{
|
|
16567
16563
|
direction: "row",
|
|
16568
16564
|
justify: "between",
|
|
16569
16565
|
align: "center",
|
|
16570
16566
|
className: styles_module_css_default15.header,
|
|
16571
|
-
children: /* @__PURE__ */
|
|
16567
|
+
children: /* @__PURE__ */ jsx81(ApiKeysHeader, { isLoading })
|
|
16572
16568
|
}
|
|
16573
16569
|
),
|
|
16574
|
-
canUpdateWorkspace || isLoading ? serviceAccountsCount > 0 || isLoading ? /* @__PURE__ */
|
|
16570
|
+
canUpdateWorkspace || isLoading ? serviceAccountsCount > 0 || isLoading ? /* @__PURE__ */ jsx81(
|
|
16575
16571
|
Flex63,
|
|
16576
16572
|
{
|
|
16577
16573
|
direction: "column",
|
|
16578
16574
|
gap: 9,
|
|
16579
16575
|
className: styles_module_css_default15.contentWrapper,
|
|
16580
|
-
children: /* @__PURE__ */
|
|
16576
|
+
children: /* @__PURE__ */ jsx81(
|
|
16581
16577
|
ServiceAccountsTable,
|
|
16582
16578
|
{
|
|
16583
16579
|
isLoading,
|
|
@@ -16589,11 +16585,11 @@ function ApiKeysListPage({
|
|
|
16589
16585
|
}
|
|
16590
16586
|
)
|
|
16591
16587
|
}
|
|
16592
|
-
) : /* @__PURE__ */
|
|
16588
|
+
) : /* @__PURE__ */ jsx81(NoServiceAccounts, { onCreateClick: () => setShowAddDialog(true) }) : /* @__PURE__ */ jsx81(NoAccess, {})
|
|
16593
16589
|
]
|
|
16594
16590
|
}
|
|
16595
16591
|
),
|
|
16596
|
-
/* @__PURE__ */
|
|
16592
|
+
/* @__PURE__ */ jsx81(
|
|
16597
16593
|
AddServiceAccountDialog,
|
|
16598
16594
|
{
|
|
16599
16595
|
open: showAddDialog,
|
|
@@ -16601,7 +16597,7 @@ function ApiKeysListPage({
|
|
|
16601
16597
|
onCreated: handleCreated
|
|
16602
16598
|
}
|
|
16603
16599
|
),
|
|
16604
|
-
/* @__PURE__ */
|
|
16600
|
+
/* @__PURE__ */ jsx81(
|
|
16605
16601
|
DeleteServiceAccountDialog,
|
|
16606
16602
|
{
|
|
16607
16603
|
open: deleteState.open,
|
|
@@ -16623,8 +16619,8 @@ import { useForm as useForm20 } from "react-hook-form";
|
|
|
16623
16619
|
import { useCallback as useCallback26 } from "react";
|
|
16624
16620
|
import { Flex as Flex64, toast as toast42, Button as Button46, InputField as InputField18 } from "@raystack/apsara";
|
|
16625
16621
|
|
|
16626
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16627
|
-
var digest68 = "
|
|
16622
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-wHTR6LQ5f0hj/sdk/react/views/api-keys/details/service-user.module.css.js
|
|
16623
|
+
var digest68 = "8815d2e8741c0a3195fa077bae0520b50c50f0c2be2fcb5c21610b5136d636f6";
|
|
16628
16624
|
var css68 = `._flex1_3g15z_1 {
|
|
16629
16625
|
flex: 1;
|
|
16630
16626
|
}
|
|
@@ -16739,7 +16735,7 @@ import {
|
|
|
16739
16735
|
FrontierServiceQueries as FrontierServiceQueries42,
|
|
16740
16736
|
CreateServiceUserTokenRequestSchema as CreateServiceUserTokenRequestSchema2
|
|
16741
16737
|
} from "@raystack/proton/frontier";
|
|
16742
|
-
import { jsx as
|
|
16738
|
+
import { jsx as jsx82, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
16743
16739
|
var serviceAccountSchema2 = yup20.object({
|
|
16744
16740
|
title: yup20.string().required("Name is a required field")
|
|
16745
16741
|
}).required();
|
|
@@ -16783,8 +16779,8 @@ function AddServiceUserToken({
|
|
|
16783
16779
|
}),
|
|
16784
16780
|
[createServiceUserToken, onAddToken, serviceUserId, orgId]
|
|
16785
16781
|
);
|
|
16786
|
-
return /* @__PURE__ */
|
|
16787
|
-
/* @__PURE__ */
|
|
16782
|
+
return /* @__PURE__ */ jsx82("form", { onSubmit: handleSubmit(onSubmit), children: /* @__PURE__ */ jsx82(Flex64, { gap: 3, children: /* @__PURE__ */ jsxs64(Flex64, { className: service_user_module_css_default.addKeyInputWrapper, gap: 3, children: [
|
|
16783
|
+
/* @__PURE__ */ jsx82(
|
|
16788
16784
|
InputField18,
|
|
16789
16785
|
__spreadProps(__spreadValues({}, register("title")), {
|
|
16790
16786
|
size: "large",
|
|
@@ -16792,7 +16788,7 @@ function AddServiceUserToken({
|
|
|
16792
16788
|
error: errors.title && String((_a = errors.title) == null ? void 0 : _a.message)
|
|
16793
16789
|
})
|
|
16794
16790
|
),
|
|
16795
|
-
/* @__PURE__ */
|
|
16791
|
+
/* @__PURE__ */ jsx82(
|
|
16796
16792
|
Button46,
|
|
16797
16793
|
{
|
|
16798
16794
|
"data-test-id": "frontier-sdk-api-keys-new-token-btn",
|
|
@@ -16829,7 +16825,7 @@ var useCopyToClipboard = () => {
|
|
|
16829
16825
|
};
|
|
16830
16826
|
|
|
16831
16827
|
// react/views/api-keys/details/service-user-detail-page.tsx
|
|
16832
|
-
import { useQuery as
|
|
16828
|
+
import { useQuery as useQuery29 } from "@connectrpc/connect-query";
|
|
16833
16829
|
import { create as create52 } from "@bufbuild/protobuf";
|
|
16834
16830
|
import {
|
|
16835
16831
|
FrontierServiceQueries as FrontierServiceQueries46,
|
|
@@ -16838,11 +16834,11 @@ import {
|
|
|
16838
16834
|
|
|
16839
16835
|
// react/views/api-keys/hooks/useServiceUserTokens.ts
|
|
16840
16836
|
import {
|
|
16841
|
-
useQuery as
|
|
16837
|
+
useQuery as useQuery27,
|
|
16842
16838
|
createConnectQueryKey as createConnectQueryKey13,
|
|
16843
16839
|
useTransport as useTransport12
|
|
16844
16840
|
} from "@connectrpc/connect-query";
|
|
16845
|
-
import { useMemo as
|
|
16841
|
+
import { useMemo as useMemo38 } from "react";
|
|
16846
16842
|
import { useQueryClient as useQueryClient13 } from "@tanstack/react-query";
|
|
16847
16843
|
import { create as create49 } from "@bufbuild/protobuf";
|
|
16848
16844
|
import {
|
|
@@ -16857,7 +16853,7 @@ var useServiceUserTokens = ({
|
|
|
16857
16853
|
}) => {
|
|
16858
16854
|
const queryClient2 = useQueryClient13();
|
|
16859
16855
|
const transport = useTransport12();
|
|
16860
|
-
const { data: tokensData, isLoading } =
|
|
16856
|
+
const { data: tokensData, isLoading } = useQuery27(
|
|
16861
16857
|
FrontierServiceQueries43.listServiceUserTokens,
|
|
16862
16858
|
create49(ListServiceUserTokensRequestSchema2, {
|
|
16863
16859
|
id,
|
|
@@ -16867,7 +16863,7 @@ var useServiceUserTokens = ({
|
|
|
16867
16863
|
enabled: Boolean(id) && Boolean(orgId) && Boolean(enableFetch)
|
|
16868
16864
|
}
|
|
16869
16865
|
);
|
|
16870
|
-
const tokens =
|
|
16866
|
+
const tokens = useMemo38(() => {
|
|
16871
16867
|
var _a;
|
|
16872
16868
|
return (_a = tokensData == null ? void 0 : tokensData.tokens) != null ? _a : [];
|
|
16873
16869
|
}, [tokensData]);
|
|
@@ -16929,10 +16925,10 @@ import {
|
|
|
16929
16925
|
Dialog as Dialog19,
|
|
16930
16926
|
DataTable as DataTable10
|
|
16931
16927
|
} from "@raystack/apsara";
|
|
16932
|
-
import { useCallback as useCallback27, useState as useState32, useEffect as useEffect29, useMemo as
|
|
16928
|
+
import { useCallback as useCallback27, useState as useState32, useEffect as useEffect29, useMemo as useMemo39 } from "react";
|
|
16933
16929
|
|
|
16934
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16935
|
-
var digest69 = "
|
|
16930
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-3a2Fj1NZbAVA/sdk/react/views/api-keys/details/service-user.module.css.js
|
|
16931
|
+
var digest69 = "277f5027c9ed41ab0892e7b8c1ea0ae704fd4071f96e7bc29375b50dcd06c00e";
|
|
16936
16932
|
var css69 = `._flex1_3g15z_1 {
|
|
16937
16933
|
flex: 1;
|
|
16938
16934
|
}
|
|
@@ -17041,7 +17037,7 @@ var css69 = `._flex1_3g15z_1 {
|
|
|
17041
17037
|
var service_user_module_css_default2 = { "flex1": "_flex1_3g15z_1", "content": "_content_3g15z_5", "serviceKeyList": "_serviceKeyList_3g15z_10", "serviceKeyItem": "_serviceKeyItem_3g15z_15", "serviceKeyItemTitle": "_serviceKeyItemTitle_3g15z_34", "serviceKeyItemLoaderBtn": "_serviceKeyItemLoaderBtn_3g15z_39", "addKeyInputWrapper": "_addKeyInputWrapper_3g15z_46", "addKeyInputError": "_addKeyInputError_3g15z_52", "tokenBox": "_tokenBox_3g15z_57", "tokenText": "_tokenText_3g15z_64", "addDialogContent": "_addDialogContent_3g15z_69", "overlay": "_overlay_3g15z_75", "manageProjectDialogWrapper": "_manageProjectDialogWrapper_3g15z_79", "manageProjectDialogContent": "_manageProjectDialogContent_3g15z_84", "tableRoot": "_tableRoot_3g15z_90" };
|
|
17042
17038
|
|
|
17043
17039
|
// react/views/api-keys/details/manage-service-user-projects-dialog.tsx
|
|
17044
|
-
import { useQuery as
|
|
17040
|
+
import { useQuery as useQuery28, useMutation as useMutation28 } from "@connectrpc/connect-query";
|
|
17045
17041
|
import { create as create50 } from "@bufbuild/protobuf";
|
|
17046
17042
|
import {
|
|
17047
17043
|
FrontierServiceQueries as FrontierServiceQueries44,
|
|
@@ -17049,11 +17045,11 @@ import {
|
|
|
17049
17045
|
ListOrganizationProjectsRequestSchema as ListOrganizationProjectsRequestSchema3,
|
|
17050
17046
|
CreatePolicyForProjectRequestSchema as CreatePolicyForProjectRequestSchema3,
|
|
17051
17047
|
CreatePolicyForProjectBodySchema as CreatePolicyForProjectBodySchema2,
|
|
17052
|
-
ListPoliciesRequestSchema as
|
|
17053
|
-
DeletePolicyRequestSchema as
|
|
17048
|
+
ListPoliciesRequestSchema as ListPoliciesRequestSchema4,
|
|
17049
|
+
DeletePolicyRequestSchema as DeletePolicyRequestSchema4
|
|
17054
17050
|
} from "@raystack/proton/frontier";
|
|
17055
17051
|
import { orderBy as orderBy2 } from "lodash";
|
|
17056
|
-
import { jsx as
|
|
17052
|
+
import { jsx as jsx83, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
17057
17053
|
var getColumns10 = ({
|
|
17058
17054
|
permMap,
|
|
17059
17055
|
onChange
|
|
@@ -17072,7 +17068,7 @@ var getColumns10 = ({
|
|
|
17072
17068
|
cell: ({ getValue }) => {
|
|
17073
17069
|
const projectId = getValue();
|
|
17074
17070
|
const { value, isLoading } = permMap[projectId] || {};
|
|
17075
|
-
return /* @__PURE__ */
|
|
17071
|
+
return /* @__PURE__ */ jsx83(Flex65, { children: isLoading ? /* @__PURE__ */ jsx83(Spinner, {}) : /* @__PURE__ */ jsx83(
|
|
17076
17072
|
Checkbox5,
|
|
17077
17073
|
{
|
|
17078
17074
|
checked: value,
|
|
@@ -17086,14 +17082,14 @@ var getColumns10 = ({
|
|
|
17086
17082
|
accessorKey: "title",
|
|
17087
17083
|
cell: ({ getValue }) => {
|
|
17088
17084
|
const value = getValue();
|
|
17089
|
-
return /* @__PURE__ */
|
|
17085
|
+
return /* @__PURE__ */ jsx83(Flex65, { direction: "column", children: /* @__PURE__ */ jsx83(Text53, { children: value }) });
|
|
17090
17086
|
}
|
|
17091
17087
|
},
|
|
17092
17088
|
{
|
|
17093
17089
|
header: "Access",
|
|
17094
17090
|
accessorKey: "id",
|
|
17095
17091
|
enableSorting: false,
|
|
17096
|
-
cell: () => /* @__PURE__ */
|
|
17092
|
+
cell: () => /* @__PURE__ */ jsx83(Flex65, { children: /* @__PURE__ */ jsx83(Text53, { children: "Member" }) })
|
|
17097
17093
|
}
|
|
17098
17094
|
];
|
|
17099
17095
|
};
|
|
@@ -17108,7 +17104,7 @@ function ManageServiceUserProjectsDialog({
|
|
|
17108
17104
|
);
|
|
17109
17105
|
const handleClose = () => onOpenChange == null ? void 0 : onOpenChange(false);
|
|
17110
17106
|
const orgId = (organization == null ? void 0 : organization.id) || "";
|
|
17111
|
-
const { data: projectsData, isLoading: isProjectsLoading } =
|
|
17107
|
+
const { data: projectsData, isLoading: isProjectsLoading } = useQuery28(
|
|
17112
17108
|
FrontierServiceQueries44.listOrganizationProjects,
|
|
17113
17109
|
create50(ListOrganizationProjectsRequestSchema3, {
|
|
17114
17110
|
id: orgId,
|
|
@@ -17119,12 +17115,12 @@ function ManageServiceUserProjectsDialog({
|
|
|
17119
17115
|
enabled: Boolean(orgId) && open
|
|
17120
17116
|
}
|
|
17121
17117
|
);
|
|
17122
|
-
const projects =
|
|
17118
|
+
const projects = useMemo39(() => {
|
|
17123
17119
|
var _a;
|
|
17124
17120
|
const list = (_a = projectsData == null ? void 0 : projectsData.projects) != null ? _a : [];
|
|
17125
17121
|
return orderBy2(list, ["title"], ["asc"]);
|
|
17126
17122
|
}, [projectsData]);
|
|
17127
|
-
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } =
|
|
17123
|
+
const { data: addedProjectsData, isLoading: isAddedProjectsLoading } = useQuery28(
|
|
17128
17124
|
FrontierServiceQueries44.listServiceUserProjects,
|
|
17129
17125
|
create50(ListServiceUserProjectsRequestSchema, {
|
|
17130
17126
|
id: serviceUserId,
|
|
@@ -17135,7 +17131,7 @@ function ManageServiceUserProjectsDialog({
|
|
|
17135
17131
|
enabled: Boolean(serviceUserId) && Boolean(orgId) && open
|
|
17136
17132
|
}
|
|
17137
17133
|
);
|
|
17138
|
-
const addedProjects =
|
|
17134
|
+
const addedProjects = useMemo39(
|
|
17139
17135
|
() => {
|
|
17140
17136
|
var _a;
|
|
17141
17137
|
return (_a = addedProjectsData == null ? void 0 : addedProjectsData.projects) != null ? _a : [];
|
|
@@ -17180,7 +17176,7 @@ function ManageServiceUserProjectsDialog({
|
|
|
17180
17176
|
}));
|
|
17181
17177
|
} else {
|
|
17182
17178
|
const policiesResp = yield listPolicies(
|
|
17183
|
-
create50(
|
|
17179
|
+
create50(ListPoliciesRequestSchema4, {
|
|
17184
17180
|
projectId,
|
|
17185
17181
|
userId: serviceUserId,
|
|
17186
17182
|
orgId: "",
|
|
@@ -17191,7 +17187,7 @@ function ManageServiceUserProjectsDialog({
|
|
|
17191
17187
|
const policies = (policiesResp == null ? void 0 : policiesResp.policies) || [];
|
|
17192
17188
|
const deletePromises = policies.map(
|
|
17193
17189
|
(p) => deletePolicy(
|
|
17194
|
-
create50(
|
|
17190
|
+
create50(DeletePolicyRequestSchema4, {
|
|
17195
17191
|
id: p.id
|
|
17196
17192
|
})
|
|
17197
17193
|
)
|
|
@@ -17217,15 +17213,15 @@ function ManageServiceUserProjectsDialog({
|
|
|
17217
17213
|
});
|
|
17218
17214
|
const data = projects || [];
|
|
17219
17215
|
const isLoading = isProjectsLoading || isAddedProjectsLoading;
|
|
17220
|
-
return /* @__PURE__ */
|
|
17216
|
+
return /* @__PURE__ */ jsx83(Dialog19, { open, onOpenChange, children: /* @__PURE__ */ jsxs65(
|
|
17221
17217
|
Dialog19.Content,
|
|
17222
17218
|
{
|
|
17223
17219
|
overlayClassName: service_user_module_css_default2.overlay,
|
|
17224
17220
|
className: service_user_module_css_default2.manageProjectDialogContent,
|
|
17225
17221
|
children: [
|
|
17226
|
-
/* @__PURE__ */
|
|
17227
|
-
/* @__PURE__ */
|
|
17228
|
-
/* @__PURE__ */
|
|
17222
|
+
/* @__PURE__ */ jsx83(Dialog19.Header, { children: /* @__PURE__ */ jsxs65(Flex65, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
17223
|
+
/* @__PURE__ */ jsx83(Text53, { size: "large", weight: "medium", children: "Manage Project Access" }),
|
|
17224
|
+
/* @__PURE__ */ jsx83(
|
|
17229
17225
|
Image27,
|
|
17230
17226
|
{
|
|
17231
17227
|
alt: "cross",
|
|
@@ -17236,15 +17232,15 @@ function ManageServiceUserProjectsDialog({
|
|
|
17236
17232
|
}
|
|
17237
17233
|
)
|
|
17238
17234
|
] }) }),
|
|
17239
|
-
/* @__PURE__ */
|
|
17235
|
+
/* @__PURE__ */ jsx83(Dialog19.Body, { children: /* @__PURE__ */ jsxs65(
|
|
17240
17236
|
Flex65,
|
|
17241
17237
|
{
|
|
17242
17238
|
className: service_user_module_css_default2.manageProjectDialogWrapper,
|
|
17243
17239
|
gap: 9,
|
|
17244
17240
|
direction: "column",
|
|
17245
17241
|
children: [
|
|
17246
|
-
/* @__PURE__ */
|
|
17247
|
-
/* @__PURE__ */
|
|
17242
|
+
/* @__PURE__ */ jsx83(Text53, { size: "small", variant: "secondary", children: "Note: Select projects to give access to the service user." }),
|
|
17243
|
+
/* @__PURE__ */ jsx83(
|
|
17248
17244
|
DataTable10,
|
|
17249
17245
|
{
|
|
17250
17246
|
columns,
|
|
@@ -17252,7 +17248,7 @@ function ManageServiceUserProjectsDialog({
|
|
|
17252
17248
|
isLoading,
|
|
17253
17249
|
mode: "client",
|
|
17254
17250
|
defaultSort: { name: "name", order: "asc" },
|
|
17255
|
-
children: /* @__PURE__ */
|
|
17251
|
+
children: /* @__PURE__ */ jsx83(DataTable10.Content, { classNames: { root: service_user_module_css_default2.tableRoot } })
|
|
17256
17252
|
}
|
|
17257
17253
|
)
|
|
17258
17254
|
]
|
|
@@ -17266,8 +17262,8 @@ function ManageServiceUserProjectsDialog({
|
|
|
17266
17262
|
// react/views/api-keys/details/delete-service-user-key-dialog.tsx
|
|
17267
17263
|
import { Button as Button47, Flex as Flex66, Text as Text54, toast as toast44, Image as Image28, Dialog as Dialog20 } from "@raystack/apsara";
|
|
17268
17264
|
|
|
17269
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17270
|
-
var digest70 = "
|
|
17265
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-8JDkJQVt6sIO/sdk/react/views/api-keys/details/service-user.module.css.js
|
|
17266
|
+
var digest70 = "f0e971410b0837776672bee00e901a01ada04f71e2f79d4e407387cffb952cf7";
|
|
17271
17267
|
var css70 = `._flex1_3g15z_1 {
|
|
17272
17268
|
flex: 1;
|
|
17273
17269
|
}
|
|
@@ -17382,7 +17378,7 @@ import {
|
|
|
17382
17378
|
DeleteServiceUserTokenRequestSchema
|
|
17383
17379
|
} from "@raystack/proton/frontier";
|
|
17384
17380
|
import { create as create51 } from "@bufbuild/protobuf";
|
|
17385
|
-
import { jsx as
|
|
17381
|
+
import { jsx as jsx84, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
17386
17382
|
var DeleteServiceUserKeyDialog = ({
|
|
17387
17383
|
open,
|
|
17388
17384
|
onOpenChange,
|
|
@@ -17421,15 +17417,15 @@ var DeleteServiceUserKeyDialog = ({
|
|
|
17421
17417
|
});
|
|
17422
17418
|
}
|
|
17423
17419
|
const t = useTerminology();
|
|
17424
|
-
return /* @__PURE__ */
|
|
17420
|
+
return /* @__PURE__ */ jsx84(Dialog20, { open, onOpenChange, children: /* @__PURE__ */ jsxs66(
|
|
17425
17421
|
Dialog20.Content,
|
|
17426
17422
|
{
|
|
17427
17423
|
overlayClassName: service_user_module_css_default3.overlay,
|
|
17428
17424
|
className: service_user_module_css_default3.addDialogContent,
|
|
17429
17425
|
children: [
|
|
17430
|
-
/* @__PURE__ */
|
|
17431
|
-
/* @__PURE__ */
|
|
17432
|
-
/* @__PURE__ */
|
|
17426
|
+
/* @__PURE__ */ jsx84(Dialog20.Header, { children: /* @__PURE__ */ jsxs66(Flex66, { justify: "between", align: "center", style: { width: "100%" }, children: [
|
|
17427
|
+
/* @__PURE__ */ jsx84(Text54, { size: "large", weight: "medium", children: "Revoke API Key" }),
|
|
17428
|
+
/* @__PURE__ */ jsx84(
|
|
17433
17429
|
Image28,
|
|
17434
17430
|
{
|
|
17435
17431
|
alt: "cross",
|
|
@@ -17440,13 +17436,13 @@ var DeleteServiceUserKeyDialog = ({
|
|
|
17440
17436
|
}
|
|
17441
17437
|
)
|
|
17442
17438
|
] }) }),
|
|
17443
|
-
/* @__PURE__ */
|
|
17439
|
+
/* @__PURE__ */ jsx84(Dialog20.Body, { children: /* @__PURE__ */ jsx84(Flex66, { direction: "column", gap: 5, children: /* @__PURE__ */ jsxs66(Text54, { children: [
|
|
17444
17440
|
"This is an irreversible action doing this might lead to discontinuation of access to the ",
|
|
17445
17441
|
t.appName(),
|
|
17446
17442
|
" features. Do you wish to proceed?"
|
|
17447
17443
|
] }) }) }),
|
|
17448
|
-
/* @__PURE__ */
|
|
17449
|
-
/* @__PURE__ */
|
|
17444
|
+
/* @__PURE__ */ jsx84(Dialog20.Footer, { children: /* @__PURE__ */ jsxs66(Flex66, { justify: "end", gap: 5, children: [
|
|
17445
|
+
/* @__PURE__ */ jsx84(
|
|
17450
17446
|
Button47,
|
|
17451
17447
|
{
|
|
17452
17448
|
variant: "outline",
|
|
@@ -17457,7 +17453,7 @@ var DeleteServiceUserKeyDialog = ({
|
|
|
17457
17453
|
children: "Cancel"
|
|
17458
17454
|
}
|
|
17459
17455
|
),
|
|
17460
|
-
/* @__PURE__ */
|
|
17456
|
+
/* @__PURE__ */ jsx84(
|
|
17461
17457
|
Button47,
|
|
17462
17458
|
{
|
|
17463
17459
|
variant: "solid",
|
|
@@ -17477,8 +17473,8 @@ var DeleteServiceUserKeyDialog = ({
|
|
|
17477
17473
|
) });
|
|
17478
17474
|
};
|
|
17479
17475
|
|
|
17480
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17481
|
-
var digest71 = "
|
|
17476
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-qx19p9rmmPFo/sdk/react/components/organization/styles.module.css.js
|
|
17477
|
+
var digest71 = "895b8433355867da27c38aa9326028e2642b7ecb1bcc9fce3f0b637876e5ce3d";
|
|
17482
17478
|
var css71 = `._header_11okm_1 {
|
|
17483
17479
|
margin-bottom: var(--rs-space-9);
|
|
17484
17480
|
}
|
|
@@ -17521,8 +17517,8 @@ var css71 = `._header_11okm_1 {
|
|
|
17521
17517
|
})();
|
|
17522
17518
|
var styles_module_css_default16 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
17523
17519
|
|
|
17524
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17525
|
-
var digest72 = "
|
|
17520
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-vgZYaYwIBMQg/sdk/react/views/api-keys/details/service-user.module.css.js
|
|
17521
|
+
var digest72 = "d7f75d1d3b934f5b242e94721ee8b7a0b9c0ec0c5c6cc2148aee16f4f0eac818";
|
|
17526
17522
|
var css72 = `._flex1_3g15z_1 {
|
|
17527
17523
|
flex: 1;
|
|
17528
17524
|
}
|
|
@@ -17631,7 +17627,7 @@ var css72 = `._flex1_3g15z_1 {
|
|
|
17631
17627
|
var service_user_module_css_default4 = { "flex1": "_flex1_3g15z_1", "content": "_content_3g15z_5", "serviceKeyList": "_serviceKeyList_3g15z_10", "serviceKeyItem": "_serviceKeyItem_3g15z_15", "serviceKeyItemTitle": "_serviceKeyItemTitle_3g15z_34", "serviceKeyItemLoaderBtn": "_serviceKeyItemLoaderBtn_3g15z_39", "addKeyInputWrapper": "_addKeyInputWrapper_3g15z_46", "addKeyInputError": "_addKeyInputError_3g15z_52", "tokenBox": "_tokenBox_3g15z_57", "tokenText": "_tokenText_3g15z_64", "addDialogContent": "_addDialogContent_3g15z_69", "overlay": "_overlay_3g15z_75", "manageProjectDialogWrapper": "_manageProjectDialogWrapper_3g15z_79", "manageProjectDialogContent": "_manageProjectDialogContent_3g15z_84", "tableRoot": "_tableRoot_3g15z_90" };
|
|
17632
17628
|
|
|
17633
17629
|
// react/views/api-keys/details/service-user-detail-page.tsx
|
|
17634
|
-
import { Fragment as Fragment11, jsx as
|
|
17630
|
+
import { Fragment as Fragment11, jsx as jsx85, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
17635
17631
|
var Headings = ({
|
|
17636
17632
|
isLoading,
|
|
17637
17633
|
name,
|
|
@@ -17639,9 +17635,9 @@ var Headings = ({
|
|
|
17639
17635
|
}) => {
|
|
17640
17636
|
const t = useTerminology();
|
|
17641
17637
|
return /* @__PURE__ */ jsxs67(Flex67, { direction: "column", gap: 3, style: { width: "100%" }, children: [
|
|
17642
|
-
isLoading ? /* @__PURE__ */
|
|
17643
|
-
/* @__PURE__ */
|
|
17644
|
-
/* @__PURE__ */
|
|
17638
|
+
isLoading ? /* @__PURE__ */ jsx85(Skeleton34, { containerClassName: service_user_module_css_default4.flex1 }) : /* @__PURE__ */ jsxs67(Flex67, { justify: "between", children: [
|
|
17639
|
+
/* @__PURE__ */ jsx85(Text55, { size: "large", children: name }),
|
|
17640
|
+
/* @__PURE__ */ jsx85(
|
|
17645
17641
|
Button48,
|
|
17646
17642
|
{
|
|
17647
17643
|
variant: "outline",
|
|
@@ -17652,7 +17648,7 @@ var Headings = ({
|
|
|
17652
17648
|
}
|
|
17653
17649
|
)
|
|
17654
17650
|
] }),
|
|
17655
|
-
isLoading ? /* @__PURE__ */
|
|
17651
|
+
isLoading ? /* @__PURE__ */ jsx85(Skeleton34, { containerClassName: service_user_module_css_default4.flex1 }) : /* @__PURE__ */ jsxs67(Text55, { size: "regular", variant: "secondary", children: [
|
|
17656
17652
|
"Create API key for accessing ",
|
|
17657
17653
|
t.appName(),
|
|
17658
17654
|
" and its features"
|
|
@@ -17679,12 +17675,12 @@ var ServiceUserTokenItem = ({
|
|
|
17679
17675
|
});
|
|
17680
17676
|
}
|
|
17681
17677
|
return /* @__PURE__ */ jsxs67(Flex67, { className: service_user_module_css_default4.serviceKeyItem, direction: "column", gap: 3, children: [
|
|
17682
|
-
/* @__PURE__ */
|
|
17683
|
-
/* @__PURE__ */
|
|
17684
|
-
/* @__PURE__ */
|
|
17678
|
+
/* @__PURE__ */ jsx85(Flex67, { justify: "between", style: { width: "100%" }, align: "center", children: isLoading ? /* @__PURE__ */ jsxs67(Fragment11, { children: [
|
|
17679
|
+
/* @__PURE__ */ jsx85(Skeleton34, { containerClassName: service_user_module_css_default4.flex1, width: "300px" }),
|
|
17680
|
+
/* @__PURE__ */ jsx85(Skeleton34, { containerClassName: service_user_module_css_default4.serviceKeyItemLoaderBtn })
|
|
17685
17681
|
] }) : /* @__PURE__ */ jsxs67(Fragment11, { children: [
|
|
17686
|
-
/* @__PURE__ */
|
|
17687
|
-
/* @__PURE__ */
|
|
17682
|
+
/* @__PURE__ */ jsx85(Text55, { size: 3, weight: "medium", className: service_user_module_css_default4.serviceKeyItemTitle, children: token == null ? void 0 : token.title }),
|
|
17683
|
+
/* @__PURE__ */ jsx85(
|
|
17688
17684
|
Button48,
|
|
17689
17685
|
{
|
|
17690
17686
|
variant: "outline",
|
|
@@ -17697,10 +17693,10 @@ var ServiceUserTokenItem = ({
|
|
|
17697
17693
|
)
|
|
17698
17694
|
] }) }),
|
|
17699
17695
|
(token == null ? void 0 : token.token) ? /* @__PURE__ */ jsxs67(Flex67, { gap: 3, direction: "column", children: [
|
|
17700
|
-
/* @__PURE__ */
|
|
17696
|
+
/* @__PURE__ */ jsx85(Text55, { size: "small", variant: "secondary", weight: "regular", children: "Note: Please save your key securely, it cannot be recovered after leaving this page" }),
|
|
17701
17697
|
/* @__PURE__ */ jsxs67(Flex67, { className: service_user_module_css_default4.tokenBox, justify: "between", gap: 5, children: [
|
|
17702
|
-
/* @__PURE__ */
|
|
17703
|
-
isCopied ? /* @__PURE__ */
|
|
17698
|
+
/* @__PURE__ */ jsx85(Text55, { size: "small", weight: "medium", className: service_user_module_css_default4.tokenText, children: encodedToken }),
|
|
17699
|
+
isCopied ? /* @__PURE__ */ jsx85(CheckCircledIcon, { color: "var(--rs-color-foreground-success-primary)" }) : /* @__PURE__ */ jsx85(
|
|
17704
17700
|
CopyIcon,
|
|
17705
17701
|
{
|
|
17706
17702
|
onClick: onCopy,
|
|
@@ -17722,7 +17718,7 @@ var SerivceUserTokenList = ({
|
|
|
17722
17718
|
(_5, i) => ({ id: i.toString() })
|
|
17723
17719
|
)
|
|
17724
17720
|
] : tokens;
|
|
17725
|
-
return /* @__PURE__ */
|
|
17721
|
+
return /* @__PURE__ */ jsx85(Flex67, { direction: "column", className: service_user_module_css_default4.serviceKeyList, children: tokenList.map((token) => /* @__PURE__ */ jsx85(
|
|
17726
17722
|
ServiceUserTokenItem,
|
|
17727
17723
|
{
|
|
17728
17724
|
token,
|
|
@@ -17739,7 +17735,7 @@ function ServiceUserDetailPage({
|
|
|
17739
17735
|
}) {
|
|
17740
17736
|
const { activeOrganization } = useFrontier();
|
|
17741
17737
|
const orgId = (activeOrganization == null ? void 0 : activeOrganization.id) || "";
|
|
17742
|
-
const { data: serviceUser, isLoading: isServiceUserLoading } =
|
|
17738
|
+
const { data: serviceUser, isLoading: isServiceUserLoading } = useQuery29(
|
|
17743
17739
|
FrontierServiceQueries46.getServiceUser,
|
|
17744
17740
|
create52(GetServiceUserRequestSchema, {
|
|
17745
17741
|
id: serviceUserId,
|
|
@@ -17777,8 +17773,8 @@ function ServiceUserDetailPage({
|
|
|
17777
17773
|
};
|
|
17778
17774
|
return /* @__PURE__ */ jsxs67(Flex67, { direction: "column", style: { width: "100%" }, children: [
|
|
17779
17775
|
/* @__PURE__ */ jsxs67(Flex67, { direction: "column", className: styles_module_css_default16.container, children: [
|
|
17780
|
-
/* @__PURE__ */
|
|
17781
|
-
/* @__PURE__ */
|
|
17776
|
+
/* @__PURE__ */ jsx85(Flex67, { direction: "row", justify: "between", align: "center", className: styles_module_css_default16.header, children: /* @__PURE__ */ jsxs67(Flex67, { gap: 3, align: "center", children: [
|
|
17777
|
+
/* @__PURE__ */ jsx85(
|
|
17782
17778
|
Image29,
|
|
17783
17779
|
{
|
|
17784
17780
|
alt: "back-icon",
|
|
@@ -17788,7 +17784,7 @@ function ServiceUserDetailPage({
|
|
|
17788
17784
|
"data-test-id": "frontier-sdk-api-keys-page-back-link"
|
|
17789
17785
|
}
|
|
17790
17786
|
),
|
|
17791
|
-
/* @__PURE__ */
|
|
17787
|
+
/* @__PURE__ */ jsx85(
|
|
17792
17788
|
PageHeader,
|
|
17793
17789
|
{
|
|
17794
17790
|
title: "API"
|
|
@@ -17796,7 +17792,7 @@ function ServiceUserDetailPage({
|
|
|
17796
17792
|
)
|
|
17797
17793
|
] }) }),
|
|
17798
17794
|
/* @__PURE__ */ jsxs67(Flex67, { direction: "column", gap: 9, children: [
|
|
17799
|
-
/* @__PURE__ */
|
|
17795
|
+
/* @__PURE__ */ jsx85(
|
|
17800
17796
|
Headings,
|
|
17801
17797
|
{
|
|
17802
17798
|
isLoading,
|
|
@@ -17804,8 +17800,8 @@ function ServiceUserDetailPage({
|
|
|
17804
17800
|
onManageAccessClick: () => setShowProjectsDialog(true)
|
|
17805
17801
|
}
|
|
17806
17802
|
),
|
|
17807
|
-
/* @__PURE__ */
|
|
17808
|
-
/* @__PURE__ */
|
|
17803
|
+
/* @__PURE__ */ jsx85(AddServiceUserToken, { serviceUserId, onAddToken }),
|
|
17804
|
+
/* @__PURE__ */ jsx85(
|
|
17809
17805
|
SerivceUserTokenList,
|
|
17810
17806
|
{
|
|
17811
17807
|
isLoading,
|
|
@@ -17815,7 +17811,7 @@ function ServiceUserDetailPage({
|
|
|
17815
17811
|
)
|
|
17816
17812
|
] })
|
|
17817
17813
|
] }),
|
|
17818
|
-
/* @__PURE__ */
|
|
17814
|
+
/* @__PURE__ */ jsx85(
|
|
17819
17815
|
ManageServiceUserProjectsDialog,
|
|
17820
17816
|
{
|
|
17821
17817
|
open: showProjectsDialog,
|
|
@@ -17823,7 +17819,7 @@ function ServiceUserDetailPage({
|
|
|
17823
17819
|
serviceUserId
|
|
17824
17820
|
}
|
|
17825
17821
|
),
|
|
17826
|
-
/* @__PURE__ */
|
|
17822
|
+
/* @__PURE__ */ jsx85(
|
|
17827
17823
|
DeleteServiceUserKeyDialog,
|
|
17828
17824
|
{
|
|
17829
17825
|
open: deleteKeyState.open,
|
|
@@ -17836,10 +17832,10 @@ function ServiceUserDetailPage({
|
|
|
17836
17832
|
}
|
|
17837
17833
|
|
|
17838
17834
|
// react/components/organization/api-keys/index.tsx
|
|
17839
|
-
import { jsx as
|
|
17835
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
17840
17836
|
function APIKeys() {
|
|
17841
17837
|
const navigate = useNavigate11({ from: "/api-keys" });
|
|
17842
|
-
return /* @__PURE__ */
|
|
17838
|
+
return /* @__PURE__ */ jsx86(
|
|
17843
17839
|
ApiKeysListPage,
|
|
17844
17840
|
{
|
|
17845
17841
|
onServiceAccountClick: (id) => navigate({
|
|
@@ -17852,13 +17848,13 @@ function APIKeys() {
|
|
|
17852
17848
|
|
|
17853
17849
|
// react/components/organization/api-keys/service-user/index.tsx
|
|
17854
17850
|
import { useNavigate as useNavigate12, useParams as useParams5, useLocation } from "@tanstack/react-router";
|
|
17855
|
-
import { jsx as
|
|
17851
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
17856
17852
|
function ServiceUserPage() {
|
|
17857
17853
|
var _a;
|
|
17858
17854
|
const { id } = useParams5({ from: "/api-keys/$id" });
|
|
17859
17855
|
const navigate = useNavigate12({ from: "/api-keys/$id" });
|
|
17860
17856
|
const location = useLocation();
|
|
17861
|
-
return /* @__PURE__ */
|
|
17857
|
+
return /* @__PURE__ */ jsx87(
|
|
17862
17858
|
ServiceUserDetailPage,
|
|
17863
17859
|
{
|
|
17864
17860
|
serviceUserId: id,
|
|
@@ -17880,8 +17876,8 @@ import {
|
|
|
17880
17876
|
} from "@raystack/apsara";
|
|
17881
17877
|
|
|
17882
17878
|
// react/hooks/useSessions.ts
|
|
17883
|
-
import { useMemo as
|
|
17884
|
-
import { useQuery as
|
|
17879
|
+
import { useMemo as useMemo40 } from "react";
|
|
17880
|
+
import { useQuery as useQuery30, useMutation as useMutation30, createConnectQueryKey as createConnectQueryKey14, useTransport as useTransport13 } from "@connectrpc/connect-query";
|
|
17885
17881
|
import { useQueryClient as useQueryClient14 } from "@tanstack/react-query";
|
|
17886
17882
|
import { FrontierServiceQueries as FrontierServiceQueries47 } from "@raystack/proton/frontier";
|
|
17887
17883
|
import { toast as toast45 } from "@raystack/apsara";
|
|
@@ -17904,7 +17900,7 @@ var useSessions = () => {
|
|
|
17904
17900
|
data: sessionsData,
|
|
17905
17901
|
isLoading,
|
|
17906
17902
|
error
|
|
17907
|
-
} =
|
|
17903
|
+
} = useQuery30(
|
|
17908
17904
|
FrontierServiceQueries47.listSessions,
|
|
17909
17905
|
{}
|
|
17910
17906
|
);
|
|
@@ -17912,7 +17908,7 @@ var useSessions = () => {
|
|
|
17912
17908
|
const d = timestampToDayjs(updatedAt);
|
|
17913
17909
|
return d ? d.fromNow() : "Unknown";
|
|
17914
17910
|
};
|
|
17915
|
-
const sessions =
|
|
17911
|
+
const sessions = useMemo40(
|
|
17916
17912
|
() => ((sessionsData == null ? void 0 : sessionsData.sessions) || []).map((session) => {
|
|
17917
17913
|
var _a, _b, _c, _d;
|
|
17918
17914
|
return {
|
|
@@ -17968,8 +17964,8 @@ var useSessions = () => {
|
|
|
17968
17964
|
};
|
|
17969
17965
|
};
|
|
17970
17966
|
|
|
17971
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17972
|
-
var digest73 = "
|
|
17967
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-ENZiywSTugYH/sdk/react/components/organization/styles.module.css.js
|
|
17968
|
+
var digest73 = "dcca626730c52ea97038ed2948f55f33f956ff3fd11af3ee0c535279e80b1e04";
|
|
17973
17969
|
var css73 = `._header_11okm_1 {
|
|
17974
17970
|
margin-bottom: var(--rs-space-9);
|
|
17975
17971
|
}
|
|
@@ -18015,8 +18011,8 @@ var styles_module_css_default17 = { "header": "_header_11okm_1", "container": "_
|
|
|
18015
18011
|
// react/views/sessions/session-skeleton.tsx
|
|
18016
18012
|
import { Flex as Flex68, Skeleton as Skeleton35 } from "@raystack/apsara";
|
|
18017
18013
|
|
|
18018
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18019
|
-
var digest74 = "
|
|
18014
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-ro2OyTpgbdcV/sdk/react/views/sessions/sessions.module.css.js
|
|
18015
|
+
var digest74 = "8cfb98c340e6e4be1ffda999affbcc3ad291830a10674aa8592eedfb29c293b0";
|
|
18020
18016
|
var css74 = `._container_1rauv_1 {
|
|
18021
18017
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
18022
18018
|
max-height: 80vh;
|
|
@@ -18077,19 +18073,19 @@ var css74 = `._container_1rauv_1 {
|
|
|
18077
18073
|
var sessions_module_css_default = { "container": "_container_1rauv_1", "sessionsList": "_sessionsList_1rauv_7", "sessionItem": "_sessionItem_1rauv_12", "revokeSessionConfirmHeader": "_revokeSessionConfirmHeader_1rauv_18", "revokeSessionConfirmBody": "_revokeSessionConfirmBody_1rauv_22", "revokeSessionFinalConfirmBody": "_revokeSessionFinalConfirmBody_1rauv_27", "listItem": "_listItem_1rauv_32", "listRoot": "_listRoot_1rauv_42" };
|
|
18078
18074
|
|
|
18079
18075
|
// react/views/sessions/session-skeleton.tsx
|
|
18080
|
-
import { Fragment as Fragment12, jsx as
|
|
18076
|
+
import { Fragment as Fragment12, jsx as jsx88, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
18081
18077
|
var SessionSkeleton = ({ count = 3 }) => {
|
|
18082
|
-
return /* @__PURE__ */
|
|
18078
|
+
return /* @__PURE__ */ jsx88(Fragment12, { children: Array.from({ length: count }).map((_5, index) => /* @__PURE__ */ jsxs68(Flex68, { justify: "between", align: "center", className: sessions_module_css_default.sessionItem, children: [
|
|
18083
18079
|
/* @__PURE__ */ jsxs68(Flex68, { direction: "column", gap: 3, children: [
|
|
18084
|
-
/* @__PURE__ */
|
|
18085
|
-
/* @__PURE__ */
|
|
18080
|
+
/* @__PURE__ */ jsx88(Skeleton35, { height: "18px", width: "200px" }),
|
|
18081
|
+
/* @__PURE__ */ jsx88(Flex68, { gap: 2, align: "center", children: /* @__PURE__ */ jsx88(Skeleton35, { height: "16px", width: "120px" }) })
|
|
18086
18082
|
] }),
|
|
18087
|
-
/* @__PURE__ */
|
|
18083
|
+
/* @__PURE__ */ jsx88(Skeleton35, { height: "32px", width: "64px", borderRadius: "var(--rs-radius-2)" })
|
|
18088
18084
|
] }, index)) });
|
|
18089
18085
|
};
|
|
18090
18086
|
|
|
18091
18087
|
// react/views/sessions/revoke-session-dialog.tsx
|
|
18092
|
-
import { useState as useState34, useMemo as
|
|
18088
|
+
import { useState as useState34, useMemo as useMemo41 } from "react";
|
|
18093
18089
|
import {
|
|
18094
18090
|
Button as Button50,
|
|
18095
18091
|
Text as Text57,
|
|
@@ -18110,8 +18106,8 @@ import {
|
|
|
18110
18106
|
Text as Text56
|
|
18111
18107
|
} from "@raystack/apsara";
|
|
18112
18108
|
|
|
18113
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18114
|
-
var digest75 = "
|
|
18109
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-SH2HObNJVSKD/sdk/react/views/sessions/sessions.module.css.js
|
|
18110
|
+
var digest75 = "6dc646e821d4201e93ba711aca0d3a5ed9a4eca1afd0709f2a6a9ec523699dc5";
|
|
18115
18111
|
var css75 = `._container_1rauv_1 {
|
|
18116
18112
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
18117
18113
|
max-height: 80vh;
|
|
@@ -18172,7 +18168,7 @@ var css75 = `._container_1rauv_1 {
|
|
|
18172
18168
|
var sessions_module_css_default2 = { "container": "_container_1rauv_1", "sessionsList": "_sessionsList_1rauv_7", "sessionItem": "_sessionItem_1rauv_12", "revokeSessionConfirmHeader": "_revokeSessionConfirmHeader_1rauv_18", "revokeSessionConfirmBody": "_revokeSessionConfirmBody_1rauv_22", "revokeSessionFinalConfirmBody": "_revokeSessionFinalConfirmBody_1rauv_27", "listItem": "_listItem_1rauv_32", "listRoot": "_listRoot_1rauv_42" };
|
|
18173
18169
|
|
|
18174
18170
|
// react/views/sessions/revoke-session-final-confirm.tsx
|
|
18175
|
-
import { jsx as
|
|
18171
|
+
import { jsx as jsx89, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
18176
18172
|
var getErrorMessage2 = (error) => {
|
|
18177
18173
|
if (error && typeof error === "object" && "status" in error && error.status === 500) {
|
|
18178
18174
|
return "Something went wrong";
|
|
@@ -18196,18 +18192,18 @@ var RevokeSessionFinalConfirm = ({
|
|
|
18196
18192
|
});
|
|
18197
18193
|
}
|
|
18198
18194
|
});
|
|
18199
|
-
return /* @__PURE__ */
|
|
18195
|
+
return /* @__PURE__ */ jsx89(Dialog21, { open: isOpen, onOpenChange, children: /* @__PURE__ */ jsxs69(
|
|
18200
18196
|
Dialog21.Content,
|
|
18201
18197
|
{
|
|
18202
18198
|
style: { padding: 0, maxWidth: "400px", width: "100%" },
|
|
18203
18199
|
children: [
|
|
18204
18200
|
/* @__PURE__ */ jsxs69(Dialog21.Header, { className: sessions_module_css_default2.revokeSessionConfirmHeader, children: [
|
|
18205
|
-
/* @__PURE__ */
|
|
18206
|
-
/* @__PURE__ */
|
|
18201
|
+
/* @__PURE__ */ jsx89(Dialog21.Title, { children: "Revoke" }),
|
|
18202
|
+
/* @__PURE__ */ jsx89(Dialog21.CloseButton, { "data-test-id": "frontier-sdk-close-final-revoke-dialog" })
|
|
18207
18203
|
] }),
|
|
18208
|
-
/* @__PURE__ */
|
|
18209
|
-
/* @__PURE__ */
|
|
18210
|
-
/* @__PURE__ */
|
|
18204
|
+
/* @__PURE__ */ jsx89(Dialog21.Body, { className: sessions_module_css_default2.revokeSessionFinalConfirmBody, children: /* @__PURE__ */ jsx89(Flex69, { direction: "column", gap: 4, children: /* @__PURE__ */ jsx89(Text56, { size: "small", variant: "secondary", children: "Are you sure you want to revoke this session? This action cannot be undone." }) }) }),
|
|
18205
|
+
/* @__PURE__ */ jsx89(Dialog21.Footer, { children: /* @__PURE__ */ jsxs69(Flex69, { justify: "end", gap: 5, children: [
|
|
18206
|
+
/* @__PURE__ */ jsx89(
|
|
18211
18207
|
Button49,
|
|
18212
18208
|
{
|
|
18213
18209
|
variant: "outline",
|
|
@@ -18218,7 +18214,7 @@ var RevokeSessionFinalConfirm = ({
|
|
|
18218
18214
|
children: "Cancel"
|
|
18219
18215
|
}
|
|
18220
18216
|
),
|
|
18221
|
-
/* @__PURE__ */
|
|
18217
|
+
/* @__PURE__ */ jsx89(
|
|
18222
18218
|
Button49,
|
|
18223
18219
|
{
|
|
18224
18220
|
variant: "solid",
|
|
@@ -18237,8 +18233,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
18237
18233
|
) });
|
|
18238
18234
|
};
|
|
18239
18235
|
|
|
18240
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18241
|
-
var digest76 = "
|
|
18236
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-MtZ2xjlUsR5i/sdk/react/views/sessions/sessions.module.css.js
|
|
18237
|
+
var digest76 = "42a19dbed522b1763ecdd8b75e6d61abb78acef602defc1947bedd5c0e088c9e";
|
|
18242
18238
|
var css76 = `._container_1rauv_1 {
|
|
18243
18239
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
18244
18240
|
max-height: 80vh;
|
|
@@ -18299,7 +18295,7 @@ var css76 = `._container_1rauv_1 {
|
|
|
18299
18295
|
var sessions_module_css_default3 = { "container": "_container_1rauv_1", "sessionsList": "_sessionsList_1rauv_7", "sessionItem": "_sessionItem_1rauv_12", "revokeSessionConfirmHeader": "_revokeSessionConfirmHeader_1rauv_18", "revokeSessionConfirmBody": "_revokeSessionConfirmBody_1rauv_22", "revokeSessionFinalConfirmBody": "_revokeSessionFinalConfirmBody_1rauv_27", "listItem": "_listItem_1rauv_32", "listRoot": "_listRoot_1rauv_42" };
|
|
18300
18296
|
|
|
18301
18297
|
// react/views/sessions/revoke-session-dialog.tsx
|
|
18302
|
-
import { Fragment as Fragment13, jsx as
|
|
18298
|
+
import { Fragment as Fragment13, jsx as jsx90, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18303
18299
|
var RevokeSessionDialog = ({
|
|
18304
18300
|
open,
|
|
18305
18301
|
onOpenChange,
|
|
@@ -18323,7 +18319,7 @@ var RevokeSessionDialog = ({
|
|
|
18323
18319
|
}
|
|
18324
18320
|
}
|
|
18325
18321
|
});
|
|
18326
|
-
const sessionData =
|
|
18322
|
+
const sessionData = useMemo41(() => {
|
|
18327
18323
|
if (!sessionId || sessions.length === 0) {
|
|
18328
18324
|
return null;
|
|
18329
18325
|
}
|
|
@@ -18348,22 +18344,22 @@ var RevokeSessionDialog = ({
|
|
|
18348
18344
|
handleClose();
|
|
18349
18345
|
};
|
|
18350
18346
|
return /* @__PURE__ */ jsxs70(Fragment13, { children: [
|
|
18351
|
-
sessionData ? /* @__PURE__ */
|
|
18347
|
+
sessionData ? /* @__PURE__ */ jsx90(Dialog22, { open, onOpenChange, children: /* @__PURE__ */ jsxs70(
|
|
18352
18348
|
Dialog22.Content,
|
|
18353
18349
|
{
|
|
18354
18350
|
style: { padding: 0, maxWidth: "400px", width: "100%" },
|
|
18355
18351
|
children: [
|
|
18356
|
-
/* @__PURE__ */
|
|
18352
|
+
/* @__PURE__ */ jsx90(Dialog22.Header, { className: sessions_module_css_default3.revokeSessionConfirmHeader, children: /* @__PURE__ */ jsxs70(Flex70, { justify: "between", align: "center", width: "full", children: [
|
|
18357
18353
|
/* @__PURE__ */ jsxs70(Text57, { size: "regular", children: [
|
|
18358
18354
|
sessionData.browser,
|
|
18359
18355
|
" on ",
|
|
18360
18356
|
sessionData.operatingSystem
|
|
18361
18357
|
] }),
|
|
18362
|
-
/* @__PURE__ */
|
|
18358
|
+
/* @__PURE__ */ jsx90(Dialog22.CloseButton, { "data-test-id": "frontier-sdk-close-revoke-session-dialog" })
|
|
18363
18359
|
] }) }),
|
|
18364
|
-
/* @__PURE__ */
|
|
18360
|
+
/* @__PURE__ */ jsx90(Dialog22.Body, { className: sessions_module_css_default3.revokeSessionConfirmBody, children: /* @__PURE__ */ jsxs70(List, { className: sessions_module_css_default3.listRoot, children: [
|
|
18365
18361
|
/* @__PURE__ */ jsxs70(List.Item, { className: sessions_module_css_default3.listItem, children: [
|
|
18366
|
-
/* @__PURE__ */
|
|
18362
|
+
/* @__PURE__ */ jsx90(List.Label, { minWidth: "120px", children: "Device" }),
|
|
18367
18363
|
/* @__PURE__ */ jsxs70(List.Value, { children: [
|
|
18368
18364
|
sessionData.browser,
|
|
18369
18365
|
" on ",
|
|
@@ -18371,20 +18367,20 @@ var RevokeSessionDialog = ({
|
|
|
18371
18367
|
] })
|
|
18372
18368
|
] }),
|
|
18373
18369
|
/* @__PURE__ */ jsxs70(List.Item, { className: sessions_module_css_default3.listItem, children: [
|
|
18374
|
-
/* @__PURE__ */
|
|
18375
|
-
/* @__PURE__ */
|
|
18370
|
+
/* @__PURE__ */ jsx90(List.Label, { minWidth: "120px", children: "IP Address" }),
|
|
18371
|
+
/* @__PURE__ */ jsx90(List.Value, { children: sessionData.ipAddress })
|
|
18376
18372
|
] }),
|
|
18377
18373
|
/* @__PURE__ */ jsxs70(List.Item, { className: sessions_module_css_default3.listItem, children: [
|
|
18378
|
-
/* @__PURE__ */
|
|
18379
|
-
/* @__PURE__ */
|
|
18374
|
+
/* @__PURE__ */ jsx90(List.Label, { minWidth: "120px", children: "Last Location" }),
|
|
18375
|
+
/* @__PURE__ */ jsx90(List.Value, { children: sessionData.location })
|
|
18380
18376
|
] }),
|
|
18381
18377
|
/* @__PURE__ */ jsxs70(List.Item, { className: sessions_module_css_default3.listItem, children: [
|
|
18382
|
-
/* @__PURE__ */
|
|
18383
|
-
/* @__PURE__ */
|
|
18378
|
+
/* @__PURE__ */ jsx90(List.Label, { minWidth: "120px", children: "Last Active" }),
|
|
18379
|
+
/* @__PURE__ */ jsx90(List.Value, { children: sessionData.lastActive })
|
|
18384
18380
|
] })
|
|
18385
18381
|
] }) }),
|
|
18386
|
-
/* @__PURE__ */
|
|
18387
|
-
/* @__PURE__ */
|
|
18382
|
+
/* @__PURE__ */ jsx90(Dialog22.Footer, { children: /* @__PURE__ */ jsxs70(Flex70, { justify: "end", gap: 5, children: [
|
|
18383
|
+
/* @__PURE__ */ jsx90(
|
|
18388
18384
|
Button50,
|
|
18389
18385
|
{
|
|
18390
18386
|
variant: "outline",
|
|
@@ -18394,7 +18390,7 @@ var RevokeSessionDialog = ({
|
|
|
18394
18390
|
children: "Cancel"
|
|
18395
18391
|
}
|
|
18396
18392
|
),
|
|
18397
|
-
/* @__PURE__ */
|
|
18393
|
+
/* @__PURE__ */ jsx90(
|
|
18398
18394
|
Button50,
|
|
18399
18395
|
{
|
|
18400
18396
|
variant: "solid",
|
|
@@ -18407,7 +18403,7 @@ var RevokeSessionDialog = ({
|
|
|
18407
18403
|
] }) })
|
|
18408
18404
|
]
|
|
18409
18405
|
}
|
|
18410
|
-
) }) : open ? /* @__PURE__ */
|
|
18406
|
+
) }) : open ? /* @__PURE__ */ jsx90(Dialog22, { open: true, onOpenChange, children: /* @__PURE__ */ jsx90(Dialog22.Content, { style: { padding: 0, maxWidth: "400px", width: "100%" }, children: /* @__PURE__ */ jsx90(
|
|
18411
18407
|
Skeleton36,
|
|
18412
18408
|
{
|
|
18413
18409
|
height: "20px",
|
|
@@ -18415,7 +18411,7 @@ var RevokeSessionDialog = ({
|
|
|
18415
18411
|
count: 4
|
|
18416
18412
|
}
|
|
18417
18413
|
) }) }) : null,
|
|
18418
|
-
/* @__PURE__ */
|
|
18414
|
+
/* @__PURE__ */ jsx90(
|
|
18419
18415
|
RevokeSessionFinalConfirm,
|
|
18420
18416
|
{
|
|
18421
18417
|
isOpen: isFinalConfirmOpen,
|
|
@@ -18428,8 +18424,8 @@ var RevokeSessionDialog = ({
|
|
|
18428
18424
|
] });
|
|
18429
18425
|
};
|
|
18430
18426
|
|
|
18431
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18432
|
-
var digest77 = "
|
|
18427
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-rujZuctzI8j5/sdk/react/views/sessions/sessions.module.css.js
|
|
18428
|
+
var digest77 = "e20f99e35ecdfe611255e2a812d2d9e34560da2edf31d2621e598510a4af9dde";
|
|
18433
18429
|
var css77 = `._container_1rauv_1 {
|
|
18434
18430
|
padding: var(--rs-space-9) var(--rs-space-11);
|
|
18435
18431
|
max-height: 80vh;
|
|
@@ -18490,7 +18486,7 @@ var css77 = `._container_1rauv_1 {
|
|
|
18490
18486
|
var sessions_module_css_default4 = { "container": "_container_1rauv_1", "sessionsList": "_sessionsList_1rauv_7", "sessionItem": "_sessionItem_1rauv_12", "revokeSessionConfirmHeader": "_revokeSessionConfirmHeader_1rauv_18", "revokeSessionConfirmBody": "_revokeSessionConfirmBody_1rauv_22", "revokeSessionFinalConfirmBody": "_revokeSessionFinalConfirmBody_1rauv_27", "listItem": "_listItem_1rauv_32", "listRoot": "_listRoot_1rauv_42" };
|
|
18491
18487
|
|
|
18492
18488
|
// react/views/sessions/sessions-page.tsx
|
|
18493
|
-
import { jsx as
|
|
18489
|
+
import { jsx as jsx91, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18494
18490
|
function SessionsPage({ onLogout }) {
|
|
18495
18491
|
const { sessions, isLoading, error } = useSessions();
|
|
18496
18492
|
const [revokeState, setRevokeState] = useState35({
|
|
@@ -18508,39 +18504,39 @@ function SessionsPage({ onLogout }) {
|
|
|
18508
18504
|
setRevokeState({ open: true, sessionId });
|
|
18509
18505
|
};
|
|
18510
18506
|
if (isLoading) {
|
|
18511
|
-
return /* @__PURE__ */
|
|
18512
|
-
/* @__PURE__ */
|
|
18507
|
+
return /* @__PURE__ */ jsx91(Flex71, { direction: "column", width: "full", children: /* @__PURE__ */ jsxs71(Flex71, { direction: "column", className: sessions_module_css_default4.container, children: [
|
|
18508
|
+
/* @__PURE__ */ jsx91(Flex71, { direction: "row", justify: "between", align: "center", className: styles_module_css_default17.header, children: /* @__PURE__ */ jsx91(
|
|
18513
18509
|
PageHeader,
|
|
18514
18510
|
{
|
|
18515
18511
|
title: "Sessions",
|
|
18516
18512
|
description: "Devices logged into this account."
|
|
18517
18513
|
}
|
|
18518
18514
|
) }),
|
|
18519
|
-
/* @__PURE__ */
|
|
18515
|
+
/* @__PURE__ */ jsx91(Flex71, { direction: "column", className: sessions_module_css_default4.sessionsList, children: /* @__PURE__ */ jsx91(SessionSkeleton, { count: 3 }) })
|
|
18520
18516
|
] }) });
|
|
18521
18517
|
}
|
|
18522
18518
|
if (error) {
|
|
18523
|
-
return /* @__PURE__ */
|
|
18524
|
-
/* @__PURE__ */
|
|
18519
|
+
return /* @__PURE__ */ jsx91(Flex71, { direction: "column", width: "full", children: /* @__PURE__ */ jsxs71(Flex71, { direction: "column", className: sessions_module_css_default4.container, children: [
|
|
18520
|
+
/* @__PURE__ */ jsx91(Flex71, { direction: "row", justify: "between", align: "center", className: styles_module_css_default17.header, children: /* @__PURE__ */ jsx91(
|
|
18525
18521
|
PageHeader,
|
|
18526
18522
|
{
|
|
18527
18523
|
title: "Sessions",
|
|
18528
18524
|
description: "Devices logged into this account."
|
|
18529
18525
|
}
|
|
18530
18526
|
) }),
|
|
18531
|
-
/* @__PURE__ */
|
|
18527
|
+
/* @__PURE__ */ jsx91(Flex71, { justify: "center", align: "center", style: { padding: "2rem" }, children: /* @__PURE__ */ jsx91(Text58, { variant: "danger", size: "regular", children: error }) })
|
|
18532
18528
|
] }) });
|
|
18533
18529
|
}
|
|
18534
18530
|
return /* @__PURE__ */ jsxs71(Flex71, { direction: "column", width: "full", children: [
|
|
18535
18531
|
/* @__PURE__ */ jsxs71(Flex71, { direction: "column", className: sessions_module_css_default4.container, children: [
|
|
18536
|
-
/* @__PURE__ */
|
|
18532
|
+
/* @__PURE__ */ jsx91(Flex71, { direction: "row", justify: "between", align: "center", className: styles_module_css_default17.header, children: /* @__PURE__ */ jsx91(
|
|
18537
18533
|
PageHeader,
|
|
18538
18534
|
{
|
|
18539
18535
|
title: "Sessions",
|
|
18540
18536
|
description: "Devices logged into this account."
|
|
18541
18537
|
}
|
|
18542
18538
|
) }),
|
|
18543
|
-
/* @__PURE__ */
|
|
18539
|
+
/* @__PURE__ */ jsx91(Flex71, { direction: "column", className: sessions_module_css_default4.sessionsList, children: sessions.length === 0 ? /* @__PURE__ */ jsx91(Flex71, { justify: "center", align: "center", style: { padding: "2rem" }, children: /* @__PURE__ */ jsx91(Text58, { variant: "tertiary", size: "regular", children: "No active sessions found." }) }) : sessions.map((session) => /* @__PURE__ */ jsxs71(Flex71, { justify: "between", align: "center", className: sessions_module_css_default4.sessionItem, children: [
|
|
18544
18540
|
/* @__PURE__ */ jsxs71(Flex71, { direction: "column", gap: 3, children: [
|
|
18545
18541
|
/* @__PURE__ */ jsxs71(Text58, { weight: "medium", size: "regular", children: [
|
|
18546
18542
|
session.browser,
|
|
@@ -18548,15 +18544,15 @@ function SessionsPage({ onLogout }) {
|
|
|
18548
18544
|
session.operatingSystem
|
|
18549
18545
|
] }),
|
|
18550
18546
|
/* @__PURE__ */ jsxs71(Flex71, { gap: 2, align: "center", children: [
|
|
18551
|
-
/* @__PURE__ */
|
|
18552
|
-
/* @__PURE__ */
|
|
18553
|
-
session.isCurrent ? /* @__PURE__ */
|
|
18547
|
+
/* @__PURE__ */ jsx91(Text58, { variant: "tertiary", size: "small", children: session.location }),
|
|
18548
|
+
/* @__PURE__ */ jsx91(Text58, { variant: "tertiary", size: "small", children: "\u2022" }),
|
|
18549
|
+
session.isCurrent ? /* @__PURE__ */ jsx91(Text58, { variant: "success", size: "small", children: "Current session" }) : /* @__PURE__ */ jsxs71(Text58, { variant: "tertiary", size: "small", children: [
|
|
18554
18550
|
"Last active ",
|
|
18555
18551
|
session.lastActive
|
|
18556
18552
|
] })
|
|
18557
18553
|
] })
|
|
18558
18554
|
] }),
|
|
18559
|
-
/* @__PURE__ */
|
|
18555
|
+
/* @__PURE__ */ jsx91(
|
|
18560
18556
|
Button51,
|
|
18561
18557
|
{
|
|
18562
18558
|
variant: "text",
|
|
@@ -18568,7 +18564,7 @@ function SessionsPage({ onLogout }) {
|
|
|
18568
18564
|
)
|
|
18569
18565
|
] }, session.id)) })
|
|
18570
18566
|
] }),
|
|
18571
|
-
/* @__PURE__ */
|
|
18567
|
+
/* @__PURE__ */ jsx91(
|
|
18572
18568
|
RevokeSessionDialog,
|
|
18573
18569
|
{
|
|
18574
18570
|
open: revokeState.open,
|
|
@@ -18581,14 +18577,14 @@ function SessionsPage({ onLogout }) {
|
|
|
18581
18577
|
}
|
|
18582
18578
|
|
|
18583
18579
|
// react/components/organization/sessions/index.tsx
|
|
18584
|
-
import { jsx as
|
|
18580
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
18585
18581
|
var SessionsPage2 = () => {
|
|
18586
18582
|
const { onLogout } = useRouteContext2({ from: "__root__" });
|
|
18587
|
-
return /* @__PURE__ */
|
|
18583
|
+
return /* @__PURE__ */ jsx92(SessionsPage, { onLogout });
|
|
18588
18584
|
};
|
|
18589
18585
|
|
|
18590
18586
|
// react/components/organization/routes.tsx
|
|
18591
|
-
import { Fragment as Fragment14, jsx as
|
|
18587
|
+
import { Fragment as Fragment14, jsx as jsx93, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
18592
18588
|
function getCustomRoutes2(customScreens = []) {
|
|
18593
18589
|
return (customScreens == null ? void 0 : customScreens.reduce(
|
|
18594
18590
|
(acc, { name, category, path }) => {
|
|
@@ -18627,10 +18623,10 @@ var RootRouter = () => {
|
|
|
18627
18623
|
}, [error]);
|
|
18628
18624
|
const visibleToasts = hideToast ? 0 : 1;
|
|
18629
18625
|
return /* @__PURE__ */ jsxs72(Fragment14, { children: [
|
|
18630
|
-
/* @__PURE__ */
|
|
18626
|
+
/* @__PURE__ */ jsx93(ToastContainer2, { richColors: true, visibleToasts }),
|
|
18631
18627
|
/* @__PURE__ */ jsxs72(Flex72, { style: { width: "100%", height: "100%" }, children: [
|
|
18632
|
-
/* @__PURE__ */
|
|
18633
|
-
/* @__PURE__ */
|
|
18628
|
+
/* @__PURE__ */ jsx93(Sidebar, {}),
|
|
18629
|
+
/* @__PURE__ */ jsx93(Outlet2, {})
|
|
18634
18630
|
] })
|
|
18635
18631
|
] });
|
|
18636
18632
|
};
|
|
@@ -18765,7 +18761,7 @@ function getRootTree({ customScreens = [] }) {
|
|
|
18765
18761
|
}
|
|
18766
18762
|
|
|
18767
18763
|
// react/components/organization/profile.tsx
|
|
18768
|
-
import { jsx as
|
|
18764
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
18769
18765
|
var router = createRouter({
|
|
18770
18766
|
routeTree: getRootTree({}),
|
|
18771
18767
|
context: {
|
|
@@ -18808,7 +18804,7 @@ var OrganizationProfile = ({
|
|
|
18808
18804
|
onLogout
|
|
18809
18805
|
}
|
|
18810
18806
|
});
|
|
18811
|
-
return /* @__PURE__ */
|
|
18807
|
+
return /* @__PURE__ */ jsx94(RouterProvider, { router: memoryRouter });
|
|
18812
18808
|
};
|
|
18813
18809
|
|
|
18814
18810
|
// react/components/window/index.tsx
|
|
@@ -18830,8 +18826,8 @@ var resize_default_default = 'data:image/svg+xml,<svg width="12" height="12" vie
|
|
|
18830
18826
|
// react/assets/resize-expand.svg
|
|
18831
18827
|
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';
|
|
18832
18828
|
|
|
18833
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18834
|
-
var digest78 = "
|
|
18829
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-EU8GzCGqcGU0/sdk/react/components/window/window.module.css.js
|
|
18830
|
+
var digest78 = "834ed313df6e7bb2112bff0824f335d924fc32aab708b79a068d08a0cd68962a";
|
|
18835
18831
|
var css78 = `._container_1sgpy_1 {
|
|
18836
18832
|
padding: 0;
|
|
18837
18833
|
}
|
|
@@ -18866,7 +18862,7 @@ var css78 = `._container_1sgpy_1 {
|
|
|
18866
18862
|
var window_module_css_default = { "container": "_container_1sgpy_1", "dialogContentZoomin": "_dialogContentZoomin_1sgpy_5", "dialogContentZoomout": "_dialogContentZoomout_1sgpy_13", "overlay": "_overlay_1sgpy_18" };
|
|
18867
18863
|
|
|
18868
18864
|
// react/components/window/index.tsx
|
|
18869
|
-
import { jsx as
|
|
18865
|
+
import { jsx as jsx95, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
18870
18866
|
var Window = (_a) => {
|
|
18871
18867
|
var _b = _a, {
|
|
18872
18868
|
open = false,
|
|
@@ -18880,14 +18876,14 @@ var Window = (_a) => {
|
|
|
18880
18876
|
const [zoom, setZoom] = useState36(false);
|
|
18881
18877
|
const [isCloseActive, setCloseActive] = useState36(false);
|
|
18882
18878
|
const [isZoomActive, setZoomActive] = useState36(false);
|
|
18883
|
-
return /* @__PURE__ */
|
|
18879
|
+
return /* @__PURE__ */ jsx95(Dialog23, __spreadProps(__spreadValues({ open, onOpenChange }, props), { children: /* @__PURE__ */ jsxs73(
|
|
18884
18880
|
Dialog23.Content,
|
|
18885
18881
|
{
|
|
18886
18882
|
className: `${window_module_css_default.container} ${zoom ? window_module_css_default.dialogContentZoomin : window_module_css_default.dialogContentZoomout}`,
|
|
18887
18883
|
overlayClassName: window_module_css_default.overlay,
|
|
18888
18884
|
children: [
|
|
18889
|
-
/* @__PURE__ */
|
|
18890
|
-
/* @__PURE__ */
|
|
18885
|
+
/* @__PURE__ */ jsx95("div", { style: { position: "absolute", inset: 0 }, children }),
|
|
18886
|
+
/* @__PURE__ */ jsx95(
|
|
18891
18887
|
"div",
|
|
18892
18888
|
{
|
|
18893
18889
|
style: {
|
|
@@ -18896,7 +18892,7 @@ var Window = (_a) => {
|
|
|
18896
18892
|
padding: "16px"
|
|
18897
18893
|
},
|
|
18898
18894
|
children: /* @__PURE__ */ jsxs73(Flex73, { gap: 3, children: [
|
|
18899
|
-
/* @__PURE__ */
|
|
18895
|
+
/* @__PURE__ */ jsx95(
|
|
18900
18896
|
Image30,
|
|
18901
18897
|
{
|
|
18902
18898
|
onMouseOver: () => setCloseActive(true),
|
|
@@ -18908,7 +18904,7 @@ var Window = (_a) => {
|
|
|
18908
18904
|
"data-test-id": "frontier-sdk-window-close-button"
|
|
18909
18905
|
}
|
|
18910
18906
|
),
|
|
18911
|
-
/* @__PURE__ */
|
|
18907
|
+
/* @__PURE__ */ jsx95(
|
|
18912
18908
|
Image30,
|
|
18913
18909
|
{
|
|
18914
18910
|
onMouseOver: () => setZoomActive(true),
|
|
@@ -18932,11 +18928,11 @@ var Window = (_a) => {
|
|
|
18932
18928
|
import { ThemeProvider } from "@raystack/apsara";
|
|
18933
18929
|
|
|
18934
18930
|
// react/contexts/useMaxAllowedInstancesGuard.tsx
|
|
18935
|
-
import
|
|
18936
|
-
import { jsx as
|
|
18931
|
+
import React9 from "react";
|
|
18932
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
18937
18933
|
var counts = /* @__PURE__ */ new Map();
|
|
18938
18934
|
function useMaxAllowedInstancesGuard(name, error, maxCount = 1) {
|
|
18939
|
-
|
|
18935
|
+
React9.useEffect(() => {
|
|
18940
18936
|
const count = counts.get(name) || 0;
|
|
18941
18937
|
if (count == maxCount) {
|
|
18942
18938
|
throw new Error(error);
|
|
@@ -18951,7 +18947,7 @@ function withMaxAllowedInstancesGuard(WrappedComponent, name, error) {
|
|
|
18951
18947
|
const displayName = WrappedComponent.displayName || name || "Component";
|
|
18952
18948
|
const Hoc = (props) => {
|
|
18953
18949
|
useMaxAllowedInstancesGuard(name, error);
|
|
18954
|
-
return /* @__PURE__ */
|
|
18950
|
+
return /* @__PURE__ */ jsx96(WrappedComponent, __spreadValues({}, props));
|
|
18955
18951
|
};
|
|
18956
18952
|
Hoc.displayName = `withMaxAllowedInstancesGuard(${displayName})`;
|
|
18957
18953
|
return Hoc;
|
|
@@ -18961,7 +18957,7 @@ function withMaxAllowedInstancesGuard(WrappedComponent, name, error) {
|
|
|
18961
18957
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
18962
18958
|
import { TransportProvider } from "@connectrpc/connect-query";
|
|
18963
18959
|
import { createConnectTransport } from "@connectrpc/connect-web";
|
|
18964
|
-
import { useMemo as
|
|
18960
|
+
import { useMemo as useMemo42 } from "react";
|
|
18965
18961
|
|
|
18966
18962
|
// react/utils/fetch.ts
|
|
18967
18963
|
var createFetchWithCreds = (customHeaders) => {
|
|
@@ -18981,25 +18977,25 @@ var createFetchWithCreds = (customHeaders) => {
|
|
|
18981
18977
|
};
|
|
18982
18978
|
|
|
18983
18979
|
// react/contexts/FrontierProvider.tsx
|
|
18984
|
-
import { jsx as
|
|
18980
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
18985
18981
|
var multipleFrontierProvidersError = "Frontier: You've added multiple <FrontierProvider> components in your React component tree. Wrap your components in a single <FrontierProvider>.";
|
|
18986
18982
|
var queryClient = new QueryClient();
|
|
18987
18983
|
var FrontierProvider = (props) => {
|
|
18988
18984
|
const _a = props, { children, initialState, config, theme, customHeaders } = _a, options = __objRest(_a, ["children", "initialState", "config", "theme", "customHeaders"]);
|
|
18989
|
-
const transport =
|
|
18985
|
+
const transport = useMemo42(
|
|
18990
18986
|
() => createConnectTransport({
|
|
18991
18987
|
baseUrl: config.connectEndpoint || "/frontier-connect",
|
|
18992
18988
|
fetch: createFetchWithCreds(customHeaders)
|
|
18993
18989
|
}),
|
|
18994
18990
|
[config.connectEndpoint, customHeaders]
|
|
18995
18991
|
);
|
|
18996
|
-
return /* @__PURE__ */
|
|
18992
|
+
return /* @__PURE__ */ jsx97(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx97(TransportProvider, { transport, children: /* @__PURE__ */ jsx97(CustomizationProvider, { config: config.customization, children: /* @__PURE__ */ jsx97(
|
|
18997
18993
|
FrontierContextProvider,
|
|
18998
18994
|
__spreadProps(__spreadValues({
|
|
18999
18995
|
initialState,
|
|
19000
18996
|
config
|
|
19001
18997
|
}, options), {
|
|
19002
|
-
children: /* @__PURE__ */
|
|
18998
|
+
children: /* @__PURE__ */ jsx97(ThemeProvider, __spreadProps(__spreadValues({}, theme), { children }))
|
|
19003
18999
|
})
|
|
19004
19000
|
) }) }) });
|
|
19005
19001
|
};
|
|
@@ -19012,7 +19008,7 @@ var FrontierProviderGaurd = withMaxAllowedInstancesGuard(
|
|
|
19012
19008
|
|
|
19013
19009
|
// react/hooks/useConnectQueryPolling.tsx
|
|
19014
19010
|
import { useRef as useRef3, useState as useState37 } from "react";
|
|
19015
|
-
import { useQuery as
|
|
19011
|
+
import { useQuery as useQuery31 } from "@connectrpc/connect-query";
|
|
19016
19012
|
function useConnectQueryPolling(params) {
|
|
19017
19013
|
const {
|
|
19018
19014
|
method,
|
|
@@ -19025,7 +19021,7 @@ function useConnectQueryPolling(params) {
|
|
|
19025
19021
|
} = params;
|
|
19026
19022
|
const [isPollingFailed, setIsPollingFailed] = useState37(false);
|
|
19027
19023
|
const pollCountRef = useRef3(0);
|
|
19028
|
-
const result =
|
|
19024
|
+
const result = useQuery31(method, input, {
|
|
19029
19025
|
enabled,
|
|
19030
19026
|
select,
|
|
19031
19027
|
retry: false,
|
|
@@ -19056,8 +19052,8 @@ function useConnectQueryPolling(params) {
|
|
|
19056
19052
|
// react/components/Layout/index.tsx
|
|
19057
19053
|
import { Flex as Flex74 } from "@raystack/apsara";
|
|
19058
19054
|
|
|
19059
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19060
|
-
var digest79 = "
|
|
19055
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2431-lnqIYaraE6o9/sdk/react/components/organization/styles.module.css.js
|
|
19056
|
+
var digest79 = "aea732cb44b7236b97132cf2365f3b8aedcf0a19002f86267d40ddf29e07cacf";
|
|
19061
19057
|
var css79 = `._header_11okm_1 {
|
|
19062
19058
|
margin-bottom: var(--rs-space-9);
|
|
19063
19059
|
}
|
|
@@ -19101,11 +19097,11 @@ var css79 = `._header_11okm_1 {
|
|
|
19101
19097
|
var styles_module_css_default18 = { "header": "_header_11okm_1", "container": "_container_11okm_5", "containerFlex": "_containerFlex_11okm_10", "contentWrapper": "_contentWrapper_11okm_18", "pageWrapper": "_pageWrapper_11okm_24" };
|
|
19102
19098
|
|
|
19103
19099
|
// react/components/Layout/index.tsx
|
|
19104
|
-
import { jsx as
|
|
19100
|
+
import { jsx as jsx98, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
19105
19101
|
function Layout({ title, description, children }) {
|
|
19106
|
-
return /* @__PURE__ */
|
|
19107
|
-
/* @__PURE__ */
|
|
19108
|
-
/* @__PURE__ */
|
|
19102
|
+
return /* @__PURE__ */ jsx98(Flex74, { direction: "column", style: { width: "100%" }, children: /* @__PURE__ */ jsxs74(Flex74, { direction: "column", className: styles_module_css_default18.container, children: [
|
|
19103
|
+
/* @__PURE__ */ jsx98(Flex74, { direction: "row", justify: "between", align: "center", className: styles_module_css_default18.header, children: /* @__PURE__ */ jsx98(PageHeader, { title, description }) }),
|
|
19104
|
+
/* @__PURE__ */ jsx98(Flex74, { direction: "column", gap: 9, children })
|
|
19109
19105
|
] }) });
|
|
19110
19106
|
}
|
|
19111
19107
|
export {
|