@ai-matrx/content-ir-react 0.11.0 → 0.11.1

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/dist/react.js CHANGED
@@ -529,11 +529,13 @@ import React from "react";
529
529
 
530
530
  // route/partial-kind-route.ts
531
531
  import {
532
+ envelopeFromCompleteValue as envelopeFromCompleteValue3,
532
533
  IR_ENVELOPE_KEY as IR_ENVELOPE_KEY2,
533
534
  IR_PARTIAL_KEY,
534
535
  IR_VERSION,
535
536
  isProvisionalKind,
536
537
  readEnvelope as readEnvelope2,
538
+ readObjectKind as readObjectKind2,
537
539
  readPartialKindEvent
538
540
  } from "@ai-matrx/content-ir";
539
541
  var PARTIAL_UNSAFE_SLOT = /* @__PURE__ */ Symbol.for(
@@ -585,7 +587,7 @@ function ProvisionalKindFrame({ children }) {
585
587
  import "react";
586
588
  import {
587
589
  readEnvelope as readEnvelope3,
588
- readObjectKind as readObjectKind2,
590
+ readObjectKind as readObjectKind3,
589
591
  reconstructRegionValue
590
592
  } from "@ai-matrx/content-ir";
591
593
  import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
@@ -610,7 +612,7 @@ function GenericStructuredView({
610
612
  const envelope = readEnvelope3(metadata);
611
613
  const status = envelope?.root.status ?? "complete";
612
614
  const { value, recovered } = readStructuredValue(content, metadata);
613
- const kind = envelope?.root.kind ?? (typeof value === "object" && value !== null && !Array.isArray(value) ? readObjectKind2(value) : null) ?? "";
615
+ const kind = envelope?.root.kind ?? (typeof value === "object" && value !== null && !Array.isArray(value) ? readObjectKind3(value) : null) ?? "";
614
616
  const marker = readIrRouteMarker(metadata);
615
617
  const note = marker?.reason === "inactive" ? "a custom view is registered but held inactive" : marker?.reason === "broken-instance" ? "this instance did not match the shape's schema" : marker?.reason === "unregistered" ? "this shape isn't registered on this platform" : "no custom view yet";
616
618
  return /* @__PURE__ */ jsxs7("div", { className: className ? `my-2 min-w-0 ${className}` : "my-2 min-w-0", children: [
@@ -624,7 +626,7 @@ function GenericStructuredView({
624
626
  }
625
627
 
626
628
  // react/RuntimeWrapperViews.tsx
627
- import { readNodeOutcomeValue, readObjectKind as readObjectKind3, readRunResultValue } from "@ai-matrx/content-ir";
629
+ import { readNodeOutcomeValue, readObjectKind as readObjectKind4, readRunResultValue } from "@ai-matrx/content-ir";
628
630
  import { Fragment as Fragment3, jsx as jsx11 } from "react/jsx-runtime";
629
631
  function isRecord2(value) {
630
632
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -646,7 +648,7 @@ function DelegatedOutput({
646
648
  if (!isRecord2(output)) {
647
649
  return /* @__PURE__ */ jsx11(Fragment3, { children: host.renderValue({ value: output }) });
648
650
  }
649
- const kind = readObjectKind3(output) ?? declaredKind;
651
+ const kind = readObjectKind4(output) ?? declaredKind;
650
652
  if (!kind) {
651
653
  return /* @__PURE__ */ jsx11(Fragment3, { children: fallback?.(output) ?? host.renderValue({ value: output }) });
652
654
  }