pict-section-inlinedocumentation 1.0.2 → 1.0.3
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,56 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
2
|
+
"name": "pict-section-inlinedocumentation",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Pict embeddable inline documentation browser with topic support",
|
|
5
|
+
"main": "source/Pict-Section-InlineDocumentation.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node source/Pict-Section-InlineDocumentation.js",
|
|
8
|
+
"test": "npx quack test",
|
|
9
|
+
"tests": "npx quack test -g",
|
|
10
|
+
"coverage": "npx quack coverage",
|
|
11
|
+
"build": "npx quack build",
|
|
12
|
+
"test-browser": "npx mocha test/Browser_Integration_tests.js --timeout 60000"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/fable-retold/pict-section-inlinedocumentation.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "steven velozo <steven@velozo.com>",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/fable-retold/pict-section-inlinedocumentation/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/fable-retold/pict-section-inlinedocumentation#readme",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"lunr": "^2.3.9",
|
|
26
|
+
"pict-provider": "^1.0.13",
|
|
27
|
+
"pict-section-content": "^1.0.7",
|
|
28
|
+
"pict-section-markdowneditor": "^1.0.15",
|
|
29
|
+
"pict-section-modal": "^1.1.4",
|
|
30
|
+
"pict-view": "^1.0.68"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"pict": "^1.0.372",
|
|
34
|
+
"pict-docuserve": "^1.4.4",
|
|
35
|
+
"puppeteer": "^24.40.0",
|
|
36
|
+
"quackage": "^1.3.0"
|
|
37
|
+
},
|
|
38
|
+
"mocha": {
|
|
39
|
+
"diff": true,
|
|
40
|
+
"extension": [
|
|
41
|
+
"js"
|
|
42
|
+
],
|
|
43
|
+
"package": "./package.json",
|
|
44
|
+
"reporter": "spec",
|
|
45
|
+
"slow": "75",
|
|
46
|
+
"timeout": "5000",
|
|
47
|
+
"ui": "tdd",
|
|
48
|
+
"watch-files": [
|
|
49
|
+
"source/**/*.js",
|
|
50
|
+
"test/**/*.js"
|
|
51
|
+
],
|
|
52
|
+
"watch-ignore": [
|
|
53
|
+
"lib/vendor"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -55,6 +55,26 @@ const _ViewConfiguration =
|
|
|
55
55
|
.pict-inline-doc-nav-container.pict-inline-doc-nav-hidden {
|
|
56
56
|
display: none;
|
|
57
57
|
}
|
|
58
|
+
/* Whole-panel collapse: shrink the nav to a thin strip showing only the
|
|
59
|
+
expand chevron, handing the freed width back to the content. The Nav
|
|
60
|
+
view toggles .pict-inline-doc-nav-collapsed on the container. width is
|
|
61
|
+
!important so it beats any inline width left by the drag-resizer. */
|
|
62
|
+
.pict-inline-doc-nav-container.pict-inline-doc-nav-collapsed {
|
|
63
|
+
width: 40px !important;
|
|
64
|
+
min-width: 40px;
|
|
65
|
+
}
|
|
66
|
+
.pict-inline-doc-nav-container.pict-inline-doc-nav-collapsed + .pict-inline-doc-resizer {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
.pict-inline-doc-nav-collapsed .pict-inline-doc-nav-collapsed-header {
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
padding: 0.6em 0;
|
|
72
|
+
justify-content: flex-start;
|
|
73
|
+
}
|
|
74
|
+
.pict-inline-doc-nav-collapsed .pict-inline-doc-nav-current-title,
|
|
75
|
+
.pict-inline-doc-nav-collapsed .pict-inline-doc-nav-search-icon {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
58
78
|
/* Compact mode: stack nav above content when container is narrow */
|
|
59
79
|
.pict-inline-doc.pict-inline-doc-compact {
|
|
60
80
|
flex-direction: column;
|
|
@@ -358,6 +358,16 @@ class InlineDocumentationNavView extends libPictView
|
|
|
358
358
|
let tmpFilterText = tmpState.NavFilterText || '';
|
|
359
359
|
let tmpCurrentDocName = this._resolveCurrentDocName(tmpState, tmpCurrentPath);
|
|
360
360
|
|
|
361
|
+
// Reflect the collapsed state on the nav CONTAINER (the layout owns its
|
|
362
|
+
// width). Collapsing then shrinks the whole panel to a thin strip and hands
|
|
363
|
+
// the freed width back to the content, instead of hiding the outline while
|
|
364
|
+
// the container stays full-width.
|
|
365
|
+
let tmpNavContainer = document.getElementById('InlineDoc-Nav-Container');
|
|
366
|
+
if (tmpNavContainer)
|
|
367
|
+
{
|
|
368
|
+
tmpNavContainer.classList.toggle('pict-inline-doc-nav-collapsed', tmpIsCollapsed);
|
|
369
|
+
}
|
|
370
|
+
|
|
361
371
|
let tmpHTML = '';
|
|
362
372
|
|
|
363
373
|
let tmpSearchQuery = tmpState.SearchQuery || '';
|