@nswds/app 1.126.11 → 1.126.12

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/index.js CHANGED
@@ -14414,7 +14414,7 @@ function FormatToggle({ format, setFormat }) {
14414
14414
 
14415
14415
  // package.json
14416
14416
  var package_default = {
14417
- version: "1.126.10"};
14417
+ version: "1.126.12"};
14418
14418
  var SluggerContext = React5__default.createContext(null);
14419
14419
  function flattenText(nodes) {
14420
14420
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -29831,7 +29831,7 @@ var ContextReasoningUsage = ({
29831
29831
  ...props
29832
29832
  }) => {
29833
29833
  const { usage, modelId } = useContextValue();
29834
- const reasoningTokens = usage?.reasoningTokens ?? 0;
29834
+ const reasoningTokens = usage?.outputTokenDetails?.reasoningTokens ?? 0;
29835
29835
  if (children) {
29836
29836
  return children;
29837
29837
  }
@@ -29853,7 +29853,7 @@ var ContextReasoningUsage = ({
29853
29853
  };
29854
29854
  var ContextCacheUsage = ({ className, children, ...props }) => {
29855
29855
  const { usage, modelId } = useContextValue();
29856
- const cacheTokens = usage?.cachedInputTokens ?? 0;
29856
+ const cacheTokens = usage?.inputTokenDetails?.cacheReadTokens ?? 0;
29857
29857
  if (children) {
29858
29858
  return children;
29859
29859
  }