@krak-stack/registry 0.11.6 → 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.
Files changed (42) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/audit-log-table/classes.d.ts +1 -0
  3. package/dist/components/audit-log-table/html.d.ts +158 -0
  4. package/dist/components/audit-log-table/html.js +3260 -0
  5. package/dist/components/audit-log-table/index.d.ts +37 -0
  6. package/dist/components/audit-log-table/react.d.ts +3 -51
  7. package/dist/components/audit-log-table/react.js +94 -77
  8. package/dist/components/audit-log-table/schema.d.ts +122 -0
  9. package/dist/components/copy-button/html.d.ts +2 -2
  10. package/dist/components/danger-confirmation/index.d.ts +2 -2
  11. package/dist/components/data-table/classes.d.ts +1 -0
  12. package/dist/components/data-table/html.d.ts +12 -12
  13. package/dist/components/data-table/html.js +9 -6
  14. package/dist/components/data-table/react.js +10 -4
  15. package/dist/components/date-input/html.d.ts +2 -2
  16. package/dist/components/editable-text/html.d.ts +2 -2
  17. package/dist/components/editable-text/index.d.ts +4 -4
  18. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  19. package/dist/components/email-editor/legacy-editor.html.d.ts +6 -6
  20. package/dist/components/form/react.d.ts +5 -5
  21. package/dist/components/locale-switcher/html.d.ts +2 -2
  22. package/dist/components/map-menu/html.d.ts +4 -4
  23. package/dist/components/presence-transition/index.d.ts +2 -2
  24. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  25. package/dist/components/switch/react.d.ts +14 -0
  26. package/dist/components/switch/react.js +55 -0
  27. package/dist/components/theme-switcher/html.d.ts +2 -2
  28. package/dist/components/tracking-notice/classes.d.ts +6 -0
  29. package/dist/components/tracking-notice/html.d.ts +85 -0
  30. package/dist/components/tracking-notice/html.js +354 -0
  31. package/dist/components/tracking-notice/index.d.ts +95 -0
  32. package/dist/components/tracking-notice/react.d.ts +5 -27
  33. package/dist/components/tracking-notice/react.js +189 -59
  34. package/dist/components/tracking-notice/schema.d.ts +45 -0
  35. package/dist/components/upload-attachment/html.d.ts +4 -4
  36. package/dist/components/virtualized-combobox/html.d.ts +3 -3
  37. package/dist/components/webhook-delivery-table/html.js +9 -6
  38. package/dist/components/webhook-delivery-table/react.js +10 -4
  39. package/dist/services/events/browser.js +39 -26
  40. package/dist/services/events/index.js +23 -19
  41. package/dist/services/opentelemetry/web-vitals.js +27 -23
  42. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @krak-stack/registry
2
2
 
3
+ ## 0.11.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 176df1a: Add an Effect UI HTML Tracking Notice with the same analytics preferences and browser privacy protections as the React version.
8
+
9
+ Share the consent subscription and save command between both renderers.
10
+
11
+ - 176df1a: Show the result count in a sticky footer in React and Effect UI HTML data tables when pagination controls are not shown.
12
+ - 4ff6d8a: Add a React Switch with rectangular and rounded shapes and optional localized on/off text.
13
+ - 176df1a: Let the audit log table fill the available height, with scrollable rows and pagination below them.
14
+
15
+ Add an Effect UI HTML audit log table with the same localized columns and server pagination.
16
+
17
+ - 176df1a: Verify that analytics preference changes are saved to the cookie before reporting success, and use a single consent read when checking whether analytics was accepted before navigation.
18
+
3
19
  ## 0.11.6
4
20
 
5
21
  ### Patch Changes
@@ -7,6 +23,7 @@
7
23
  - Add an opt-in badge display for text columns in React and Effect UI data tables. Badges support configurable labels, leading icons, and variants, and filter and export by their original values.
8
24
 
9
25
  List columns can also display each item as a badge. Read-only Effect UI lists open a dropdown even when every item fits in the cell.
26
+
10
27
  - Keep boolean cells as checkboxes in Effect UI tables with row activation, and match inset cell focus styling across React and Effect UI.
11
28
  - Expose the collapsed icon state to HTML sidebar headers so organization switchers use their compact styling.
12
29
 
@@ -17,6 +34,7 @@
17
34
  - 72c4875: Use the consumer's shadcn and Effect 4.2-compatible effectcn primitives instead of bundling or installing them. Supply the primitives used by your features at `@/components/ui` or `@/components/effectcn` and configure your bundler to resolve those aliases from npm UI imports.
18
35
 
19
36
  The `@krak-stack/select` item and the `@krak-stack/registry/select` and `@krak-stack/registry/effectcn/form` exports have been removed. Import the equivalent primitives from your app; existing installed copies can remain in place.
37
+
20
38
  - 72c4875: Match AppBrand padding in the expanded Effect UI and React sidebars while keeping the brand icon visible in the collapsed rail.
21
39
  - 72c4875: Show boolean and list filter choices directly in Effect UI data table submenus, and display the active filter count in a badge.
22
40
  - 72c4875: Add React and Effect UI documentation layouts and article shells with shared search behavior and a shared props schema.
@@ -60,10 +78,12 @@
60
78
  Place search and the menubar inline when space permits, and wrap the toolbar and menu controls on narrow tables.
61
79
 
62
80
  Keep the HTML bulk-action count and targeted rows in sync, move rows between groups when dropped onto a row or card, and request the last valid server page when the current page disappears.
81
+
63
82
  - bc3aeab: Keep React DataTable hydration consistent when saved preferences load early, and keep the table mounted while preferences are being saved.
64
83
  - 241f843: Use the same Effect UI model for React and HTML DataTable state and saved preferences. Existing React query callbacks and saved browser preferences continue to work.
65
84
 
66
85
  Both renderers also share the row-processing pipeline. Current-page exports now match the rows shown when client-side grouping turns pagination off.
86
+
67
87
  - be6c9c6: Rename `DatePicker` to `DateInput` and replace the `date-picker` registry and package paths with `date-input`. The calendar and clear buttons sit inside the field in React and Effect UI HTML and accept overrides through `actionClassName`.
68
88
  - be6c9c6: Rename Cron Expression Editor to Cron Input. Use the `CronInput` export from `@krak-stack/registry/cron-input/react` or `@krak-stack/registry/cron-input/html`, and `@krak-stack/cron-input` or `@krak-stack/cron-input-html` for shadcn installs. The docs moved to `/docs/cron-input`. Both renderers use Effect's built-in `Cron` module. The input still accepts five fields, but previews now follow Effect's cron semantics. Check schedules that combine wildcard steps in one day field with a restricted other day field, or use `cron-parser` extensions such as `L` and `#`.
69
89
  - Fix source installs under custom component aliases and keep HTML-only registry installs free of React. Preserve the existing Support, Danger Confirmation, Events, and Webhooks React imports. Restore the published React Select defaults and the Map Menu 50 Km preset, and focus the search field when the HTML Search Menu opens. Notifications inbox and administration components now declare the registry version that provides their renderer imports.
@@ -75,6 +95,7 @@
75
95
  - 6cc75d9: Add controlled Pagination for Effect UI HTML, with shared React and HTML props, localization, and page-navigation rules.
76
96
 
77
97
  Hide the page number and disable page navigation when there are no pages.
98
+
78
99
  - d070a0a: Add Effect UI HTML renderers for more registry components, with shared prop schemas, renderer-neutral behavior where applicable, and separate React and HTML install entries. Existing React imports remain available.
79
100
  - 3a7ae58: Let the React Effect UI adapter inherit a message log from context without adding logging props to individual components.
80
101
  - 8f17684: Declare the optional TanStack Form Core peer used by the emitted React form types. Install it alongside TanStack React Form when consuming the form declarations.
@@ -116,12 +137,14 @@
116
137
  Show Support’s inline schema errors instead of native browser validation popups in both renderers, and mark invalid controls with the theme’s destructive border color.
117
138
 
118
139
  Show separate inline validation messages for the support message and reply email.
140
+
119
141
  - 9f769d7: Move shared Support styles from the validation schemas into the component's shared entry point without changing the React or HTML views.
120
142
  - f382af2: Use native Tiptap JSONContent and standard Tiptap extensions in RichTextEditor, without the KrakStack versioned rich-text format or conversion layer. This changes the value/onChange contract: old version 1 documents are not accepted or silently migrated.
121
143
 
122
144
  Fix caret placement inside links and apply URL edits or removal to the full existing link.
123
145
 
124
146
  Add Email Composer: a document-style editor using the shared RichTextEditor surface, @react-email/editor extensions, and continuous HTML/plain-text previews with escaped variable samples instead of an export button. Keep programmatic React Email export available. Deprecate the drag-and-drop Email Editor, retaining its frozen legacy document support only for existing integrations.
147
+
125
148
  - 247eb93: Use shadcn/ui for React Support and Effect 4.2-compatible effectcn source for its HTML view. Use Tailwind and the app's CSS theme instead of the shared theme package. Remove the KrakStack Button, Dialog, Field, and Theme entries and the Native Button export. The Support component entry points remain available; import `@krak-stack/registry/tailwind.css` from your Tailwind entry sheet for packaged React Support.
126
149
  - 2aeb055: Add `features.virtualization.scroll: "internal"` to fill a height-constrained flex column while keeping the toolbar and pagination outside the internal scroll area. `"page"` still scrolls with the browser, and `"table"` retains the existing height cap.
127
150
 
@@ -201,14 +224,17 @@
201
224
  - Place table search alongside the menubar on wider screens, show an icon-only Filters trigger on mobile, and keep internal scroll targets clear of sticky column headers.
202
225
 
203
226
  Match the menubar border and shadow to the search input.
227
+
204
228
  - Allow virtualized tables to use page scrolling instead of an internal vertical viewport.
205
229
 
206
230
  Keep list-cell menus from locking page scrolling and disturbing virtualized rows.
231
+
207
232
  - Keep table toolbar menus non-modal so opening them does not lock page scrolling.
208
233
  - Add opt-in DataTable row virtualization for large flat tables.
209
234
  - Make pagination opt-in. Paginated tables default to 100 rows and offer page sizes of 20, 50, and 100.
210
235
 
211
236
  Automatically virtualize tables with at least 100 displayed rows unless `virtualization` is set to `false`.
237
+
212
238
  - Virtualize expanded group rows, place the internal scrollbar below the header, and keep the bottom divider attached to the sticky header.
213
239
 
214
240
  ## 0.10.11
@@ -0,0 +1 @@
1
+ export declare const auditTableLayout = "flex min-h-0 flex-1 flex-col";
@@ -0,0 +1,158 @@
1
+ import { Schema } from "effect";
2
+ import { Component } from "effect/ui";
3
+ import { Html } from "effect/ui/html";
4
+ export type { AuditLogMessages, AuditLogTableProps } from "./schema.js";
5
+ export { EventQuery as AuditLogQuerySchema } from "../../services/events/schema.js";
6
+ export type { EventQuery as AuditLogQuery } from "../../services/events/schema.js";
7
+ /** The host owns the query and supplies the matching server page. */
8
+ export declare const AuditLogTable: Component.Component<"AuditLogTable", {
9
+ readonly entries: readonly {
10
+ readonly eventName: string;
11
+ readonly timeUnixNano: string;
12
+ readonly observedTimeUnixNano?: string | undefined;
13
+ readonly severityNumber?: number | undefined;
14
+ readonly traceId?: string | undefined;
15
+ readonly spanId?: string | undefined;
16
+ readonly attributes: readonly {
17
+ readonly key: string;
18
+ readonly value: {
19
+ readonly [x: string]: Schema.Json;
20
+ readonly stringValue?: string | undefined;
21
+ };
22
+ }[];
23
+ }[];
24
+ readonly rowCount: number;
25
+ readonly events?: readonly {
26
+ readonly value: string;
27
+ readonly label: string;
28
+ }[] | undefined;
29
+ readonly state?: {
30
+ readonly page: number;
31
+ readonly pageSize: number;
32
+ readonly globalFilter?: string | undefined;
33
+ readonly sort?: readonly {
34
+ readonly id: string;
35
+ readonly direction: "asc" | "desc";
36
+ }[] | undefined;
37
+ readonly filters?: readonly ({
38
+ readonly id: string;
39
+ readonly kind: "number";
40
+ readonly min?: number | undefined;
41
+ readonly max?: number | undefined;
42
+ } | {
43
+ readonly id: string;
44
+ readonly kind: "date";
45
+ readonly from?: string | undefined;
46
+ readonly to?: string | undefined;
47
+ } | {
48
+ readonly id: string;
49
+ readonly kind: "text";
50
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
51
+ readonly value: string;
52
+ } | {
53
+ readonly id: string;
54
+ readonly kind: "boolean";
55
+ readonly value: boolean;
56
+ } | {
57
+ readonly id: string;
58
+ readonly kind: "values";
59
+ readonly values: readonly [string, ...string[]];
60
+ })[] | undefined;
61
+ readonly eventName?: string | undefined;
62
+ } | undefined;
63
+ readonly timeZone?: string | undefined;
64
+ readonly locale?: string | undefined;
65
+ readonly messages?: {
66
+ readonly [x: string]: {
67
+ readonly title?: string | undefined;
68
+ readonly event?: string | undefined;
69
+ readonly allEvents?: string | undefined;
70
+ readonly time?: string | undefined;
71
+ readonly action?: string | undefined;
72
+ readonly target?: string | undefined;
73
+ readonly actor?: string | undefined;
74
+ readonly method?: string | undefined;
75
+ readonly actorMember?: string | undefined;
76
+ readonly impersonatedBy?: string | undefined;
77
+ readonly actorOrganization?: string | undefined;
78
+ readonly methodApiKey?: string | undefined;
79
+ readonly methodSession?: string | undefined;
80
+ readonly methodUnknown?: string | undefined;
81
+ };
82
+ } | undefined;
83
+ readonly loading?: boolean | undefined;
84
+ readonly error?: string | undefined;
85
+ readonly empty?: string | undefined;
86
+ }, null, {
87
+ readonly _tag: "StateChanged";
88
+ readonly state: {
89
+ readonly page: number;
90
+ readonly pageSize: number;
91
+ readonly globalFilter?: string | undefined;
92
+ readonly sort?: readonly {
93
+ readonly id: string;
94
+ readonly direction: "asc" | "desc";
95
+ }[] | undefined;
96
+ readonly filters?: readonly ({
97
+ readonly id: string;
98
+ readonly kind: "number";
99
+ readonly min?: number | undefined;
100
+ readonly max?: number | undefined;
101
+ } | {
102
+ readonly id: string;
103
+ readonly kind: "date";
104
+ readonly from?: string | undefined;
105
+ readonly to?: string | undefined;
106
+ } | {
107
+ readonly id: string;
108
+ readonly kind: "text";
109
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
110
+ readonly value: string;
111
+ } | {
112
+ readonly id: string;
113
+ readonly kind: "boolean";
114
+ readonly value: boolean;
115
+ } | {
116
+ readonly id: string;
117
+ readonly kind: "values";
118
+ readonly values: readonly [string, ...string[]];
119
+ })[] | undefined;
120
+ readonly eventName?: string | undefined;
121
+ };
122
+ }, {
123
+ readonly _tag: "StateChanged";
124
+ readonly state: {
125
+ readonly page: number;
126
+ readonly pageSize: number;
127
+ readonly globalFilter?: string | undefined;
128
+ readonly sort?: readonly {
129
+ readonly id: string;
130
+ readonly direction: "asc" | "desc";
131
+ }[] | undefined;
132
+ readonly filters?: readonly ({
133
+ readonly id: string;
134
+ readonly kind: "number";
135
+ readonly min?: number | undefined;
136
+ readonly max?: number | undefined;
137
+ } | {
138
+ readonly id: string;
139
+ readonly kind: "date";
140
+ readonly from?: string | undefined;
141
+ readonly to?: string | undefined;
142
+ } | {
143
+ readonly id: string;
144
+ readonly kind: "text";
145
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
146
+ readonly value: string;
147
+ } | {
148
+ readonly id: string;
149
+ readonly kind: "boolean";
150
+ readonly value: boolean;
151
+ } | {
152
+ readonly id: string;
153
+ readonly kind: "values";
154
+ readonly values: readonly [string, ...string[]];
155
+ })[] | undefined;
156
+ readonly eventName?: string | undefined;
157
+ };
158
+ }, any, Html.Elements, {}, never>;