@embeddable.com/sdk-core 3.5.3 → 3.5.5
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/lib/defineConfig.d.ts +5 -5
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/defineConfig.ts +1 -1
- package/templates/component.tsx.template +4 -1
package/package.json
CHANGED
package/src/defineConfig.ts
CHANGED
|
@@ -84,6 +84,7 @@ export default ({
|
|
|
84
84
|
? path.resolve(clientRoot, errorFallbackComponent)
|
|
85
85
|
: undefined,
|
|
86
86
|
bundleHash: undefined, // This will be set by the build process
|
|
87
|
+
viteConfig,
|
|
87
88
|
},
|
|
88
89
|
outputOptions: {
|
|
89
90
|
typesEntryPointFilename: "embeddable-types-entry-point.js",
|
|
@@ -97,6 +98,5 @@ export default ({
|
|
|
97
98
|
rollbarAccessToken:
|
|
98
99
|
rollbarAccessToken ?? "5c6028038d844bf1835a0f4db5f55d9e",
|
|
99
100
|
plugins,
|
|
100
|
-
viteConfig,
|
|
101
101
|
};
|
|
102
102
|
};
|
|
@@ -36,7 +36,10 @@ export class EmbeddableComponent {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
disconnectedCallback() {
|
|
39
|
-
|
|
39
|
+
// Component is no longer connected to the document > Must be unmounted
|
|
40
|
+
if(!this.rootElement.isConnected) {
|
|
41
|
+
this.rootElement.dispatchEvent(new CustomEvent('EMBEDDABLE_COMPONENT:UNMOUNT'));
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
componentWillUpdate() {
|