@embeddable.com/sdk-core 4.1.9-next.1 → 4.1.9-next.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "4.1.9-next.1",
3
+ "version": "4.1.9-next.2",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -40,6 +40,11 @@ export class EmbeddableComponent {
40
40
 
41
41
  componentDidLoad() {
42
42
  this.handlePops();
43
+ const props = JSON.parse(this.props);
44
+ this.componentDidLoadEvent.emit({
45
+ componentId: props.componentId,
46
+ componentName: this.componentName
47
+ })
43
48
  }
44
49
 
45
50
  disconnectedCallback() {
@@ -108,12 +113,7 @@ export class EmbeddableComponent {
108
113
  this.componentName,
109
114
  props,
110
115
  JSON.parse(this.clientContext),
111
- this.theme,
112
- () =>
113
- this.componentDidLoadEvent.emit({
114
- componentId: props.componentId,
115
- componentName: this.componentName
116
- })
116
+ this.theme
117
117
  );
118
118
  }
119
119
  }