@burdenoff/microfe-security 2026.510.115
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/README.md +223 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +21069 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +1461 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +695 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +55148 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/generated/wspace-types.js +8 -0
- package/dist/generated/wspace-types.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/security/SecurityAdminRoot.d.ts +19 -0
- package/dist/security/SecurityAdminRoot.d.ts.map +1 -0
- package/dist/security/SecurityAdminRoot.js +14 -0
- package/dist/security/SecurityAdminRoot.js.map +1 -0
- package/dist/security/SecurityRoot.d.ts +18 -0
- package/dist/security/SecurityRoot.d.ts.map +1 -0
- package/dist/security/SecurityRoot.js +14 -0
- package/dist/security/SecurityRoot.js.map +1 -0
- package/dist/security/SecurityRootBase.d.ts +19 -0
- package/dist/security/SecurityRootBase.d.ts.map +1 -0
- package/dist/security/SecurityRootBase.js +56 -0
- package/dist/security/SecurityRootBase.js.map +1 -0
- package/dist/security/SecurityUserRoot.d.ts +18 -0
- package/dist/security/SecurityUserRoot.d.ts.map +1 -0
- package/dist/security/SecurityUserRoot.js +14 -0
- package/dist/security/SecurityUserRoot.js.map +1 -0
- package/dist/security/components/ActivityTimeline.d.ts +12 -0
- package/dist/security/components/ActivityTimeline.d.ts.map +1 -0
- package/dist/security/components/ActivityTimeline.js +109 -0
- package/dist/security/components/ActivityTimeline.js.map +1 -0
- package/dist/security/components/AuditLogTable.d.ts +12 -0
- package/dist/security/components/AuditLogTable.d.ts.map +1 -0
- package/dist/security/components/BulkActionBar.d.ts +9 -0
- package/dist/security/components/BulkActionBar.d.ts.map +1 -0
- package/dist/security/components/BulkActionBar.js +94 -0
- package/dist/security/components/BulkActionBar.js.map +1 -0
- package/dist/security/components/ConfirmDialog.d.ts +19 -0
- package/dist/security/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/security/components/ConfirmDialog.js +45 -0
- package/dist/security/components/ConfirmDialog.js.map +1 -0
- package/dist/security/components/CopyButton.d.ts +20 -0
- package/dist/security/components/CopyButton.d.ts.map +1 -0
- package/dist/security/components/CopyButton.js +48 -0
- package/dist/security/components/CopyButton.js.map +1 -0
- package/dist/security/components/ExportDialog.d.ts +7 -0
- package/dist/security/components/ExportDialog.d.ts.map +1 -0
- package/dist/security/components/ExportDialog.js +146 -0
- package/dist/security/components/ExportDialog.js.map +1 -0
- package/dist/security/components/ImportWizard.d.ts +7 -0
- package/dist/security/components/ImportWizard.d.ts.map +1 -0
- package/dist/security/components/ImportWizard.js +276 -0
- package/dist/security/components/ImportWizard.js.map +1 -0
- package/dist/security/components/PageLayout.d.ts +23 -0
- package/dist/security/components/PageLayout.d.ts.map +1 -0
- package/dist/security/components/PageLayout.js +26 -0
- package/dist/security/components/PageLayout.js.map +1 -0
- package/dist/security/components/PasswordGenerator.d.ts +17 -0
- package/dist/security/components/PasswordGenerator.d.ts.map +1 -0
- package/dist/security/components/PasswordGenerator.js +128 -0
- package/dist/security/components/PasswordGenerator.js.map +1 -0
- package/dist/security/components/ProviderSetupWizard.d.ts +13 -0
- package/dist/security/components/ProviderSetupWizard.d.ts.map +1 -0
- package/dist/security/components/RotationStatusBadge.d.ts +13 -0
- package/dist/security/components/RotationStatusBadge.d.ts.map +1 -0
- package/dist/security/components/RotationStatusBadge.js +32 -0
- package/dist/security/components/RotationStatusBadge.js.map +1 -0
- package/dist/security/components/SecretFormFields.d.ts +23 -0
- package/dist/security/components/SecretFormFields.d.ts.map +1 -0
- package/dist/security/components/SecretFormFields.js +156 -0
- package/dist/security/components/SecretFormFields.js.map +1 -0
- package/dist/security/components/SecretRow.d.ts +13 -0
- package/dist/security/components/SecretRow.d.ts.map +1 -0
- package/dist/security/components/SecretRow.js +88 -0
- package/dist/security/components/SecretRow.js.map +1 -0
- package/dist/security/components/SecretTypeBadge.d.ts +13 -0
- package/dist/security/components/SecretTypeBadge.d.ts.map +1 -0
- package/dist/security/components/SecretTypeBadge.js +19 -0
- package/dist/security/components/SecretTypeBadge.js.map +1 -0
- package/dist/security/components/SecretTypeIcon.d.ts +14 -0
- package/dist/security/components/SecretTypeIcon.d.ts.map +1 -0
- package/dist/security/components/SecretTypeIcon.js +28 -0
- package/dist/security/components/SecretTypeIcon.js.map +1 -0
- package/dist/security/components/SecretValueDisplay.d.ts +26 -0
- package/dist/security/components/SecretValueDisplay.d.ts.map +1 -0
- package/dist/security/components/SecretValueDisplay.js +66 -0
- package/dist/security/components/SecretValueDisplay.js.map +1 -0
- package/dist/security/components/SecurityPermissionGuard.d.ts +16 -0
- package/dist/security/components/SecurityPermissionGuard.d.ts.map +1 -0
- package/dist/security/components/SecurityPermissionGuard.js +21 -0
- package/dist/security/components/SecurityPermissionGuard.js.map +1 -0
- package/dist/security/components/SecurityScoreCard.d.ts +12 -0
- package/dist/security/components/SecurityScoreCard.d.ts.map +1 -0
- package/dist/security/components/SecurityScoreCard.js +82 -0
- package/dist/security/components/SecurityScoreCard.js.map +1 -0
- package/dist/security/components/VaultCard.d.ts +13 -0
- package/dist/security/components/VaultCard.d.ts.map +1 -0
- package/dist/security/components/VaultCard.js +94 -0
- package/dist/security/components/VaultCard.js.map +1 -0
- package/dist/security/components/VaultFormFields.d.ts +17 -0
- package/dist/security/components/VaultFormFields.d.ts.map +1 -0
- package/dist/security/components/VaultFormFields.js +110 -0
- package/dist/security/components/VaultFormFields.js.map +1 -0
- package/dist/security/components/VaultShareDialog.d.ts +16 -0
- package/dist/security/components/VaultShareDialog.d.ts.map +1 -0
- package/dist/security/components/VaultShareDialog.js +84 -0
- package/dist/security/components/VaultShareDialog.js.map +1 -0
- package/dist/security/components/ui.d.ts +55 -0
- package/dist/security/components/ui.d.ts.map +1 -0
- package/dist/security/components/ui.js +87 -0
- package/dist/security/components/ui.js.map +1 -0
- package/dist/security/config/navigation.d.ts +10 -0
- package/dist/security/config/navigation.d.ts.map +1 -0
- package/dist/security/config/navigation.js +97 -0
- package/dist/security/config/navigation.js.map +1 -0
- package/dist/security/constants/featureFlags.d.ts +36 -0
- package/dist/security/constants/featureFlags.d.ts.map +1 -0
- package/dist/security/constants/featureFlags.js +18 -0
- package/dist/security/constants/featureFlags.js.map +1 -0
- package/dist/security/constants/permissions.d.ts +11 -0
- package/dist/security/constants/permissions.d.ts.map +1 -0
- package/dist/security/constants/permissions.js +72 -0
- package/dist/security/constants/permissions.js.map +1 -0
- package/dist/security/constants/providers.d.ts +12 -0
- package/dist/security/constants/providers.d.ts.map +1 -0
- package/dist/security/constants/providers.js +45 -0
- package/dist/security/constants/providers.js.map +1 -0
- package/dist/security/constants/secretTypes.d.ts +16 -0
- package/dist/security/constants/secretTypes.d.ts.map +1 -0
- package/dist/security/constants/secretTypes.js +66 -0
- package/dist/security/constants/secretTypes.js.map +1 -0
- package/dist/security/hooks/useAuditLog.d.ts +4 -0
- package/dist/security/hooks/useAuditLog.d.ts.map +1 -0
- package/dist/security/hooks/useAuditLog.js +20 -0
- package/dist/security/hooks/useAuditLog.js.map +1 -0
- package/dist/security/hooks/useBulkSecretOperations.d.ts +7 -0
- package/dist/security/hooks/useBulkSecretOperations.d.ts.map +1 -0
- package/dist/security/hooks/useBulkSecretOperations.js +22 -0
- package/dist/security/hooks/useBulkSecretOperations.js.map +1 -0
- package/dist/security/hooks/useClipboardAutoClear.d.ts +10 -0
- package/dist/security/hooks/useClipboardAutoClear.d.ts.map +1 -0
- package/dist/security/hooks/useImportExport.d.ts +55 -0
- package/dist/security/hooks/useImportExport.d.ts.map +1 -0
- package/dist/security/hooks/useImportExport.js +201 -0
- package/dist/security/hooks/useImportExport.js.map +1 -0
- package/dist/security/hooks/usePasswordGenerator.d.ts +18 -0
- package/dist/security/hooks/usePasswordGenerator.d.ts.map +1 -0
- package/dist/security/hooks/useProviderQueries.d.ts +8 -0
- package/dist/security/hooks/useProviderQueries.d.ts.map +1 -0
- package/dist/security/hooks/useProviderQueries.js +30 -0
- package/dist/security/hooks/useProviderQueries.js.map +1 -0
- package/dist/security/hooks/useSecretQueries.d.ts +10 -0
- package/dist/security/hooks/useSecretQueries.d.ts.map +1 -0
- package/dist/security/hooks/useSecretQueries.js +36 -0
- package/dist/security/hooks/useSecretQueries.js.map +1 -0
- package/dist/security/hooks/useSecretValue.d.ts +12 -0
- package/dist/security/hooks/useSecretValue.d.ts.map +1 -0
- package/dist/security/hooks/useSecretValue.js +29 -0
- package/dist/security/hooks/useSecretValue.js.map +1 -0
- package/dist/security/hooks/useSecurityCacheInvalidation.d.ts +2 -0
- package/dist/security/hooks/useSecurityCacheInvalidation.d.ts.map +1 -0
- package/dist/security/hooks/useSecurityCacheInvalidation.js +52 -0
- package/dist/security/hooks/useSecurityCacheInvalidation.js.map +1 -0
- package/dist/security/hooks/useSecurityDashboard.d.ts +21 -0
- package/dist/security/hooks/useSecurityDashboard.d.ts.map +1 -0
- package/dist/security/hooks/useSecurityDashboard.js +34 -0
- package/dist/security/hooks/useSecurityDashboard.js.map +1 -0
- package/dist/security/hooks/useSecurityEventEmitter.d.ts +14 -0
- package/dist/security/hooks/useSecurityEventEmitter.d.ts.map +1 -0
- package/dist/security/hooks/useSecurityEventEmitter.js +14 -0
- package/dist/security/hooks/useSecurityEventEmitter.js.map +1 -0
- package/dist/security/hooks/useSecuritySubscriptions.d.ts +21 -0
- package/dist/security/hooks/useSecuritySubscriptions.d.ts.map +1 -0
- package/dist/security/hooks/useSecuritySubscriptions.js +44 -0
- package/dist/security/hooks/useSecuritySubscriptions.js.map +1 -0
- package/dist/security/hooks/useVaultQueries.d.ts +14 -0
- package/dist/security/hooks/useVaultQueries.d.ts.map +1 -0
- package/dist/security/hooks/useVaultQueries.js +57 -0
- package/dist/security/hooks/useVaultQueries.js.map +1 -0
- package/dist/security/index.d.ts +31 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +5 -0
- package/dist/security/pages/AccessReviewPage.d.ts +2 -0
- package/dist/security/pages/AccessReviewPage.d.ts.map +1 -0
- package/dist/security/pages/AccessReviewPage.js +154 -0
- package/dist/security/pages/AccessReviewPage.js.map +1 -0
- package/dist/security/pages/AuditLogPage.d.ts +2 -0
- package/dist/security/pages/AuditLogPage.d.ts.map +1 -0
- package/dist/security/pages/AuditLogPage.js +186 -0
- package/dist/security/pages/AuditLogPage.js.map +1 -0
- package/dist/security/pages/ImportExportPage.d.ts +2 -0
- package/dist/security/pages/ImportExportPage.d.ts.map +1 -0
- package/dist/security/pages/ImportExportPage.js +47 -0
- package/dist/security/pages/ImportExportPage.js.map +1 -0
- package/dist/security/pages/ProviderDetailPage.d.ts +2 -0
- package/dist/security/pages/ProviderDetailPage.d.ts.map +1 -0
- package/dist/security/pages/ProviderDetailPage.js +314 -0
- package/dist/security/pages/ProviderDetailPage.js.map +1 -0
- package/dist/security/pages/ProvidersPage.d.ts +2 -0
- package/dist/security/pages/ProvidersPage.d.ts.map +1 -0
- package/dist/security/pages/ProvidersPage.js +162 -0
- package/dist/security/pages/ProvidersPage.js.map +1 -0
- package/dist/security/pages/SecretCreatePage.d.ts +2 -0
- package/dist/security/pages/SecretCreatePage.d.ts.map +1 -0
- package/dist/security/pages/SecretCreatePage.js +144 -0
- package/dist/security/pages/SecretCreatePage.js.map +1 -0
- package/dist/security/pages/SecretDetailPage.d.ts +2 -0
- package/dist/security/pages/SecretDetailPage.d.ts.map +1 -0
- package/dist/security/pages/SecretDetailPage.js +479 -0
- package/dist/security/pages/SecretDetailPage.js.map +1 -0
- package/dist/security/pages/SecurityDashboardPage.d.ts +2 -0
- package/dist/security/pages/SecurityDashboardPage.d.ts.map +1 -0
- package/dist/security/pages/SecurityDashboardPage.js +145 -0
- package/dist/security/pages/SecurityDashboardPage.js.map +1 -0
- package/dist/security/pages/VaultCreatePage.d.ts +2 -0
- package/dist/security/pages/VaultCreatePage.d.ts.map +1 -0
- package/dist/security/pages/VaultCreatePage.js +87 -0
- package/dist/security/pages/VaultCreatePage.js.map +1 -0
- package/dist/security/pages/VaultDetailPage.d.ts +2 -0
- package/dist/security/pages/VaultDetailPage.d.ts.map +1 -0
- package/dist/security/pages/VaultDetailPage.js +292 -0
- package/dist/security/pages/VaultDetailPage.js.map +1 -0
- package/dist/security/pages/VaultLandingPage.d.ts +10 -0
- package/dist/security/pages/VaultLandingPage.d.ts.map +1 -0
- package/dist/security/pages/VaultLandingPage.js +81 -0
- package/dist/security/pages/VaultLandingPage.js.map +1 -0
- package/dist/security/pages/VaultSettingsPage.d.ts +2 -0
- package/dist/security/pages/VaultSettingsPage.d.ts.map +1 -0
- package/dist/security/pages/VaultSettingsPage.js +366 -0
- package/dist/security/pages/VaultSettingsPage.js.map +1 -0
- package/dist/security/pages/VaultsDashboardPage.d.ts +2 -0
- package/dist/security/pages/VaultsDashboardPage.d.ts.map +1 -0
- package/dist/security/pages/VaultsDashboardPage.js +280 -0
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -0
- package/dist/security/providers/SecurityProvider.d.ts +13 -0
- package/dist/security/providers/SecurityProvider.d.ts.map +1 -0
- package/dist/security/providers/SecurityProvider.js +103 -0
- package/dist/security/providers/SecurityProvider.js.map +1 -0
- package/dist/security/routes/SecurityAdminRoutes.d.ts +7 -0
- package/dist/security/routes/SecurityAdminRoutes.d.ts.map +1 -0
- package/dist/security/routes/SecurityAdminRoutes.js +91 -0
- package/dist/security/routes/SecurityAdminRoutes.js.map +1 -0
- package/dist/security/routes/SecurityRoutes.d.ts +19 -0
- package/dist/security/routes/SecurityRoutes.d.ts.map +1 -0
- package/dist/security/routes/SecurityRoutes.js +91 -0
- package/dist/security/routes/SecurityRoutes.js.map +1 -0
- package/dist/security/routes/SecurityUserRoutes.d.ts +11 -0
- package/dist/security/routes/SecurityUserRoutes.d.ts.map +1 -0
- package/dist/security/routes/SecurityUserRoutes.js +53 -0
- package/dist/security/routes/SecurityUserRoutes.js.map +1 -0
- package/dist/security/routes/routeUtils.d.ts +28 -0
- package/dist/security/routes/routeUtils.d.ts.map +1 -0
- package/dist/security/routes/routeUtils.js +60 -0
- package/dist/security/routes/routeUtils.js.map +1 -0
- package/dist/security/store/securityStore.d.ts +35 -0
- package/dist/security/store/securityStore.d.ts.map +1 -0
- package/dist/security/store/securityStore.js +62 -0
- package/dist/security/store/securityStore.js.map +1 -0
- package/dist/security/types/index.d.ts +283 -0
- package/dist/security/types/index.d.ts.map +1 -0
- package/dist/security/utils/clipboard.d.ts +20 -0
- package/dist/security/utils/clipboard.d.ts.map +1 -0
- package/dist/security/utils/clipboard.js +23 -0
- package/dist/security/utils/clipboard.js.map +1 -0
- package/dist/security/utils/cn.d.ts +7 -0
- package/dist/security/utils/cn.d.ts.map +1 -0
- package/dist/security/utils/cn.js +10 -0
- package/dist/security/utils/cn.js.map +1 -0
- package/dist/security/utils/fileParser.d.ts +18 -0
- package/dist/security/utils/fileParser.d.ts.map +1 -0
- package/dist/security/utils/fileParser.js +108 -0
- package/dist/security/utils/fileParser.js.map +1 -0
- package/dist/security/utils/i18n.d.ts +5 -0
- package/dist/security/utils/i18n.d.ts.map +1 -0
- package/dist/security/utils/i18n.js +9 -0
- package/dist/security/utils/i18n.js.map +1 -0
- package/dist/security/utils/importParsers.d.ts +30 -0
- package/dist/security/utils/importParsers.d.ts.map +1 -0
- package/dist/security/utils/mappers.d.ts +35 -0
- package/dist/security/utils/mappers.d.ts.map +1 -0
- package/dist/security/utils/passwordGenerator.d.ts +22 -0
- package/dist/security/utils/passwordGenerator.d.ts.map +1 -0
- package/dist/security/utils/passwordGenerator.js +61 -0
- package/dist/security/utils/passwordGenerator.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +106 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwordGenerator.d.ts","sourceRoot":"","sources":["../../../src/security/utils/passwordGenerator.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAYD,eAAO,MAAM,wBAAwB,EAAE,eAOtC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,eAA0C,GAAG,MAAM,CA8B5F;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;CACf,CAgCA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//#region src/security/utils/passwordGenerator.ts
|
|
2
|
+
var e = {
|
|
3
|
+
uppercase: "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
4
|
+
uppercaseNoAmbiguous: "ABCDEFGHJKLMNPQRSTUVWXYZ",
|
|
5
|
+
lowercase: "abcdefghijklmnopqrstuvwxyz",
|
|
6
|
+
lowercaseNoAmbiguous: "abcdefghjkmnpqrstuvwxyz",
|
|
7
|
+
numbers: "0123456789",
|
|
8
|
+
numbersNoAmbiguous: "23456789",
|
|
9
|
+
symbols: "!@#$%^&*()_+-=[]{}|;:,.<>?"
|
|
10
|
+
}, t = {
|
|
11
|
+
length: 24,
|
|
12
|
+
uppercase: !0,
|
|
13
|
+
lowercase: !0,
|
|
14
|
+
numbers: !0,
|
|
15
|
+
symbols: !0,
|
|
16
|
+
excludeAmbiguous: !0
|
|
17
|
+
};
|
|
18
|
+
function n(n = t) {
|
|
19
|
+
let r = "";
|
|
20
|
+
n.uppercase && (r += n.excludeAmbiguous ? e.uppercaseNoAmbiguous : e.uppercase), n.lowercase && (r += n.excludeAmbiguous ? e.lowercaseNoAmbiguous : e.lowercase), n.numbers && (r += n.excludeAmbiguous ? e.numbersNoAmbiguous : e.numbers), n.symbols && (r += e.symbols), r.length === 0 && (r = e.lowercase + e.numbers);
|
|
21
|
+
let i = Math.max(4, Math.min(128, n.length)), a = new Uint32Array(i);
|
|
22
|
+
crypto.getRandomValues(a);
|
|
23
|
+
let o = "";
|
|
24
|
+
for (let e = 0; e < i; e++) o += r[a[e] % r.length];
|
|
25
|
+
return o;
|
|
26
|
+
}
|
|
27
|
+
function r(e) {
|
|
28
|
+
if (!e) return {
|
|
29
|
+
score: 0,
|
|
30
|
+
label: "weak",
|
|
31
|
+
color: "bg-status-error-bg"
|
|
32
|
+
};
|
|
33
|
+
let t = 0;
|
|
34
|
+
e.length >= 8 && (t += 10), e.length >= 12 && (t += 10), e.length >= 16 && (t += 10), e.length >= 24 && (t += 10), e.length >= 32 && (t += 10), /[a-z]/.test(e) && (t += 10), /[A-Z]/.test(e) && (t += 10), /[0-9]/.test(e) && (t += 10), /[^a-zA-Z0-9]/.test(e) && (t += 15);
|
|
35
|
+
let n = new Set(e).size / e.length;
|
|
36
|
+
return t += Math.round(n * 5), t = Math.min(100, t), t >= 80 ? {
|
|
37
|
+
score: t,
|
|
38
|
+
label: "excellent",
|
|
39
|
+
color: "bg-status-success-bg"
|
|
40
|
+
} : t >= 60 ? {
|
|
41
|
+
score: t,
|
|
42
|
+
label: "strong",
|
|
43
|
+
color: "bg-accent-blue"
|
|
44
|
+
} : t >= 40 ? {
|
|
45
|
+
score: t,
|
|
46
|
+
label: "good",
|
|
47
|
+
color: "bg-status-warning-bg"
|
|
48
|
+
} : t >= 20 ? {
|
|
49
|
+
score: t,
|
|
50
|
+
label: "fair",
|
|
51
|
+
color: "bg-accent-orange"
|
|
52
|
+
} : {
|
|
53
|
+
score: t,
|
|
54
|
+
label: "weak",
|
|
55
|
+
color: "bg-status-error-bg"
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { t as DEFAULT_PASSWORD_OPTIONS, r as calculatePasswordStrength, n as generatePassword };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=passwordGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passwordGenerator.js","names":[],"sources":["../../../src/security/utils/passwordGenerator.ts"],"sourcesContent":["export interface PasswordOptions {\n length: number;\n uppercase: boolean;\n lowercase: boolean;\n numbers: boolean;\n symbols: boolean;\n excludeAmbiguous: boolean;\n}\n\nconst CHAR_SETS = {\n uppercase: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\n uppercaseNoAmbiguous: 'ABCDEFGHJKLMNPQRSTUVWXYZ',\n lowercase: 'abcdefghijklmnopqrstuvwxyz',\n lowercaseNoAmbiguous: 'abcdefghjkmnpqrstuvwxyz',\n numbers: '0123456789',\n numbersNoAmbiguous: '23456789',\n symbols: '!@#$%^&*()_+-=[]{}|;:,.<>?',\n};\n\nexport const DEFAULT_PASSWORD_OPTIONS: PasswordOptions = {\n length: 24,\n uppercase: true,\n lowercase: true,\n numbers: true,\n symbols: true,\n excludeAmbiguous: true,\n};\n\n/**\n * Generate a cryptographically secure random password using crypto.getRandomValues.\n */\nexport function generatePassword(options: PasswordOptions = DEFAULT_PASSWORD_OPTIONS): string {\n let charset = '';\n\n if (options.uppercase) {\n charset += options.excludeAmbiguous ? CHAR_SETS.uppercaseNoAmbiguous : CHAR_SETS.uppercase;\n }\n if (options.lowercase) {\n charset += options.excludeAmbiguous ? CHAR_SETS.lowercaseNoAmbiguous : CHAR_SETS.lowercase;\n }\n if (options.numbers) {\n charset += options.excludeAmbiguous ? CHAR_SETS.numbersNoAmbiguous : CHAR_SETS.numbers;\n }\n if (options.symbols) {\n charset += CHAR_SETS.symbols;\n }\n\n if (charset.length === 0) {\n charset = CHAR_SETS.lowercase + CHAR_SETS.numbers;\n }\n\n const length = Math.max(4, Math.min(128, options.length));\n const randomValues = new Uint32Array(length);\n crypto.getRandomValues(randomValues);\n\n let password = '';\n for (let i = 0; i < length; i++) {\n password += charset[randomValues[i] % charset.length];\n }\n\n return password;\n}\n\n/**\n * Calculate password strength score (0-100)\n */\nexport function calculatePasswordStrength(password: string): {\n score: number;\n label: 'weak' | 'fair' | 'good' | 'strong' | 'excellent';\n color: string;\n} {\n if (!password) {\n return { score: 0, label: 'weak', color: 'bg-status-error-bg' };\n }\n\n let score = 0;\n\n // Length scoring\n if (password.length >= 8) score += 10;\n if (password.length >= 12) score += 10;\n if (password.length >= 16) score += 10;\n if (password.length >= 24) score += 10;\n if (password.length >= 32) score += 10;\n\n // Character variety scoring\n if (/[a-z]/.test(password)) score += 10;\n if (/[A-Z]/.test(password)) score += 10;\n if (/[0-9]/.test(password)) score += 10;\n if (/[^a-zA-Z0-9]/.test(password)) score += 15;\n\n // Penalty for repeating characters\n const uniqueChars = new Set(password).size;\n const uniqueRatio = uniqueChars / password.length;\n score += Math.round(uniqueRatio * 5);\n\n score = Math.min(100, score);\n\n if (score >= 80) return { score, label: 'excellent', color: 'bg-status-success-bg' };\n if (score >= 60) return { score, label: 'strong', color: 'bg-accent-blue' };\n if (score >= 40) return { score, label: 'good', color: 'bg-status-warning-bg' };\n if (score >= 20) return { score, label: 'fair', color: 'bg-accent-orange' };\n return { score, label: 'weak', color: 'bg-status-error-bg' };\n}\n"],"mappings":";AASA,IAAM,IAAY;CAChB,WAAW;CACX,sBAAsB;CACtB,WAAW;CACX,sBAAsB;CACtB,SAAS;CACT,oBAAoB;CACpB,SAAS;CACV,EAEY,IAA4C;CACvD,QAAQ;CACR,WAAW;CACX,WAAW;CACX,SAAS;CACT,SAAS;CACT,kBAAkB;CACnB;AAKD,SAAgB,EAAiB,IAA2B,GAAkC;CAC5F,IAAI,IAAU;AAed,CAbI,EAAQ,cACV,KAAW,EAAQ,mBAAmB,EAAU,uBAAuB,EAAU,YAE/E,EAAQ,cACV,KAAW,EAAQ,mBAAmB,EAAU,uBAAuB,EAAU,YAE/E,EAAQ,YACV,KAAW,EAAQ,mBAAmB,EAAU,qBAAqB,EAAU,UAE7E,EAAQ,YACV,KAAW,EAAU,UAGnB,EAAQ,WAAW,MACrB,IAAU,EAAU,YAAY,EAAU;CAG5C,IAAM,IAAS,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,EAAQ,OAAO,CAAC,EACnD,IAAe,IAAI,YAAY,EAAO;AAC5C,QAAO,gBAAgB,EAAa;CAEpC,IAAI,IAAW;AACf,MAAK,IAAI,IAAI,GAAG,IAAI,GAAQ,IAC1B,MAAY,EAAQ,EAAa,KAAK,EAAQ;AAGhD,QAAO;;AAMT,SAAgB,EAA0B,GAIxC;AACA,KAAI,CAAC,EACH,QAAO;EAAE,OAAO;EAAG,OAAO;EAAQ,OAAO;EAAsB;CAGjE,IAAI,IAAQ;AAaZ,CAVI,EAAS,UAAU,MAAG,KAAS,KAC/B,EAAS,UAAU,OAAI,KAAS,KAChC,EAAS,UAAU,OAAI,KAAS,KAChC,EAAS,UAAU,OAAI,KAAS,KAChC,EAAS,UAAU,OAAI,KAAS,KAGhC,QAAQ,KAAK,EAAS,KAAE,KAAS,KACjC,QAAQ,KAAK,EAAS,KAAE,KAAS,KACjC,QAAQ,KAAK,EAAS,KAAE,KAAS,KACjC,eAAe,KAAK,EAAS,KAAE,KAAS;CAI5C,IAAM,IADc,IAAI,IAAI,EAAS,CAAC,OACJ,EAAS;AAS3C,QARA,KAAS,KAAK,MAAM,IAAc,EAAE,EAEpC,IAAQ,KAAK,IAAI,KAAK,EAAM,EAExB,KAAS,KAAW;EAAE;EAAO,OAAO;EAAa,OAAO;EAAwB,GAChF,KAAS,KAAW;EAAE;EAAO,OAAO;EAAU,OAAO;EAAkB,GACvE,KAAS,KAAW;EAAE;EAAO,OAAO;EAAQ,OAAO;EAAwB,GAC3E,KAAS,KAAW;EAAE;EAAO,OAAO;EAAQ,OAAO;EAAoB,GACpE;EAAE;EAAO,OAAO;EAAQ,OAAO;EAAsB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
+
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
|
3
|
+
//# sourceMappingURL=nativeBridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@burdenoff/microfe-security",
|
|
3
|
+
"version": "2026.510.115",
|
|
4
|
+
"description": "Security vault management microfrontend",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"package.json",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"imports": {
|
|
12
|
+
"#src/*": "./src/*",
|
|
13
|
+
"#security/*": "./src/security/*"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite",
|
|
25
|
+
"build": "tsc && vite build",
|
|
26
|
+
"lint": "eslint .",
|
|
27
|
+
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
28
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
29
|
+
"type:check": "tsc --noEmit",
|
|
30
|
+
"sanity": "bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run build",
|
|
31
|
+
"schema:pull": "graphql-codegen --project schema-wspace && graphql-codegen --project schema-global",
|
|
32
|
+
"codegen": "graphql-codegen --project wspace && graphql-codegen --project global",
|
|
33
|
+
"codegen:all": "bun run schema:pull && bun run codegen",
|
|
34
|
+
"switch:status": "bun scripts/deps-mode.ts status",
|
|
35
|
+
"switch:remote": "bun scripts/deps-mode.ts remote",
|
|
36
|
+
"switch:local": "bun scripts/deps-mode.ts local",
|
|
37
|
+
"switch:check": "bun scripts/deps-mode.ts check",
|
|
38
|
+
"prepare": "lefthook install || true",
|
|
39
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@apollo/client": "^4.0.11",
|
|
43
|
+
"@burdenoff/fe-libs": "2026.507.125",
|
|
44
|
+
"@tanstack/react-query": "^5.90.16",
|
|
45
|
+
"clsx": "^2.1.1",
|
|
46
|
+
"graphql": "^16.10.0",
|
|
47
|
+
"lucide-react": "^0.468.0",
|
|
48
|
+
"react": "^19.0.0",
|
|
49
|
+
"react-dom": "^19.0.0",
|
|
50
|
+
"react-router-dom": "^7.1.3",
|
|
51
|
+
"tailwind-merge": "^3.4.0",
|
|
52
|
+
"zustand": "^5.0.3"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@eslint/js": "^9.39.2",
|
|
56
|
+
"@graphql-codegen/add": "^5.0.0",
|
|
57
|
+
"@graphql-codegen/cli": "^5.0.0",
|
|
58
|
+
"@graphql-codegen/import-types-preset": "^3.0.0",
|
|
59
|
+
"@graphql-codegen/schema-ast": "^4.0.0",
|
|
60
|
+
"@graphql-codegen/typescript": "^4.0.0",
|
|
61
|
+
"@graphql-codegen/typescript-operations": "^4.0.0",
|
|
62
|
+
"@graphql-codegen/typescript-react-apollo": "^4.0.0",
|
|
63
|
+
"@types/react": "^19.0.2",
|
|
64
|
+
"@types/react-dom": "^19.0.2",
|
|
65
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
66
|
+
"autoprefixer": "^10.4.20",
|
|
67
|
+
"eslint": "^9.18.0",
|
|
68
|
+
"eslint-plugin-react": "^7.37.5",
|
|
69
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
70
|
+
"eslint-plugin-react-refresh": "^0.4.26",
|
|
71
|
+
"lefthook": "^2.1.1",
|
|
72
|
+
"postcss": "^8.4.49",
|
|
73
|
+
"prettier": "^3.4.2",
|
|
74
|
+
"tailwindcss": "^4.0.0",
|
|
75
|
+
"typescript": "^5.9.0",
|
|
76
|
+
"typescript-eslint": "^8.54.0",
|
|
77
|
+
"vite": "8.0.8",
|
|
78
|
+
"vite-plugin-dts": "3.9.1"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"@apollo/client": "^4.0.11",
|
|
82
|
+
"react": "^19.0.0",
|
|
83
|
+
"react-dom": "^19.0.0",
|
|
84
|
+
"zustand": "^5.0.0"
|
|
85
|
+
},
|
|
86
|
+
"publishConfig": {
|
|
87
|
+
"access": "restricted"
|
|
88
|
+
},
|
|
89
|
+
"overrides": {
|
|
90
|
+
"lodash": ">=4.17.21",
|
|
91
|
+
"lodash-es": ">=4.17.21",
|
|
92
|
+
"dompurify": ">=3.3.4",
|
|
93
|
+
"fast-xml-parser": ">=4.5.5",
|
|
94
|
+
"@xmldom/xmldom": ">=0.8.12",
|
|
95
|
+
"swiper": ">=12.1.2",
|
|
96
|
+
"brace-expansion": ">=1.1.13",
|
|
97
|
+
"follow-redirects": ">=1.15.12",
|
|
98
|
+
"smol-toml": ">=1.6.1",
|
|
99
|
+
"axios": ">=1.15.0",
|
|
100
|
+
"flatted": ">=3.4.1",
|
|
101
|
+
"yaml": ">=2.8.3",
|
|
102
|
+
"picomatch": ">=2.3.2",
|
|
103
|
+
"immutable": ">=3.8.3",
|
|
104
|
+
"minimatch": ">=3.1.3"
|
|
105
|
+
}
|
|
106
|
+
}
|