@lwrjs/client-modules 0.11.0-alpha.4 → 0.11.0-alpha.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.
@@ -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, ssrProps = {}) {
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, ssrProps[propsId] || {});
105
+ hydrateComponentProxy(element, ctor, serverData[propsId] || {});
106
106
  logOperationEnd({
107
107
  id: INIT_MODULE,
108
108
  specifier,
@@ -16,6 +16,8 @@ export const INIT_MODULE_COUNT = `${INIT_MODULE}.count`;
16
16
  export const LOADER_PREFIX = 'lwr.loader.';
17
17
  export const MODULE_DEFINE = `${LOADER_PREFIX}module.define`;
18
18
  export const MODULE_DEFINE_COUNT = `${MODULE_DEFINE}.count`;
19
+ export const MODULE_DYNAMIC_LOAD = `${LOADER_PREFIX}moduleRegistry.dynamicLoad`;
20
+ export const MODULE_DYNAMIC_LOAD_COUNT = `${MODULE_DYNAMIC_LOAD}.count`;
19
21
  export const MODULE_FETCH = `${LOADER_PREFIX}module.fetch`;
20
22
  export const MODULE_FETCH_COUNT = `${MODULE_FETCH}.count`;
21
23
  export const MODULE_FETCH_DURATION = `${MODULE_FETCH}.duration`;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.0-alpha.4",
7
+ "version": "0.11.0-alpha.7",
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.4"
37
+ "@lwrjs/shared-utils": "0.11.0-alpha.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@lwrjs/types": "0.11.0-alpha.4",
40
+ "@lwrjs/types": "0.11.0-alpha.7",
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": "89a7e9815e0e381d9fd67212f0471d9a11f73985"
72
+ "gitHead": "872180fbd00df214ab91971d7ec80ba138a73756"
73
73
  }