@embeddable.com/sdk-core 3.14.0-next.4 → 3.14.0-next.6

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.
@@ -5,10 +5,10 @@ export type Region = "EU" | "US" | "legacy-US";
5
5
  export type EmbeddableConfig = {
6
6
  plugins: (() => {
7
7
  pluginName: string;
8
- build: (config: EmbeddableConfig) => Promise<unknown>;
9
- cleanup: (config: EmbeddableConfig) => Promise<unknown>;
10
- validate: (config: EmbeddableConfig) => Promise<unknown>;
11
- buildPackage: (config: EmbeddableConfig) => Promise<unknown>;
8
+ build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
9
+ cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
10
+ validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
11
+ buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
12
12
  })[];
13
13
  pushModels?: boolean;
14
14
  pushComponents?: boolean;
@@ -255,10 +255,10 @@ declare const _default: (config: EmbeddableConfig) => {
255
255
  rollbarAccessToken: string;
256
256
  plugins: (() => {
257
257
  pluginName: string;
258
- build: (config: EmbeddableConfig) => Promise<unknown>;
259
- cleanup: (config: EmbeddableConfig) => Promise<unknown>;
260
- validate: (config: EmbeddableConfig) => Promise<unknown>;
261
- buildPackage: (config: EmbeddableConfig) => Promise<unknown>;
258
+ build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
259
+ cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
260
+ validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
261
+ buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
262
262
  })[];
263
263
  };
264
264
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.14.0-next.4",
3
+ "version": "3.14.0-next.6",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -12,10 +12,10 @@ export type Region = "EU" | "US" | "legacy-US";
12
12
  export type EmbeddableConfig = {
13
13
  plugins: (() => {
14
14
  pluginName: string;
15
- build: (config: EmbeddableConfig) => Promise<unknown>;
16
- cleanup: (config: EmbeddableConfig) => Promise<unknown>;
17
- validate: (config: EmbeddableConfig) => Promise<unknown>;
18
- buildPackage: (config: EmbeddableConfig) => Promise<unknown>;
15
+ build: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
16
+ cleanup: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
17
+ validate: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
18
+ buildPackage: (config: ResolvedEmbeddableConfig) => Promise<unknown>;
19
19
  })[];
20
20
  pushModels?: boolean;
21
21
  pushComponents?: boolean;
@@ -28,6 +28,15 @@ export class EmbeddableComponent {
28
28
  this.handlePops();
29
29
  }
30
30
 
31
+ @Watch('theme')
32
+ watchTheme() {
33
+ const eventClientContext = new CustomEvent('embeddable-event:update-theme', {
34
+ bubbles: false,
35
+ detail: this.theme,
36
+ });
37
+ this.rootElement.dispatchEvent(eventClientContext);
38
+ }
39
+
31
40
  componentDidLoad() {
32
41
  this.handlePops();
33
42
  const props = JSON.parse(this.props);