element-book 26.7.0 → 26.7.2
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.
|
@@ -11,7 +11,7 @@ export function doesNodeHaveEntryType(node, entryType) {
|
|
|
11
11
|
node.entry.entryType === entryType);
|
|
12
12
|
}
|
|
13
13
|
export function isBookTreeNode(input, entryType) {
|
|
14
|
-
return
|
|
14
|
+
return isAnyBookTreeNode(input) && input.entry.entryType === entryType;
|
|
15
15
|
}
|
|
16
16
|
export function isAnyBookTreeNode(input) {
|
|
17
17
|
return !!(check.hasKeys(input, [
|
|
@@ -3,7 +3,7 @@ import { SpaRouter } from 'spa-router-vir';
|
|
|
3
3
|
import { BookMainRoute, defaultBookFullRoute } from './book-routing.js';
|
|
4
4
|
export function createBookRouter(basePath) {
|
|
5
5
|
return new SpaRouter({
|
|
6
|
-
basePath
|
|
6
|
+
basePath,
|
|
7
7
|
sanitizeRoute(rawRoute) {
|
|
8
8
|
const sanitizedPaths = sanitizePaths(rawRoute.paths);
|
|
9
9
|
return {
|
|
@@ -123,7 +123,7 @@ function createControlInput(value, controlInit, valueChange) {
|
|
|
123
123
|
else if (isControlInitType(controlInit, BookPageControlType.Text)) {
|
|
124
124
|
return html `
|
|
125
125
|
<${ViraInput.assign({
|
|
126
|
-
value
|
|
126
|
+
value,
|
|
127
127
|
showClearButton: true,
|
|
128
128
|
disableBrowserHelps: true,
|
|
129
129
|
})}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "element-book",
|
|
3
|
-
"version": "26.7.
|
|
3
|
+
"version": "26.7.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"book",
|
|
6
6
|
"design system",
|
|
@@ -42,28 +42,28 @@
|
|
|
42
42
|
"test:docs": "virmator docs check"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@augment-vir/assert": "^31.
|
|
46
|
-
"@augment-vir/common": "^31.
|
|
47
|
-
"@augment-vir/web": "^31.
|
|
45
|
+
"@augment-vir/assert": "^31.32.2",
|
|
46
|
+
"@augment-vir/common": "^31.32.2",
|
|
47
|
+
"@augment-vir/web": "^31.32.2",
|
|
48
48
|
"colorjs.io": "0.5.2",
|
|
49
49
|
"lit-css-vars": "^3.0.11",
|
|
50
50
|
"spa-router-vir": "^6.2.0",
|
|
51
51
|
"typed-event-target": "^4.1.0",
|
|
52
|
-
"vira": "^26.7.
|
|
52
|
+
"vira": "^26.7.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@augment-vir/test": "^31.
|
|
55
|
+
"@augment-vir/test": "^31.32.2",
|
|
56
56
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
57
57
|
"@web/test-runner": "^0.20.2",
|
|
58
58
|
"@web/test-runner-commands": "^0.9.0",
|
|
59
59
|
"@web/test-runner-playwright": "^0.11.1",
|
|
60
60
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
61
|
-
"element-vir": "^26.7.
|
|
61
|
+
"element-vir": "^26.7.2",
|
|
62
62
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
63
63
|
"markdown-code-example-inserter": "^3.0.3",
|
|
64
64
|
"type-fest": "^4.41.0",
|
|
65
|
-
"typedoc": "^0.28.
|
|
66
|
-
"typescript": "5.
|
|
65
|
+
"typedoc": "^0.28.10",
|
|
66
|
+
"typescript": "5.9.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"element-vir": ">=17"
|