@purestack/ts-components 1.1.0 → 1.1.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.
@@ -1,4 +1,4 @@
1
- /*! @purestack/ts-components v1.1.0 | (c) 2026 Ahmed Yasin Koculu | MIT License */
1
+ /*! @purestack/ts-components v1.1.1 | (c) 2026 Ahmed Yasin Koculu | MIT License */
2
2
 
3
3
  import { ComputedRef, Emits, Ref, RefOrValue, SRef, ref, sref } from "regor";
4
4
  import { SemanticTone } from "@purestack/ts-style";
@@ -1,4 +1,4 @@
1
- /*! @purestack/ts-components v1.1.0 | (c) 2026 Ahmed Yasin Koculu | MIT License */
1
+ /*! @purestack/ts-components v1.1.1 | (c) 2026 Ahmed Yasin Koculu | MIT License */
2
2
 
3
3
  import { computed, defineComponent, flatten, isRef, observe, ref, sref, unref } from "regor";
4
4
  import { BREAKPOINTS, docLayoutVar, getBreakpoint, getCurrentThemePaletteVar, getSemanticToneClass, getThemePaletteVar, mediaAbove, mediaBelow, mediaMax, mediaMin, normalizeThemeVariableReference, registerUtilityStyles, styleBuilder, themes } from "@purestack/ts-style";
@@ -6294,7 +6294,7 @@ function toPageTocItems(items) {
6294
6294
  function omitSingleDocumentHeading(items) {
6295
6295
  if (items.length !== 1) return items;
6296
6296
  const [item] = items;
6297
- if (!item || item.depth !== 1) return items;
6297
+ if (item?.depth !== 1) return items;
6298
6298
  return item.children ?? [];
6299
6299
  }
6300
6300
  function resolveItems(props, context) {