Skip to content

Commit

Permalink
Add @discoveryjs/discovery/embed export
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Nov 15, 2024
1 parent a7d17e1 commit 61f37ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## next

- Added `@discoveryjs/discovery/embed` export
- Changed `applyContainerStyles()` to take a single `darkmode` value instead of "options", with supported values: `true`, `false`, `'true'`, `'false'`, `'dark'`, `'light'` and `'auto'`
- Changed `applyContainerStyles()` to avoid applying transition styles to the container, preventing unwanted flashes of opposite colors
- Changed `source` view to take `source`, `syntax`, `lineNum`, `refs` and `maxSourceSizeToHighlight` options. It attempts to derive these values from `data` when options are not explicitly provided for backward compatibility. The `source` can be derived from `data` as `content` (for backward compatibility) or `source` property
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
"discovery-dev": "./src/core/utils/index.js",
"default": "./lib/core/utils/index.js"
},
"./embed": {
"discovery-dev": "./src/extensions/embed-host.js",
"default": "./lib/extensions/embed-host.js"
},
"./dist/*": "./dist/*",
"./lib/*": "./lib/*",
"./src/*": {
Expand Down

0 comments on commit 61f37ba

Please sign in to comment.