plggmatic 0.2.2 → 0.4.0

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.
Files changed (159) hide show
  1. package/README.md +82 -0
  2. package/dist/Appearance/model/appearance.d.ts +91 -0
  3. package/dist/Appearance/model/appearance.d.ts.map +1 -0
  4. package/dist/Appearance/usecase/appearanceCss.d.ts +24 -0
  5. package/dist/Appearance/usecase/appearanceCss.d.ts.map +1 -0
  6. package/dist/Appearance/usecase/asAppearance.d.ts +13 -0
  7. package/dist/Appearance/usecase/asAppearance.d.ts.map +1 -0
  8. package/dist/Catalog/model/tool.d.ts.map +1 -1
  9. package/dist/Catalog/usecase/adapter.d.ts.map +1 -1
  10. package/dist/Catalog/usecase/catalog.d.ts.map +1 -1
  11. package/dist/Catalog/usecase/runFlow.d.ts.map +1 -1
  12. package/dist/Component/index.d.ts +3 -0
  13. package/dist/Component/index.d.ts.map +1 -1
  14. package/dist/Component/usecase/breadcrumb.d.ts.map +1 -1
  15. package/dist/Component/usecase/button.d.ts.map +1 -1
  16. package/dist/Component/usecase/checkbox.d.ts.map +1 -1
  17. package/dist/Component/usecase/colHead.d.ts.map +1 -1
  18. package/dist/Component/usecase/confirmDialog.d.ts.map +1 -1
  19. package/dist/Component/usecase/declaredForm.d.ts +89 -0
  20. package/dist/Component/usecase/declaredForm.d.ts.map +1 -0
  21. package/dist/Component/usecase/navTree.d.ts.map +1 -1
  22. package/dist/Component/usecase/properties.d.ts +59 -0
  23. package/dist/Component/usecase/properties.d.ts.map +1 -0
  24. package/dist/Component/usecase/selectInput.d.ts.map +1 -1
  25. package/dist/Component/usecase/sidebarNav.d.ts +78 -0
  26. package/dist/Component/usecase/sidebarNav.d.ts.map +1 -0
  27. package/dist/Component/usecase/textArea.d.ts.map +1 -1
  28. package/dist/Component/usecase/textInput.d.ts.map +1 -1
  29. package/dist/Component/usecase/textLink.d.ts.map +1 -1
  30. package/dist/Component/usecase/themeToggle.d.ts +6 -1
  31. package/dist/Component/usecase/themeToggle.d.ts.map +1 -1
  32. package/dist/Component/usecase/toast.d.ts.map +1 -1
  33. package/dist/Component/usecase/typography.d.ts.map +1 -1
  34. package/dist/Declare/model/Action.d.ts.map +1 -1
  35. package/dist/Declare/model/Adapter.d.ts.map +1 -1
  36. package/dist/Declare/model/Collection.d.ts.map +1 -1
  37. package/dist/Declare/model/Declaration.d.ts.map +1 -1
  38. package/dist/Declare/model/Menu.d.ts.map +1 -1
  39. package/dist/Declare/model/Query.d.ts.map +1 -1
  40. package/dist/Declare/model/Row.d.ts.map +1 -1
  41. package/dist/Declare/model/Source.d.ts.map +1 -1
  42. package/dist/Declare/usecase/apply.d.ts.map +1 -1
  43. package/dist/Declare/usecase/project.d.ts.map +1 -1
  44. package/dist/Declare/usecase/reconcile.d.ts.map +1 -1
  45. package/dist/Flow/model/forms.d.ts.map +1 -1
  46. package/dist/Flow/model/run.d.ts.map +1 -1
  47. package/dist/Flow/model/script.d.ts.map +1 -1
  48. package/dist/Flow/usecase/interpret.d.ts.map +1 -1
  49. package/dist/Flow/usecase/read.d.ts.map +1 -1
  50. package/dist/Form/model/submission.d.ts.map +1 -1
  51. package/dist/Form/usecase/controlParts.d.ts.map +1 -1
  52. package/dist/Form/usecase/formView.d.ts.map +1 -1
  53. package/dist/Form/usecase/parseForm.d.ts.map +1 -1
  54. package/dist/Layout/index.d.ts +6 -1
  55. package/dist/Layout/index.d.ts.map +1 -1
  56. package/dist/Layout/model/geometry.d.ts +97 -0
  57. package/dist/Layout/model/geometry.d.ts.map +1 -0
  58. package/dist/Layout/model/pane.d.ts.map +1 -1
  59. package/dist/Layout/model/reveal.d.ts +26 -0
  60. package/dist/Layout/model/reveal.d.ts.map +1 -0
  61. package/dist/Layout/usecase/combinators.d.ts +30 -1
  62. package/dist/Layout/usecase/combinators.d.ts.map +1 -1
  63. package/dist/Layout/usecase/preference.d.ts +27 -0
  64. package/dist/Layout/usecase/preference.d.ts.map +1 -0
  65. package/dist/Layout/usecase/revealColumn.d.ts +39 -0
  66. package/dist/Layout/usecase/revealColumn.d.ts.map +1 -0
  67. package/dist/Layout/usecase/workspace.d.ts +58 -0
  68. package/dist/Layout/usecase/workspace.d.ts.map +1 -0
  69. package/dist/Meta/model/classHooks.d.ts +257 -0
  70. package/dist/Meta/model/classHooks.d.ts.map +1 -0
  71. package/dist/Navigate/index.d.ts +20 -0
  72. package/dist/Navigate/index.d.ts.map +1 -0
  73. package/dist/Navigate/model/Composition.d.ts +50 -0
  74. package/dist/Navigate/model/Composition.d.ts.map +1 -0
  75. package/dist/Navigate/model/Trail.d.ts +84 -0
  76. package/dist/Navigate/model/Trail.d.ts.map +1 -0
  77. package/dist/Navigate/model/marker.d.ts +44 -0
  78. package/dist/Navigate/model/marker.d.ts.map +1 -0
  79. package/dist/Navigate/usecase/carouselScript.d.ts +26 -0
  80. package/dist/Navigate/usecase/carouselScript.d.ts.map +1 -0
  81. package/dist/Navigate/usecase/compositionUrl.d.ts +63 -0
  82. package/dist/Navigate/usecase/compositionUrl.d.ts.map +1 -0
  83. package/dist/Navigate/usecase/navigationScript.d.ts +16 -0
  84. package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -0
  85. package/dist/Navigate/usecase/trailUrl.d.ts +61 -0
  86. package/dist/Navigate/usecase/trailUrl.d.ts.map +1 -0
  87. package/dist/Render/index.d.ts +1 -0
  88. package/dist/Render/index.d.ts.map +1 -1
  89. package/dist/Render/model/mode.d.ts.map +1 -1
  90. package/dist/Render/model/screen.d.ts.map +1 -1
  91. package/dist/Render/usecase/advanceColumns.d.ts +41 -0
  92. package/dist/Render/usecase/advanceColumns.d.ts.map +1 -0
  93. package/dist/Render/usecase/multiColumn.d.ts.map +1 -1
  94. package/dist/Render/usecase/parts.d.ts.map +1 -1
  95. package/dist/Render/usecase/renderMode.d.ts.map +1 -1
  96. package/dist/Render/usecase/singleColumn.d.ts.map +1 -1
  97. package/dist/Schedule/model/Model.d.ts.map +1 -1
  98. package/dist/Schedule/model/Msg.d.ts.map +1 -1
  99. package/dist/Schedule/model/Scene.d.ts.map +1 -1
  100. package/dist/Schedule/model/View.d.ts.map +1 -1
  101. package/dist/Schedule/usecase/chain.d.ts.map +1 -1
  102. package/dist/Schedule/usecase/codec.d.ts.map +1 -1
  103. package/dist/Schedule/usecase/lower.d.ts.map +1 -1
  104. package/dist/Schedule/usecase/scene.d.ts.map +1 -1
  105. package/dist/Schedule/usecase/schedule.d.ts.map +1 -1
  106. package/dist/Schedule/usecase/update.d.ts.map +1 -1
  107. package/dist/Shell/index.d.ts +21 -0
  108. package/dist/Shell/index.d.ts.map +1 -0
  109. package/dist/Shell/usecase/kit.d.ts +30 -0
  110. package/dist/Shell/usecase/kit.d.ts.map +1 -0
  111. package/dist/Shell/usecase/shell.d.ts +85 -0
  112. package/dist/Shell/usecase/shell.d.ts.map +1 -0
  113. package/dist/Style/index.d.ts +6 -0
  114. package/dist/Style/index.d.ts.map +1 -1
  115. package/dist/Style/model/appearance.d.ts.map +1 -1
  116. package/dist/Style/model/breakpoint.d.ts.map +1 -1
  117. package/dist/Style/model/componentSlot.d.ts +35 -0
  118. package/dist/Style/model/componentSlot.d.ts.map +1 -0
  119. package/dist/Style/model/hexColor.d.ts +3 -1
  120. package/dist/Style/model/hexColor.d.ts.map +1 -1
  121. package/dist/Style/model/metric.d.ts.map +1 -1
  122. package/dist/Style/model/palette.d.ts.map +1 -1
  123. package/dist/Style/model/syntax.d.ts.map +1 -1
  124. package/dist/Style/model/theme.d.ts +10 -0
  125. package/dist/Style/model/theme.d.ts.map +1 -1
  126. package/dist/Style/model/token.d.ts.map +1 -1
  127. package/dist/Style/model/typography.d.ts.map +1 -1
  128. package/dist/Style/model/zIndex.d.ts.map +1 -1
  129. package/dist/Style/usecase/appearanceScript.d.ts.map +1 -1
  130. package/dist/Style/usecase/carouselCss.d.ts +17 -0
  131. package/dist/Style/usecase/carouselCss.d.ts.map +1 -0
  132. package/dist/Style/usecase/chromeCss.d.ts.map +1 -1
  133. package/dist/Style/usecase/contrast.d.ts.map +1 -1
  134. package/dist/Style/usecase/metricCss.d.ts.map +1 -1
  135. package/dist/Style/usecase/runwayCss.d.ts +50 -0
  136. package/dist/Style/usecase/runwayCss.d.ts.map +1 -0
  137. package/dist/Style/usecase/schemeCss.d.ts.map +1 -1
  138. package/dist/Style/usecase/shareCss.d.ts +49 -0
  139. package/dist/Style/usecase/shareCss.d.ts.map +1 -0
  140. package/dist/Style/usecase/slotCss.d.ts +73 -0
  141. package/dist/Style/usecase/slotCss.d.ts.map +1 -0
  142. package/dist/Style/usecase/syntaxCss.d.ts.map +1 -1
  143. package/dist/Style/usecase/utilities.d.ts +1 -1
  144. package/dist/Style/usecase/utilities.d.ts.map +1 -1
  145. package/dist/Style/usecase/workspaceCss.d.ts +48 -0
  146. package/dist/Style/usecase/workspaceCss.d.ts.map +1 -0
  147. package/dist/System/usecase/systemCss.d.ts +43 -0
  148. package/dist/System/usecase/systemCss.d.ts.map +1 -0
  149. package/dist/brand.d.ts.map +1 -1
  150. package/dist/columnsEntry.d.ts +27 -0
  151. package/dist/columnsEntry.d.ts.map +1 -0
  152. package/dist/columnsEntry.es.js +492 -0
  153. package/dist/index.d.ts +23 -4
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.es.js +2649 -181
  156. package/dist/styleEntry.d.ts +12 -2
  157. package/dist/styleEntry.d.ts.map +1 -1
  158. package/dist/styleEntry.es.js +843 -44
  159. package/package.json +12 -8
@@ -0,0 +1,257 @@
1
+ import { type SoftStr } from "plgg";
2
+ export declare const rowClass: SoftStr;
3
+ export declare const colClass: SoftStr;
4
+ export declare const paneClass: SoftStr;
5
+ /** A placed column's close control. */
6
+ export declare const foldClass: SoftStr;
7
+ /**
8
+ * Set on a column the runtime is closing, for as long as
9
+ * its leaving animation runs. A stylesheet animates on it;
10
+ * with no animation the column is removed at once.
11
+ */
12
+ export declare const leavingAttr: SoftStr;
13
+ /**
14
+ * Set on a column that was opened IN PLACE of another —
15
+ * the reader chose a different link from the same column.
16
+ * The strip's shape did not change, so a stylesheet should
17
+ * not animate it as an arrival: the room was already there.
18
+ */
19
+ export declare const replacingAttr: SoftStr;
20
+ /**
21
+ * Set on a link whose target is the column standing
22
+ * immediately to the right of the link's own column: "this
23
+ * is what opened that". Derived from the strip, not from
24
+ * the click, so a reloaded or shared address marks it too.
25
+ */
26
+ export declare const openedAttr: SoftStr;
27
+ /** The row naming every open column. */
28
+ export declare const trailClass: SoftStr;
29
+ /** A list of settings: one row per property. */
30
+ export declare const propsClass: SoftStr;
31
+ /** One row: a name and the control that sets it. */
32
+ export declare const propClass: SoftStr;
33
+ /** The name in a property row. */
34
+ export declare const propLabelClass: SoftStr;
35
+ /** The control's place in a property row. */
36
+ export declare const propControlClass: SoftStr;
37
+ /** An on/off switch. */
38
+ export declare const switchClass: SoftStr;
39
+ /** The switch's track. */
40
+ export declare const switchTrackClass: SoftStr;
41
+ /** The switch's thumb. */
42
+ export declare const switchThumbClass: SoftStr;
43
+ /** The word beside a switch saying which way it stands. */
44
+ export declare const switchLabelClass: SoftStr;
45
+ /** The frame of the framework's standard screen. */
46
+ export declare const shellClass: SoftStr;
47
+ /** The shell's pinned sidebar column. */
48
+ export declare const shellSideClass: SoftStr;
49
+ /** A column's head bar: what the column is called. */
50
+ export declare const shellHeadClass: SoftStr;
51
+ /** The name in a head bar. */
52
+ export declare const shellTitleClass: SoftStr;
53
+ /** A column's body: the part that scrolls. */
54
+ export declare const shellBodyClass: SoftStr;
55
+ /** The product's name in the sidebar's head: the way home. */
56
+ export declare const shellBrandClass: SoftStr;
57
+ /** The control that folds the sidebar to a strip. */
58
+ export declare const shellFoldClass: SoftStr;
59
+ /** The foot of the sidebar: the appearance toggle's place. */
60
+ export declare const shellFootClass: SoftStr;
61
+ /** A document column of the shell. */
62
+ export declare const shellPageClass: SoftStr;
63
+ /** A document column's content: prose, figures, examples. */
64
+ export declare const docClass: SoftStr;
65
+ /**
66
+ * Set on the shell (or any ancestor, `<html>` included)
67
+ * while its sidebar is folded.
68
+ */
69
+ export declare const shellMinAttr: SoftStr;
70
+ /**
71
+ * The bar a narrow window shows above the strip: the menu
72
+ * control and the product's name.
73
+ */
74
+ export declare const shellBarClass: SoftStr;
75
+ /** The product's name in that bar: the way home. */
76
+ export declare const shellBarBrandClass: SoftStr;
77
+ /** The control that opens the sidebar as a drawer. */
78
+ export declare const shellMenuButtonClass: SoftStr;
79
+ /**
80
+ * The hidden checkbox that holds the drawer's state on a
81
+ * page with no program: its label is the menu control,
82
+ * and the stylesheet reads `:checked`.
83
+ */
84
+ export declare const shellMenuClass: SoftStr;
85
+ /** That checkbox's id, which its labels point at. */
86
+ export declare const shellMenuId: SoftStr;
87
+ /** What dims the page behind an open drawer. */
88
+ export declare const shellBackdropClass: SoftStr;
89
+ /**
90
+ * Set on the shell while its drawer is open, by a program
91
+ * that holds that state itself (the alternative to the
92
+ * checkbox).
93
+ */
94
+ export declare const shellOpenAttr: SoftStr;
95
+ /**
96
+ * A callout in a page's prose: a boxed aside — a note, a
97
+ * tip, a warning. {@link calloutToneClass} says which.
98
+ */
99
+ export declare const calloutClass: SoftStr;
100
+ /** A callout's heading line. */
101
+ export declare const calloutTitleClass: SoftStr;
102
+ /** The tones a callout comes in. */
103
+ export type CalloutTone = "info" | "note" | "tip" | "warning" | "danger";
104
+ /** The class that gives a callout its tone. */
105
+ export declare const calloutToneClass: (tone: CalloutTone) => SoftStr;
106
+ /** A strip whose document columns share the room. */
107
+ export declare const shareClass: SoftStr;
108
+ /** A document column that takes two columns' worth. */
109
+ export declare const spanTwoClass: SoftStr;
110
+ /**
111
+ * The custom property a host sets on a shared strip to
112
+ * the width pinned over it (a sticky sidebar), so the
113
+ * columns divide only the room that is left.
114
+ */
115
+ export declare const shareInsetVar: SoftStr;
116
+ /** The control that brings the previous column into view. */
117
+ export declare const carouselPrevClass: SoftStr;
118
+ /** The control that brings the next column into view. */
119
+ export declare const carouselNextClass: SoftStr;
120
+ /** The frame a pinned panel and a strip share. */
121
+ export declare const workspaceClass: SoftStr;
122
+ /** The panel pinned to the frame's left edge. */
123
+ export declare const pinnedClass: SoftStr;
124
+ /** The strip beside the pinned panel: menu, columns, seam. */
125
+ export declare const browserClass: SoftStr;
126
+ /** The strip's menu track. */
127
+ export declare const menuClass: SoftStr;
128
+ /** The spacer after the last column. */
129
+ export declare const seamClass: SoftStr;
130
+ /** Set on the workspace while its menu is shown. */
131
+ export declare const menuOpenAttr: SoftStr;
132
+ /** Set on the workspace while its menu is a narrow rail. */
133
+ export declare const menuCompactAttr: SoftStr;
134
+ /** Set on the workspace when the window holds one column. */
135
+ export declare const phoneAttr: SoftStr;
136
+ /**
137
+ * Set on the workspace while the framework itself is
138
+ * scrolling it, so a stylesheet can lift scroll-snap for
139
+ * the length of the glide.
140
+ */
141
+ export declare const programmaticScrollAttr: SoftStr;
142
+ /** A strip column's width kind (`fit`/`wide`/`read`). */
143
+ export declare const widthAttr: SoftStr;
144
+ /** The sidebar's `<nav>`. */
145
+ export declare const navClass: SoftStr;
146
+ /** The sidebar counting its rows 01, 02, …. */
147
+ export declare const navNumberedClass: SoftStr;
148
+ /** One titled group of rows. */
149
+ export declare const navGroupClass: SoftStr;
150
+ /** A group's title (its `<summary>` when it toggles). */
151
+ export declare const navGroupTitleClass: SoftStr;
152
+ /** A row that is a link. */
153
+ export declare const navLinkClass: SoftStr;
154
+ /**
155
+ * The words of a row, apart from the row itself: what an
156
+ * appearance marks when the row is the current one.
157
+ */
158
+ export declare const navLabelClass: SoftStr;
159
+ /** A row that is plain text. */
160
+ export declare const navFlatClass: SoftStr;
161
+ /** A nested group inside a group. */
162
+ export declare const navSubgroupClass: SoftStr;
163
+ /** A nested group's title. */
164
+ export declare const navSubgroupTitleClass: SoftStr;
165
+ export declare const themeToggleClass: SoftStr;
166
+ export declare const sunClass: SoftStr;
167
+ export declare const moonClass: SoftStr;
168
+ export declare const btnClass: SoftStr;
169
+ export declare const btnPrimaryClass: SoftStr;
170
+ export declare const btnDangerClass: SoftStr;
171
+ export declare const actionsClass: SoftStr;
172
+ export declare const disabledClass: SoftStr;
173
+ export declare const modalClass: SoftStr;
174
+ export declare const backdropClass: SoftStr;
175
+ export declare const dialogClass: SoftStr;
176
+ export declare const dialogTitleClass: SoftStr;
177
+ export declare const dialogActionsClass: SoftStr;
178
+ export declare const toasterClass: SoftStr;
179
+ export declare const toastClass: SoftStr;
180
+ export declare const toastCloseClass: SoftStr;
181
+ /**
182
+ * The tone modifier a toast carries beside
183
+ * {@link toastClass} — `pm-toast-success`,
184
+ * `pm-toast-danger`, and so on. A function rather than a
185
+ * constant because the tone is a value, and a consumer
186
+ * styling one tone should still not have to spell the
187
+ * prefix.
188
+ */
189
+ export declare const toastToneClass: (tone: SoftStr) => SoftStr;
190
+ export declare const formClass: SoftStr;
191
+ export declare const fieldsClass: SoftStr;
192
+ export declare const fieldClass: SoftStr;
193
+ export declare const fieldLabelClass: SoftStr;
194
+ export declare const fieldErrorClass: SoftStr;
195
+ export declare const fieldValueClass: SoftStr;
196
+ export declare const inputClass: SoftStr;
197
+ export declare const checkClass: SoftStr;
198
+ export declare const checkboxClass: SoftStr;
199
+ export declare const checkLabelClass: SoftStr;
200
+ export declare const fieldNumClass: SoftStr;
201
+ export declare const fieldFlagClass: SoftStr;
202
+ export declare const fieldMomentClass: SoftStr;
203
+ export declare const fieldRefClass: SoftStr;
204
+ export declare const fieldMediaClass: SoftStr;
205
+ export declare const colHeadClass: SoftStr;
206
+ export declare const colHeadTitleClass: SoftStr;
207
+ export declare const colHeadLinkClass: SoftStr;
208
+ export declare const crumbsClass: SoftStr;
209
+ export declare const crumbHereClass: SoftStr;
210
+ export declare const crumbLinkClass: SoftStr;
211
+ export declare const crumbSepClass: SoftStr;
212
+ export declare const schedulerClass: SoftStr;
213
+ export declare const singleClass: SoftStr;
214
+ export declare const backClass: SoftStr;
215
+ export declare const hintClass: SoftStr;
216
+ export declare const errorClass: SoftStr;
217
+ export declare const menuBodyClass: SoftStr;
218
+ export declare const listClass: SoftStr;
219
+ export declare const listItemClass: SoftStr;
220
+ export declare const listActionsClass: SoftStr;
221
+ export declare const listActionClass: SoftStr;
222
+ export declare const rowLinkClass: SoftStr;
223
+ export declare const boardClass: SoftStr;
224
+ export declare const tileClass: SoftStr;
225
+ export declare const tileBodyClass: SoftStr;
226
+ export declare const tileLinkClass: SoftStr;
227
+ export declare const tileLabelClass: SoftStr;
228
+ export declare const tileCaptionClass: SoftStr;
229
+ export declare const queryClass: SoftStr;
230
+ export declare const queryChoiceClass: SoftStr;
231
+ /**
232
+ * A plggmatic CSS custom property, by name:
233
+ * `cssVar("surface")` → `--pm-surface`.
234
+ *
235
+ * The colour tokens the emitters write are read back by a
236
+ * consumer's own stylesheet, so the `--pm-*` namespace is
237
+ * as much a contract as the class hooks — and spelling it
238
+ * by hand has the same failure mode. Distinct from
239
+ * `colorVar`, which yields the `var(--pm-…)` REFERENCE for
240
+ * a `Color` under a `Theme`; this is the bare property
241
+ * name, for a consumer composing raw CSS text.
242
+ */
243
+ export declare const cssVar: (name: SoftStr) => SoftStr;
244
+ /**
245
+ * A reference to a plggmatic custom property:
246
+ * `cssVarRef("surface")` → `var(--pm-surface)`. The form a
247
+ * consumer's CSS declaration actually wants.
248
+ */
249
+ export declare const cssVarRef: (name: SoftStr) => SoftStr;
250
+ /**
251
+ * A class SELECTOR for a hook: `selector(paneClass)` →
252
+ * `.pm-pane`. Sugar for a consumer writing a stylesheet as
253
+ * a template string, where `.${paneClass}` reads worse
254
+ * than the call.
255
+ */
256
+ export declare const selector: (hookClass: SoftStr) => SoftStr;
257
+ //# sourceMappingURL=classHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classHooks.d.ts","sourceRoot":"","sources":["../../../src/Meta/model/classHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAsCpC,eAAO,MAAM,QAAQ,EAAE,OAAqB,CAAC;AAC7C,eAAO,MAAM,QAAQ,EAAE,OAAqB,C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ACZ,OAAiC,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,cACR,OAAO,KACjB,OAA0B,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The plggmatic Navigate module: the strip's SCREEN STATE
3
+ * and how a URL carries it. A composition is an ordered
4
+ * list of `(route, optional highlighted span)` — one
5
+ * concept for a strip you walked into by following links
6
+ * and a strip something assembled for you, because they
7
+ * are the same object.
8
+ *
9
+ * The framework owns this because the framework emits the
10
+ * strip: a product renders columns, it does not decide
11
+ * what a column IS or how a strip is addressed.
12
+ */
13
+ export { type Column, type Composition, columnOf, columnWithSpan, soloComposition, columnsOf, } from "./model/Composition";
14
+ export { restParam, spanParam, entrySeparator, fieldSeparator, escapeChar, decodeComposition, compositionQuery, compositionHref, } from "./usecase/compositionUrl";
15
+ export { stripAttr, columnAttr, spanAttr, navHookName, strip, documentColumn, } from "./model/marker";
16
+ export { navigationInitScript, injectNavigationScript, } from "./usecase/navigationScript";
17
+ export { type Trail, type TrailResolver, type TrailColumn, resolveTrail, settledTrail, foldTrail, stepFrom, restep, } from "./model/Trail";
18
+ export { type StepCodec, trailParam, stepSeparator, encodeTrail, decodeTrail, trailQuery, printSteps, parseSteps, } from "./usecase/trailUrl";
19
+ export { carouselInitScript } from "./usecase/carouselScript";
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Navigate/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,QAAQ,EACR,cAAc,EACd,eAAe,EACf,SAAS,GACV,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,SAAS,EACT,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAChB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,WAAW,EACX,KAAK,EACL,cAAc,GACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,MAAM,GACP,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,SAAS,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ /**
3
+ * ONE open document in the strip: the route it was read
4
+ * from, and — optionally — the verbatim passage inside it
5
+ * the reader's attention was sent to.
6
+ *
7
+ * The span is deliberately the document's OWN text rather
8
+ * than an offset or a heading id: it is located in the
9
+ * document exactly once or not at all, so a passage that
10
+ * was paraphrased instead of quoted cannot address
11
+ * anything (the `edit_doc` locator's contract, reused).
12
+ */
13
+ export type Column = Readonly<{
14
+ route: SoftStr;
15
+ span: Option<SoftStr>;
16
+ }>;
17
+ /**
18
+ * The screen, modelled ONCE: an ordered list of columns,
19
+ * left to right. `head` is the document the URL's own path
20
+ * names — so every composition is also an ordinary,
21
+ * self-sufficient page — and `rest` are the columns opened
22
+ * to its right.
23
+ *
24
+ * Non-empty BY CONSTRUCTION. There is no empty composition
25
+ * to defend against anywhere downstream, which is why the
26
+ * head is a field rather than `list[0]`.
27
+ *
28
+ * The load-bearing decision of the strip is that this is
29
+ * not a trail. Following a link is merely the case where
30
+ * `rest` grew by one; a set of columns an assistant
31
+ * assembled from documents that link to nothing is the
32
+ * same value, arriving by a different route.
33
+ */
34
+ export type Composition = Readonly<{
35
+ head: Column;
36
+ rest: ReadonlyArray<Column>;
37
+ }>;
38
+ /** One column at a route, with no passage marked. */
39
+ export declare const columnOf: (route: SoftStr) => Column;
40
+ /** One column at a route, with a passage marked. */
41
+ export declare const columnWithSpan: (route: SoftStr, span: Option<SoftStr>) => Column;
42
+ /** The composition showing one document and nothing else. */
43
+ export declare const soloComposition: (route: SoftStr) => Composition;
44
+ /**
45
+ * The composition as a plain left-to-right list — the form
46
+ * a renderer walks. Reconstructing the head/rest split from
47
+ * it is never necessary, so this is one-way on purpose.
48
+ */
49
+ export declare const columnsOf: (composition: Composition) => ReadonlyArray<Column>;
50
+ //# sourceMappingURL=Composition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../../../src/Navigate/model/Composition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AAEd;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACvB,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,QAAQ,UACZ,OAAO,KACb,MAAmC,CAAC;AAEvC,oDAAoD;AACpD,eAAO,MAAM,cAAc,UAClB,OAAO,QACR,MAAM,CAAC,OAAO,CAAC,KACpB,MAA2B,CAAC;AAE/B,6DAA6D;AAC7D,eAAO,MAAM,eAAe,UACnB,OAAO,KACb,WAGD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,SAAS,gBACP,WAAW,KACvB,aAAa,CAAC,MAAM,CAGtB,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ /**
3
+ * The OTHER way a strip of columns comes to be: a TRAIL.
4
+ *
5
+ * A {@link Composition} is a set of independent documents
6
+ * standing side by side — any column may be there without
7
+ * the one to its left. A trail is the opposite claim: each
8
+ * column was opened FROM the one to its left, so a step
9
+ * only means something after the steps before it. A menu,
10
+ * a list it opened, a record chosen in the list, the
11
+ * records that record points to: that is a trail.
12
+ *
13
+ * A step is an opaque string here. What a step says (a
14
+ * list, a record, a relation, how it is shown) is the
15
+ * product's vocabulary, spelled by the product; the
16
+ * framework owns only the three rules every trail obeys,
17
+ * below. Three products wrote those rules separately
18
+ * before this module (2026-11-25).
19
+ */
20
+ export type Trail = ReadonlyArray<SoftStr>;
21
+ /**
22
+ * How a product answers a trail with columns of its own
23
+ * kind `C`. `root` is the column the empty trail shows.
24
+ * `resolve` is asked for the column a `step` opens from
25
+ * the column `previous`, and answers `None` for a step
26
+ * that column does not offer.
27
+ */
28
+ export type TrailResolver<C> = Readonly<{
29
+ root: () => C;
30
+ resolve: (previous: C, step: SoftStr) => Option<C>;
31
+ }>;
32
+ /**
33
+ * One resolved column and the trail that reaches it. The
34
+ * `prefix` is the column's own address: the root's is
35
+ * empty, and a column `n` steps in carries the first `n`
36
+ * steps.
37
+ */
38
+ export type TrailColumn<C> = Readonly<{
39
+ prefix: Trail;
40
+ column: C;
41
+ }>;
42
+ /**
43
+ * RULE 1 — PREFIX CLOSURE. The columns a trail shows, left
44
+ * to right, the root first. Each step is put to the column
45
+ * before it, and the first step that column does not offer
46
+ * ENDS the walk: the valid prefix shows and the tail is
47
+ * dropped. A stale or hand-typed address therefore folds
48
+ * to the deepest state it still names; it never fails and
49
+ * never shows a column the one to its left does not lead
50
+ * to. Never empty — the root always resolves.
51
+ */
52
+ export declare const resolveTrail: <C>(resolver: TrailResolver<C>) => (trail: Trail) => ReadonlyArray<TrailColumn<C>>;
53
+ /**
54
+ * The part of a trail that resolved: the address to
55
+ * rewrite a stale URL to. Equal to the trail itself when
56
+ * every step was offered.
57
+ */
58
+ export declare const settledTrail: <C>(columns: ReadonlyArray<TrailColumn<C>>) => Trail;
59
+ /**
60
+ * RULE 2 — ONE FOLD. The trail as the column `depth` steps
61
+ * in sees it: everything to its right dropped. `depth` 0
62
+ * is the root. This is the whole of "go back": a column's
63
+ * heading links to the trail folded to itself. Generic in
64
+ * the step so a product may fold its typed steps directly.
65
+ */
66
+ export declare const foldTrail: <S>(trail: ReadonlyArray<S>, depth: number) => ReadonlyArray<S>;
67
+ /**
68
+ * RULE 3 — A STEP REPLACES WHAT IT LEAVES BEHIND. The
69
+ * trail after the column `depth` steps in opens `step`:
70
+ * folded to that column, then grown by one. Opening
71
+ * something from a column part way along never appends
72
+ * past the columns to its right — they were reached
73
+ * through a choice this one replaces.
74
+ */
75
+ export declare const stepFrom: <S>(trail: ReadonlyArray<S>, depth: number, step: S) => ReadonlyArray<S>;
76
+ /**
77
+ * The same column shown another way: the step at `index`
78
+ * exchanged in place, the columns to its right kept. For a
79
+ * change that does not alter what the column offers — its
80
+ * sort order, its page, its presentation. If it does alter
81
+ * that, {@link resolveTrail} drops what no longer follows.
82
+ */
83
+ export declare const restep: <S>(trail: ReadonlyArray<S>, index: number, step: S) => ReadonlyArray<S>;
84
+ //# sourceMappingURL=Trail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Trail.d.ts","sourceRoot":"","sources":["../../../src/Navigate/model/Trail.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AAEd;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,QAAQ,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,CAAC;IACd,OAAO,EAAE,CACP,QAAQ,EAAE,CAAC,EACX,IAAI,EAAE,OAAO,KACV,MAAM,CAAC,CAAC,CAAC,CAAC;CAChB,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,QAAQ,CAAC;IACpC,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,CAAC,CAAC;CACX,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GACtB,CAAC,YAAY,aAAa,CAAC,CAAC,CAAC,aAErB,KAAK,KACX,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAgC9B,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,WACnB,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KACrC,KAIA,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAClB,aAAa,CAAC,CAAC,CAAC,SAChB,MAAM,KACZ,aAAa,CAAC,CAAC,CACkB,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SACjB,aAAa,CAAC,CAAC,CAAC,SAChB,MAAM,QACP,CAAC,KACN,aAAa,CAAC,CAAC,CAGjB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SACf,aAAa,CAAC,CAAC,CAAC,SAChB,MAAM,QACP,CAAC,KACN,aAAa,CAAC,CAAC,CAGf,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type Parts } from "../../Layout/usecase/combinators";
4
+ /**
5
+ * The MARKERS the navigation runtime navigates by, and the
6
+ * combinators that stamp them. Framework-owned on purpose:
7
+ * a product must never have to spell one of these strings
8
+ * in its own JavaScript for the strip to work, because a
9
+ * string a consumer types is a contract no compiler
10
+ * checks. Import the constant, or use the combinator.
11
+ */
12
+ /** The element holding the strip's columns. */
13
+ export declare const stripAttr: SoftStr;
14
+ /**
15
+ * A PLACEABLE document column. Its value is the column's
16
+ * own route, so the runtime can compare what is on screen
17
+ * to what the URL says without a side table.
18
+ */
19
+ export declare const columnAttr: SoftStr;
20
+ /**
21
+ * The passage a column is showing, when it is showing one.
22
+ * Carried on the element so the runtime can compare the
23
+ * screen to the URL by VALUE — a column at the right route
24
+ * but the wrong passage is a different column.
25
+ */
26
+ export declare const spanAttr: SoftStr;
27
+ /**
28
+ * The single entry point the runtime publishes on
29
+ * `window`. One name, so the pointer, the keyboard and an
30
+ * assistant all drive the same code — there is no second
31
+ * navigation path to diverge from.
32
+ */
33
+ export declare const navHookName: SoftStr;
34
+ /** A {@link rowWith} marked as the navigable strip. */
35
+ export declare const strip: <Msg>(parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
36
+ /**
37
+ * A {@link columnWith} marked as a placeable document
38
+ * column at `route`. The runtime fetches a route's own
39
+ * page, takes the element carrying this marker, and puts
40
+ * it in the strip — which is sound only because a column
41
+ * renders identically wherever it sits.
42
+ */
43
+ export declare const documentColumn: <Msg>(route: SoftStr, span: Option<SoftStr>, parts: Parts, children: ReadonlyArray<Html<Msg>>) => Html<Msg>;
44
+ //# sourceMappingURL=marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marker.d.ts","sourceRoot":"","sources":["../../../src/Navigate/model/marker.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,KAAK,EAGX,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;GAOG;AAEH,+CAA+C;AAC/C,eAAO,MAAM,SAAS,EAAE,OAAmC,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,OAAoC,CAAC;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAkC,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,OAA6B,CAAC;AAExD,uDAAuD;AACvD,eAAO,MAAM,KAAK,GAAI,GAAG,SAChB,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CACsC,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,SACzB,OAAO,QACR,MAAM,CAAC,OAAO,CAAC,SACd,KAAK,YACF,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KACjC,IAAI,CAAC,GAAG,CAgBR,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { type SoftStr } from "plgg";
2
+ /**
3
+ * The shared strip's CAROUSEL: two controls at the strip's
4
+ * edges that step it one column at a time. A strip that
5
+ * holds more columns than the window shows scrolls
6
+ * sideways; a wheel and a trackpad do that well, a mouse
7
+ * with only a vertical wheel does not, and neither says
8
+ * "there is more over here". The controls do.
9
+ *
10
+ * Each shows only while there is something its way: the
11
+ * previous control once the strip has left its start, the
12
+ * next control until it reaches its end. A step lands a
13
+ * column's left edge at the strip's own left edge, past
14
+ * whatever is pinned over it (read from the strip's
15
+ * `scroll-padding-left`), so a column is never left half
16
+ * under a sidebar.
17
+ *
18
+ * Built to the shape of the framework's other inline
19
+ * runtimes: dependency-free, every literal sourced from an
20
+ * exported constant, a no-op on a page with no shared
21
+ * strip. Progressive: without it the strip still scrolls.
22
+ * Contains no `</script` sequence; a statement, to be
23
+ * placed inside a host's own script element.
24
+ */
25
+ export declare const carouselInitScript: SoftStr;
26
+ //# sourceMappingURL=carouselScript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carouselScript.d.ts","sourceRoot":"","sources":["../../../src/Navigate/usecase/carouselScript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAYpC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAwBf,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Composition } from "../model/Composition";
3
+ /**
4
+ * The composition's WIRE FORMAT — the one authority for
5
+ * how a strip is written into a URL and read back out of
6
+ * one. The server renderer and the client runtime both
7
+ * compose from here; nothing re-derives the format.
8
+ *
9
+ * The URL's PATH is always the head column, so every
10
+ * composition URL is also an ordinary, crawlable,
11
+ * self-sufficient page. Two query parameters decorate it:
12
+ *
13
+ * - `c` — the columns to the head's right, in order;
14
+ * - `q` — the head's own highlighted passage.
15
+ *
16
+ * Within `c`, entries are separated by `,` and a column's
17
+ * route from its span by `:`. Those three characters (and
18
+ * the escape character itself) are escaped INSIDE a field,
19
+ * so a passage containing a comma or a colon is
20
+ * unambiguous. That escaping is deliberately NOT
21
+ * percent-encoding: the transport already percent-encodes
22
+ * on the way out and decodes on the way in, and layering
23
+ * a second percent round would make the two indis-
24
+ * tinguishable. {@link decodeComposition} therefore takes
25
+ * values a URL parser has ALREADY decoded (what
26
+ * `URLSearchParams.get` or a server's query map hands
27
+ * you), and {@link compositionQuery} emits values ready
28
+ * to be pasted into a URL.
29
+ */
30
+ export declare const restParam: SoftStr;
31
+ export declare const spanParam: SoftStr;
32
+ /**
33
+ * The format's alphabet, exported because the client
34
+ * runtime is an inline script that cannot import this
35
+ * module: it is COMPOSED from these constants
36
+ * (`JSON.stringify`), so the separators are declared once
37
+ * even though the splitting is spelled twice.
38
+ */
39
+ export declare const entrySeparator: SoftStr;
40
+ export declare const fieldSeparator: SoftStr;
41
+ export declare const escapeChar: SoftStr;
42
+ /**
43
+ * Read the composition a request carries: the route it is
44
+ * on, plus the already-URL-decoded `c` and `q` values.
45
+ * Total by construction — a malformed, truncated or
46
+ * hand-typed `c` yields the columns that do parse, and in
47
+ * the worst case the head alone. A composition URL must
48
+ * always still be a page.
49
+ */
50
+ export declare const decodeComposition: (route: SoftStr, rest: Option<SoftStr>, span: Option<SoftStr>) => Composition;
51
+ /**
52
+ * The composition's query string, `?`-prefixed, or the
53
+ * empty string when the composition needs none.
54
+ */
55
+ export declare const compositionQuery: (composition: Composition) => SoftStr;
56
+ /**
57
+ * The whole composition as ONE addressable link: the head
58
+ * route carrying the rest of the strip in its query. This
59
+ * is what history is pushed with, and what a reader
60
+ * copies out of the address bar.
61
+ */
62
+ export declare const compositionHref: (composition: Composition) => SoftStr;
63
+ //# sourceMappingURL=compositionUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compositionUrl.d.ts","sourceRoot":"","sources":["../../../src/Navigate/usecase/compositionUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAMZ,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,SAAS,EAAE,OAAa,CAAC;AACtC,eAAO,MAAM,SAAS,EAAE,OAAa,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,OAAa,CAAC;AAC3C,eAAO,MAAM,cAAc,EAAE,OAAa,CAAC;AAC3C,eAAO,MAAM,UAAU,EAAE,OAAa,CAAC;AAmHvC;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UACrB,OAAO,QACR,MAAM,CAAC,OAAO,CAAC,QACf,MAAM,CAAC,OAAO,CAAC,KACpB,WAqBD,CAAC;AAoDH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,gBACd,WAAW,KACvB,OAYA,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,eAAe,gBACb,WAAW,KACvB,OAE4B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type SoftStr } from "plgg";
2
+ /**
3
+ * The inline navigation runtime. Contains no `</script`
4
+ * inner sequence, and is injected AFTER the SSR escaper
5
+ * so its `<`/`>` are literal markup.
6
+ */
7
+ export declare const navigationInitScript: SoftStr;
8
+ /**
9
+ * Insert the runtime just before `</body>` — after the
10
+ * document's own content, so the markers it navigates by
11
+ * already exist when it runs. A page with no `</body>`
12
+ * passes through unchanged (the same idempotent guard
13
+ * `injectAppearanceScript` records).
14
+ */
15
+ export declare const injectNavigationScript: (html: SoftStr) => SoftStr;
16
+ //# sourceMappingURL=navigationScript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigationScript.d.ts","sourceRoot":"","sources":["../../../src/Navigate/usecase/navigationScript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAwDpC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAoQ1B,CAAC;AAEV;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,SAC3B,OAAO,KACZ,OAMO,CAAC"}