@lwrjs/client-modules 0.6.0-alpha.2 → 0.6.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.
@@ -15,16 +15,15 @@ export function getPropFromAttrName(propName) {
15
15
  return propName.replace(CAMEL_REGEX, g => g[1].toUpperCase());
16
16
  }
17
17
  /**
18
- * Import any requested static application dependencies, define the root
19
- * application component(s) into the CustomElement registry, and inject them.
20
- * @param rootModules - An array of arrays, each one holding a pair of
18
+ * Hydrate the given components component(s).
19
+ * @param components - An array of arrays, each one holding a pair of
21
20
  * bare specifier and corresponding LightningElement constructor
22
21
  * @example - [['x/appRoot', appCtor], ['x/nav', navCtor]]
23
22
  */
24
23
 
25
- export function init(rootModules) {
24
+ export function init(components) {
26
25
  if (typeof document !== 'undefined') {
27
- rootModules.forEach(([moduleSpecifier, ctor]) => {
26
+ components.forEach(([moduleSpecifier, ctor]) => {
28
27
  // Kebab-case the specifier
29
28
  const elementName = toKebabCase(moduleSpecifier);
30
29
  const customElements = document.querySelectorAll(elementName);
@@ -440,7 +440,7 @@ function WeakMapGet(weakMap, key) {
440
440
  function WeakMapSet(weakMap, key, value) {
441
441
  return ReflectApply$3(WeakMapProtoSet$1, weakMap, [key, value]);
442
442
  }
443
- /*! version: 0.14.17 */
443
+ /*! version: 0.14.19 */
444
444
 
445
445
  /*!
446
446
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1177,7 +1177,7 @@ function XhrStatusGetter(xhr) {
1177
1177
  function XhrWithCredentialsSetter(xhr, bool) {
1178
1178
  ReflectApply$3(XhrProtoWithCredentialsSetter, xhr, [bool]);
1179
1179
  }
1180
- /*! version: 0.14.17 */
1180
+ /*! version: 0.14.19 */
1181
1181
 
1182
1182
  /*!
1183
1183
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1215,7 +1215,7 @@ function sanitizeURLForElement(url) {
1215
1215
  function sanitizeURLString(urlString) {
1216
1216
  return urlString === '' ? urlString : StringReplace(urlString, REMOVE_URL_CHARS_REGEXP, '');
1217
1217
  }
1218
- /*! version: 0.14.17 */
1218
+ /*! version: 0.14.19 */
1219
1219
 
1220
1220
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
1221
1221
 
@@ -2783,7 +2783,7 @@ function sanitizeSvgTextReturnDOM(dirty) {
2783
2783
  const sanitizer = svgSanitizer();
2784
2784
  return sanitizer.sanitize(dirty);
2785
2785
  }
2786
- /*! version: 0.14.17 */
2786
+ /*! version: 0.14.19 */
2787
2787
 
2788
2788
  /*!
2789
2789
  * Copyright (C) 2019 salesforce.com, inc.
@@ -5456,7 +5456,7 @@ function createExternalDistortionEntries(globalObject, key, evaluator, config) {
5456
5456
  ReflectApply$3(ArrayProtoPush, entries, makeElementDistortionsForSandboxKey(key));
5457
5457
  return entries;
5458
5458
  } // @TODO: [Issue #373] Abstract common code in sandbox and distortion packages
5459
- /*! version: 0.14.17 */
5459
+ /*! version: 0.14.19 */
5460
5460
 
5461
5461
  /*!
5462
5462
  * Copyright (C) 2021 salesforce.com, inc.
@@ -5617,7 +5617,7 @@ class DefaultInstrumentation {
5617
5617
 
5618
5618
 
5619
5619
  const defaultInstrumentation = new DefaultInstrumentation();
5620
- /*! version: 0.14.17 */
5620
+ /*! version: 0.14.19 */
5621
5621
 
5622
5622
  /*!
5623
5623
  * Copyright (C) 2019 salesforce.com, inc.
@@ -8181,7 +8181,7 @@ function evaluateInSandbox(key, sourceText, context, endowments, instrumentation
8181
8181
  activityEvaluateInSandbox.stop();
8182
8182
  return result;
8183
8183
  }
8184
- /*! version: 0.14.17 */
8184
+ /*! version: 0.14.19 */
8185
8185
 
8186
8186
  const loaderDefine = globalThis.LWR.define;
8187
8187
  /**
@@ -440,7 +440,7 @@ function WeakMapGet(weakMap, key) {
440
440
  function WeakMapSet(weakMap, key, value) {
441
441
  return ReflectApply$3(WeakMapProtoSet$1, weakMap, [key, value]);
442
442
  }
443
- /*! version: 0.14.17 */
443
+ /*! version: 0.14.19 */
444
444
 
445
445
  /*!
446
446
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1177,7 +1177,7 @@ function XhrStatusGetter(xhr) {
1177
1177
  function XhrWithCredentialsSetter(xhr, bool) {
1178
1178
  ReflectApply$3(XhrProtoWithCredentialsSetter, xhr, [bool]);
1179
1179
  }
1180
- /*! version: 0.14.17 */
1180
+ /*! version: 0.14.19 */
1181
1181
 
1182
1182
  /*!
1183
1183
  * Copyright (C) 2019 salesforce.com, inc.
@@ -1215,7 +1215,7 @@ function sanitizeURLForElement(url) {
1215
1215
  function sanitizeURLString(urlString) {
1216
1216
  return urlString === '' ? urlString : StringReplace(urlString, REMOVE_URL_CHARS_REGEXP, '');
1217
1217
  }
1218
- /*! version: 0.14.17 */
1218
+ /*! version: 0.14.19 */
1219
1219
 
1220
1220
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
1221
1221
 
@@ -2783,7 +2783,7 @@ function sanitizeSvgTextReturnDOM(dirty) {
2783
2783
  const sanitizer = svgSanitizer();
2784
2784
  return sanitizer.sanitize(dirty);
2785
2785
  }
2786
- /*! version: 0.14.17 */
2786
+ /*! version: 0.14.19 */
2787
2787
 
2788
2788
  /*!
2789
2789
  * Copyright (C) 2019 salesforce.com, inc.
@@ -5519,7 +5519,7 @@ function createInternalDistortionEntries(globalObject, key, evaluator, config) {
5519
5519
  ReflectApply$3(ArrayProtoPush, entries, makeElementDistortionsForSandboxKey(key));
5520
5520
  return entries;
5521
5521
  }
5522
- /*! version: 0.14.17 */
5522
+ /*! version: 0.14.19 */
5523
5523
 
5524
5524
  /*!
5525
5525
  * Copyright (C) 2021 salesforce.com, inc.
@@ -5680,7 +5680,7 @@ class DefaultInstrumentation {
5680
5680
 
5681
5681
 
5682
5682
  const defaultInstrumentation = new DefaultInstrumentation();
5683
- /*! version: 0.14.17 */
5683
+ /*! version: 0.14.19 */
5684
5684
 
5685
5685
  /*!
5686
5686
  * Copyright (C) 2019 salesforce.com, inc.
@@ -8316,6 +8316,6 @@ function evaluateInCoreSandbox(_key, sourceText, context, endowments, instrument
8316
8316
  activityEvaluateInCoreSandbox.stop();
8317
8317
  return result;
8318
8318
  }
8319
- /*! version: 0.14.17 */
8319
+ /*! version: 0.14.19 */
8320
8320
 
8321
8321
  export { CORE_SANDBOX_KEY, evaluateInCoreSandbox, evaluateInSandbox };
package/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.6.0-alpha.2",
8
- "homepage": "https://lwr.dev/",
7
+ "version": "0.6.0-alpha.6",
8
+ "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/salesforce/lwr.git",
@@ -31,8 +31,8 @@
31
31
  "build:bundle": "rollup --config scripts/rollup.moduleBundle.config.cjs"
32
32
  },
33
33
  "dependencies": {
34
- "@locker/sandbox": "0.14.17",
35
- "@lwrjs/shared-utils": "0.6.0-alpha.2"
34
+ "@locker/sandbox": "0.14.19",
35
+ "@lwrjs/shared-utils": "0.6.0-alpha.6"
36
36
  },
37
37
  "devDependencies": {
38
38
  "rollup-plugin-terser": "^7.0.2"
@@ -55,5 +55,5 @@
55
55
  "engines": {
56
56
  "node": ">=14.15.4 <17"
57
57
  },
58
- "gitHead": "5b0f761312e566fdaeec26ac3dbb704f8421b1a9"
58
+ "gitHead": "5d624e196dd46787399e6a269479508abe236081"
59
59
  }