@burdenoff/microfe-security 2026.601.3 → 2026.602.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/dist/generated/wspace-operations.js +260 -92
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/security/components/SecretShareDialog.js +349 -0
- package/dist/security/components/SecretShareDialog.js.map +1 -0
- package/dist/security/config/navigation.js +32 -19
- package/dist/security/config/navigation.js.map +1 -1
- package/dist/security/hooks/useSecuritySubscriptions.js +3 -3
- package/dist/security/hooks/useSecuritySubscriptions.js.map +1 -1
- package/dist/security/hooks/useShareQueries.js +31 -0
- package/dist/security/hooks/useShareQueries.js.map +1 -0
- package/dist/security/index.js +1 -0
- package/dist/security/pages/SecretDetailPage.js +215 -203
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/SharedWithMePage.js +115 -0
- package/dist/security/pages/SharedWithMePage.js.map +1 -0
- package/dist/security/pages/VaultDetailPage.js +214 -195
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultShareViewer.js +242 -0
- package/dist/security/pages/VaultShareViewer.js.map +1 -0
- package/dist/security/routes/SecurityRoutes.js +8 -4
- package/dist/security/routes/SecurityRoutes.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useCreateSecretShareLinkMutation as e, useMySharedCredentialsQuery as t, useRevealSharedCredentialLazyQuery as n, useRevokeSecretShareMutation as r, useSecretSharesQuery as i, useShareSecretWithAccountMutation as a } from "../../generated/wspace-operations.js";
|
|
2
|
+
//#region src/security/hooks/useShareQueries.ts
|
|
3
|
+
function o(e, t) {
|
|
4
|
+
return i({
|
|
5
|
+
variables: {
|
|
6
|
+
vaultId: e ?? "",
|
|
7
|
+
secretId: t ?? null
|
|
8
|
+
},
|
|
9
|
+
skip: !e,
|
|
10
|
+
fetchPolicy: "network-only"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function s() {
|
|
14
|
+
return t({ fetchPolicy: "network-only" });
|
|
15
|
+
}
|
|
16
|
+
function c() {
|
|
17
|
+
return n({ fetchPolicy: "network-only" });
|
|
18
|
+
}
|
|
19
|
+
function l() {
|
|
20
|
+
return a();
|
|
21
|
+
}
|
|
22
|
+
function u() {
|
|
23
|
+
return e();
|
|
24
|
+
}
|
|
25
|
+
function d() {
|
|
26
|
+
return r();
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { u as useCreateSecretShareLink, s as useMySharedCredentials, c as useRevealSharedCredential, d as useRevokeSecretShare, o as useSecretShares, l as useShareSecretWithAccount };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=useShareQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShareQueries.js","names":[],"sources":["../../../src/security/hooks/useShareQueries.ts"],"sourcesContent":["import {\n useSecretSharesQuery,\n useMySharedCredentialsQuery,\n useRevealSharedCredentialLazyQuery,\n useShareSecretWithAccountMutation,\n useCreateSecretShareLinkMutation,\n useRevokeSecretShareMutation,\n useUpdateSecretShareRoleMutation,\n} from '../../generated/wspace-operations';\n\n/**\n * Shares on a vault (or a single secret when secretId is provided).\n * Skipped until a vaultId is known.\n */\nexport function useSecretShares(vaultId: string | null, secretId?: string | null) {\n return useSecretSharesQuery({\n variables: { vaultId: vaultId ?? '', secretId: secretId ?? null },\n skip: !vaultId,\n fetchPolicy: 'network-only',\n });\n}\n\n/** Credentials shared with the current actor across all workspaces. */\nexport function useMySharedCredentials() {\n return useMySharedCredentialsQuery({ fetchPolicy: 'network-only' });\n}\n\n/** Lazily reveal a credential shared with the current actor. */\nexport function useRevealSharedCredential() {\n return useRevealSharedCredentialLazyQuery({ fetchPolicy: 'network-only' });\n}\n\nexport function useShareSecretWithAccount() {\n return useShareSecretWithAccountMutation();\n}\n\nexport function useCreateSecretShareLink() {\n return useCreateSecretShareLinkMutation();\n}\n\nexport function useRevokeSecretShare() {\n return useRevokeSecretShareMutation();\n}\n\nexport function useUpdateSecretShareRole() {\n return useUpdateSecretShareRoleMutation();\n}\n"],"mappings":";;AAcA,SAAgB,EAAgB,GAAwB,GAA0B;AAChF,QAAO,EAAqB;EAC1B,WAAW;GAAE,SAAS,KAAW;GAAI,UAAU,KAAY;GAAM;EACjE,MAAM,CAAC;EACP,aAAa;EACd,CAAC;;AAIJ,SAAgB,IAAyB;AACvC,QAAO,EAA4B,EAAE,aAAa,gBAAgB,CAAC;;AAIrE,SAAgB,IAA4B;AAC1C,QAAO,EAAmC,EAAE,aAAa,gBAAgB,CAAC;;AAG5E,SAAgB,IAA4B;AAC1C,QAAO,GAAmC;;AAG5C,SAAgB,IAA2B;AACzC,QAAO,GAAkC;;AAG3C,SAAgB,IAAuB;AACrC,QAAO,GAA8B"}
|
package/dist/security/index.js
CHANGED