@embeddable.com/sdk-core 4.1.8 → 4.1.9-next.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9-next.1",
|
|
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.
|
|
43
|
+
"@embeddable.com/core": "2.13.5-next.0",
|
|
44
44
|
"@embeddable.com/sdk-utils": "0.9.0",
|
|
45
45
|
"@inquirer/prompts": "^7.2.1",
|
|
46
46
|
"@stencil/core": "^4.23.0",
|
|
@@ -30,6 +30,7 @@ export class EmbeddableComponent {
|
|
|
30
30
|
|
|
31
31
|
@Watch('theme')
|
|
32
32
|
watchTheme() {
|
|
33
|
+
if (!this.rootElement) return;
|
|
33
34
|
const eventClientContext = new CustomEvent('embeddable-event:update-theme', {
|
|
34
35
|
bubbles: false,
|
|
35
36
|
detail: this.theme,
|
|
@@ -39,11 +40,6 @@ export class EmbeddableComponent {
|
|
|
39
40
|
|
|
40
41
|
componentDidLoad() {
|
|
41
42
|
this.handlePops();
|
|
42
|
-
const props = JSON.parse(this.props);
|
|
43
|
-
this.componentDidLoadEvent.emit({
|
|
44
|
-
componentId: props.componentId,
|
|
45
|
-
componentName: this.componentName
|
|
46
|
-
})
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
disconnectedCallback() {
|
|
@@ -106,12 +102,18 @@ export class EmbeddableComponent {
|
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
private handlePops() {
|
|
105
|
+
const props = JSON.parse(this.props);
|
|
109
106
|
render(
|
|
110
107
|
this.rootElement,
|
|
111
108
|
this.componentName,
|
|
112
|
-
|
|
109
|
+
props,
|
|
113
110
|
JSON.parse(this.clientContext),
|
|
114
|
-
this.theme
|
|
111
|
+
this.theme,
|
|
112
|
+
() =>
|
|
113
|
+
this.componentDidLoadEvent.emit({
|
|
114
|
+
componentId: props.componentId,
|
|
115
|
+
componentName: this.componentName
|
|
116
|
+
})
|
|
115
117
|
);
|
|
116
118
|
}
|
|
117
119
|
}
|