@lwrjs/client-modules 0.11.0-alpha.3 → 0.11.0-alpha.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.
|
@@ -51,7 +51,7 @@ export function getPropFromAttrName(propName) {
|
|
|
51
51
|
* bare specifier and corresponding LightningElement constructor
|
|
52
52
|
* @example - [['x/appRoot', appCtor], ['x/nav', navCtor]]
|
|
53
53
|
*/
|
|
54
|
-
export function init(rootModules,
|
|
54
|
+
export function init(rootModules, serverData = {}) {
|
|
55
55
|
if (typeof customElements === 'undefined' || typeof document === 'undefined') {
|
|
56
56
|
logOperationStart({
|
|
57
57
|
id: BOOTSTRAP_END
|
|
@@ -102,7 +102,7 @@ export function init(rootModules, ssrProps = {}) {
|
|
|
102
102
|
if (propsId) {
|
|
103
103
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
104
104
|
// @ts-ignore
|
|
105
|
-
hydrateComponentProxy(element, ctor,
|
|
105
|
+
hydrateComponentProxy(element, ctor, serverData[propsId] || {});
|
|
106
106
|
logOperationEnd({
|
|
107
107
|
id: INIT_MODULE,
|
|
108
108
|
specifier,
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.11.0-alpha.
|
|
7
|
+
"version": "0.11.0-alpha.6",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@locker/sandbox": "0.20.0",
|
|
37
|
-
"@lwrjs/shared-utils": "0.11.0-alpha.
|
|
37
|
+
"@lwrjs/shared-utils": "0.11.0-alpha.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.11.0-alpha.
|
|
40
|
+
"@lwrjs/types": "0.11.0-alpha.6",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
42
42
|
"@rollup/plugin-sucrase": "^5.0.1",
|
|
43
43
|
"@rollup/plugin-terser": "^0.4.3",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"volta": {
|
|
70
70
|
"extends": "../../../package.json"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "571d4bac5650765aa818bcb9d5ed752a8cf041af"
|
|
73
73
|
}
|