@apollosproject/canvas-embeds - npm explorer
`

To test changes, open http://localhost:5174 in your browser.

---

$3

This package is automatically deployed on merge to master. If you wish to manually deploy:

1. cd apps/web-embeds
2. Bump the version (patch by default):
yarn bump (or yarn bump:minor / yarn bump:major). You may want to consult NPM to check on the last deployed version (it will be different than the version in package.json).
3. Publish the package:
npm publish --access public (automatically runs prepublishOnly/build)
4. After npm shows the new version, purge jsDelivr so
@latest updates immediately: yarn flush
5. (Optional) Hit
https://cdn.jsdelivr.net/npm/@apollosproject/canvas-embeds@latest/widget/index.js to verify the new bundle is served

Skipping the publish step means users will still download the previous version even if the repo contains newer code, and skipping the flush step delays propagation until jsDelivr expires its cache.

---

$3

To test caching in local development, modify the Apollo client configuration by commenting out the x-cache-me-not header in:

src/client/apollosApiLink.js

`javascript
'x-cache-me-not': 1,
`

$3

If you need to force jsDelivr to fetch the latest version of a file, you can manually purge the cache by accessing the purge subdomain of the file's URL. This command clears the cached version of the file from jsDelivr's CDN.

`bash
yarn flush
`

---

$3

#### Supported Embeds and Attributes

| Embed Type | Key Attributes |
| -------------- | -------------------------------------------------------- |
|
Auth | data-church |
|
FeatureFeed | data-church, data-feature-feed |
|
Search | data-church, data-search-profile-size |
| |
data-hide-apollos-auth |
|
Ask | data-church |
|
Donation | data-church, data-amount, data-frequency |
| |
data-campus, data-fund, data-message |
| |
data-width, data-height |
| |
data-display-logo, data-title, data-display-header |

#### Path Routing

For advanced routing options, use:

- data-use-path-router="true" for enabling path-based routing.
-
data-apollos-id-param="true" for custom ID handling.

#### Ask Embed

The Ask experience now lives in its own embed. Use data-type="Ask" to render the AI assistant separate from Search:

`html


`

Notes:

- Ask posts to your Admin app’s /api/:church/ask` endpoint using a simple POST (no custom headers), so CORS preflights are avoided.
- In Modal or Container mode, Ask renders within the same shell as other embeds.