@geenius/docs 0.4.1 → 0.8.10

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.
@@ -96,6 +96,7 @@ interface DocsLayoutProps {
96
96
  sections: (DocSection & {
97
97
  pages?: DocPage$1[];
98
98
  })[];
99
+ currentPage?: DocPage$1;
99
100
  toc?: TocItem[];
100
101
  activeHeadingId?: string;
101
102
  breadcrumbs?: BreadcrumbItem[];
@@ -359,6 +360,15 @@ declare function DocViewPage(props: DocViewPageProps): JSX.Element;
359
360
  * variant so modal and page-level search flows share the same behavior.
360
361
  */
361
362
 
363
+ /**
364
+ * Search state returned by the SolidJS CSS docs search primitive.
365
+ *
366
+ * @property results - Accessor returning the current ranked search results.
367
+ * @property isSearching - Accessor describing whether a search request is pending.
368
+ * @property query - Accessor returning the active search query.
369
+ * @property setQuery - Updates the active search query.
370
+ * @property clearSearch - Resets the query, results, and loading state.
371
+ */
362
372
  interface DocSearchState {
363
373
  results: Accessor<SearchResult[]>;
364
374
  isSearching: Accessor<boolean>;
@@ -382,6 +392,20 @@ declare function createDocSearch(searchFn: (query: string) => SearchResult[] | P
382
392
  * Tailwind SolidJS surface while staying local to the CSS package.
383
393
  */
384
394
 
395
+ /**
396
+ * Aggregate docs state returned by the SolidJS CSS docs primitive.
397
+ *
398
+ * @property sections - Accessor returning the normalized docs sections.
399
+ * @property currentSection - Accessor for the currently selected section.
400
+ * @property setSection - Updates the selected section and resets the page selection.
401
+ * @property currentPage - Accessor for the currently selected page.
402
+ * @property setPage - Updates the selected page.
403
+ * @property searchQuery - Accessor for the active docs search query.
404
+ * @property setSearchQuery - Updates the active docs search query.
405
+ * @property isLoading - Accessor describing whether the tree is still unresolved.
406
+ * @property config - Accessor returning the merged docs configuration.
407
+ * @property flatPages - Accessor returning the flattened page list.
408
+ */
385
409
  interface DocsState {
386
410
  sections: Accessor<(DocSection & {
387
411
  pages: DocPage$1[];
@@ -416,6 +440,13 @@ declare function createDocs(tree: Accessor<(DocSection & {
416
440
  * SolidJS CSS docs variant.
417
441
  */
418
442
 
443
+ /**
444
+ * Table-of-contents state returned by the SolidJS CSS docs TOC primitive.
445
+ *
446
+ * @property toc - Accessor returning the extracted heading tree.
447
+ * @property activeId - Accessor returning the currently active heading id.
448
+ * @property setActiveId - Updates the currently active heading id.
449
+ */
419
450
  interface TableOfContentsState {
420
451
  toc: Accessor<TocItem[]>;
421
452
  activeId: Accessor<string>;