@brillout/docpress 0.1.6 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "exports": {
5
5
  ".": "./src/index.ts",
6
6
  "./client/initFeatureList": {
@@ -50,7 +50,7 @@
50
50
  "react-dom": "^18.1.0",
51
51
  "rollup": "^2.74.1",
52
52
  "tsup": "^6.0.1",
53
- "typescript": "^4.5.4",
53
+ "typescript": "^4.8.4",
54
54
  "docpress": "link:"
55
55
  },
56
56
  "bin": {
@@ -64,7 +64,7 @@ function getTitle({
64
64
  if (!sectionTitle) {
65
65
  assertUsage(
66
66
  !doNotInferSectionTitle,
67
- `Link to \`${href}\` has option \`doNotInferSectionTitle\` but \`sectionTitle\` isn't defined.`
67
+ `Page section title not found for <Link href="\`${href}\`" doNotInferSectionTitle={true} />.`
68
68
  )
69
69
  sectionTitle = determineSectionTitle(href, pageContext.config.titleNormalCase)
70
70
  }
@@ -6,3 +6,7 @@
6
6
  --background-color: #f0f0f0;
7
7
  padding-bottom: 70px;
8
8
  }
9
+
10
+ html.navigation-fullscreen #detached-note {
11
+ display: none;
12
+ }
@@ -200,6 +200,7 @@ function ScrollOverlay() {
200
200
  function DetachedPageNote() {
201
201
  return (
202
202
  <div
203
+ id="detached-note"
203
204
  style={{
204
205
  backgroundColor: 'var(--background-color)',
205
206
  textAlign: 'left',
@@ -1,6 +1,9 @@
1
1
  export { objectAssign }
2
2
 
3
3
  // Same as `Object.assign()` but with type inference
4
- function objectAssign<Obj, ObjAddendum>(obj: Obj, objAddendum: ObjAddendum): asserts obj is Obj & ObjAddendum {
4
+ function objectAssign<Obj extends Object, ObjAddendum>(
5
+ obj: Obj,
6
+ objAddendum: ObjAddendum
7
+ ): asserts obj is Obj & ObjAddendum {
5
8
  Object.assign(obj, objAddendum)
6
9
  }