build(site): [SITE-07] bind Monaco DOM adaptations and WinJS reference notices

This commit is contained in:
Harvey Zhao committed 2026-09-15 13:26:55 +08:00
1 parent 3eb5500525
commit 1fed96a909
25 files changed
+6931 -7

No files matched your search

+6
View File
@@ -121,6 +121,10 @@ Included component: nodejs path (Monaco core) 14.16.0
Source: https://github.com/nodejs/node/blob/bd60e93357a118204ea238d94e7a9e4209d93062/lib/path.js
Included component: WinJS-derived DOM helpers (Monaco core) unversioned adaptation; reference WinJS 4.4.5
Source: https://github.com/winjs/winjs/tree/4329b1133b243d9ded3b5a1f98d096ee8e80e889
- licenses/monaco-editor/LICENSE
- licenses/monaco-editor/ThirdPartyNotices.txt
- licenses/monaco-editor/codicons/LICENSE
@@ -148,6 +152,8 @@ Source: https://github.com/nodejs/node/blob/bd60e93357a118204ea238d94e7a9e4209d9
- licenses/monaco-editor/core-origins/marked-vscode-license.txt
- licenses/monaco-editor/core-origins/ATTRIBUTION.md
- licenses/monaco-editor/core-path/ATTRIBUTION.md
- licenses/monaco-editor/core-dom/LICENSE.txt
- licenses/monaco-editor/core-dom/ATTRIBUTION.md
## console legacy-vendor-with-TS-adapter
@@ -0,0 +1,29 @@
# WinJS-derived DOM helpers in Monaco
Monaco 0.30.1 embeds VS Code dom.ts from commit
829382514cb1065f5ebb90f436e1c6103e153953. Its Microsoft/MIT source explicitly
marks SizeUtils, getTopLeftOffset, getTotalWidth, getContentHeight and
getTotalHeight as adapted from WinJS; getContentWidth uses the same dimension
helpers. These six declaration blocks match the editor's archived source map.
The comment does not name an original WinJS release. That original version
remains unknown. For a reproducible comparison, WinJS 4.4.5 at commit
4329b1133b243d9ded3b5a1f98d096ee8e80e889 supplies _ElementUtilities.js and the
complete Microsoft MIT license included alongside this note. This does not
assert that Monaco bundled unmodified WinJS 4.4.5 or the entire WinJS library.
Existing adaptations include CSS property access and pixel conversion changes,
separate typed dimension helpers, and position calculations with borders, RTL
scroll handling and shadow-root checks. The WinJS reference has its own computed
style, unit conversion and position implementation. These differences are not
changes introduced by the ArtPlayer refactor. No editor runtime bytes changed.
Sources:
- https://github.com/microsoft/vscode/blob/829382514cb1065f5ebb90f436e1c6103e153953/src/vs/base/browser/dom.ts
- https://github.com/winjs/winjs/blob/4329b1133b243d9ded3b5a1f98d096ee8e80e889/src/js/WinJS/Utilities/_ElementUtilities.js
- https://github.com/winjs/winjs/blob/4329b1133b243d9ded3b5a1f98d096ee8e80e889/License.txt
Complete reference terms: [WinJS license](./LICENSE.txt). The editor's existing
Microsoft MIT license and original ThirdPartyNotices are retained. Unicode
data, other embedded sources and complete original core compilation remain
separate review work; this notice is not a claim of complete source clearance.
@@ -0,0 +1,13 @@
WinJS
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.