@krak-stack/registry 0.11.5 → 0.11.7
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/CHANGELOG.md +36 -0
- package/dist/components/audit-log-table/classes.d.ts +1 -0
- package/dist/components/audit-log-table/html.d.ts +158 -0
- package/dist/components/audit-log-table/html.js +3260 -0
- package/dist/components/audit-log-table/index.d.ts +37 -0
- package/dist/components/audit-log-table/react.d.ts +3 -51
- package/dist/components/audit-log-table/react.js +246 -92
- package/dist/components/audit-log-table/schema.d.ts +122 -0
- package/dist/components/copy-button/html.d.ts +2 -2
- package/dist/components/danger-confirmation/index.d.ts +2 -2
- package/dist/components/data-table/classes.d.ts +10 -3
- package/dist/components/data-table/html.d.ts +93 -21
- package/dist/components/data-table/html.js +122 -32
- package/dist/components/data-table/index.d.ts +97 -9
- package/dist/components/data-table/react.d.ts +14 -3
- package/dist/components/data-table/react.js +162 -19
- package/dist/components/data-table/schema.d.ts +175 -16
- package/dist/components/date-input/html.d.ts +2 -2
- package/dist/components/docs/html.js +1 -1
- package/dist/components/editable-text/html.d.ts +2 -2
- package/dist/components/editable-text/index.d.ts +4 -4
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/email-editor/legacy-editor.html.d.ts +6 -6
- package/dist/components/form/react.d.ts +5 -5
- package/dist/components/locale-switcher/html.d.ts +2 -2
- package/dist/components/map-menu/html.d.ts +4 -4
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/sidebar-layout/html.js +1 -1
- package/dist/components/switch/react.d.ts +14 -0
- package/dist/components/switch/react.js +55 -0
- package/dist/components/theme-switcher/html.d.ts +2 -2
- package/dist/components/tracking-notice/classes.d.ts +6 -0
- package/dist/components/tracking-notice/html.d.ts +85 -0
- package/dist/components/tracking-notice/html.js +354 -0
- package/dist/components/tracking-notice/index.d.ts +95 -0
- package/dist/components/tracking-notice/react.d.ts +5 -27
- package/dist/components/tracking-notice/react.js +189 -59
- package/dist/components/tracking-notice/schema.d.ts +45 -0
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/virtualized-combobox/html.d.ts +3 -3
- package/dist/components/webhook-delivery-table/html.js +122 -32
- package/dist/components/webhook-delivery-table/react.js +162 -19
- package/dist/services/events/browser.js +39 -26
- package/dist/services/events/index.js +23 -19
- package/dist/services/opentelemetry/web-vitals.js +27 -23
- package/package.json +9 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { EventLogRecord, EventQuery } from "../../services/events/schema.js";
|
|
2
|
+
import type { AuditLogMessages, AuditLogTableProps } from "./schema.js";
|
|
3
|
+
export declare const auditLogMessages: (locale: string, messages?: AuditLogTableProps["messages"]) => {
|
|
4
|
+
title: string;
|
|
5
|
+
event: string;
|
|
6
|
+
allEvents: string;
|
|
7
|
+
time: string;
|
|
8
|
+
action: string;
|
|
9
|
+
target: string;
|
|
10
|
+
actor: string;
|
|
11
|
+
method: string;
|
|
12
|
+
actorMember: string;
|
|
13
|
+
impersonatedBy: string;
|
|
14
|
+
actorOrganization: string;
|
|
15
|
+
methodApiKey: string;
|
|
16
|
+
methodSession: string;
|
|
17
|
+
methodUnknown: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const auditTableState: (state?: EventQuery) => EventQuery | undefined;
|
|
20
|
+
export declare const auditRowId: (entry: EventLogRecord) => string;
|
|
21
|
+
export declare const auditRowTime: (entry: EventLogRecord) => number;
|
|
22
|
+
export declare const auditActionLabel: (entry: EventLogRecord, events: NonNullable<AuditLogTableProps["events"]>) => string;
|
|
23
|
+
export declare const auditActor: (entry: EventLogRecord, labels: AuditLogMessages) => {
|
|
24
|
+
label: string;
|
|
25
|
+
description: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const auditTarget: (entry: EventLogRecord, labels: AuditLogMessages) => {
|
|
28
|
+
label: string;
|
|
29
|
+
description: string;
|
|
30
|
+
} | null;
|
|
31
|
+
export declare const auditImpersonation: (entry: EventLogRecord, labels: AuditLogMessages) => string | undefined;
|
|
32
|
+
export declare const auditMethod: (entry: EventLogRecord) => "api_key" | "session" | "unknown";
|
|
33
|
+
export declare const auditMethods: (labels: AuditLogMessages) => {
|
|
34
|
+
session: string;
|
|
35
|
+
api_key: string;
|
|
36
|
+
unknown: string;
|
|
37
|
+
};
|
|
@@ -1,58 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { type DataTableStatus } from "../ui/data-table.js";
|
|
3
3
|
import type { EventLogRecord, EventQuery } from "../../services/events/schema.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
event: string;
|
|
8
|
-
allEvents: string;
|
|
9
|
-
time: string;
|
|
10
|
-
action: string;
|
|
11
|
-
target: string;
|
|
12
|
-
actor: string;
|
|
13
|
-
method: string;
|
|
14
|
-
actorMember: string;
|
|
15
|
-
impersonatedBy: string;
|
|
16
|
-
actorOrganization: string;
|
|
17
|
-
methodApiKey: string;
|
|
18
|
-
methodSession: string;
|
|
19
|
-
methodUnknown: string;
|
|
20
|
-
};
|
|
21
|
-
fr: {
|
|
22
|
-
title: string;
|
|
23
|
-
event: string;
|
|
24
|
-
allEvents: string;
|
|
25
|
-
time: string;
|
|
26
|
-
action: string;
|
|
27
|
-
target: string;
|
|
28
|
-
actor: string;
|
|
29
|
-
method: string;
|
|
30
|
-
actorMember: string;
|
|
31
|
-
impersonatedBy: string;
|
|
32
|
-
actorOrganization: string;
|
|
33
|
-
methodApiKey: string;
|
|
34
|
-
methodSession: string;
|
|
35
|
-
methodUnknown: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export type AuditLogMessages = typeof translations.en;
|
|
39
|
-
export type AuditLogTableProps = DataTableStatus & {
|
|
40
|
-
/** Full application-owned event catalog, with localized display labels. */
|
|
41
|
-
events?: readonly {
|
|
42
|
-
value: string;
|
|
43
|
-
label: string;
|
|
44
|
-
}[];
|
|
45
|
-
state?: EventQuery;
|
|
4
|
+
import type { AuditLogTableProps as CommonProps } from "./schema.js";
|
|
5
|
+
export type { AuditLogMessages } from "./schema.js";
|
|
6
|
+
export type AuditLogTableProps = Omit<CommonProps, keyof DataTableStatus> & DataTableStatus & {
|
|
46
7
|
onStateChange?: (state: EventQuery) => void;
|
|
47
|
-
entries: readonly EventLogRecord[];
|
|
48
|
-
/** Total matching records from the query response; paging lives in state. */
|
|
49
|
-
rowCount: number;
|
|
50
|
-
/** Display time zone for the dateTime column. Defaults to America/New_York. */
|
|
51
|
-
timeZone?: string;
|
|
52
|
-
/** Overrides the shared KrakstackProvider locale when supplied. */
|
|
53
|
-
locale?: string;
|
|
54
|
-
messages?: Readonly<Record<string, Partial<AuditLogMessages>>>;
|
|
55
8
|
renderAction?: (entry: EventLogRecord) => ReactNode;
|
|
56
9
|
};
|
|
57
10
|
export declare const AuditLogTable: ({ entries, events, rowCount, timeZone, locale: localeOverride, messages, renderAction, state, onStateChange, ...status }: AuditLogTableProps) => import("react").JSX.Element;
|
|
58
|
-
export {};
|