@krak-stack/registry 0.1.58 → 0.1.60

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 (41) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +3 -0
  3. package/dist/components/ui/data-table.d.ts +2 -0
  4. package/dist/components/ui/data-table.js +6 -2
  5. package/dist/components/ui/item.d.ts +22 -0
  6. package/dist/components/ui/trace.d.ts +18 -0
  7. package/dist/services/agent/client/index.js +584 -434
  8. package/dist/services/agent/client/widget.d.ts +1 -0
  9. package/dist/services/events/browser.js +29 -3
  10. package/dist/services/events/client/audit-log-table.js +6 -2
  11. package/dist/services/events/client/tracking-notice.js +2 -1
  12. package/dist/services/events/index.d.ts +26 -56
  13. package/dist/services/events/index.js +118 -7
  14. package/dist/services/events/schema.d.ts +66 -24
  15. package/dist/services/events/schema.js +34 -3
  16. package/dist/services/opentelemetry/api.js +2 -1
  17. package/dist/services/opentelemetry/browser.d.ts +1 -1
  18. package/dist/services/opentelemetry/browser.js +2 -1
  19. package/dist/services/opentelemetry/events.d.ts +1 -1
  20. package/dist/services/opentelemetry/index.d.ts +1 -1
  21. package/dist/services/opentelemetry/index.js +2 -1
  22. package/dist/services/opentelemetry/schema.d.ts +3 -1
  23. package/dist/services/opentelemetry/web-vitals.js +2 -1
  24. package/dist/services/speech/api.d.ts +13 -0
  25. package/dist/services/speech/api.js +60 -0
  26. package/dist/services/speech/index.d.ts +39 -0
  27. package/dist/services/speech/index.js +105 -0
  28. package/dist/services/speech/schema.d.ts +43 -0
  29. package/dist/services/speech/schema.js +54 -0
  30. package/dist/services/webhooks/http-client.d.ts +7 -0
  31. package/dist/services/webhooks/http-client.js +57 -0
  32. package/dist/services/webhooks/index.d.ts +341 -0
  33. package/dist/services/webhooks/index.js +737 -0
  34. package/dist/services/webhooks/migrations.d.ts +5 -0
  35. package/dist/services/webhooks/migrations.js +44 -0
  36. package/dist/services/webhooks/schema.d.ts +243 -0
  37. package/dist/services/webhooks/schema.js +333 -0
  38. package/dist/services/webhooks/url.d.ts +3 -0
  39. package/dist/services/webhooks/url.js +32 -0
  40. package/package.json +37 -1
  41. package/dist/components/ui/marker.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # @krak-stack/registry
2
2
 
3
- ## Unreleased
3
+ ## 0.1.60
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Add durable server-event subscriptions and JSON snapshot normalization to Events.
8
+ - Export reusable Webhooks with protected delivery, durable retries, endpoint names, sanitized errors, tenant-scoped statistics, and paginated delivery history.
9
+ - Support icons and icon styling in data-table reference cells.
7
10
  - 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
11
 
12
+ ## 0.1.59
13
+
14
+ ### Patch Changes
15
+
16
+ - Export reusable Cloudflare AI Gateway speech-to-text and text-to-speech services from `@krak-stack/registry/speech`, with schemas and an optional host-authenticated HTTP API contract.
17
+
9
18
  ## 0.1.58
10
19
 
11
20
  ### Patch Changes
package/README.md CHANGED
@@ -18,8 +18,11 @@ Import from the specific package subpaths you need:
18
18
  import { DataTable } from "@krak-stack/registry/data-table";
19
19
  import { Otlp } from "@krak-stack/registry/opentelemetry";
20
20
  import { BrowserOtlp } from "@krak-stack/registry/opentelemetry/browser";
21
+ import { Speech } from "@krak-stack/registry/speech";
21
22
  ```
22
23
 
24
+ Speech-to-text and text-to-speech use Cloudflare AI Gateway. See the [speech setup and API contract](https://krakstack.net/docs/speech); authentication and quotas stay application-owned. Schemas and the optional HTTP API contract are available from `@krak-stack/registry/speech/schema` and `@krak-stack/registry/speech/api`.
25
+
23
26
  For packaged UI components, include the Tailwind source in your application stylesheet:
24
27
 
25
28
  ```css
@@ -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, };