Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit documentation to cite Observable Cloud support for embedding #1831

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
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
6 changes: 4 additions & 2 deletions docs/embeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ In addition to standalone apps, you can use Framework to embed interactive views
- [exported files](#exported-files) for hotlinking images, data, and other assets, or
- [iframe embeds](#iframe-embeds) for compatibility.

You can deploy to Observable Cloud for [additional features](https://observablehq.com/documentation/data-apps/embeds)<a href="https://github.com/observablehq/framework/releases/tag/v1.13.0" class="observablehq-version-badge" data-version="^1.13.0" title="Added in v1.13.0"></a> like secure private embedding on approved domains and analytics to see which exports are used.
tophtucker marked this conversation as resolved.
Show resolved Hide resolved

## Exported modules

Framework allows [JavaScript modules](./imports#local-imports) to be exported for use in another application. Exported modules are vanilla JavaScript and behave identically in an external web application as on a Framework page. As with local modules, exported modules can load data from a [static file](./files) or a [data loader](./data-loaders), [import](./imports) other local modules, and import libraries from [npm](./imports#npm-imports) or [JSR](./imports#jsr-imports).
Expand Down Expand Up @@ -75,9 +77,9 @@ document.body.append(await Chart());
</script>
```

<div class="warning" label="Coming soon">
<div class="tip">

Observable Cloud support for cross-origin resource sharing (CORS) is not yet generally available and is needed for exported modules. If you are interested in beta-testing this feature, please [email us](mailto:support@observablehq.com). For public apps, you can use a third-party host supporting CORS such as GitHub Pages.
Observable Cloud supports cross-origin resource sharing (CORS), which is needed for exported modules. [Learn more…](https://observablehq.com/documentation/data-apps/embeds#cors)
tophtucker marked this conversation as resolved.
Show resolved Hide resolved

</div>

Expand Down