Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 26 additions & 72 deletions rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"DOMNodes"
],
"WebAPI.HTML": ["WebAPI.DOMNodes", "WebAPI.File", "HTML"],
"WebAPI.Media": ["WebAPI.HTML", "Media"],
"WebAPI.File": ["WebAPI.Event", "File"],
"WebAPI.URL": ["WebAPI.DOM", "URL"],
"WebAPI.Fetch": ["WebAPI.Event", "WebAPI.File", "WebAPI.URL", "Fetch"],
Expand Down Expand Up @@ -254,10 +255,6 @@
"public": [
"CustomElementRegistry",
"Document",
"DomHTMLMediaElement",
"HTMLAudioElement",
"HTMLTrackElement",
"HTMLVideoElement",
"IdleDeadline",
"ImageData",
"Location",
Expand All @@ -266,26 +263,12 @@
"SVGGraphicsElement",
"SVGLength",
"ScreenOrientation",
"TextTrackList",
"TimeRanges",
"VideoColorSpace",
"Window",
"XPathExpression",
"XPathResult"
]
},
{
"dir": "src/EncryptedMediaExtensions",
"subdirs": true,
"feature": "WebAPI.EncryptedMediaExtensions",
"public": [
"EncryptedMediaExtensionsHTMLMediaElement",
"MediaKeySession",
"MediaKeyStatusMap",
"MediaKeySystemAccess",
"MediaKeys"
]
},
{
"dir": "src/event",
"subdirs": true,
Expand Down Expand Up @@ -378,31 +361,36 @@
]
},
{
"dir": "src/MediaCapabilities",
"dir": "src/media",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Register the media source with documentation generators

When documentation generation processes a public file under the new src/media directory, docs/llm.js cannot find its directory in featureSpecs and throws Unsupported source directory for documentation; similarly, docs/utils.js only creates API routes for a recognized feature directory containing its expected *Types.res, so the APIs moved here disappear from the generated site. Update the documentation feature mapping/generation logic as part of this consolidation so it understands the new Media grouping.

Useful? React with 👍 / 👎.

"subdirs": true,
"feature": "WebAPI.MediaCapabilities",
"public": [
"MediaCapabilities"
]
},
{
"dir": "src/MediaCaptureAndStreams",
"subdirs": true,
"feature": "WebAPI.MediaCaptureAndStreams",
"feature": "Media",
"public": [
"DomHTMLMediaElement",
"EncryptedMediaExtensionsHTMLMediaElement",
"HTMLAudioElement",
"HTMLTrackElement",
"HTMLVideoElement",
"MediaCapabilities",
"MediaDeviceInfo",
"MediaDevices",
"MediaStream",
"MediaStreamTrack"
]
},
{
"dir": "src/MediaSession",
"subdirs": true,
"feature": "WebAPI.MediaSession",
"public": [
"MediaError",
"MediaKeySession",
"MediaKeyStatusMap",
"MediaKeySystemAccess",
"MediaKeys",
"MediaMetadata",
"MediaSession"
"MediaSession",
"MediaStream",
"MediaStreamTrack",
"PictureInPicture",
"RemotePlayback",
"SpeechSynthesis",
"SpeechSynthesisUtterance",
"TextTrack",
"TextTrackCueList",
"TextTrackList",
"TimeRanges",
"VideoPlaybackQuality"
]
},
{
Expand Down Expand Up @@ -431,22 +419,6 @@
"Permissions"
]
},
{
"dir": "src/PictureInPicture",
"subdirs": true,
"feature": "WebAPI.PictureInPicture",
"public": [
"PictureInPicture"
]
},
{
"dir": "src/RemotePlayback",
"subdirs": true,
"feature": "WebAPI.RemotePlayback",
"public": [
"RemotePlayback"
]
},
{
"dir": "src/ResizeObserver",
"subdirs": true,
Expand Down Expand Up @@ -570,15 +542,6 @@
"SubtleCrypto"
]
},
{
"dir": "src/WebSpeech",
"subdirs": true,
"feature": "WebAPI.WebSpeech",
"public": [
"SpeechSynthesis",
"SpeechSynthesisUtterance"
]
},
{
"dir": "src/WebStorage",
"subdirs": true,
Expand All @@ -588,15 +551,6 @@
"StorageEvent"
]
},
{
"dir": "src/WebVTT",
"subdirs": true,
"feature": "WebAPI.WebVTT",
"public": [
"TextTrack",
"TextTrackCueList"
]
},
{
"dir": "src/WebWorkers",
"subdirs": true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.