@lwc/engine-core 2.11.0 → 2.11.1
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/engine-core.cjs.js
CHANGED
|
@@ -4705,11 +4705,15 @@ const signedTemplateMap = new Map();
|
|
|
4705
4705
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
4706
4706
|
* will prevent this function from being imported by userland code.
|
|
4707
4707
|
*/
|
|
4708
|
-
function registerComponent(
|
|
4709
|
-
|
|
4710
|
-
|
|
4708
|
+
function registerComponent(
|
|
4709
|
+
// We typically expect a LightningElementConstructor, but technically you can call this with anything
|
|
4710
|
+
Ctor, { tmpl }) {
|
|
4711
|
+
if (shared.isFunction(Ctor)) {
|
|
4712
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4713
|
+
checkVersionMismatch(Ctor, 'component');
|
|
4714
|
+
}
|
|
4715
|
+
signedTemplateMap.set(Ctor, tmpl);
|
|
4711
4716
|
}
|
|
4712
|
-
signedTemplateMap.set(Ctor, tmpl);
|
|
4713
4717
|
// chaining this method as a way to wrap existing assignment of component constructor easily,
|
|
4714
4718
|
// without too much transformation
|
|
4715
4719
|
return Ctor;
|
|
@@ -6147,4 +6151,4 @@ exports.swapTemplate = swapTemplate;
|
|
|
6147
6151
|
exports.track = track;
|
|
6148
6152
|
exports.unwrap = unwrap;
|
|
6149
6153
|
exports.wire = wire;
|
|
6150
|
-
/* version: 2.11.
|
|
6154
|
+
/* version: 2.11.1 */
|
package/dist/engine-core.js
CHANGED
|
@@ -4702,11 +4702,15 @@ const signedTemplateMap = new Map();
|
|
|
4702
4702
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
4703
4703
|
* will prevent this function from being imported by userland code.
|
|
4704
4704
|
*/
|
|
4705
|
-
function registerComponent(
|
|
4706
|
-
|
|
4707
|
-
|
|
4705
|
+
function registerComponent(
|
|
4706
|
+
// We typically expect a LightningElementConstructor, but technically you can call this with anything
|
|
4707
|
+
Ctor, { tmpl }) {
|
|
4708
|
+
if (isFunction$1(Ctor)) {
|
|
4709
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4710
|
+
checkVersionMismatch(Ctor, 'component');
|
|
4711
|
+
}
|
|
4712
|
+
signedTemplateMap.set(Ctor, tmpl);
|
|
4708
4713
|
}
|
|
4709
|
-
signedTemplateMap.set(Ctor, tmpl);
|
|
4710
4714
|
// chaining this method as a way to wrap existing assignment of component constructor easily,
|
|
4711
4715
|
// without too much transformation
|
|
4712
4716
|
return Ctor;
|
|
@@ -6071,4 +6075,4 @@ function setHooks(hooks) {
|
|
|
6071
6075
|
}
|
|
6072
6076
|
|
|
6073
6077
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, api$1 as api, connectRootElement, createContextProvider, createVM, disconnectRootElement, getAssociatedVMIfPresent, getComponentDef, getComponentHtmlPrototype, getUpgradableConstructor, hydrateRootElement, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, sanitizeAttribute, setAddEventListener, setAssertInstanceOfHTMLElement, setAttachShadow, setCreateComment, setCreateElement, setCreateText, setDefineCustomElement, setDispatchEvent, setGetAttribute, setGetBoundingClientRect, setGetChildNodes, setGetChildren, setGetClassList, setGetCustomElement, setGetElementsByClassName, setGetElementsByTagName, setGetFirstChild, setGetFirstElementChild, setGetLastChild, setGetLastElementChild, setGetProperty, setHTMLElement, setHooks, setInsert, setInsertGlobalStylesheet, setInsertStylesheet, setIsConnected, setIsHydrating, setIsNativeShadowDefined, setIsSyntheticShadowDefined, setNextSibling, setQuerySelector, setQuerySelectorAll, setRemove, setRemoveAttribute, setRemoveEventListener, setSetAttribute, setSetCSSStyleProperty, setSetProperty, setSetText, setSsr, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
6074
|
-
/* version: 2.11.
|
|
6078
|
+
/* version: 2.11.1 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/engine-core",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Core LWC engine APIs.",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"types/"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@lwc/features": "2.11.
|
|
28
|
-
"@lwc/shared": "2.11.
|
|
27
|
+
"@lwc/features": "2.11.1",
|
|
28
|
+
"@lwc/shared": "2.11.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"observable-membrane": "2.0.0"
|
|
@@ -7,9 +7,9 @@ import { VNodes } from './vnodes';
|
|
|
7
7
|
* INTERNAL: This function can only be invoked by compiled code. The compiler
|
|
8
8
|
* will prevent this function from being imported by userland code.
|
|
9
9
|
*/
|
|
10
|
-
export declare function registerComponent(Ctor:
|
|
10
|
+
export declare function registerComponent(Ctor: any, { tmpl }: {
|
|
11
11
|
tmpl: Template;
|
|
12
|
-
}):
|
|
12
|
+
}): any;
|
|
13
13
|
export declare function getComponentRegisteredTemplate(Ctor: LightningElementConstructor): Template | undefined;
|
|
14
14
|
export declare function getTemplateReactiveObserver(vm: VM): ReactiveObserver;
|
|
15
15
|
export declare function renderComponent(vm: VM): VNodes;
|