@glomex/integration-web-component 1.1544.1 → 1.1545.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/index.d.ts +52 -2805
- package/dist/index.js +73 -1
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -43,7 +43,8 @@ loadIntegrationStyles(integrationId);
|
|
|
43
43
|
// load the integration web component
|
|
44
44
|
loadIntegrationComponent();
|
|
45
45
|
// create the fully typed integration element
|
|
46
|
-
const
|
|
46
|
+
const tagName = 'glomex-integration';
|
|
47
|
+
const integration = document.createElement(tagName);
|
|
47
48
|
integration.setAttribute('integration-id', integrationId);
|
|
48
49
|
integration.setAttribute('playlist-id', playlistId);
|
|
49
50
|
integration.addEventListener(IntegrationEvent.CONTENT_START, () => {
|
|
@@ -52,7 +53,7 @@ integration.addEventListener(IntegrationEvent.CONTENT_START, () => {
|
|
|
52
53
|
// attach the integration element
|
|
53
54
|
container.appendChild(integration);
|
|
54
55
|
// wait until the integration was upgraded to access web component methods
|
|
55
|
-
await window.customElements.whenDefined(
|
|
56
|
+
await window.customElements.whenDefined(tagName);
|
|
56
57
|
integration.play();
|
|
57
58
|
```
|
|
58
59
|
|