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

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",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
- "@embeddable.com/core": "2.13.5-next.0",
43
+ "@embeddable.com/core": "2.13.5",
44
44
  "@embeddable.com/sdk-utils": "0.9.0",
45
45
  "@inquirer/prompts": "^7.2.1",
46
46
  "@stencil/core": "^4.23.0",
@@ -30,7 +30,6 @@ export class EmbeddableComponent {
30
30
 
31
31
  @Watch('theme')
32
32
  watchTheme() {
33
- if (!this.rootElement) return;
34
33
  const eventClientContext = new CustomEvent('embeddable-event:update-theme', {
35
34
  bubbles: false,
36
35
  detail: this.theme,
@@ -40,6 +39,11 @@ export class EmbeddableComponent {
40
39
 
41
40
  componentDidLoad() {
42
41
  this.handlePops();
42
+ const props = JSON.parse(this.props);
43
+ this.componentDidLoadEvent.emit({
44
+ componentId: props.componentId,
45
+ componentName: this.componentName
46
+ })
43
47
  }
44
48
 
45
49
  disconnectedCallback() {
@@ -102,18 +106,12 @@ export class EmbeddableComponent {
102
106
  }
103
107
 
104
108
  private handlePops() {
105
- const props = JSON.parse(this.props);
106
109
  render(
107
110
  this.rootElement,
108
111
  this.componentName,
109
- props,
112
+ JSON.parse(this.props),
110
113
  JSON.parse(this.clientContext),
111
- this.theme,
112
- () =>
113
- this.componentDidLoadEvent.emit({
114
- componentId: props.componentId,
115
- componentName: this.componentName
116
- })
114
+ this.theme
117
115
  );
118
116
  }
119
117
  }