@assistant-ui/react-o11y 0.0.25 → 0.0.26

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.
@@ -1,5 +1,4 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
-
3
2
  //#region src/context/SpanByIndexProvider.d.ts
4
3
  declare const SpanByIndexProvider: FC<PropsWithChildren<{
5
4
  index: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanByIndexProvider.d.ts","names":[],"sources":["../../src/context/SpanByIndexProvider.tsx"],"mappings":";;;cAGa,mBAAA,EAAqB,EAAE,CAAC,iBAAA;EAAoB,KAAA;AAAA"}
1
+ {"version":3,"file":"SpanByIndexProvider.d.ts","names":[],"sources":["../../src/context/SpanByIndexProvider.tsx"],"mappings":";;cAGa,qBAAqB,GAAG;EAAoB"}
@@ -1,3 +1,4 @@
1
+ import "@assistant-ui/store";
1
2
  //#region src/o11y-scope.d.ts
2
3
  type SpanItemState = {
3
4
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"o11y-scope.d.ts","names":[],"sources":["../src/o11y-scope.ts"],"mappings":";KAEY,aAAA;EACV,EAAA;EACA,YAAA;EACA,IAAA;EACA,IAAA;EACA,MAAA;EACA,SAAA;EACA,OAAA;EACA,SAAA;EACA,KAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,KAGU,SAAA,GAAY,aAAA;EACtB,QAAA,EAAU,aAAa;EACvB,SAAA;IAAa,GAAA;IAAa,GAAA;EAAA;AAAA;AAAA,KAGvB,WAAA;EACH,QAAA,QAAgB,SAAA;EAChB,KAAA,GAAQ,MAAA,EAAQ,QAAA,cAAsB,WAAA;EACtC,cAAA;AAAA;AAAA,KAGG,QAAA;EACH,MAAA;EACA,KAAA;IAAS,KAAA;EAAA;IAAoB,GAAA;EAAA;AAAA;AAAA;EAAA,UAInB,aAAA;IACR,IAAA;MACE,OAAA,EAAS,WAAA;MACT,IAAA,EAAM,QAAQ;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"o11y-scope.d.ts","names":[],"sources":["../src/o11y-scope.ts"],"mappings":";;KAEY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU,YAAY;EACtB,UAAU;EACV;IAAa;IAAa;;;KAGvB;EACH,gBAAgB;EAChB,QAAQ,QAAQ,sBAAsB;EACtC;;KAGG;EACH;EACA;IAAS;;IAAoB;;;;YAInB;IACR;MACE,SAAS;MACT,MAAM"}
@@ -1,6 +1,5 @@
1
1
  import { SpanState } from "../../o11y-scope.js";
2
2
  import { ComponentType, FC, ReactNode } from "react";
3
-
4
3
  //#region src/primitives/span/SpanChildren.d.ts
5
4
  type SpanChildrenComponentConfig = {
6
5
  Span: ComponentType;
@@ -10,7 +9,8 @@ declare namespace SpanPrimitiveChildren {
10
9
  components: SpanChildrenComponentConfig;
11
10
  children?: never;
12
11
  } | {
13
- /** Render function called for each child span. Receives the span. */children: (value: {
12
+ /** Render function called for each child span. Receives the span. */
13
+ children: (value: {
14
14
  span: SpanState;
15
15
  }) => ReactNode;
16
16
  components?: never;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanChildren.d.ts","names":[],"sources":["../../../src/primitives/span/SpanChildren.tsx"],"mappings":";;;;KAWK,2BAAA;EACH,IAAA,EAAM,aAAa;AAAA;AAAA,kBAGJ,qBAAA;EAAA,KACH,KAAA;IAEN,UAAA,EAAY,2BAAA;IACZ,QAAA;EAAA;IAJ8B,qEAQ9B,QAAA,GAAW,KAAA;MAAS,IAAA,EAAM,SAAA;IAAA,MAAgB,SAAA;IAC1C,UAAA;EAAA;AAAA;AAAA,kBAIS,yBAAA;EAAA,KACH,KAAA;IACV,KAAA;IACA,UAAA,EAAY,2BAA2B;EAAA;AAAA;AAAA,cAI9B,yBAAA,EAA2B,EAAE,CAAC,yBAAA,CAA0B,KAAA;AAAA,cAuDxD,qBAAA,EAAuB,EAAE,CAAC,qBAAA,CAAsB,KAAA"}
1
+ {"version":3,"file":"SpanChildren.d.ts","names":[],"sources":["../../../src/primitives/span/SpanChildren.tsx"],"mappings":";;;KAWK;EACH,MAAM;;kBAGS;OACH;IAEN,YAAY;IACZ;;;IAIA,WAAW;MAAS,MAAM;UAAgB;IAC1C;;;kBAIS;OACH;IACV;IACA,YAAY;;;cAIH,2BAA2B,GAAG,0BAA0B;cAuDxD,uBAAuB,GAAG,sBAAsB"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanCollapseToggle.d.ts
5
4
  declare namespace SpanPrimitiveCollapseToggle {
6
5
  type Element = ComponentRef<typeof Primitive.button>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanCollapseToggle.d.ts","names":[],"sources":["../../../src/primitives/span/SpanCollapseToggle.tsx"],"mappings":";;;;kBAQiB,2BAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,MAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,MAAA;AAAA;AAAA,cAGnD,2BAAA,kBAA2B,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,iBAAA,oBAAA,oBAAA,CAAA,iBAAA"}
1
+ {"version":3,"file":"SpanCollapseToggle.d.ts","names":[],"sources":["../../../src/primitives/span/SpanCollapseToggle.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,6CAA2B,0BAAA,qBAAA,gBAAA,qCAAA,qBAAA"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanIndent.d.ts
5
4
  declare namespace SpanPrimitiveIndent {
6
5
  type Element = ComponentRef<typeof Primitive.div>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanIndent.d.ts","names":[],"sources":["../../../src/primitives/span/SpanIndent.tsx"],"mappings":";;;;kBASiB,mBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;IAC5D,UAAA;IACA,cAAA;EAAA;AAAA;AAAA,cAIS,mBAAA,kBAAmB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA"}
1
+ {"version":3,"file":"SpanIndent.d.ts","names":[],"sources":["../../../src/primitives/span/SpanIndent.tsx"],"mappings":";;;kBASiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;IAC5D;IACA;;;cAIS,qCAAmB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanName.d.ts
5
4
  declare namespace SpanPrimitiveName {
6
5
  type Element = ComponentRef<typeof Primitive.span>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanName.d.ts","names":[],"sources":["../../../src/primitives/span/SpanName.tsx"],"mappings":";;;;kBAQiB,iBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,IAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,IAAA;AAAA;AAAA,cAGnD,iBAAA,kBAAiB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,eAAA,oBAAA,cAAA,CAAA,eAAA"}
1
+ {"version":3,"file":"SpanName.d.ts","names":[],"sources":["../../../src/primitives/span/SpanName.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,mCAAiB,0BAAA,qBAAA,gBAAA,mCAAA,eAAA"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanRoot.d.ts
5
4
  declare namespace SpanPrimitiveRoot {
6
5
  type Element = ComponentRef<typeof Primitive.div>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanRoot.d.ts","names":[],"sources":["../../../src/primitives/span/SpanRoot.tsx"],"mappings":";;;;kBAQiB,iBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;AAAA;AAAA,cAGnD,iBAAA,kBAAiB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA"}
1
+ {"version":3,"file":"SpanRoot.d.ts","names":[],"sources":["../../../src/primitives/span/SpanRoot.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,mCAAiB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanStatusIndicator.d.ts
5
4
  declare namespace SpanPrimitiveStatusIndicator {
6
5
  type Element = ComponentRef<typeof Primitive.span>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanStatusIndicator.d.ts","names":[],"sources":["../../../src/primitives/span/SpanStatusIndicator.tsx"],"mappings":";;;;kBAQiB,4BAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,IAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,IAAA;AAAA;AAAA,cAGnD,4BAAA,kBAA4B,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,eAAA,oBAAA,cAAA,CAAA,eAAA"}
1
+ {"version":3,"file":"SpanStatusIndicator.d.ts","names":[],"sources":["../../../src/primitives/span/SpanStatusIndicator.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,8CAA4B,0BAAA,qBAAA,gBAAA,mCAAA,eAAA"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanTimeline.d.ts
5
4
  type SpanTimelineRange = {
6
5
  min: number;
@@ -26,12 +25,7 @@ declare namespace SpanPrimitiveTimelineBar {
26
25
  timeRange?: SpanTimelineRange | undefined;
27
26
  };
28
27
  }
29
- declare const getSpanTimelineBarVars: ({
30
- startedAt,
31
- endedAt,
32
- timeRange,
33
- now
34
- }: {
28
+ declare const getSpanTimelineBarVars: ({ startedAt, endedAt, timeRange, now }: {
35
29
  startedAt: number;
36
30
  endedAt: number | null;
37
31
  timeRange: SpanTimelineRange;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanTimeline.d.ts","names":[],"sources":["../../../src/primitives/span/SpanTimeline.tsx"],"mappings":";;;;KAYY,iBAAA;EAAsB,GAAA;EAAa,GAAG;AAAA;AAAA,kBA6BjC,qBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;IAC5D,SAAA,GAAY,iBAAA;IACZ,UAAA;EAAA;AAAA;AAAA,cAIS,qBAAA,kBAAqB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA;;;cALlB,iBAAA;;;kBAuCC,wBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,GAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,GAAA;IAC5D,GAAA;IACA,SAAA,GAAY,iBAAA;EAAA;AAAA;AAAA,cAIH,sBAAA;EAA0B,SAAA;EAAA,OAAA;EAAA,SAAA;EAAA;AAAA;EAMrC,SAAA;EACA,OAAA;EACA,SAAA,EAAW,iBAAA;EACX,GAAA;AAAA;;;;;;;cAqBW,wBAAA,kBAAwB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,cAAA,oBAAA,cAAA,CAAA,cAAA;;;;cAlCrB,iBAAA;AAAA"}
1
+ {"version":3,"file":"SpanTimeline.d.ts","names":[],"sources":["../../../src/primitives/span/SpanTimeline.tsx"],"mappings":";;;KAYY;EAAsB;EAAa;;kBA6B9B;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;IAC5D,YAAY;IACZ;;;cAIS,uCAAqB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;;cALlB;;;kBAuCC;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;IAC5D;IACA,YAAY;;;cAIH,2BAA0B,WAAA,SAAA,WAAA;EAMrC;EACA;EACA,WAAW;EACX;;;;;;;;cAqBW,0CAAwB,0BAAA,qBAAA,gBAAA,kCAAA,eAAA;;;;cAlCrB"}
@@ -1,6 +1,5 @@
1
1
  import { ComponentPropsWithoutRef, ComponentRef } from "react";
2
2
  import { Primitive } from "@radix-ui/react-primitive";
3
-
4
3
  //#region src/primitives/span/SpanTypeBadge.d.ts
5
4
  declare namespace SpanPrimitiveTypeBadge {
6
5
  type Element = ComponentRef<typeof Primitive.span>;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanTypeBadge.d.ts","names":[],"sources":["../../../src/primitives/span/SpanTypeBadge.tsx"],"mappings":";;;;kBAQiB,sBAAA;EAAA,KACH,OAAA,GAAU,YAAA,QAAoB,SAAA,CAAU,IAAA;EAAA,KACxC,KAAA,GAAQ,wBAAA,QAAgC,SAAA,CAAU,IAAA;AAAA;AAAA,cAGnD,sBAAA,kBAAsB,yBAAA,CAAA,IAAA,iBAAA,eAAA,CAAA,eAAA,oBAAA,cAAA,CAAA,eAAA"}
1
+ {"version":3,"file":"SpanTypeBadge.d.ts","names":[],"sources":["../../../src/primitives/span/SpanTypeBadge.tsx"],"mappings":";;;kBAQiB;OACH,UAAU,oBAAoB,UAAU;OACxC,QAAQ,gCAAgC,UAAU;;cAGnD,wCAAsB,0BAAA,qBAAA,gBAAA,mCAAA,eAAA"}
@@ -6,8 +6,6 @@ import { SpanPrimitiveCollapseToggle } from "./span/SpanCollapseToggle.js";
6
6
  import { SpanPrimitiveIndent } from "./span/SpanIndent.js";
7
7
  import { SpanPrimitiveChildren } from "./span/SpanChildren.js";
8
8
  import { SpanPrimitiveTimeline, SpanPrimitiveTimelineBar, SpanTimelineRange } from "./span/SpanTimeline.js";
9
-
10
- //#region src/primitives/span.d.ts
11
9
  declare namespace span_d_exports {
12
10
  export { SpanPrimitiveChildren as Children, SpanPrimitiveCollapseToggle as CollapseToggle, SpanPrimitiveIndent as Indent, SpanPrimitiveName as Name, SpanPrimitiveRoot as Root, SpanTimelineRange, SpanPrimitiveStatusIndicator as StatusIndicator, SpanPrimitiveTimeline as Timeline, SpanPrimitiveTimelineBar as TimelineBar, SpanPrimitiveTypeBadge as TypeBadge };
13
11
  }
@@ -1,5 +1,5 @@
1
+ import "../o11y-scope.js";
1
2
  import { ClientOutput } from "@assistant-ui/store";
2
-
3
3
  //#region src/resources/SpanResource.d.ts
4
4
  type SpanData = {
5
5
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SpanResource.d.ts","names":[],"sources":["../../src/resources/SpanResource.tsx"],"mappings":";;;KAOY,QAAA;EACV,EAAA;EACA,YAAA;EACA,IAAA;EACA,IAAA;EACA,MAAA;EACA,SAAA;EACA,OAAA;EACA,SAAA;AAAA;AAAA,cA8LW,YAAA,8BAAY,QAAA,CAAA,YAAA;SA/DhB,QAAQ;AAAA"}
1
+ {"version":3,"file":"SpanResource.d.ts","names":[],"sources":["../../src/resources/SpanResource.tsx"],"mappings":";;;KAOY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;cA8LW,0CAAY,SAAA;SA/DhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assistant-ui/react-o11y",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Observability primitives for @assistant-ui",
5
5
  "keywords": [
6
6
  "observability",
@@ -28,9 +28,9 @@
28
28
  ],
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@radix-ui/react-primitive": "^2.1.6",
32
- "@assistant-ui/store": "0.2.19",
33
- "@assistant-ui/tap": "0.9.3"
31
+ "@radix-ui/react-primitive": "^2.1.7",
32
+ "@assistant-ui/store": "0.2.20",
33
+ "@assistant-ui/tap": "0.9.4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@types/react": "*",
@@ -46,8 +46,8 @@
46
46
  "@types/react-dom": "^19.2.3",
47
47
  "react": "^19.2.7",
48
48
  "react-dom": "^19.2.7",
49
- "vitest": "^4.1.9",
50
- "@assistant-ui/x-buildutils": "0.0.16"
49
+ "vitest": "^4.1.10",
50
+ "@assistant-ui/x-buildutils": "0.0.18"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public",