web-documentation 1.0.38 → 1.0.40
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 +5 -5
- package/source/deploy.ts +0 -1
- package/source/dummyReadme.md +5 -5
- package/source/index.ts +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"description": "Declarative multilanguage documentation website generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"css-loader": "^7.1.4",
|
|
74
74
|
"cssnano": "^8.0.2",
|
|
75
75
|
"default-gateway": "^7.2.2",
|
|
76
|
-
"errorreporter": "^1.0.
|
|
76
|
+
"errorreporter": "^1.0.349",
|
|
77
77
|
"eslint": "^10.5.0",
|
|
78
78
|
"eslint-config-google": "^0.14.0",
|
|
79
79
|
"eslint-plugin-jsdoc": "^63.0.2",
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
"typescript-eslint": "^8.61.0",
|
|
106
106
|
"ua-parser-js": "^2.0.10",
|
|
107
107
|
"unzipper": "^0.12.3",
|
|
108
|
-
"web-component-wrapper": "^0.0.
|
|
109
|
-
"web-internationalization": "^2.0.
|
|
108
|
+
"web-component-wrapper": "^0.0.602",
|
|
109
|
+
"web-internationalization": "^2.0.42",
|
|
110
110
|
"weboptimizer": "^3.0.24",
|
|
111
111
|
"webpack-dev-server": "^5.2.5",
|
|
112
|
-
"website-utilities": "^1.0.
|
|
112
|
+
"website-utilities": "^1.0.443"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=24",
|
package/source/deploy.ts
CHANGED
package/source/dummyReadme.md
CHANGED
|
@@ -92,16 +92,16 @@ npm install clientnode
|
|
|
92
92
|
<!--showExample:JavaScript-->
|
|
93
93
|
|
|
94
94
|
```JavaScript
|
|
95
|
-
const domNode = clientnode.createDomNodes('<p>some content to animate</p>')
|
|
95
|
+
const domNode = clientnode.createDomNodes('<p>some content to animate</p>')
|
|
96
96
|
|
|
97
97
|
const endless = () => {
|
|
98
98
|
clientnode.fadeIn(domNode)
|
|
99
99
|
.then(() => clientnode.fadeOut(domNode))
|
|
100
100
|
.then(endless)
|
|
101
|
-
}
|
|
102
|
-
endless()
|
|
101
|
+
}
|
|
102
|
+
endless()
|
|
103
103
|
|
|
104
|
-
document.querySelector('#first-example-playground').appendChild(domNode)
|
|
104
|
+
document.querySelector('#first-example-playground').appendChild(domNode)
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
The compiled bundle supports AMD, commonjs, commonjs2 and variable injection
|
|
@@ -137,5 +137,5 @@ document.querySelector('#second-example-playground').innerText =
|
|
|
137
137
|
operand2: {$select: 'some.data.in.scope'}
|
|
138
138
|
},
|
|
139
139
|
{some: {data: {in: {scope: 3}}}}
|
|
140
|
-
)
|
|
140
|
+
)
|
|
141
141
|
```
|
package/source/index.ts
CHANGED
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
wrap
|
|
34
34
|
} from 'clientnode'
|
|
35
35
|
import {func, object} from 'clientnode/property-types'
|
|
36
|
-
import {property} from 'web-component-wrapper/decorator'
|
|
36
|
+
import {property} from 'web-component-wrapper/compatible/decorator'
|
|
37
37
|
import {WebComponentAPI} from 'web-component-wrapper/type'
|
|
38
|
-
import {Web} from 'web-component-wrapper/Web'
|
|
38
|
+
import {Web} from 'web-component-wrapper/compatible/Web'
|
|
39
39
|
import {api as websiteUtilitiesAPI} from 'website-utilities'
|
|
40
40
|
import {api as webInternationalizationAPI} from 'web-internationalization'
|
|
41
41
|
|
|
@@ -423,12 +423,17 @@ export class WebDocumentation<
|
|
|
423
423
|
if (
|
|
424
424
|
['javascript', 'javascripts', 'js']
|
|
425
425
|
.includes(match[2].toLowerCase())
|
|
426
|
-
)
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
426
|
+
)
|
|
427
|
+
try {
|
|
428
|
+
new Function(code)()
|
|
429
|
+
} catch (error) {
|
|
430
|
+
log.warn(
|
|
431
|
+
'Error occurred during running ' +
|
|
432
|
+
`code "${code}":`,
|
|
433
|
+
error
|
|
434
|
+
)
|
|
435
|
+
}
|
|
436
|
+
else if ([
|
|
432
437
|
'css', 'cascadingstylesheet',
|
|
433
438
|
'cascadingstylesheets', 'stylesheet',
|
|
434
439
|
'stylesheets', 'sheet', 'sheets', 'style',
|
|
@@ -454,7 +459,8 @@ export class WebDocumentation<
|
|
|
454
459
|
reInjectScripts = true
|
|
455
460
|
}
|
|
456
461
|
|
|
457
|
-
|
|
462
|
+
if (domNode)
|
|
463
|
+
codeDomNode.after(domNode)
|
|
458
464
|
|
|
459
465
|
if (reInjectScripts)
|
|
460
466
|
/*
|