@salesforce/internal-lightning-out-containers 2.2.1-rc.2 → 2.2.1-rc.7
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.
|
@@ -9,10 +9,8 @@ import { pdpEventSchema } from "o11y_schema/sf_pdp";
|
|
|
9
9
|
|
|
10
10
|
import { MSG } from "./utils/constants";
|
|
11
11
|
import { EmbeddingResizer } from "./utils/EmbeddingResizer";
|
|
12
|
-
|
|
13
12
|
import { createEnvContext } from "./utils/env";
|
|
14
13
|
import { createGlobalError } from "./utils/errorHandling";
|
|
15
|
-
|
|
16
14
|
import { createInstrumentation } from "./utils/instrumentation";
|
|
17
15
|
import { applyCustomStyleProperties } from "./utils/style";
|
|
18
16
|
|
|
@@ -167,7 +165,6 @@ export default class LightningOutBaseContainer extends LightningElement {
|
|
|
167
165
|
});
|
|
168
166
|
|
|
169
167
|
try {
|
|
170
|
-
// eslint-disable-next-line @lwc/lwc-platform/no-dynamic-import-identifier
|
|
171
168
|
const { default: ctor } = await import(specifier);
|
|
172
169
|
this.embeddedCmpCtor = ctor;
|
|
173
170
|
} catch (err) {
|
|
@@ -248,13 +245,6 @@ export default class LightningOutBaseContainer extends LightningElement {
|
|
|
248
245
|
renderedCallback() {
|
|
249
246
|
if (!this.#embeddedCmp && this.refs?.embeddedCmp) {
|
|
250
247
|
this.#embeddedCmp = this.refs.embeddedCmp;
|
|
251
|
-
this.#embeddedCmp.addEventListener("message", (evt) => {
|
|
252
|
-
this.#env.parentPostMessage({
|
|
253
|
-
name: evt.type,
|
|
254
|
-
detail: structuredClone(evt.detail),
|
|
255
|
-
type: MSG.DISPATCH_EVENT,
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
248
|
this.#env.parentPostMessage({ type: MSG.READY });
|
|
259
249
|
if (ENABLE_RESIZING) {
|
|
260
250
|
this.#setupResizeObserver();
|
|
@@ -81,7 +81,7 @@ class EmbeddingResizer {
|
|
|
81
81
|
this.#lastHeight = heightPx;
|
|
82
82
|
if (!this.#scheduled) {
|
|
83
83
|
this.#scheduled = true;
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
requestAnimationFrame(() => {
|
|
86
86
|
this.#scheduled = false;
|
|
87
87
|
if (!this.#isObserving) return;
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/internal-lightning-out-containers",
|
|
3
|
-
"version": "2.2.1-rc.
|
|
3
|
+
"version": "2.2.1-rc.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Lightning Out 2.0 Container Components",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist/",
|
|
9
|
+
"!dist/__tests__/",
|
|
10
|
+
"!dist/__mocks__/",
|
|
11
|
+
"!dist/*.test.js",
|
|
12
|
+
"!dist/*.map"
|
|
9
13
|
],
|
|
10
14
|
"scripts": {
|
|
11
15
|
"build": "node scripts/build.mjs",
|