@lwrjs/client-modules 0.20.5 → 0.20.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.
- package/build/bundle/prod/lwr/lockerDefine/lockerDefine.js +1 -1
- package/build/es/modules/lwr/init/init.js +1 -6
- package/build/modules/lwr/init/init.js +1 -7
- package/build/modules/lwr/lockerDefine/lockerDefine.js +361 -427
- package/build/modules/lwr/lockerSandbox/lockerSandbox.js +361 -427
- package/package.json +6 -8
|
@@ -3,11 +3,7 @@ import { logOperationStart, logOperationEnd } from 'lwr/profiler';
|
|
|
3
3
|
import { yieldIfNecessary } from 'lwr/scheduler';
|
|
4
4
|
// TODO: This is a temporal workaround until https://github.com/salesforce/lwc/pull/2083 is sorted - tmp
|
|
5
5
|
// eslint-disable-next-line lwr/only-allowed-imports
|
|
6
|
-
import { createElement } from 'lwc';
|
|
7
|
-
// <hydrateComponentProxy> - This code is removed in core
|
|
8
|
-
// Note: a build step uses these comments to strip the code for core.
|
|
9
|
-
// eslint-disable-next-line lwr/only-allowed-imports
|
|
10
|
-
import { hydrateComponent } from 'lwc';
|
|
6
|
+
import { createElement, hydrateComponent } from 'lwc';
|
|
11
7
|
// hydration directive + value constants
|
|
12
8
|
// must align with the constants in @lwrjs/shared-utils/src/html-meta.ts
|
|
13
9
|
export const HYDRATE_DIRECTIVE = 'lwr:hydrate';
|
|
@@ -15,7 +11,6 @@ export const HYDRATE_VISIBLE_VALUE = 'visible';
|
|
|
15
11
|
function hydrateComponentProxy(customElement, Ctor, props) {
|
|
16
12
|
hydrateComponent(customElement, Ctor, props);
|
|
17
13
|
}
|
|
18
|
-
// </hydrateComponentProxy>
|
|
19
14
|
/**
|
|
20
15
|
* Hydrate the custom element only when it is visible.
|
|
21
16
|
* @param customElement - The custom element to hydrate
|
|
@@ -6,12 +6,7 @@ import { yieldIfNecessary } from 'lwr/scheduler';
|
|
|
6
6
|
|
|
7
7
|
// TODO: This is a temporal workaround until https://github.com/salesforce/lwc/pull/2083 is sorted - tmp
|
|
8
8
|
// eslint-disable-next-line lwr/only-allowed-imports
|
|
9
|
-
import { createElement } from 'lwc';
|
|
10
|
-
|
|
11
|
-
// <hydrateComponentProxy> - This code is removed in core
|
|
12
|
-
// Note: a build step uses these comments to strip the code for core.
|
|
13
|
-
// eslint-disable-next-line lwr/only-allowed-imports
|
|
14
|
-
import { hydrateComponent } from 'lwc';
|
|
9
|
+
import { createElement, hydrateComponent } from 'lwc';
|
|
15
10
|
|
|
16
11
|
// hydration directive + value constants
|
|
17
12
|
// must align with the constants in @lwrjs/shared-utils/src/html-meta.ts
|
|
@@ -20,7 +15,6 @@ export const HYDRATE_VISIBLE_VALUE = 'visible';
|
|
|
20
15
|
function hydrateComponentProxy(customElement, Ctor, props) {
|
|
21
16
|
hydrateComponent(customElement, Ctor, props);
|
|
22
17
|
}
|
|
23
|
-
// </hydrateComponentProxy>
|
|
24
18
|
|
|
25
19
|
/**
|
|
26
20
|
* Hydrate the custom element only when it is visible.
|