@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/CHANGELOG.md +17 -0
- package/dist/index.cjs +37 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +45 -7
- package/dist/index.js.map +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +6 -4
- package/dist/react.js.map +1 -1
- package/dist/{route-Bu85A41G.d.cts → route-B9U-9QCw.d.cts} +35 -1
- package/dist/{route-DoFoDKBn.d.ts → route-gNpJ8zzW.d.ts} +35 -1
- package/dist/route.cjs +38 -2
- package/dist/route.cjs.map +1 -1
- package/dist/route.d.cts +1 -1
- package/dist/route.d.ts +1 -1
- package/dist/route.js +40 -2
- package/dist/route.js.map +1 -1
- package/package.json +1 -1
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
|
|
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) ?
|
|
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
|
|
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 =
|
|
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
|
}
|