@next-core/brick-kit 2.208.3 → 2.208.4
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/dist/index.esm.js
CHANGED
|
@@ -13512,9 +13512,12 @@ function SingleBrickAsComponentFactory(React) {
|
|
|
13512
13512
|
updateBrick(brick, element);
|
|
13513
13513
|
var onMount = (_useBrick$lifeCycle = useBrick.lifeCycle) === null || _useBrick$lifeCycle === void 0 ? void 0 : _useBrick$lifeCycle.onMount;
|
|
13514
13514
|
if (onMount) {
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13515
|
+
// wait for element of template brick to be assigned
|
|
13516
|
+
queueMicrotask(() => {
|
|
13517
|
+
dispatchLifeCycleEvent(new CustomEvent("mount"), transformEvents(data, {
|
|
13518
|
+
onMount
|
|
13519
|
+
}).onMount, brick);
|
|
13520
|
+
});
|
|
13518
13521
|
}
|
|
13519
13522
|
var onScrollIntoView = (_useBrick$lifeCycle2 = useBrick.lifeCycle) === null || _useBrick$lifeCycle2 === void 0 ? void 0 : _useBrick$lifeCycle2.onScrollIntoView;
|
|
13520
13523
|
if (onScrollIntoView) {
|