@krak-stack/registry 0.1.59 → 0.1.61

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 (37) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/components/ui/data-table.d.ts +2 -0
  3. package/dist/components/ui/data-table.js +6 -2
  4. package/dist/components/ui/item.d.ts +22 -0
  5. package/dist/components/ui/trace.d.ts +18 -0
  6. package/dist/services/agent/client/index.js +584 -434
  7. package/dist/services/agent/client/widget.d.ts +1 -0
  8. package/dist/services/events/browser.js +29 -3
  9. package/dist/services/events/client/audit-log-table.js +6 -2
  10. package/dist/services/events/client/tracking-notice.js +2 -1
  11. package/dist/services/events/index.d.ts +26 -56
  12. package/dist/services/events/index.js +118 -7
  13. package/dist/services/events/schema.d.ts +66 -24
  14. package/dist/services/events/schema.js +34 -3
  15. package/dist/services/opentelemetry/api.js +2 -1
  16. package/dist/services/opentelemetry/browser.d.ts +1 -1
  17. package/dist/services/opentelemetry/browser.js +2 -1
  18. package/dist/services/opentelemetry/events.d.ts +1 -1
  19. package/dist/services/opentelemetry/index.d.ts +1 -1
  20. package/dist/services/opentelemetry/index.js +2 -1
  21. package/dist/services/opentelemetry/schema.d.ts +3 -1
  22. package/dist/services/opentelemetry/web-vitals.js +2 -1
  23. package/dist/services/webhooks/client/delivery-table.d.ts +62 -0
  24. package/dist/services/webhooks/client/delivery-table.js +4698 -0
  25. package/dist/services/webhooks/http-client.d.ts +8 -0
  26. package/dist/services/webhooks/http-client.js +69 -0
  27. package/dist/services/webhooks/index.d.ts +343 -0
  28. package/dist/services/webhooks/index.js +872 -0
  29. package/dist/services/webhooks/migrations.d.ts +8 -0
  30. package/dist/services/webhooks/migrations.js +63 -0
  31. package/dist/services/webhooks/receiver.d.ts +41 -0
  32. package/dist/services/webhooks/schema.d.ts +251 -0
  33. package/dist/services/webhooks/schema.js +353 -0
  34. package/dist/services/webhooks/url.d.ts +8 -0
  35. package/dist/services/webhooks/url.js +48 -0
  36. package/package.json +29 -1
  37. package/dist/components/ui/marker.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,9 +1,21 @@
1
1
  # @krak-stack/registry
2
2
 
3
- ## Unreleased
3
+ ## 0.1.61
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 9ea9e42: Sign the stable webhook-id header with the timestamp and raw body, and use it automatically for transactional receiver deduplication. Remove the receiver eventId extraction callback. This changes the signature protocol; senders and receivers must upgrade together. Legacy timestamp/body signatures are rejected.
8
+
9
+ - 7fcaf6f: Add WebhooksReceiver with HMAC verification, timestamp checks, schema validation, and transactional receipt deduplication. Receiver-only applications migrate only receipt storage and do not start outbound workers.
10
+ - 9ea9e42: Add `@krak-stack/registry/webhooks/client` with a shared delivery activity table, failed-attempt status, retry details, JSON inspection, localized labels, and application-owned links.
11
+
12
+ ## 0.1.60
13
+
14
+ ### Patch Changes
15
+
16
+ - Add durable server-event subscriptions and JSON snapshot normalization to Events.
17
+ - Export reusable Webhooks with protected delivery, durable retries, endpoint names, sanitized errors, tenant-scoped statistics, and paginated delivery history.
18
+ - Support icons and icon styling in data-table reference cells.
7
19
  - Merge the error component's homepage link classes with `cn` so its outline border is visible instead of being overridden by the base transparent border.
8
20
 
9
21
  ## 0.1.59
@@ -21,6 +21,8 @@ export interface DataTableListItem {
21
21
  }
22
22
  export interface DataTableReferenceItem {
23
23
  label: string;
24
+ icon?: ReactNode;
25
+ iconClassName?: string;
24
26
  /** Secondary text, such as a user's email or a record identifier. */
25
27
  description?: string | null;
26
28
  imageSrc?: string | null;
@@ -1224,8 +1224,12 @@ var DataTableReferenceCell = ({
1224
1224
  className: "flex min-w-0 items-center gap-2",
1225
1225
  children: [
1226
1226
  /* @__PURE__ */ jsx15("div", {
1227
- className: cn("bg-muted flex size-8 shrink-0 items-center justify-center overflow-hidden text-xs font-medium", imageVariant === "circle" ? "rounded-full" : "rounded-md"),
1228
- children: item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx15("img", {
1227
+ className: cn("bg-muted flex size-8 shrink-0 items-center justify-center overflow-hidden text-xs font-medium", imageVariant === "circle" ? "rounded-full" : "rounded-md", item.iconClassName),
1228
+ children: item.icon ? /* @__PURE__ */ jsx15("span", {
1229
+ "aria-hidden": "true",
1230
+ className: "[&_svg]:size-4",
1231
+ children: item.icon
1232
+ }) : item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx15("img", {
1229
1233
  src: item.imageSrc,
1230
1234
  alt: item.label,
1231
1235
  className: "size-full object-cover",
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ import { Separator } from "./separator.js";
5
+ declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
7
+ declare const itemVariants: (props?: ({
8
+ variant?: "default" | "muted" | "outline" | null | undefined;
9
+ size?: "default" | "sm" | "xs" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
12
+ declare const itemMediaVariants: (props?: ({
13
+ variant?: "default" | "icon" | "image" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
16
+ declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
17
+ declare function ItemTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
18
+ declare function ItemDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
19
+ declare function ItemActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
20
+ declare function ItemHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
21
+ declare function ItemFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
22
+ export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible.js";
3
+ declare function Trace({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
4
+ declare function TraceLine({ className, status, ...props }: React.ComponentProps<"span"> & {
5
+ status?: "running" | "error" | "pending";
6
+ }): React.JSX.Element;
7
+ declare function TraceIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
8
+ declare function TraceTitle({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
9
+ declare function TraceDescription({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
10
+ declare function TraceCollapsible({ className, ...props }: Omit<React.ComponentProps<typeof Collapsible>, "open"> & ({
11
+ open?: undefined;
12
+ } | {
13
+ open: boolean;
14
+ onOpenChange: NonNullable<React.ComponentProps<typeof Collapsible>["onOpenChange"]>;
15
+ })): React.JSX.Element;
16
+ declare function TraceCollapsibleTrigger({ className, children, ...props }: React.ComponentProps<typeof CollapsibleTrigger>): React.JSX.Element;
17
+ declare function TraceCollapsibleContent({ className, children, ...props }: React.ComponentProps<typeof CollapsibleContent>): React.JSX.Element;
18
+ export { Trace, TraceLine, TraceIcon, TraceTitle, TraceDescription, TraceCollapsible, TraceCollapsibleTrigger, TraceCollapsibleContent, };