@camstack/ui-library 1.2.252 → 1.2.254
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/composites/config-secret-field.d.ts +22 -3
- package/dist/composites/index.d.ts +1 -1
- package/dist/generated/system-hooks.d.ts +46 -6
- package/dist/index.cjs +3130 -3054
- package/dist/index.js +3105 -3052
- package/dist/primitives/badge.d.ts +2 -2
- package/dist/primitives/button.d.ts +1 -1
- package/dist/primitives/icon-button.d.ts +1 -1
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/password-input.d.ts +19 -0
- package/dist/primitives/tooltip.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,15 +1,34 @@
|
|
|
1
|
-
import { ConfigField } from '@camstack/types';
|
|
1
|
+
import { ConfigField, SecretFieldView } from '@camstack/types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
/** How long a revealed value stays on screen. */
|
|
4
|
-
export declare const SECRET_REVEAL_MS = 10000;
|
|
5
3
|
/** Returns the stored value of a ref (audited by the host). */
|
|
6
4
|
export type SecretRevealFn = (ref: string) => Promise<string>;
|
|
5
|
+
/** How long the System → Secrets page shows a revealed value. */
|
|
6
|
+
export declare const SECRET_REVEAL_MS = 10000;
|
|
7
|
+
/** What an untouched stored secret shows in place of its value. */
|
|
8
|
+
export declare const SECRET_MASK_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
|
|
7
9
|
export declare function SecretRevealProvider({ reveal, children, }: {
|
|
8
10
|
readonly reveal: SecretRevealFn;
|
|
9
11
|
readonly children: ReactNode;
|
|
10
12
|
}): import("react").JSX.Element;
|
|
11
13
|
/** Does this value belong to the keychain rendering (a view, or "not set")? */
|
|
12
14
|
export declare function isKeychainFieldValue(value: unknown): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* What the operator has done to the field. `untouched` shows nothing and
|
|
17
|
+
* sends nothing; `visible` holds text the operator can see — revealed (then
|
|
18
|
+
* `revealed` is the stored value) or typed.
|
|
19
|
+
*/
|
|
20
|
+
export type SecretEntry = {
|
|
21
|
+
readonly kind: 'untouched';
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'visible';
|
|
24
|
+
readonly text: string;
|
|
25
|
+
readonly revealed: string | null;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The value the form sends for an entry. `stored` — something is stored (or
|
|
29
|
+
* already marked for removal) — is what makes an emptied box a CLEAR.
|
|
30
|
+
*/
|
|
31
|
+
export declare function secretSubmitValue(entry: SecretEntry, original: SecretFieldView | null, stored: boolean): unknown;
|
|
13
32
|
export interface SecretFieldProps {
|
|
14
33
|
readonly field: ConfigField;
|
|
15
34
|
/** The view (or null) the form was hydrated with, or what the operator has done since. */
|
|
@@ -55,7 +55,7 @@ export * from './code-block';
|
|
|
55
55
|
export type { TranslationFn } from './config-form-builder';
|
|
56
56
|
export { ConfigFormBuilder } from './config-form-builder';
|
|
57
57
|
export type { ProbeState } from './config-form-field';
|
|
58
|
-
export { isKeychainFieldValue, SECRET_REVEAL_MS, SecretFieldControl, type SecretFieldProps, type SecretRevealFn, SecretRevealProvider, } from './config-secret-field';
|
|
58
|
+
export { isKeychainFieldValue, SECRET_MASK_PLACEHOLDER, SECRET_REVEAL_MS, type SecretEntry, SecretFieldControl, type SecretFieldProps, secretSubmitValue, type SecretRevealFn, SecretRevealProvider, } from './config-secret-field';
|
|
59
59
|
export { ConfigFormField, isFieldVisible, NodeMultiSelectField, NodeSelectField, } from './config-form-field';
|
|
60
60
|
export type { ConfirmActionButtonProps } from './confirm-action-button';
|
|
61
61
|
export { ConfirmActionButton } from './confirm-action-button';
|
|
@@ -183,6 +183,14 @@ export declare const useBackupListLocations: typeof trpc.backup.listLocations.us
|
|
|
183
183
|
export declare const useBackupGetEntries: typeof trpc.backup.getEntries.useQuery;
|
|
184
184
|
/** Generated alias around `trpc.backup.restore.useMutation`. */
|
|
185
185
|
export declare const useBackupRestore: typeof trpc.backup.restore.useMutation;
|
|
186
|
+
/** Generated alias around `trpc.backup.getEncryption.useQuery`. */
|
|
187
|
+
export declare const useBackupGetEncryption: typeof trpc.backup.getEncryption.useQuery;
|
|
188
|
+
/** Generated alias around `trpc.backup.setupEncryption.useMutation`. */
|
|
189
|
+
export declare const useBackupSetupEncryption: typeof trpc.backup.setupEncryption.useMutation;
|
|
190
|
+
/** Generated alias around `trpc.backup.disableEncryption.useMutation`. */
|
|
191
|
+
export declare const useBackupDisableEncryption: typeof trpc.backup.disableEncryption.useMutation;
|
|
192
|
+
/** Generated alias around `trpc.backup.checkBackupKey.useMutation`. */
|
|
193
|
+
export declare const useBackupCheckBackupKey: typeof trpc.backup.checkBackupKey.useMutation;
|
|
186
194
|
/** Generated alias around `trpc.backup.delete.useMutation`. */
|
|
187
195
|
export declare const useBackupDelete: typeof trpc.backup.delete.useMutation;
|
|
188
196
|
/** Generated alias around `trpc.backup.listArchives.useQuery`. */
|
|
@@ -803,6 +811,10 @@ export declare const useKeychainAdminPurgeRetiredKeys: typeof trpc.keychainAdmin
|
|
|
803
811
|
export declare const useKeychainAdminDownloadRecoveryKey: typeof trpc.keychainAdmin.downloadRecoveryKey.useMutation;
|
|
804
812
|
/** Generated alias around `trpc.keychainAdmin.resetKeychain.useMutation`. */
|
|
805
813
|
export declare const useKeychainAdminResetKeychain: typeof trpc.keychainAdmin.resetKeychain.useMutation;
|
|
814
|
+
/** Generated alias around `trpc.keychainAdmin.resetReport.useQuery`. */
|
|
815
|
+
export declare const useKeychainAdminResetReport: typeof trpc.keychainAdmin.resetReport.useQuery;
|
|
816
|
+
/** Generated alias around `trpc.keychainAdmin.acknowledgeReset.useMutation`. */
|
|
817
|
+
export declare const useKeychainAdminAcknowledgeReset: typeof trpc.keychainAdmin.acknowledgeReset.useMutation;
|
|
806
818
|
/** Generated alias around `trpc.lawnMowerControl.startMowing.useMutation`. */
|
|
807
819
|
export declare const useLawnMowerControlStartMowing: typeof trpc.lawnMowerControl.startMowing.useMutation;
|
|
808
820
|
/** Generated alias around `trpc.lawnMowerControl.pause.useMutation`. */
|
|
@@ -1343,6 +1355,8 @@ export declare const usePipelineAnalyticsGetRetrainExportUrl: typeof trpc.pipeli
|
|
|
1343
1355
|
export declare const usePipelineAnalyticsSetRetrainFrameComplete: typeof trpc.pipelineAnalytics.setRetrainFrameComplete.useMutation;
|
|
1344
1356
|
/** Generated alias around `trpc.pipelineAnalytics.writeRetrainArchive.useMutation`. */
|
|
1345
1357
|
export declare const usePipelineAnalyticsWriteRetrainArchive: typeof trpc.pipelineAnalytics.writeRetrainArchive.useMutation;
|
|
1358
|
+
/** Generated alias around `trpc.pipelineAnalytics.offerRetrainArchive.useMutation`. */
|
|
1359
|
+
export declare const usePipelineAnalyticsOfferRetrainArchive: typeof trpc.pipelineAnalytics.offerRetrainArchive.useMutation;
|
|
1346
1360
|
/** Generated alias around `trpc.pipelineAnalytics.previewRetrainDataset.useQuery`. */
|
|
1347
1361
|
export declare const usePipelineAnalyticsPreviewRetrainDataset: typeof trpc.pipelineAnalytics.previewRetrainDataset.useQuery;
|
|
1348
1362
|
/** Generated alias around `trpc.pipelineAnalytics.createRetrainDatasetVersion.useMutation`. */
|
|
@@ -2127,6 +2141,38 @@ export declare const useTerminalSessionWriteInput: typeof trpc.terminalSession.w
|
|
|
2127
2141
|
export declare const useTerminalSessionClose: typeof trpc.terminalSession.close.useMutation;
|
|
2128
2142
|
/** Generated alias around `trpc.toast.onToast.useSubscription`. */
|
|
2129
2143
|
export declare const useToastOnToast: typeof trpc.toast.onToast.useSubscription;
|
|
2144
|
+
/** Generated alias around `trpc.training.putDatasetVersion.useMutation`. */
|
|
2145
|
+
export declare const useTrainingPutDatasetVersion: typeof trpc.training.putDatasetVersion.useMutation;
|
|
2146
|
+
/** Generated alias around `trpc.training.getDatasetVersion.useQuery`. */
|
|
2147
|
+
export declare const useTrainingGetDatasetVersion: typeof trpc.training.getDatasetVersion.useQuery;
|
|
2148
|
+
/** Generated alias around `trpc.training.listDatasetVersions.useQuery`. */
|
|
2149
|
+
export declare const useTrainingListDatasetVersions: typeof trpc.training.listDatasetVersions.useQuery;
|
|
2150
|
+
/** Generated alias around `trpc.training.findDatasetVersionIdByName.useQuery`. */
|
|
2151
|
+
export declare const useTrainingFindDatasetVersionIdByName: typeof trpc.training.findDatasetVersionIdByName.useQuery;
|
|
2152
|
+
/** Generated alias around `trpc.training.removeDatasetVersion.useMutation`. */
|
|
2153
|
+
export declare const useTrainingRemoveDatasetVersion: typeof trpc.training.removeDatasetVersion.useMutation;
|
|
2154
|
+
/** Generated alias around `trpc.training.listBaseModels.useQuery`. */
|
|
2155
|
+
export declare const useTrainingListBaseModels: typeof trpc.training.listBaseModels.useQuery;
|
|
2156
|
+
/** Generated alias around `trpc.training.planJob.useQuery`. */
|
|
2157
|
+
export declare const useTrainingPlanJob: typeof trpc.training.planJob.useQuery;
|
|
2158
|
+
/** Generated alias around `trpc.training.startJob.useMutation`. */
|
|
2159
|
+
export declare const useTrainingStartJob: typeof trpc.training.startJob.useMutation;
|
|
2160
|
+
/** Generated alias around `trpc.training.listJobs.useQuery`. */
|
|
2161
|
+
export declare const useTrainingListJobs: typeof trpc.training.listJobs.useQuery;
|
|
2162
|
+
/** Generated alias around `trpc.training.getJob.useQuery`. */
|
|
2163
|
+
export declare const useTrainingGetJob: typeof trpc.training.getJob.useQuery;
|
|
2164
|
+
/** Generated alias around `trpc.training.cancelJob.useMutation`. */
|
|
2165
|
+
export declare const useTrainingCancelJob: typeof trpc.training.cancelJob.useMutation;
|
|
2166
|
+
/** Generated alias around `trpc.training.getJobResult.useQuery`. */
|
|
2167
|
+
export declare const useTrainingGetJobResult: typeof trpc.training.getJobResult.useQuery;
|
|
2168
|
+
/** Generated alias around `trpc.training.registerResult.useMutation`. */
|
|
2169
|
+
export declare const useTrainingRegisterResult: typeof trpc.training.registerResult.useMutation;
|
|
2170
|
+
/** Generated alias around `trpc.training.canaryResult.useMutation`. */
|
|
2171
|
+
export declare const useTrainingCanaryResult: typeof trpc.training.canaryResult.useMutation;
|
|
2172
|
+
/** Generated alias around `trpc.training.rollbackCanary.useMutation`. */
|
|
2173
|
+
export declare const useTrainingRollbackCanary: typeof trpc.training.rollbackCanary.useMutation;
|
|
2174
|
+
/** Generated alias around `trpc.training.discardResult.useMutation`. */
|
|
2175
|
+
export declare const useTrainingDiscardResult: typeof trpc.training.discardResult.useMutation;
|
|
2130
2176
|
/** Generated alias around `trpc.turnProvider.getTurnServers.useQuery`. */
|
|
2131
2177
|
export declare const useTurnProviderGetTurnServers: typeof trpc.turnProvider.getTurnServers.useQuery;
|
|
2132
2178
|
/** Generated alias around `trpc.update.installUpdate.useMutation`. */
|
|
@@ -2149,12 +2195,8 @@ export declare const useUserManagementSetUserScopes: typeof trpc.userManagement.
|
|
|
2149
2195
|
export declare const useUserManagementValidateCredentials: typeof trpc.userManagement.validateCredentials.useMutation;
|
|
2150
2196
|
/** Generated alias around `trpc.userManagement.listApiKeys.useQuery`. */
|
|
2151
2197
|
export declare const useUserManagementListApiKeys: typeof trpc.userManagement.listApiKeys.useQuery;
|
|
2152
|
-
/** Generated alias around `trpc.userManagement.createApiKey.useMutation`. */
|
|
2153
|
-
export declare const useUserManagementCreateApiKey: typeof trpc.userManagement.createApiKey.useMutation;
|
|
2154
2198
|
/** Generated alias around `trpc.userManagement.revokeApiKey.useMutation`. */
|
|
2155
2199
|
export declare const useUserManagementRevokeApiKey: typeof trpc.userManagement.revokeApiKey.useMutation;
|
|
2156
|
-
/** Generated alias around `trpc.userManagement.validateApiKey.useMutation`. */
|
|
2157
|
-
export declare const useUserManagementValidateApiKey: typeof trpc.userManagement.validateApiKey.useMutation;
|
|
2158
2200
|
/** Generated alias around `trpc.userManagement.createScopedToken.useMutation`. */
|
|
2159
2201
|
export declare const useUserManagementCreateScopedToken: typeof trpc.userManagement.createScopedToken.useMutation;
|
|
2160
2202
|
/** Generated alias around `trpc.userManagement.revokeScopedToken.useMutation`. */
|
|
@@ -2185,8 +2227,6 @@ export declare const useUserManagementOauthVerifyAccessToken: typeof trpc.userMa
|
|
|
2185
2227
|
export declare const useUserManagementListExternalIdentities: typeof trpc.userManagement.listExternalIdentities.useQuery;
|
|
2186
2228
|
/** Generated alias around `trpc.userManagement.findUserByExternalIdentity.useQuery`. */
|
|
2187
2229
|
export declare const useUserManagementFindUserByExternalIdentity: typeof trpc.userManagement.findUserByExternalIdentity.useQuery;
|
|
2188
|
-
/** Generated alias around `trpc.userManagement.linkExternalIdentity.useMutation`. */
|
|
2189
|
-
export declare const useUserManagementLinkExternalIdentity: typeof trpc.userManagement.linkExternalIdentity.useMutation;
|
|
2190
2230
|
/** Generated alias around `trpc.userManagement.unlinkExternalIdentity.useMutation`. */
|
|
2191
2231
|
export declare const useUserManagementUnlinkExternalIdentity: typeof trpc.userManagement.unlinkExternalIdentity.useMutation;
|
|
2192
2232
|
/** Generated alias around `trpc.userManagement.listOauthSessions.useQuery`. */
|