Skip to content

Commit c97d957

Browse files
1.0.6
1 parent 3680ad6 commit c97d957

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Live example here: https://danieldickison.github.io/embedodon/
1010

1111
```html
1212
<script type="module">
13-
import { EmbedodonElement } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.4/dist/index.js'
13+
import { EmbedodonElement } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.6/dist/index.js'
1414
customElements.define('embed-odon', EmbedodonElement)
1515
</script>
1616
<embed-odon username="@dand@mastodonmusic.social" class="standard"></embed-odon>
@@ -81,7 +81,7 @@ embed-odon::part(timestamp) {
8181
Because the [shadow root](http://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot) of `EmbedodonElement` is created with `mode: 'open'`, its [adoptedStyleSheets](http://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets) property can be overridden. You can choose to include or omit the base stylesheet, which is exposed as `Embedodon.baseStyleSheet`:
8282

8383
```js
84-
import { Embedodon, EmbedodonElement } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.4/dist/index.js'
84+
import { Embedodon, EmbedodonElement } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.6/dist/index.js'
8585
customElements.define('embed-odon', EmbedodonElement)
8686
const styleSheet = new CSSStyleSheet()
8787
styleSheet.replaceSync(`
@@ -99,7 +99,7 @@ for (const el of document.querySelectorAll('embed-odon')) {
9999
If you would like full control of styling the DOM elements rendered by `Embedodon`, you can forego `EmbedodonElement` and inject the results of calling the `render` method directly into your DOM:
100100

101101
```js
102-
import { Embedodon } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.4/dist/index.js'
102+
import { Embedodon } from 'https://cdn.jsdelivr.net/npm/embedodon@^1.0.6/dist/index.js'
103103
const container = document.getElementById('embedodon-container')
104104
const embedodon = new Embedodon(username)
105105
await embedodon.refresh()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "embedodon",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "A simple client-side script to render an Activity Stream (like from Mastodon)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)