@camstack/ui-library 1.2.298 → 1.2.299
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/addon-global-settings-form.d.ts +1 -1
- package/dist/composites/index.d.ts +2 -0
- package/dist/composites/record-entries/entry-json-schema-form.d.ts +11 -0
- package/dist/composites/record-entries/index.d.ts +4 -0
- package/dist/composites/record-entries/record-entries-hub.d.ts +9 -0
- package/dist/composites/record-entries/record-entries-panel.d.ts +6 -0
- package/dist/composites/record-entries/record-entry-secrets.d.ts +9 -0
- package/dist/composites/storage-records/index.d.ts +2 -0
- package/dist/composites/storage-records/storage-records-hub.d.ts +4 -0
- package/dist/composites/storage-records/storage-records-panel.d.ts +6 -0
- package/dist/index.cjs +796 -19
- package/dist/index.js +785 -21
- package/package.json +1 -1
|
@@ -178,6 +178,8 @@ export { ConfigSchemaField, PipelineStep } from "./pipeline-step";
|
|
|
178
178
|
export * from "./provider-badge";
|
|
179
179
|
export { AddProviderEntryDialog, ProviderEntryPills } from "./provider-entries";
|
|
180
180
|
export type { AddProviderEntryCreateInput, AddProviderEntryDialogProps, ProviderEntryPill, ProviderEntryPillsProps, ProviderEntryStatus, ProviderEntryTypeOption } from "./provider-entries";
|
|
181
|
+
export * from "./record-entries";
|
|
182
|
+
export * from "./storage-records";
|
|
181
183
|
export type { PTZOverlayProps } from "./ptz-overlay";
|
|
182
184
|
export { PTZOverlay } from "./ptz-overlay";
|
|
183
185
|
export type { QrCodeProps } from "./qr-code";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type JSX } from "react";
|
|
2
|
+
export interface EntryJsonSchemaFormProps {
|
|
3
|
+
/** JSON Schema root (`EntryKindInfo.fields`). */
|
|
4
|
+
readonly schema: Record<string, unknown>;
|
|
5
|
+
readonly secretPaths: readonly string[];
|
|
6
|
+
readonly value: Record<string, unknown>;
|
|
7
|
+
readonly onChange: (value: Record<string, unknown>) => void;
|
|
8
|
+
readonly disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Renders an entry body from the engine's JSON Schema descriptor. */
|
|
11
|
+
export declare function EntryJsonSchemaForm({ schema, secretPaths, value, onChange, disabled }: EntryJsonSchemaFormProps): JSX.Element | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { isRedactedSecret, isSecretField, mergeSecretForSubmit, secretDisplayValue } from "./record-entry-secrets";
|
|
2
|
+
export { EntryJsonSchemaForm, type EntryJsonSchemaFormProps } from "./entry-json-schema-form";
|
|
3
|
+
export { RecordEntriesPanel, type RecordEntriesPanelProps } from "./record-entries-panel";
|
|
4
|
+
export { RecordEntriesHub, RECORD_ENTRY_KIND_PARAM, RECORD_ENTRY_OWNER_PARAM, type RecordEntriesHubProps } from "./record-entries-hub";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EntryKindInfo } from "@camstack/types";
|
|
2
|
+
import { type JSX } from "react";
|
|
3
|
+
export declare const RECORD_ENTRY_OWNER_PARAM = "entryOwner";
|
|
4
|
+
export declare const RECORD_ENTRY_KIND_PARAM = "entryKind";
|
|
5
|
+
export interface RecordEntriesHubProps {
|
|
6
|
+
/** When set, only these owner/kind pairs are shown (still loaded from the catalog). */
|
|
7
|
+
readonly filter?: Readonly<Partial<Pick<EntryKindInfo, "owner" | "kind">>>;
|
|
8
|
+
}
|
|
9
|
+
export declare function RecordEntriesHub({ filter }: RecordEntriesHubProps): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { REDACTED_SECRET } from "@camstack/types";
|
|
2
|
+
/** Whether a record entry field still holds the redaction token from a read. */
|
|
3
|
+
export declare function isRedactedSecret(value: unknown): value is typeof REDACTED_SECRET;
|
|
4
|
+
/** Text shown in a password box for a redacted stored secret (empty — placeholder carries the hint). */
|
|
5
|
+
export declare function secretDisplayValue(value: unknown): string;
|
|
6
|
+
/** Merge an edited password box back into the body sent to `putEntry`. */
|
|
7
|
+
export declare function mergeSecretForSubmit(draft: string, original: unknown): unknown;
|
|
8
|
+
/** Is this JSON-schema leaf (or path) a credential field? */
|
|
9
|
+
export declare function isSecretField(path: string, secretPaths: readonly string[], schemaNode: Record<string, unknown>): boolean;
|