@dogsbay/ssg 0.2.0-beta.152 → 0.2.0-beta.154

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.
@@ -85,7 +85,27 @@ export declare function pageActions(o: {
85
85
  export declare function h1(title: string): string;
86
86
  export declare function lede(text: string): string;
87
87
  export declare function banner(html: string): string;
88
- export declare function searchDialog(t: (k: string) => string): string;
88
+ /** The strings the search UI reads from its result list (src/client/search.ts), shared by the dialog and the page. */
89
+ /**
90
+ * The facet column's display (`data-facets`, src/client/search-facets.ts FacetDisplay): each
91
+ * taxonomy a query can filter on, with its title and labels. Undefined without taxonomies.
92
+ */
93
+ type FacetDef = {
94
+ name: string;
95
+ hierarchical: boolean;
96
+ prefixes?: Record<string, {
97
+ label?: string;
98
+ }>;
99
+ labels?: Record<string, string>;
100
+ };
101
+ export declare function facetDisplay(defs: ReadonlyArray<FacetDef>): string | undefined;
102
+ /** `searchPage`: the unit's search page from this page, for the dialog's "See all N results". */
103
+ export declare function searchDialog(t: (k: string) => string, searchPage?: string, facets?: string): string;
104
+ /**
105
+ * The search page's body (`search.html`, src/client/search.ts initSearchPage): a form whose input
106
+ * carries the query (`?q=`, so it also works as a plain GET form), the status, and the results.
107
+ */
108
+ export declare function searchPageBody(t: (k: string) => string, facets?: string): string;
89
109
  export declare function skipLink(label: string): string;
90
110
  /** A section page with no body lists its child topics (LinkCard look). */
91
111
  export declare function childLinks(items: {
@@ -93,3 +113,4 @@ export declare function childLinks(items: {
93
113
  href: string;
94
114
  description?: string;
95
115
  }[]): string;
116
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogsbay/ssg",
3
- "version": "0.2.0-beta.152",
3
+ "version": "0.2.0-beta.154",
4
4
  "type": "module",
5
5
  "description": "Documentation static site generator for Dogsbay-MD that builds inside Cloudflare Workers and publishes sites that work offline",
6
6
  "license": "Apache-2.0",
@@ -49,38 +49,38 @@
49
49
  "tailwindcss": "^4.3.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@dogsbay/elements": "0.2.0-beta.152",
53
- "@dogsbay/format-dogsbay-md": "0.2.0-beta.152",
54
- "@dogsbay/format-openapi": "0.2.0-beta.152",
55
- "@dogsbay/format-topicmap": "0.2.0-beta.152",
56
- "@dogsbay/highlight": "0.2.0-beta.152",
57
- "@dogsbay/minja": "0.2.0-beta.152",
58
- "@dogsbay/primitives": "0.2.0-beta.152",
59
- "@dogsbay/render-html": "0.2.0-beta.152",
60
- "@dogsbay/search": "0.2.0-beta.152",
61
- "@dogsbay/serialize-core": "0.2.0-beta.152",
62
- "@dogsbay/site-check": "0.2.0-beta.152",
63
- "@dogsbay/site-files": "0.2.0-beta.152",
64
- "@dogsbay/types": "0.2.0-beta.152"
52
+ "@dogsbay/elements": "0.2.0-beta.154",
53
+ "@dogsbay/format-dogsbay-md": "0.2.0-beta.154",
54
+ "@dogsbay/format-openapi": "0.2.0-beta.154",
55
+ "@dogsbay/format-topicmap": "0.2.0-beta.154",
56
+ "@dogsbay/highlight": "0.2.0-beta.154",
57
+ "@dogsbay/minja": "0.2.0-beta.154",
58
+ "@dogsbay/primitives": "0.2.0-beta.154",
59
+ "@dogsbay/render-html": "0.2.0-beta.154",
60
+ "@dogsbay/search": "0.2.0-beta.154",
61
+ "@dogsbay/serialize-core": "0.2.0-beta.154",
62
+ "@dogsbay/site-check": "0.2.0-beta.154",
63
+ "@dogsbay/site-files": "0.2.0-beta.154",
64
+ "@dogsbay/types": "0.2.0-beta.154"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@axe-core/playwright": "^4.12.1",
68
68
  "@cloudflare/workers-types": "^5.20260921.1",
69
- "@dogsbay/elements": "0.2.0-beta.152",
70
- "@dogsbay/format-dogsbay-md": "0.2.0-beta.152",
71
- "@dogsbay/format-openapi": "0.2.0-beta.152",
72
- "@dogsbay/format-topicmap": "0.2.0-beta.152",
73
- "@dogsbay/highlight": "0.2.0-beta.152",
74
- "@dogsbay/icons": "0.2.0-beta.152",
75
- "@dogsbay/minja": "0.2.0-beta.152",
76
- "@dogsbay/primitives": "0.2.0-beta.152",
77
- "@dogsbay/render-html": "0.2.0-beta.152",
78
- "@dogsbay/search": "0.2.0-beta.152",
79
- "@dogsbay/serialize-core": "0.2.0-beta.152",
80
- "@dogsbay/site-check": "0.2.0-beta.152",
81
- "@dogsbay/site-files": "0.2.0-beta.152",
82
- "@dogsbay/types": "0.2.0-beta.152",
83
- "@dogsbay/ui": "0.2.0-beta.152",
69
+ "@dogsbay/elements": "0.2.0-beta.154",
70
+ "@dogsbay/format-dogsbay-md": "0.2.0-beta.154",
71
+ "@dogsbay/format-openapi": "0.2.0-beta.154",
72
+ "@dogsbay/format-topicmap": "0.2.0-beta.154",
73
+ "@dogsbay/highlight": "0.2.0-beta.154",
74
+ "@dogsbay/icons": "0.2.0-beta.154",
75
+ "@dogsbay/minja": "0.2.0-beta.154",
76
+ "@dogsbay/primitives": "0.2.0-beta.154",
77
+ "@dogsbay/render-html": "0.2.0-beta.154",
78
+ "@dogsbay/search": "0.2.0-beta.154",
79
+ "@dogsbay/serialize-core": "0.2.0-beta.154",
80
+ "@dogsbay/site-check": "0.2.0-beta.154",
81
+ "@dogsbay/site-files": "0.2.0-beta.154",
82
+ "@dogsbay/types": "0.2.0-beta.154",
83
+ "@dogsbay/ui": "0.2.0-beta.154",
84
84
  "@mermanjs/web": "0.7.0",
85
85
  "@playwright/test": "1.61.1",
86
86
  "@types/node": "^22.10.0",