diff --git a/docs/content/docs/contributing/api-modelling.mdx b/docs/content/docs/contributing/api-modelling.mdx index 53130353..1b7aedb2 100644 --- a/docs/content/docs/contributing/api-modelling.mdx +++ b/docs/content/docs/contributing/api-modelling.mdx @@ -88,9 +88,8 @@ mutable fillStyle: fillStyle When we wish to read and write the `fillStyle` property, we can use a helper module to lift the type to an actual ReScript variant: export const fillStyleModule = ` -open Prelude -open CanvasAPI -open DOMAPI +open WebApiCanvas +open WebApiDOM external fromString: string => fillStyle = "%identity" external fromCanvasGradient: canvasGradient => fillStyle = "%identity" diff --git a/docs/content/docs/philosophy.mdx b/docs/content/docs/philosophy.mdx index 89e34d37..ef6ff8df 100644 --- a/docs/content/docs/philosophy.mdx +++ b/docs/content/docs/philosophy.mdx @@ -50,12 +50,12 @@ let element: element = document->Document.createElement( ~localName = "div") let node: node = element->Element.asNode ``` -Any other conversions can be performed using the `Prelude.unsafeConversation` helper. This should be done with caution, as it can lead to runtime errors. +Any other conversions can be performed using the `Base.unsafeConversation` helper. This should be done with caution, as it can lead to runtime errors. ```ReScript open WebAPI let element: element = document->Document.createElement( ~localName = "div") // This is potentially unsafe, as the type system cannot guarantee the conversion -let divElement: htmlDivElement = element->Prelude.unsafeConversation +let divElement: htmlDivElement = element->Base.unsafeConversation ``` diff --git a/package-lock.json b/package-lock.json index 653abaa5..bb609c17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1614,247 +1614,247 @@ "win32" ] }, - "node_modules/@rescript/darwin-arm64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/darwin-arm64/-/darwin-arm64-12.2.0.tgz", - "integrity": "sha512-xc3K/J7Ujl1vPiFY2009mRf3kWRlUe/VZyJWprseKxlcEtUQv89ter7r6pY+YFbtYvA/fcaEncL9CVGEdattAg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.11.0" - } - }, - "node_modules/@rescript/darwin-x64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/darwin-x64/-/darwin-x64-12.2.0.tgz", - "integrity": "sha512-qqcTvnlSeoKkywLjG7cXfYvKZ1e4Gz2kUKcD6SiqDgCqm8TF+spwlFAiM6sloRUOFsc0bpC/0R0B3yr01FCB1A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.11.0" - } - }, - "node_modules/@rescript/linux-arm64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/linux-arm64/-/linux-arm64-12.2.0.tgz", - "integrity": "sha512-ODmpG3ji+Nj/8d5yvXkeHlfKkmbw1Q4t1iIjVuNwtmFpz7TiEa7n/sQqoYdE+WzbDX3DoJfmJNbp3Ob7qCUoOg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.11.0" - } - }, - "node_modules/@rescript/linux-x64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/linux-x64/-/linux-x64-12.2.0.tgz", - "integrity": "sha512-2W9Y9/g19Y4F/subl8yV3T8QBG2oRaP+HciNRcBjptyEdw9LmCKH8+rhWO6sp3E+nZLwoE2IAkwH0WKV3wqlxQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.11.0" - } - }, - "node_modules/@rescript/runtime": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/runtime/-/runtime-12.2.0.tgz", - "integrity": "sha512-NwfljDRq1rjFPHUaca1nzFz13xsa9ZGkBkLvMhvVgavJT5+A4rMcLu8XAaVTi/oAhO/tlHf9ZDoOTF1AfyAk9Q==" + "node_modules/@rescript-webapi/base": { + "resolved": "packages/Base", + "link": true }, - "node_modules/@rescript/webapi-canvas": { + "node_modules/@rescript-webapi/canvas": { "resolved": "packages/Canvas", "link": true }, - "node_modules/@rescript/webapi-channel-messaging": { + "node_modules/@rescript-webapi/channel-messaging": { "resolved": "packages/ChannelMessaging", "link": true }, - "node_modules/@rescript/webapi-clipboard": { + "node_modules/@rescript-webapi/clipboard": { "resolved": "packages/Clipboard", "link": true }, - "node_modules/@rescript/webapi-credential-management": { + "node_modules/@rescript-webapi/credential-management": { "resolved": "packages/CredentialManagement", "link": true }, - "node_modules/@rescript/webapi-css-font-loading": { + "node_modules/@rescript-webapi/css-font-loading": { "resolved": "packages/CSSFontLoading", "link": true }, - "node_modules/@rescript/webapi-dom": { + "node_modules/@rescript-webapi/dom": { "resolved": "packages/DOM", "link": true }, - "node_modules/@rescript/webapi-encrypted-media-extensions": { + "node_modules/@rescript-webapi/encrypted-media-extensions": { "resolved": "packages/EncryptedMediaExtensions", "link": true }, - "node_modules/@rescript/webapi-event": { + "node_modules/@rescript-webapi/event": { "resolved": "packages/Event", "link": true }, - "node_modules/@rescript/webapi-fetch": { + "node_modules/@rescript-webapi/fetch": { "resolved": "packages/Fetch", "link": true }, - "node_modules/@rescript/webapi-file": { + "node_modules/@rescript-webapi/file": { "resolved": "packages/File", "link": true }, - "node_modules/@rescript/webapi-file-and-directory-entries": { + "node_modules/@rescript-webapi/file-and-directory-entries": { "resolved": "packages/FileAndDirectoryEntries", "link": true }, - "node_modules/@rescript/webapi-gamepad": { + "node_modules/@rescript-webapi/gamepad": { "resolved": "packages/Gamepad", "link": true }, - "node_modules/@rescript/webapi-geolocation": { + "node_modules/@rescript-webapi/geolocation": { "resolved": "packages/Geolocation", "link": true }, - "node_modules/@rescript/webapi-history": { + "node_modules/@rescript-webapi/history": { "resolved": "packages/History", "link": true }, - "node_modules/@rescript/webapi-indexed-db": { + "node_modules/@rescript-webapi/indexed-db": { "resolved": "packages/IndexedDB", "link": true }, - "node_modules/@rescript/webapi-intersection-observer": { + "node_modules/@rescript-webapi/intersection-observer": { "resolved": "packages/IntersectionObserver", "link": true }, - "node_modules/@rescript/webapi-media-capabilities": { + "node_modules/@rescript-webapi/media-capabilities": { "resolved": "packages/MediaCapabilities", "link": true }, - "node_modules/@rescript/webapi-media-capture-and-streams": { + "node_modules/@rescript-webapi/media-capture-and-streams": { "resolved": "packages/MediaCaptureAndStreams", "link": true }, - "node_modules/@rescript/webapi-media-session": { + "node_modules/@rescript-webapi/media-session": { "resolved": "packages/MediaSession", "link": true }, - "node_modules/@rescript/webapi-mutation-observer": { + "node_modules/@rescript-webapi/mutation-observer": { "resolved": "packages/MutationObserver", "link": true }, - "node_modules/@rescript/webapi-notification": { + "node_modules/@rescript-webapi/notification": { "resolved": "packages/Notification", "link": true }, - "node_modules/@rescript/webapi-performance": { + "node_modules/@rescript-webapi/performance": { "resolved": "packages/Performance", "link": true }, - "node_modules/@rescript/webapi-permissions": { + "node_modules/@rescript-webapi/permissions": { "resolved": "packages/Permissions", "link": true }, - "node_modules/@rescript/webapi-picture-in-picture": { + "node_modules/@rescript-webapi/picture-in-picture": { "resolved": "packages/PictureInPicture", "link": true }, - "node_modules/@rescript/webapi-prelude": { - "resolved": "packages/Prelude", - "link": true - }, - "node_modules/@rescript/webapi-push": { + "node_modules/@rescript-webapi/push": { "resolved": "packages/Push", "link": true }, - "node_modules/@rescript/webapi-remote-playback": { + "node_modules/@rescript-webapi/remote-playback": { "resolved": "packages/RemotePlayback", "link": true }, - "node_modules/@rescript/webapi-resize-observer": { + "node_modules/@rescript-webapi/resize-observer": { "resolved": "packages/ResizeObserver", "link": true }, - "node_modules/@rescript/webapi-screen-wake-lock": { + "node_modules/@rescript-webapi/screen-wake-lock": { "resolved": "packages/ScreenWakeLock", "link": true }, - "node_modules/@rescript/webapi-service-worker": { + "node_modules/@rescript-webapi/service-worker": { "resolved": "packages/ServiceWorker", "link": true }, - "node_modules/@rescript/webapi-storage": { + "node_modules/@rescript-webapi/storage": { "resolved": "packages/Storage", "link": true }, - "node_modules/@rescript/webapi-ui-events": { + "node_modules/@rescript-webapi/ui-events": { "resolved": "packages/UIEvents", "link": true }, - "node_modules/@rescript/webapi-url": { + "node_modules/@rescript-webapi/url": { "resolved": "packages/URL", "link": true }, - "node_modules/@rescript/webapi-view-transitions": { + "node_modules/@rescript-webapi/view-transitions": { "resolved": "packages/ViewTransitions", "link": true }, - "node_modules/@rescript/webapi-visual-viewport": { + "node_modules/@rescript-webapi/visual-viewport": { "resolved": "packages/VisualViewport", "link": true }, - "node_modules/@rescript/webapi-web-audio": { + "node_modules/@rescript-webapi/web-audio": { "resolved": "packages/WebAudio", "link": true }, - "node_modules/@rescript/webapi-web-crypto": { + "node_modules/@rescript-webapi/web-crypto": { "resolved": "packages/WebCrypto", "link": true }, - "node_modules/@rescript/webapi-web-locks": { + "node_modules/@rescript-webapi/web-locks": { "resolved": "packages/WebLocks", "link": true }, - "node_modules/@rescript/webapi-web-midi": { + "node_modules/@rescript-webapi/web-midi": { "resolved": "packages/WebMIDI", "link": true }, - "node_modules/@rescript/webapi-web-sockets": { + "node_modules/@rescript-webapi/web-sockets": { "resolved": "packages/WebSockets", "link": true }, - "node_modules/@rescript/webapi-web-speech": { + "node_modules/@rescript-webapi/web-speech": { "resolved": "packages/WebSpeech", "link": true }, - "node_modules/@rescript/webapi-web-storage": { + "node_modules/@rescript-webapi/web-storage": { "resolved": "packages/WebStorage", "link": true }, - "node_modules/@rescript/webapi-web-vtt": { + "node_modules/@rescript-webapi/web-vtt": { "resolved": "packages/WebVTT", "link": true }, - "node_modules/@rescript/webapi-web-workers": { + "node_modules/@rescript-webapi/web-workers": { "resolved": "packages/WebWorkers", "link": true }, + "node_modules/@rescript/darwin-arm64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/darwin-arm64/-/darwin-arm64-12.2.0.tgz", + "integrity": "sha512-xc3K/J7Ujl1vPiFY2009mRf3kWRlUe/VZyJWprseKxlcEtUQv89ter7r6pY+YFbtYvA/fcaEncL9CVGEdattAg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@rescript/darwin-x64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/darwin-x64/-/darwin-x64-12.2.0.tgz", + "integrity": "sha512-qqcTvnlSeoKkywLjG7cXfYvKZ1e4Gz2kUKcD6SiqDgCqm8TF+spwlFAiM6sloRUOFsc0bpC/0R0B3yr01FCB1A==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@rescript/linux-arm64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/linux-arm64/-/linux-arm64-12.2.0.tgz", + "integrity": "sha512-ODmpG3ji+Nj/8d5yvXkeHlfKkmbw1Q4t1iIjVuNwtmFpz7TiEa7n/sQqoYdE+WzbDX3DoJfmJNbp3Ob7qCUoOg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@rescript/linux-x64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/linux-x64/-/linux-x64-12.2.0.tgz", + "integrity": "sha512-2W9Y9/g19Y4F/subl8yV3T8QBG2oRaP+HciNRcBjptyEdw9LmCKH8+rhWO6sp3E+nZLwoE2IAkwH0WKV3wqlxQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.11.0" + } + }, + "node_modules/@rescript/runtime": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/runtime/-/runtime-12.2.0.tgz", + "integrity": "sha512-NwfljDRq1rjFPHUaca1nzFz13xsa9ZGkBkLvMhvVgavJT5+A4rMcLu8XAaVTi/oAhO/tlHf9ZDoOTF1AfyAk9Q==" + }, "node_modules/@rescript/win32-x64": { "version": "12.2.0", "resolved": "https://registry.npmjs.org/@rescript/win32-x64/-/win32-x64-12.2.0.tgz", @@ -7665,183 +7665,191 @@ "url": "https://github.com/sponsors/wooorm" } }, + "packages/Base": { + "name": "@rescript-webapi/base", + "version": "0.1.0", + "license": "MIT", + "peerDependencies": { + "rescript": ">=12.0.0 <13" + } + }, "packages/Canvas": { - "name": "@rescript/webapi-canvas", + "name": "@rescript-webapi/canvas", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/ChannelMessaging": { - "name": "@rescript/webapi-channel-messaging", + "name": "@rescript-webapi/channel-messaging", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Clipboard": { - "name": "@rescript/webapi-clipboard", + "name": "@rescript-webapi/clipboard", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/CredentialManagement": { - "name": "@rescript/webapi-credential-management", + "name": "@rescript-webapi/credential-management", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/CSSFontLoading": { - "name": "@rescript/webapi-css-font-loading", + "name": "@rescript-webapi/css-font-loading", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/DOM": { - "name": "@rescript/webapi-dom", + "name": "@rescript-webapi/dom", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-clipboard": "0.1.0", - "@rescript/webapi-credential-management": "0.1.0", - "@rescript/webapi-css-font-loading": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-file-and-directory-entries": "0.1.0", - "@rescript/webapi-gamepad": "0.1.0", - "@rescript/webapi-geolocation": "0.1.0", - "@rescript/webapi-history": "0.1.0", - "@rescript/webapi-indexed-db": "0.1.0", - "@rescript/webapi-media-capabilities": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-media-session": "0.1.0", - "@rescript/webapi-performance": "0.1.0", - "@rescript/webapi-permissions": "0.1.0", - "@rescript/webapi-picture-in-picture": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-remote-playback": "0.1.0", - "@rescript/webapi-screen-wake-lock": "0.1.0", - "@rescript/webapi-service-worker": "0.1.0", - "@rescript/webapi-storage": "0.1.0", - "@rescript/webapi-url": "0.1.0", - "@rescript/webapi-view-transitions": "0.1.0", - "@rescript/webapi-visual-viewport": "0.1.0", - "@rescript/webapi-web-crypto": "0.1.0", - "@rescript/webapi-web-locks": "0.1.0", - "@rescript/webapi-web-midi": "0.1.0", - "@rescript/webapi-web-speech": "0.1.0", - "@rescript/webapi-web-storage": "0.1.0", - "@rescript/webapi-web-vtt": "0.1.0", - "@rescript/webapi-web-workers": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/clipboard": "0.1.0", + "@rescript-webapi/credential-management": "0.1.0", + "@rescript-webapi/css-font-loading": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/file-and-directory-entries": "0.1.0", + "@rescript-webapi/gamepad": "0.1.0", + "@rescript-webapi/geolocation": "0.1.0", + "@rescript-webapi/history": "0.1.0", + "@rescript-webapi/indexed-db": "0.1.0", + "@rescript-webapi/media-capabilities": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0", + "@rescript-webapi/media-session": "0.1.0", + "@rescript-webapi/performance": "0.1.0", + "@rescript-webapi/permissions": "0.1.0", + "@rescript-webapi/picture-in-picture": "0.1.0", + "@rescript-webapi/remote-playback": "0.1.0", + "@rescript-webapi/screen-wake-lock": "0.1.0", + "@rescript-webapi/service-worker": "0.1.0", + "@rescript-webapi/storage": "0.1.0", + "@rescript-webapi/url": "0.1.0", + "@rescript-webapi/view-transitions": "0.1.0", + "@rescript-webapi/visual-viewport": "0.1.0", + "@rescript-webapi/web-crypto": "0.1.0", + "@rescript-webapi/web-locks": "0.1.0", + "@rescript-webapi/web-midi": "0.1.0", + "@rescript-webapi/web-speech": "0.1.0", + "@rescript-webapi/web-storage": "0.1.0", + "@rescript-webapi/web-vtt": "0.1.0", + "@rescript-webapi/web-workers": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/EncryptedMediaExtensions": { - "name": "@rescript/webapi-encrypted-media-extensions", + "name": "@rescript-webapi/encrypted-media-extensions", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Event": { - "name": "@rescript/webapi-event", + "name": "@rescript-webapi/event", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Fetch": { - "name": "@rescript/webapi-fetch", + "name": "@rescript-webapi/fetch", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-url": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/url": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/File": { - "name": "@rescript/webapi-file", + "name": "@rescript-webapi/file", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/FileAndDirectoryEntries": { - "name": "@rescript/webapi-file-and-directory-entries", + "name": "@rescript-webapi/file-and-directory-entries", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Gamepad": { - "name": "@rescript/webapi-gamepad", + "name": "@rescript-webapi/gamepad", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Geolocation": { - "name": "@rescript/webapi-geolocation", + "name": "@rescript-webapi/geolocation", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -7849,7 +7857,7 @@ } }, "packages/History": { - "name": "@rescript/webapi-history", + "name": "@rescript-webapi/history", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -7857,30 +7865,30 @@ } }, "packages/IndexedDB": { - "name": "@rescript/webapi-indexed-db", + "name": "@rescript-webapi/indexed-db", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/IntersectionObserver": { - "name": "@rescript/webapi-intersection-observer", + "name": "@rescript-webapi/intersection-observer", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/MediaCapabilities": { - "name": "@rescript/webapi-media-capabilities", + "name": "@rescript-webapi/media-capabilities", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -7888,18 +7896,18 @@ } }, "packages/MediaCaptureAndStreams": { - "name": "@rescript/webapi-media-capture-and-streams", + "name": "@rescript-webapi/media-capture-and-streams", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/MediaSession": { - "name": "@rescript/webapi-media-session", + "name": "@rescript-webapi/media-session", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -7907,157 +7915,149 @@ } }, "packages/MutationObserver": { - "name": "@rescript/webapi-mutation-observer", + "name": "@rescript-webapi/mutation-observer", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Notification": { - "name": "@rescript/webapi-notification", + "name": "@rescript-webapi/notification", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Performance": { - "name": "@rescript/webapi-performance", + "name": "@rescript-webapi/performance", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Permissions": { - "name": "@rescript/webapi-permissions", + "name": "@rescript-webapi/permissions", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/PictureInPicture": { - "name": "@rescript/webapi-picture-in-picture", + "name": "@rescript-webapi/picture-in-picture", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, - "packages/Prelude": { - "name": "@rescript/webapi-prelude", - "version": "0.1.0", - "license": "MIT", - "peerDependencies": { - "rescript": ">=12.0.0 <13" - } - }, "packages/Push": { - "name": "@rescript/webapi-push", + "name": "@rescript-webapi/push", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/RemotePlayback": { - "name": "@rescript/webapi-remote-playback", + "name": "@rescript-webapi/remote-playback", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/ResizeObserver": { - "name": "@rescript/webapi-resize-observer", + "name": "@rescript-webapi/resize-observer", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/ScreenWakeLock": { - "name": "@rescript/webapi-screen-wake-lock", + "name": "@rescript-webapi/screen-wake-lock", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/ServiceWorker": { - "name": "@rescript/webapi-service-worker", + "name": "@rescript-webapi/service-worker", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-notification": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-push": "0.1.0", - "@rescript/webapi-web-workers": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/notification": "0.1.0", + "@rescript-webapi/push": "0.1.0", + "@rescript-webapi/web-workers": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/Storage": { - "name": "@rescript/webapi-storage", + "name": "@rescript-webapi/storage", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/file": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/UIEvents": { - "name": "@rescript/webapi-ui-events", + "name": "@rescript-webapi/ui-events", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-file-and-directory-entries": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/file-and-directory-entries": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/URL": { - "name": "@rescript/webapi-url", + "name": "@rescript-webapi/url", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -8065,7 +8065,7 @@ } }, "packages/ViewTransitions": { - "name": "@rescript/webapi-view-transitions", + "name": "@rescript-webapi/view-transitions", "version": "0.1.0", "license": "MIT", "peerDependencies": { @@ -8073,120 +8073,120 @@ } }, "packages/VisualViewport": { - "name": "@rescript/webapi-visual-viewport", + "name": "@rescript-webapi/visual-viewport", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebAudio": { - "name": "@rescript/webapi-web-audio", + "name": "@rescript-webapi/web-audio", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebCrypto": { - "name": "@rescript/webapi-web-crypto", + "name": "@rescript-webapi/web-crypto", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebLocks": { - "name": "@rescript/webapi-web-locks", + "name": "@rescript-webapi/web-locks", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebMIDI": { - "name": "@rescript/webapi-web-midi", + "name": "@rescript-webapi/web-midi", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebSockets": { - "name": "@rescript/webapi-web-sockets", + "name": "@rescript-webapi/web-sockets", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebSpeech": { - "name": "@rescript/webapi-web-speech", + "name": "@rescript-webapi/web-speech", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebStorage": { - "name": "@rescript/webapi-web-storage", + "name": "@rescript-webapi/web-storage", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebVTT": { - "name": "@rescript/webapi-web-vtt", + "name": "@rescript-webapi/web-vtt", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" } }, "packages/WebWorkers": { - "name": "@rescript/webapi-web-workers", + "name": "@rescript-webapi/web-workers", "version": "0.1.0", "license": "MIT", "dependencies": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-url": "0.1.0" + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/url": "0.1.0" }, "peerDependencies": { "rescript": ">=12.0.0 <13" @@ -9035,349 +9035,349 @@ "dev": true, "optional": true }, - "@rescript/darwin-arm64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/darwin-arm64/-/darwin-arm64-12.2.0.tgz", - "integrity": "sha512-xc3K/J7Ujl1vPiFY2009mRf3kWRlUe/VZyJWprseKxlcEtUQv89ter7r6pY+YFbtYvA/fcaEncL9CVGEdattAg==", - "optional": true - }, - "@rescript/darwin-x64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/darwin-x64/-/darwin-x64-12.2.0.tgz", - "integrity": "sha512-qqcTvnlSeoKkywLjG7cXfYvKZ1e4Gz2kUKcD6SiqDgCqm8TF+spwlFAiM6sloRUOFsc0bpC/0R0B3yr01FCB1A==", - "optional": true - }, - "@rescript/linux-arm64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/linux-arm64/-/linux-arm64-12.2.0.tgz", - "integrity": "sha512-ODmpG3ji+Nj/8d5yvXkeHlfKkmbw1Q4t1iIjVuNwtmFpz7TiEa7n/sQqoYdE+WzbDX3DoJfmJNbp3Ob7qCUoOg==", - "optional": true - }, - "@rescript/linux-x64": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/linux-x64/-/linux-x64-12.2.0.tgz", - "integrity": "sha512-2W9Y9/g19Y4F/subl8yV3T8QBG2oRaP+HciNRcBjptyEdw9LmCKH8+rhWO6sp3E+nZLwoE2IAkwH0WKV3wqlxQ==", - "optional": true - }, - "@rescript/runtime": { - "version": "12.2.0", - "resolved": "https://registry.npmjs.org/@rescript/runtime/-/runtime-12.2.0.tgz", - "integrity": "sha512-NwfljDRq1rjFPHUaca1nzFz13xsa9ZGkBkLvMhvVgavJT5+A4rMcLu8XAaVTi/oAhO/tlHf9ZDoOTF1AfyAk9Q==" + "@rescript-webapi/base": { + "version": "file:packages/Base", + "requires": {} }, - "@rescript/webapi-canvas": { + "@rescript-webapi/canvas": { "version": "file:packages/Canvas", "requires": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0" } }, - "@rescript/webapi-channel-messaging": { + "@rescript-webapi/channel-messaging": { "version": "file:packages/ChannelMessaging", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-clipboard": { + "@rescript-webapi/clipboard": { "version": "file:packages/Clipboard", "requires": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0" } }, - "@rescript/webapi-credential-management": { + "@rescript-webapi/credential-management": { "version": "file:packages/CredentialManagement", "requires": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-css-font-loading": { + "@rescript-webapi/css-font-loading": { "version": "file:packages/CSSFontLoading", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-dom": { + "@rescript-webapi/dom": { "version": "file:packages/DOM", "requires": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-clipboard": "0.1.0", - "@rescript/webapi-credential-management": "0.1.0", - "@rescript/webapi-css-font-loading": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-file-and-directory-entries": "0.1.0", - "@rescript/webapi-gamepad": "0.1.0", - "@rescript/webapi-geolocation": "0.1.0", - "@rescript/webapi-history": "0.1.0", - "@rescript/webapi-indexed-db": "0.1.0", - "@rescript/webapi-media-capabilities": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-media-session": "0.1.0", - "@rescript/webapi-performance": "0.1.0", - "@rescript/webapi-permissions": "0.1.0", - "@rescript/webapi-picture-in-picture": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-remote-playback": "0.1.0", - "@rescript/webapi-screen-wake-lock": "0.1.0", - "@rescript/webapi-service-worker": "0.1.0", - "@rescript/webapi-storage": "0.1.0", - "@rescript/webapi-url": "0.1.0", - "@rescript/webapi-view-transitions": "0.1.0", - "@rescript/webapi-visual-viewport": "0.1.0", - "@rescript/webapi-web-crypto": "0.1.0", - "@rescript/webapi-web-locks": "0.1.0", - "@rescript/webapi-web-midi": "0.1.0", - "@rescript/webapi-web-speech": "0.1.0", - "@rescript/webapi-web-storage": "0.1.0", - "@rescript/webapi-web-vtt": "0.1.0", - "@rescript/webapi-web-workers": "0.1.0" - } - }, - "@rescript/webapi-encrypted-media-extensions": { + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/clipboard": "0.1.0", + "@rescript-webapi/credential-management": "0.1.0", + "@rescript-webapi/css-font-loading": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/file-and-directory-entries": "0.1.0", + "@rescript-webapi/gamepad": "0.1.0", + "@rescript-webapi/geolocation": "0.1.0", + "@rescript-webapi/history": "0.1.0", + "@rescript-webapi/indexed-db": "0.1.0", + "@rescript-webapi/media-capabilities": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0", + "@rescript-webapi/media-session": "0.1.0", + "@rescript-webapi/performance": "0.1.0", + "@rescript-webapi/permissions": "0.1.0", + "@rescript-webapi/picture-in-picture": "0.1.0", + "@rescript-webapi/remote-playback": "0.1.0", + "@rescript-webapi/screen-wake-lock": "0.1.0", + "@rescript-webapi/service-worker": "0.1.0", + "@rescript-webapi/storage": "0.1.0", + "@rescript-webapi/url": "0.1.0", + "@rescript-webapi/view-transitions": "0.1.0", + "@rescript-webapi/visual-viewport": "0.1.0", + "@rescript-webapi/web-crypto": "0.1.0", + "@rescript-webapi/web-locks": "0.1.0", + "@rescript-webapi/web-midi": "0.1.0", + "@rescript-webapi/web-speech": "0.1.0", + "@rescript-webapi/web-storage": "0.1.0", + "@rescript-webapi/web-vtt": "0.1.0", + "@rescript-webapi/web-workers": "0.1.0" + } + }, + "@rescript-webapi/encrypted-media-extensions": { "version": "file:packages/EncryptedMediaExtensions", "requires": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-event": { + "@rescript-webapi/event": { "version": "file:packages/Event", "requires": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" } }, - "@rescript/webapi-fetch": { + "@rescript-webapi/fetch": { "version": "file:packages/Fetch", "requires": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-url": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/url": "0.1.0" } }, - "@rescript/webapi-file": { + "@rescript-webapi/file": { "version": "file:packages/File", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-file-and-directory-entries": { + "@rescript-webapi/file-and-directory-entries": { "version": "file:packages/FileAndDirectoryEntries", "requires": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" } }, - "@rescript/webapi-gamepad": { + "@rescript-webapi/gamepad": { "version": "file:packages/Gamepad", "requires": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" } }, - "@rescript/webapi-geolocation": { + "@rescript-webapi/geolocation": { "version": "file:packages/Geolocation", "requires": {} }, - "@rescript/webapi-history": { + "@rescript-webapi/history": { "version": "file:packages/History", "requires": {} }, - "@rescript/webapi-indexed-db": { + "@rescript-webapi/indexed-db": { "version": "file:packages/IndexedDB", "requires": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-intersection-observer": { + "@rescript-webapi/intersection-observer": { "version": "file:packages/IntersectionObserver", "requires": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" } }, - "@rescript/webapi-media-capabilities": { + "@rescript-webapi/media-capabilities": { "version": "file:packages/MediaCapabilities", "requires": {} }, - "@rescript/webapi-media-capture-and-streams": { + "@rescript-webapi/media-capture-and-streams": { "version": "file:packages/MediaCaptureAndStreams", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-media-session": { + "@rescript-webapi/media-session": { "version": "file:packages/MediaSession", "requires": {} }, - "@rescript/webapi-mutation-observer": { + "@rescript-webapi/mutation-observer": { "version": "file:packages/MutationObserver", "requires": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" } }, - "@rescript/webapi-notification": { + "@rescript-webapi/notification": { "version": "file:packages/Notification", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-performance": { + "@rescript-webapi/performance": { "version": "file:packages/Performance", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-permissions": { + "@rescript-webapi/permissions": { "version": "file:packages/Permissions", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-picture-in-picture": { + "@rescript-webapi/picture-in-picture": { "version": "file:packages/PictureInPicture", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-prelude": { - "version": "file:packages/Prelude", - "requires": {} - }, - "@rescript/webapi-push": { + "@rescript-webapi/push": { "version": "file:packages/Push", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-remote-playback": { + "@rescript-webapi/remote-playback": { "version": "file:packages/RemotePlayback", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-resize-observer": { + "@rescript-webapi/resize-observer": { "version": "file:packages/ResizeObserver", "requires": { - "@rescript/webapi-dom": "0.1.0" + "@rescript-webapi/dom": "0.1.0" } }, - "@rescript/webapi-screen-wake-lock": { + "@rescript-webapi/screen-wake-lock": { "version": "file:packages/ScreenWakeLock", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-service-worker": { + "@rescript-webapi/service-worker": { "version": "file:packages/ServiceWorker", "requires": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-notification": "0.1.0", - "@rescript/webapi-prelude": "0.1.0", - "@rescript/webapi-push": "0.1.0", - "@rescript/webapi-web-workers": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/notification": "0.1.0", + "@rescript-webapi/push": "0.1.0", + "@rescript-webapi/web-workers": "0.1.0" } }, - "@rescript/webapi-storage": { + "@rescript-webapi/storage": { "version": "file:packages/Storage", "requires": { - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/file": "0.1.0" } }, - "@rescript/webapi-ui-events": { + "@rescript-webapi/ui-events": { "version": "file:packages/UIEvents", "requires": { - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0", - "@rescript/webapi-file-and-directory-entries": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0", + "@rescript-webapi/file-and-directory-entries": "0.1.0" } }, - "@rescript/webapi-url": { + "@rescript-webapi/url": { "version": "file:packages/URL", "requires": {} }, - "@rescript/webapi-view-transitions": { + "@rescript-webapi/view-transitions": { "version": "file:packages/ViewTransitions", "requires": {} }, - "@rescript/webapi-visual-viewport": { + "@rescript-webapi/visual-viewport": { "version": "file:packages/VisualViewport", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-audio": { + "@rescript-webapi/web-audio": { "version": "file:packages/WebAudio", "requires": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-dom": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-media-capture-and-streams": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/dom": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/media-capture-and-streams": "0.1.0" } }, - "@rescript/webapi-web-crypto": { + "@rescript-webapi/web-crypto": { "version": "file:packages/WebCrypto", "requires": { - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0" } }, - "@rescript/webapi-web-locks": { + "@rescript-webapi/web-locks": { "version": "file:packages/WebLocks", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-midi": { + "@rescript-webapi/web-midi": { "version": "file:packages/WebMIDI", "requires": { - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-prelude": "0.1.0" + "@rescript-webapi/base": "0.1.0", + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-sockets": { + "@rescript-webapi/web-sockets": { "version": "file:packages/WebSockets", "requires": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-file": "0.1.0" + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/file": "0.1.0" } }, - "@rescript/webapi-web-speech": { + "@rescript-webapi/web-speech": { "version": "file:packages/WebSpeech", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-storage": { + "@rescript-webapi/web-storage": { "version": "file:packages/WebStorage", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-vtt": { + "@rescript-webapi/web-vtt": { "version": "file:packages/WebVTT", "requires": { - "@rescript/webapi-event": "0.1.0" + "@rescript-webapi/event": "0.1.0" } }, - "@rescript/webapi-web-workers": { + "@rescript-webapi/web-workers": { "version": "file:packages/WebWorkers", "requires": { - "@rescript/webapi-channel-messaging": "0.1.0", - "@rescript/webapi-event": "0.1.0", - "@rescript/webapi-fetch": "0.1.0", - "@rescript/webapi-url": "0.1.0" + "@rescript-webapi/channel-messaging": "0.1.0", + "@rescript-webapi/event": "0.1.0", + "@rescript-webapi/fetch": "0.1.0", + "@rescript-webapi/url": "0.1.0" } }, + "@rescript/darwin-arm64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/darwin-arm64/-/darwin-arm64-12.2.0.tgz", + "integrity": "sha512-xc3K/J7Ujl1vPiFY2009mRf3kWRlUe/VZyJWprseKxlcEtUQv89ter7r6pY+YFbtYvA/fcaEncL9CVGEdattAg==", + "optional": true + }, + "@rescript/darwin-x64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/darwin-x64/-/darwin-x64-12.2.0.tgz", + "integrity": "sha512-qqcTvnlSeoKkywLjG7cXfYvKZ1e4Gz2kUKcD6SiqDgCqm8TF+spwlFAiM6sloRUOFsc0bpC/0R0B3yr01FCB1A==", + "optional": true + }, + "@rescript/linux-arm64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/linux-arm64/-/linux-arm64-12.2.0.tgz", + "integrity": "sha512-ODmpG3ji+Nj/8d5yvXkeHlfKkmbw1Q4t1iIjVuNwtmFpz7TiEa7n/sQqoYdE+WzbDX3DoJfmJNbp3Ob7qCUoOg==", + "optional": true + }, + "@rescript/linux-x64": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/linux-x64/-/linux-x64-12.2.0.tgz", + "integrity": "sha512-2W9Y9/g19Y4F/subl8yV3T8QBG2oRaP+HciNRcBjptyEdw9LmCKH8+rhWO6sp3E+nZLwoE2IAkwH0WKV3wqlxQ==", + "optional": true + }, + "@rescript/runtime": { + "version": "12.2.0", + "resolved": "https://registry.npmjs.org/@rescript/runtime/-/runtime-12.2.0.tgz", + "integrity": "sha512-NwfljDRq1rjFPHUaca1nzFz13xsa9ZGkBkLvMhvVgavJT5+A4rMcLu8XAaVTi/oAhO/tlHf9ZDoOTF1AfyAk9Q==" + }, "@rescript/win32-x64": { "version": "12.2.0", "resolved": "https://registry.npmjs.org/@rescript/win32-x64/-/win32-x64-12.2.0.tgz", diff --git a/package.json b/package.json index d3c8d46e..f785cf6e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "format": "rescript format && oxfmt ./tests/index.js ./package.json ./docs && prettier --write ./docs/pages", "format:check": "rescript format --check && oxfmt ./tests/index.js ./package.json ./docs --check && prettier --check ./docs/pages", "docs": "astro dev", + "create:npm-packages": "node scripts/create-npm-packages.js", "prebuild:docs": "node docs/llm.js", "build:docs": "astro build" }, diff --git a/packages/Prelude/package.json b/packages/Base/package.json similarity index 89% rename from packages/Prelude/package.json rename to packages/Base/package.json index 04aac960..f7dfed79 100644 --- a/packages/Prelude/package.json +++ b/packages/Base/package.json @@ -1,5 +1,5 @@ { - "name": "@rescript/webapi-prelude", + "name": "@rescript-webapi/base", "version": "0.1.0", "license": "MIT", "type": "module", diff --git a/packages/Prelude/rescript.json b/packages/Base/rescript.json similarity index 73% rename from packages/Prelude/rescript.json rename to packages/Base/rescript.json index f1d3e0c9..a304e4c8 100644 --- a/packages/Prelude/rescript.json +++ b/packages/Base/rescript.json @@ -1,6 +1,6 @@ { - "name": "@rescript/webapi-prelude", - "namespace": "WebApiPrelude", + "name": "@rescript-webapi/base", + "namespace": "WebApiBase", "sources": [ { "dir": "src", diff --git a/packages/Base/src/ArrayBufferTypedArrayOrDataView.res b/packages/Base/src/ArrayBufferTypedArrayOrDataView.res new file mode 100644 index 00000000..0df81813 --- /dev/null +++ b/packages/Base/src/ArrayBufferTypedArrayOrDataView.res @@ -0,0 +1,4 @@ +type t +external fromArrayBuffer: ArrayBuffer.t => t = "%identity" +external fromTypedArray: TypedArray.t<'t> => t = "%identity" +external fromDataView: DataView.t => t = "%identity" diff --git a/packages/Base/src/CSSFontLoading.res b/packages/Base/src/CSSFontLoading.res new file mode 100644 index 00000000..dff65d9d --- /dev/null +++ b/packages/Base/src/CSSFontLoading.res @@ -0,0 +1,25 @@ +type fontFaceLoadStatus = + | @as("error") Error + | @as("loaded") Loaded + | @as("loading") Loading + | @as("unloaded") Unloaded + +type fontFaceSetLoadStatus = + | @as("loaded") Loaded + | @as("loading") Loading + +/** +[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet) +*/ +@editor.completeFrom(WebApiCSSFontLoading.FontFaceSet) +type rec fontFaceSet = private { + ...Event.eventTarget, + /** + [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) + */ + ready: promise, + /** + [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) + */ + status: fontFaceSetLoadStatus, +} diff --git a/packages/Prelude/src/Types.res b/packages/Base/src/DOM.res similarity index 95% rename from packages/Prelude/src/Types.res rename to packages/Base/src/DOM.res index 0295a3b2..8a7c0068 100644 --- a/packages/Prelude/src/Types.res +++ b/packages/Base/src/DOM.res @@ -1,12 +1,5 @@ @@warning("-30") -module ArrayBufferTypedArrayOrDataView = { - type t - external fromArrayBuffer: ArrayBuffer.t => t = "%identity" - external fromTypedArray: TypedArray.t<'t> => t = "%identity" - external fromDataView: DataView.t => t = "%identity" -} - /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. [See DOMException on MDN](https://developer.mozilla.org/docs/Web/API/DOMException) @@ -36,146 +29,6 @@ type domStringList = { type window -/** -EventTarget is a WebApiDOM interface implemented by objects that can receive events and may have listeners for them. -[See EventTarget on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget) -*/ -@editor.completeFrom(WebApiEvent.EventTarget) -type eventTarget = private {} - -type fontFaceLoadStatus = - | @as("error") Error - | @as("loaded") Loaded - | @as("loading") Loading - | @as("unloaded") Unloaded - -type fontFaceSetLoadStatus = - | @as("loaded") Loaded - | @as("loading") Loading - -/** -[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet) -*/ -@editor.completeFrom(WebApiCSSFontLoading.FontFaceSet) -type rec fontFaceSet = private { - ...eventTarget, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) - */ - ready: promise, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) - */ - status: fontFaceSetLoadStatus, -} - -/** -[See FileSystemEntry on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) -*/ -@editor.completeFrom(WebApiFileAndDirectoryEntries.FileSystemEntry) -type rec fileSystemEntry = private { - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) - */ - isFile: bool, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) - */ - isDirectory: bool, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) - */ - name: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) - */ - fullPath: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) - */ - filesystem: fileSystem, -} - -/** -[See FileSystemDirectoryEntry on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) -*/ -@editor.completeFrom(FileSystemDirectoryEntry) and fileSystemDirectoryEntry = private { - // Base properties from FileSystemEntry - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) - */ - isFile: bool, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) - */ - isDirectory: bool, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) - */ - name: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) - */ - fullPath: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) - */ - filesystem: fileSystem, - // End base properties from FileSystemEntry -} - -/** -[See FileSystem on MDN](https://developer.mozilla.org/docs/Web/API/FileSystem) -*/ -and fileSystem = { - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystem/name) - */ - name: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FileSystem/root) - */ - root: fileSystemDirectoryEntry, -} - -/** -A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The WebApiFile interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. -[See Blob on MDN](https://developer.mozilla.org/docs/Web/API/Blob) -*/ -@editor.completeFrom(WebApiDOM.DOM.File.Blob) -type blob = private { - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/size) - */ - size: int, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Blob/type) - */ - @as("type") - type_: string, -} - -/** -Provides information about files and allows JavaScript in a web page to access their content. -[See WebApiFile on MDN](https://developer.mozilla.org/docs/Web/API/WebApiFile) -*/ -@editor.completeFrom(WebApiFile.File) -type file = private { - ...blob, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WebApiFile/name) - */ - name: string, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WebApiFile/lastModified) - */ - lastModified: int, - /** - [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WebApiFile/webkitRelativePath) - */ - webkitRelativePath: string, -} - type shadowRootMode = | @as("closed") Closed | @as("open") Open @@ -339,7 +192,7 @@ type predefinedColorSpace = | @as("srgb") Srgb type shareData = { - mutable files?: array, + mutable files?: array, mutable title?: string, mutable text?: string, mutable url?: string, @@ -462,7 +315,7 @@ Can be set, to change the associated attribute. A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. [See NamedNodeMap on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap) */ -@editor.completeFrom(WebApiDOM.DOM.NamedNodeMap) +@editor.completeFrom(WebApiDOM.NamedNodeMap) type namedNodeMap = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) @@ -478,7 +331,7 @@ type fragmentDirective = {} /** [See CustomElementRegistry on MDN](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ -@editor.completeFrom(WebApiDOM.DOM.CustomElementRegistry) +@editor.completeFrom(WebApiDOM.CustomElementRegistry) type customElementRegistry = private {} /** @@ -494,9 +347,9 @@ type barProp = { /** [See ScreenOrientation on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */ -@editor.completeFrom(WebApiDOM.DOM.ScreenOrientation) +@editor.completeFrom(WebApiDOM.ScreenOrientation) type screenOrientation = private { - ...eventTarget, + ...Event.eventTarget, /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ @@ -555,7 +408,7 @@ type offscreenRenderingContext = unknown /** [See AnimationTimeline on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ -@editor.completeFrom(WebApiDOM.DOM.Animation) +@editor.completeFrom(WebApiDOM.Animation) type rec animationTimeline = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) @@ -566,7 +419,7 @@ type rec animationTimeline = private { /** [See DocumentTimeline on MDN](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ -@editor.completeFrom(WebApiDOM.DOM.DocumentTimeline) and documentTimeline = private { +@editor.completeFrom(WebApiDOM.DocumentTimeline) and documentTimeline = private { // Base properties from AnimationTimeline /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) @@ -579,7 +432,7 @@ type rec animationTimeline = private { [See MediaList on MDN](https://developer.mozilla.org/docs/Web/API/MediaList) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.MediaList) +@editor.completeFrom(WebApiDOM.MediaList) type mediaList = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) @@ -594,7 +447,7 @@ type mediaList = { /** [See StylePropertyMapReadOnly on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */ -@editor.completeFrom(WebApiDOM.DOM.StylePropertyMapReadOnly) +@editor.completeFrom(WebApiDOM.StylePropertyMapReadOnly) type stylePropertyMapReadOnly = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) @@ -605,7 +458,7 @@ type stylePropertyMapReadOnly = private { /** [See StylePropertyMap on MDN](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */ -@editor.completeFrom(WebApiDOM.DOM.StylePropertyMap) +@editor.completeFrom(WebApiDOM.StylePropertyMap) type stylePropertyMap = private { ...stylePropertyMapReadOnly, } @@ -620,7 +473,7 @@ type domStringMap = {} A list of StyleSheet. [See StyleSheetList on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList) */ -@editor.completeFrom(WebApiDOM.DOM.StyleSheetList) +@editor.completeFrom(WebApiDOM.StyleSheetList) type rec styleSheetList = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) @@ -669,7 +522,7 @@ A single CSS style sheet. It inherits properties and methods from its parent, St [See CSSStyleSheet on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.CSSStyleSheet) and cssStyleSheet = { +@editor.completeFrom(WebApiDOM.CSSStyleSheet) and cssStyleSheet = { // Base properties from StyleSheet /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) @@ -735,7 +588,7 @@ and cssRule = { A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. [See CSSRuleList on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ -@editor.completeFrom(WebApiDOM.DOM.CSSRuleList) and cssRuleList = private { +@editor.completeFrom(WebApiDOM.CSSRuleList) and cssRuleList = private { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ @@ -747,7 +600,7 @@ An object that is a CSS declaration block, and exposes style information and var [See CSSStyleDeclaration on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.CSSStyleDeclaration) and cssStyleDeclaration = { +@editor.completeFrom(WebApiDOM.CSSStyleDeclaration) and cssStyleDeclaration = { /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ @@ -2455,9 +2308,9 @@ Node is an interface from which a number of WebApiDOM API object types inherit. [See Node on MDN](https://developer.mozilla.org/docs/Web/API/Node) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.Node) +@editor.completeFrom(WebApiDOM.Node) type rec node = { - ...eventTarget, + ...Event.eventTarget, /** Returns the type of node. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Node/nodeType) @@ -2532,7 +2385,7 @@ type rec node = { NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). [See NodeList on MDN](https://developer.mozilla.org/docs/Web/API/NodeList) */ -@editor.completeFrom(WebApiDOM.DOM.NodeList) and nodeList<'tNode> = private { +@editor.completeFrom(WebApiDOM.NodeList) and nodeList<'tNode> = private { /** Returns the number of nodes in the collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/NodeList/length) @@ -2545,7 +2398,7 @@ Element is the most general base class from which all objects in a Document inhe [See Element on MDN](https://developer.mozilla.org/docs/Web/API/Element) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.Element) and element = { +@editor.completeFrom(WebApiDOM.Element) and element = { // Base properties from Node /** Returns the type of node. @@ -2917,7 +2770,7 @@ TODO: mark as private once mutating fields of private records is allowed [See ShadowRoot on MDN](https://developer.mozilla.org/docs/Web/API/ShadowRoot) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.ShadowRoot) and shadowRoot = { +@editor.completeFrom(WebApiDOM.ShadowRoot) and shadowRoot = { // Base properties from DocumentFragment // End base properties from DocumentFragment @@ -3057,7 +2910,7 @@ Similarly, when the focused element is in a different node tree than documentOrS A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. [See HTMLCollection on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection) */ -@editor.completeFrom(WebApiDOM.DOM.HTMLCollection) and htmlCollection<'t> = private { +@editor.completeFrom(WebApiDOM.HTMLCollection) and htmlCollection<'t> = private { /** Sets or retrieves the number of objects in a collection. [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length) @@ -3086,7 +2939,7 @@ Any HTML element. Some elements directly implement this interface, while others [See HTMLElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLElement) and htmlElement = { +@editor.completeFrom(WebApiDOM.HTMLElement) and htmlElement = { // Base properties from Element /** Returns the namespace. @@ -3381,7 +3234,7 @@ Contains the descriptive information, or metadata, for a document. This object i [See HTMLHeadElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLHeadElement) and htmlHeadElement = { +@editor.completeFrom(WebApiDOM.HTMLHeadElement) and htmlHeadElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -3638,7 +3491,7 @@ A
element in the WebApiDOM; it allows access to and in some cases modific [See HTMLFormElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLFormElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLFormElement) and htmlFormElement = { +@editor.completeFrom(WebApiDOM.HTMLFormElement) and htmlFormElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -3946,7 +3799,7 @@ Provides special properties and methods for manipulating elements. [See HTMLImageElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLImageElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLImageElement) and htmlImageElement = { +@editor.completeFrom(WebApiDOM.HTMLImageElement) and htmlImageElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -4290,7 +4143,7 @@ Provides special properties (beyond the regular HTMLElement interface it also ha [See HTMLEmbedElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLEmbedElement) and htmlEmbedElement = { +@editor.completeFrom(WebApiDOM.HTMLEmbedElement) and htmlEmbedElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -4563,7 +4416,7 @@ Hyperlink elements and provides special properties and methods (beyond those of [See HTMLAnchorElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLAnchorElement) and htmlAnchorElement = { +@editor.completeFrom(WebApiDOM.HTMLAnchorElement) and htmlAnchorElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -4937,7 +4790,7 @@ Provides special properties and methods (beyond those of the regular object HTML [See HTMLAreaElement on MDN](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) TODO: mark as private once mutating fields of private records is allowed */ -@editor.completeFrom(WebApiDOM.DOM.HTMLAreaElement) and htmlAreaElement = { +@editor.completeFrom(WebApiDOM.HTMLAreaElement) and htmlAreaElement = { // Base properties from HTMLElement /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) @@ -5291,7 +5144,7 @@ HTML