marko 5.30.2 → 5.31.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.
Files changed (80) hide show
  1. package/dist/compiler/index.js +10 -10
  2. package/dist/core-tags/components/preserve-tag.js +4 -4
  3. package/dist/core-tags/core/await/AsyncValue.js +7 -7
  4. package/dist/core-tags/core/await/reorderer-renderer.js +28 -28
  5. package/dist/node-require/hot-reload.js +5 -5
  6. package/dist/node-require/index.js +8 -8
  7. package/dist/node_modules/@internal/components-beginComponent/index-browser.js +4 -4
  8. package/dist/node_modules/@internal/components-beginComponent/index.js +14 -14
  9. package/dist/node_modules/@internal/components-define-widget-legacy/index-browser.js +9 -7
  10. package/dist/node_modules/@internal/components-entry/index-browser.js +2 -1
  11. package/dist/node_modules/@internal/components-entry/index.js +5 -5
  12. package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +4 -3
  13. package/dist/node_modules/@internal/components-entry-legacy/index.js +2 -1
  14. package/dist/node_modules/@internal/components-registry/index-browser.js +43 -51
  15. package/dist/node_modules/@internal/components-util/index-browser.js +3 -3
  16. package/dist/node_modules/@internal/create-readable/index-browser.js +5 -5
  17. package/dist/node_modules/@internal/create-readable/index.js +5 -5
  18. package/dist/node_modules/@internal/loader/fallback-node.js +89 -0
  19. package/dist/node_modules/@internal/loader/index-browser.js +1 -3
  20. package/dist/node_modules/@internal/loader/index.js +20 -85
  21. package/dist/node_modules/@internal/loader/package.json +2 -3
  22. package/dist/node_modules/@internal/require/index-browser.js +13 -0
  23. package/dist/node_modules/@internal/require/index-legacy-browser.js +20 -0
  24. package/dist/node_modules/@internal/require/index-webpack.js +11 -0
  25. package/dist/node_modules/@internal/require/index.js +15 -0
  26. package/dist/node_modules/@internal/require/package.json +11 -0
  27. package/dist/runtime/RenderResult.js +8 -7
  28. package/dist/runtime/components/Component.js +18 -18
  29. package/dist/runtime/components/ComponentDef.js +1 -1
  30. package/dist/runtime/components/State.js +10 -10
  31. package/dist/runtime/components/event-delegation.js +49 -49
  32. package/dist/runtime/components/legacy/defineComponent-legacy.js +0 -5
  33. package/dist/runtime/components/legacy/defineRenderer-legacy.js +6 -11
  34. package/dist/runtime/components/legacy/dependencies/index.js +7 -7
  35. package/dist/runtime/components/legacy/renderer-legacy.js +51 -51
  36. package/dist/runtime/components/renderer.js +26 -26
  37. package/dist/runtime/helpers/_change-case.js +3 -3
  38. package/dist/runtime/helpers/class-value.js +2 -2
  39. package/dist/runtime/helpers/dynamic-tag.js +27 -27
  40. package/dist/runtime/helpers/render-tag.js +3 -3
  41. package/dist/runtime/html/AsyncStream.js +10 -10
  42. package/dist/runtime/html/BufferedWriter.js +14 -14
  43. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  44. package/dist/runtime/html/helpers/attr.js +5 -5
  45. package/dist/runtime/html/helpers/attrs.js +2 -2
  46. package/dist/runtime/html/helpers/data-marko.js +2 -2
  47. package/dist/runtime/html/helpers/escape-xml.js +2 -2
  48. package/dist/runtime/html/index.js +9 -9
  49. package/dist/runtime/renderable.js +4 -4
  50. package/dist/runtime/vdom/AsyncVDOMBuilder.js +36 -36
  51. package/dist/runtime/vdom/VElement.js +23 -23
  52. package/dist/runtime/vdom/hot-reload.js +1 -1
  53. package/dist/runtime/vdom/index.js +8 -8
  54. package/dist/runtime/vdom/morphdom/fragment.js +8 -8
  55. package/dist/runtime/vdom/morphdom/helpers.js +7 -7
  56. package/dist/runtime/vdom/morphdom/index.js +93 -93
  57. package/dist/runtime/vdom/morphdom/specialElHandlers.js +8 -8
  58. package/dist/runtime/vdom/vdom.js +2 -2
  59. package/dist/taglib/index.js +3 -3
  60. package/docs/compiler.md +6 -0
  61. package/package.json +3 -3
  62. package/src/node_modules/@internal/components-define-widget-legacy/index-browser.js +17 -15
  63. package/src/node_modules/@internal/components-define-widget-legacy/index.js +1 -1
  64. package/src/node_modules/@internal/components-entry/index-browser.js +2 -1
  65. package/src/node_modules/@internal/components-entry/index.js +2 -2
  66. package/src/node_modules/@internal/components-entry-legacy/index-browser.js +4 -3
  67. package/src/node_modules/@internal/components-entry-legacy/index.js +2 -1
  68. package/src/node_modules/@internal/components-registry/index-browser.js +9 -17
  69. package/src/node_modules/@internal/create-readable/index-browser.js +2 -2
  70. package/src/node_modules/@internal/loader/fallback-node.js +89 -0
  71. package/src/node_modules/@internal/loader/index-browser.js +1 -3
  72. package/src/node_modules/@internal/loader/index.js +21 -86
  73. package/src/node_modules/@internal/loader/package.json +2 -3
  74. package/src/node_modules/@internal/require/index-browser.js +13 -0
  75. package/src/node_modules/@internal/require/index-legacy-browser.js +20 -0
  76. package/src/node_modules/@internal/require/index-webpack.js +11 -0
  77. package/src/node_modules/@internal/require/index.js +15 -0
  78. package/src/node_modules/@internal/require/package.json +11 -0
  79. package/src/runtime/components/legacy/defineComponent-legacy.js +0 -5
  80. package/src/runtime/components/legacy/defineRenderer-legacy.js +2 -7
@@ -1,88 +1,23 @@
1
1
  "use strict";
2
- var nodePath = require("path");
3
- var fs = require("fs");
4
- var Module = require("module").Module;
5
- var markoCompiler = require("../../../compiler");
6
- var cwd = process.cwd();
7
- var fsOptions = { encoding: "utf8" };
8
- var requiredCompilerOptions = { modules: "cjs" };
9
2
 
10
- module.exports = function load(templatePath, templateSrc, options) {
11
- if (arguments.length === 1) {
12
- return doLoad(templatePath);
13
- } else if (arguments.length === 2) {
14
- // see if second argument is templateSrc (a String)
15
- // or options (an Object)
16
- var lastArg = arguments[arguments.length - 1];
17
- if (typeof lastArg === "string") {
18
- return doLoad(templatePath, templateSrc);
19
- } else {
20
- var finalOptions = templateSrc;
21
- return doLoad(templatePath, null, finalOptions);
22
- }
23
- } else if (arguments.length === 3) {
24
- // assume function called according to function signature
25
- return doLoad(templatePath, templateSrc, options);
26
- } else {
27
- throw new Error("Illegal arguments");
3
+ const req = require("@internal/require");
4
+ let fallback;
5
+ module.exports = !require.extensions[".marko"] ?
6
+ require("./fallback-node") :
7
+ function load(templatePath, templateSrc, options) {
8
+ switch (arguments.length) {
9
+ case 1:
10
+ return req(templatePath);
11
+ case 2:
12
+ return (fallback = fallback || require("./fallback-node"))(
13
+ templatePath,
14
+ templateSrc
15
+ );
16
+ case 3:
17
+ return (fallback = fallback || require("./fallback-node"))(
18
+ templatePath,
19
+ templateSrc,
20
+ options
21
+ );
28
22
  }
29
- };
30
-
31
- function loadSource(templatePath, compiledSrc) {
32
- // Short-circuit loading if the template has already been cached in the Node.js require cache
33
- var cached = require.cache[templatePath];
34
- if (cached) {
35
- return cached.exports;
36
- }
37
-
38
- var templateModule = new Module(templatePath, module);
39
- templateModule.paths = Module._nodeModulePaths(
40
- nodePath.dirname(templatePath));
41
-
42
- templateModule.filename = templatePath;
43
-
44
- Module._cache[templatePath] = templateModule;
45
-
46
- templateModule._compile(compiledSrc, templatePath);
47
-
48
- return templateModule.exports;
49
- }
50
-
51
- function getCachedTemplate(templatePath) {
52
- var precompiledTemplatePath = templatePath + ".js";
53
- var templateModule =
54
- require.cache[templatePath] || require.cache[precompiledTemplatePath];
55
-
56
- if (templateModule) {
57
- return templateModule.exports;
58
- } else if (fs.existsSync(precompiledTemplatePath)) {
59
- return require(precompiledTemplatePath);
60
- }
61
- }
62
-
63
- function doLoad(templatePath, templateSrc, options) {
64
- options = Object.assign(
65
- {},
66
- markoCompiler.defaultOptions,
67
- options,
68
- requiredCompilerOptions);
69
-
70
- templatePath = nodePath.resolve(cwd, templatePath);
71
- var template = getCachedTemplate(templatePath);
72
-
73
- if (!template) {
74
- if (templateSrc == null) {
75
- templateSrc = fs.readFileSync(templatePath, fsOptions);
76
- }
77
-
78
- var compiledSrc = markoCompiler.compile(templateSrc, templatePath, options);
79
-
80
- template = loadSource(templatePath, compiledSrc);
81
- }
82
-
83
- if (template.default) {
84
- template = template.default;
85
- }
86
-
87
- return template;
88
- }
23
+ };
@@ -3,9 +3,8 @@
3
3
  "browser": "./index-browser.js",
4
4
  "exports": {
5
5
  ".": {
6
- "webpack": "./index-browser.js",
7
- "browser": "./index-browser.js",
8
- "default": "./index.js"
6
+ "node": "./index.js",
7
+ "default": "./index-browser.js"
9
8
  }
10
9
  }
11
10
  }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ load.e = exists;
3
+ module.exports = load;
4
+
5
+ function load() {
6
+ throw new Error(
7
+ "The require API cannot be used in the browser in the current environment."
8
+ );
9
+ }
10
+
11
+ function exists() {
12
+ return false;
13
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ load.e = exists;
3
+ module.exports = load;
4
+
5
+ function load(id) {
6
+ return interopRequire(require(id));
7
+ }
8
+
9
+ function exists(id) {
10
+ // In lasso this helper is used to determine if a module was loaded but not run.
11
+ return !!(
12
+ require.runtime &&
13
+ require.runtime.resolve &&
14
+ require.runtime.resolve(id, "/"));
15
+
16
+ }
17
+
18
+ function interopRequire(mod) {
19
+ return mod.default || mod;
20
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ load.e = __webpack_is_included__;
3
+ module.exports = load;
4
+
5
+ function load(id) {
6
+ return interopRequire(__webpack_require__(id));
7
+ }
8
+
9
+ function interopRequire(mod) {
10
+ return mod.default || mod;
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ load.e = exists;
3
+ module.exports = load;
4
+
5
+ function load(id) {
6
+ return interopRequire(require(id));
7
+ }
8
+
9
+ function exists() {
10
+ return false;
11
+ }
12
+
13
+ function interopRequire(mod) {
14
+ return mod.default || mod;
15
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "main": "./index.js",
3
+ "browser": "./index-legacy-browser.js",
4
+ "exports": {
5
+ ".": {
6
+ "webpack": "./index-webpack.js",
7
+ "browser": "./index-browser.js",
8
+ "default": "./index.js"
9
+ }
10
+ }
11
+ }
@@ -101,10 +101,11 @@ Object.defineProperty(proto, "context", {
101
101
  // - insertAfter(referenceEl)
102
102
  // - prependTo(referenceEl)
103
103
  domInsert(
104
- proto,
105
- function getEl(renderResult, referenceEl) {
106
- return renderResult.getNode(getRootNode(referenceEl));
107
- },
108
- function afterInsert(renderResult, referenceEl) {
109
- return renderResult.afterInsert(getRootNode(referenceEl));
110
- });
104
+ proto,
105
+ function getEl(renderResult, referenceEl) {
106
+ return renderResult.getNode(getRootNode(referenceEl));
107
+ },
108
+ function afterInsert(renderResult, referenceEl) {
109
+ return renderResult.afterInsert(getRootNode(referenceEl));
110
+ }
111
+ );
@@ -226,11 +226,11 @@ Component.prototype = componentProto = {
226
226
  var args = slice.call(arguments, 1);
227
227
 
228
228
  handleCustomEventWithMethodListener(
229
- this,
230
- targetMethodName,
231
- args,
232
- extraArgs);
233
-
229
+ this,
230
+ targetMethodName,
231
+ args,
232
+ extraArgs
233
+ );
234
234
 
235
235
  if (isOnce) {
236
236
  delete customEvents[eventType];
@@ -400,11 +400,11 @@ Component.prototype = componentProto = {
400
400
  }
401
401
 
402
402
  state.ap_(
403
- name,
404
- value,
405
- true /* ensure:true */,
406
- true /* forceDirty:true */);
407
-
403
+ name,
404
+ value,
405
+ true /* ensure:true */,
406
+ true /* forceDirty:true */
407
+ );
408
408
  },
409
409
 
410
410
  replaceState: function (newState) {
@@ -649,14 +649,14 @@ componentProto.aG_ = componentProto.destroy;
649
649
  // - insertAfter(referenceEl)
650
650
  // - prependTo(referenceEl)
651
651
  domInsert(
652
- componentProto,
653
- function getEl(component) {
654
- return component.az_();
655
- },
656
- function afterInsert(component) {
657
- return component;
658
- });
659
-
652
+ componentProto,
653
+ function getEl(component) {
654
+ return component.az_();
655
+ },
656
+ function afterInsert(component) {
657
+ return component;
658
+ }
659
+ );
660
660
 
661
661
  inherit(Component, EventEmitter);
662
662
 
@@ -39,7 +39,7 @@ ComponentDef.prototype = {
39
39
  aK_: function (key) {
40
40
  return (
41
41
  this.aJ_ || (this.aJ_ = new KeySequence())).aK_(
42
- key);
42
+ key);
43
43
  },
44
44
 
45
45
  /**
@@ -45,21 +45,21 @@ State.prototype = {
45
45
  for (key in rawState) {
46
46
  if (!(key in newState)) {
47
47
  state.ap_(
48
- key,
49
- undefined,
50
- false /* ensure:false */,
51
- false /* forceDirty:false */);
52
-
48
+ key,
49
+ undefined,
50
+ false /* ensure:false */,
51
+ false /* forceDirty:false */
52
+ );
53
53
  }
54
54
  }
55
55
 
56
56
  for (key in newState) {
57
57
  state.ap_(
58
- key,
59
- newState[key],
60
- true /* ensure:true */,
61
- false /* forceDirty:false */);
62
-
58
+ key,
59
+ newState[key],
60
+ true /* ensure:true */,
61
+ false /* forceDirty:false */
62
+ );
63
63
  }
64
64
  },
65
65
  ap_: function (name, value, shouldEnsure, forceDirty) {
@@ -77,56 +77,56 @@ function addDelegatedEventHandlerToHost(eventType, host) {
77
77
  host[listenersAttachedKey] || {};
78
78
  if (!listeners[eventType]) {
79
79
  (host.body || host).addEventListener(
80
- eventType,
81
- listeners[eventType] = function (event) {
82
- var curNode = event.target;
83
- if (!curNode) {
84
- return;
85
- }
86
-
87
- curNode =
88
- // event.target of an SVGElementInstance does not have a
89
- // `getAttribute` function in IE 11.
90
- // See https://github.com/marko-js/marko/issues/796
91
- curNode.correspondingUseElement || (
92
- // in some browsers the event target can be a text node
93
- // one example being dragenter in firefox.
94
- curNode.nodeType === TEXT_NODE ? curNode.parentNode : curNode);
95
-
96
- // Search up the tree looking DOM events mapped to target
97
- // component methods
98
- var propName = "on" + eventType;
99
- var target;
100
-
101
- // Attributes will have the following form:
102
- // on<event_type>("<target_method>|<component_id>")
103
-
104
- if (event.bubbles) {
105
- var propagationStopped = false;
106
-
107
- // Monkey-patch to fix #97
108
- var oldStopPropagation = event.stopPropagation;
109
-
110
- event.stopPropagation = function () {
111
- oldStopPropagation.call(event);
112
- propagationStopped = true;
113
- };
114
-
115
- do {
116
- if (target = getEventFromEl(curNode, propName)) {
117
- delegateEvent(curNode, propName, target, event);
118
-
119
- if (propagationStopped) {
120
- break;
80
+ eventType,
81
+ listeners[eventType] = function (event) {
82
+ var curNode = event.target;
83
+ if (!curNode) {
84
+ return;
85
+ }
86
+
87
+ curNode =
88
+ // event.target of an SVGElementInstance does not have a
89
+ // `getAttribute` function in IE 11.
90
+ // See https://github.com/marko-js/marko/issues/796
91
+ curNode.correspondingUseElement || (
92
+ // in some browsers the event target can be a text node
93
+ // one example being dragenter in firefox.
94
+ curNode.nodeType === TEXT_NODE ? curNode.parentNode : curNode);
95
+
96
+ // Search up the tree looking DOM events mapped to target
97
+ // component methods
98
+ var propName = "on" + eventType;
99
+ var target;
100
+
101
+ // Attributes will have the following form:
102
+ // on<event_type>("<target_method>|<component_id>")
103
+
104
+ if (event.bubbles) {
105
+ var propagationStopped = false;
106
+
107
+ // Monkey-patch to fix #97
108
+ var oldStopPropagation = event.stopPropagation;
109
+
110
+ event.stopPropagation = function () {
111
+ oldStopPropagation.call(event);
112
+ propagationStopped = true;
113
+ };
114
+
115
+ do {
116
+ if (target = getEventFromEl(curNode, propName)) {
117
+ delegateEvent(curNode, propName, target, event);
118
+
119
+ if (propagationStopped) {
120
+ break;
121
+ }
121
122
  }
122
- }
123
- } while ((curNode = curNode.parentNode) && curNode.getAttribute);
124
- } else if (target = getEventFromEl(curNode, propName)) {
125
- delegateEvent(curNode, propName, target, event);
126
- }
127
- },
128
- true);
129
-
123
+ } while ((curNode = curNode.parentNode) && curNode.getAttribute);
124
+ } else if (target = getEventFromEl(curNode, propName)) {
125
+ delegateEvent(curNode, propName, target, event);
126
+ }
127
+ },
128
+ true
129
+ );
130
130
  }
131
131
  }
132
132
 
@@ -8,11 +8,6 @@ var defineRenderer;
8
8
  var defineWidget;
9
9
 
10
10
  module.exports = function defineComponent(def) {
11
- // eslint-disable-next-line no-constant-condition
12
-
13
-
14
-
15
-
16
11
  if (def.E_) {
17
12
  return def;
18
13
  }
@@ -4,17 +4,12 @@ var getComponentsContext =
4
4
  require("../ComponentsContext").e_;
5
5
  var componentLookup = require("@internal/components-util")._o_;
6
6
  var modernRenderer = require("../renderer");
7
- var loader = require("@internal/loader");
7
+ var req = require("@internal/require");
8
8
  var resolveComponentKey = modernRenderer.aU_;
9
9
 
10
10
  module.exports = function defineRenderer(renderingLogic) {
11
11
  var renderer = renderingLogic.renderer;
12
12
 
13
- // eslint-disable-next-line no-constant-condition
14
-
15
-
16
-
17
-
18
13
  if (renderer && renderer.aV_) {
19
14
  return renderer;
20
15
  }
@@ -22,7 +17,7 @@ module.exports = function defineRenderer(renderingLogic) {
22
17
  var template = renderingLogic.template;
23
18
 
24
19
  if (typeof template === "string") {
25
- template = loader(template);
20
+ template = req(template);
26
21
  }
27
22
 
28
23
  if (!renderer) {
@@ -116,10 +111,10 @@ module.exports = function defineRenderer(renderingLogic) {
116
111
  // data. If that method is not provided then just use the
117
112
  // the state (if provided) or the input data.
118
113
  var templateData = clone(
119
- getTemplateData ?
120
- getTemplateData(widgetState, newProps, out) :
121
- widgetState || newProps);
122
-
114
+ getTemplateData ?
115
+ getTemplateData(widgetState, newProps, out) :
116
+ widgetState || newProps
117
+ );
123
118
 
124
119
  if (isReceivingNewInput && getWidgetConfig) {
125
120
  // If getWidgetConfig() was implemented then use that to
@@ -11,8 +11,8 @@ function getRootDeps(template, context) {
11
11
  attachDepsAndComponentsToTemplate(template, context);
12
12
 
13
13
  var deps = template.aW_ = Object.keys(template.aX_).map(
14
- (key) => template.aX_[key]);
15
-
14
+ (key) => template.aX_[key]
15
+ );
16
16
  var initModule = getInitModule(template.path, template.b_);
17
17
 
18
18
  if (initModule) deps.push(initModule);
@@ -100,11 +100,11 @@ function getInitModule(path, components) {
100
100
  var root = nodePath.dirname(path);
101
101
  var virtualPath = path + ".init.js";
102
102
  var registrations = components.map(
103
- (component) =>
104
- `components.register('${component.id}', require('.${
105
- nodePath.sep
106
- }${nodePath.relative(root, component.path)}'));`);
107
-
103
+ (component) =>
104
+ `components.register('${component.id}', require('.${
105
+ nodePath.sep
106
+ }${nodePath.relative(root, component.path)}'));`
107
+ );
108
108
  var code = `
109
109
  var components = require('marko/components');
110
110
  ${registrations.join("\n")}
@@ -24,13 +24,13 @@ function createRendererFunc(templateRenderFunc, componentProps) {
24
24
 
25
25
  if (isImplicit && parentLegacyComponentDef) {
26
26
  templateRenderFunc(
27
- input,
28
- out,
29
- parentLegacyComponentDef,
30
- parentLegacyComponentDef.i_,
31
- parentLegacyComponentDef.i_.aA_,
32
- out.global);
33
-
27
+ input,
28
+ out,
29
+ parentLegacyComponentDef,
30
+ parentLegacyComponentDef.i_,
31
+ parentLegacyComponentDef.i_.aA_,
32
+ out.global
33
+ );
34
34
  return;
35
35
  }
36
36
 
@@ -68,14 +68,14 @@ function createRendererFunc(templateRenderFunc, componentProps) {
68
68
  if (registry._L_ && typeName) {
69
69
  if (renderingLogic) delete renderingLogic.onRender;
70
70
  component = registry._I_(
71
- renderingLogic,
72
- id,
73
- input,
74
- out,
75
- typeName,
76
- customEvents,
77
- ownerComponentId);
78
-
71
+ renderingLogic,
72
+ id,
73
+ input,
74
+ out,
75
+ typeName,
76
+ customEvents,
77
+ ownerComponentId
78
+ );
79
79
  if (isSplit || widgetState) {
80
80
  component.input = null;
81
81
  } else if (input.widgetProps) {
@@ -130,13 +130,13 @@ function createRendererFunc(templateRenderFunc, componentProps) {
130
130
  component._c_ = widgetBody || component._c_;
131
131
 
132
132
  var componentDef = beginComponent(
133
- componentsContext,
134
- component,
135
- key,
136
- ownerComponentDef,
137
- isSplit,
138
- isFakeComponent);
139
-
133
+ componentsContext,
134
+ component,
135
+ key,
136
+ ownerComponentDef,
137
+ isSplit,
138
+ isFakeComponent
139
+ );
140
140
  componentsContext.aZ_ = componentDef;
141
141
 
142
142
  // This is a hack, but we have to swap out the component instance stored with this node
@@ -152,14 +152,14 @@ function createRendererFunc(templateRenderFunc, componentProps) {
152
152
  var oldComponent = component;
153
153
  if (renderingLogic) delete renderingLogic.onRender;
154
154
  component = registry._I_(
155
- renderingLogic || {},
156
- id,
157
- input,
158
- out,
159
- typeName,
160
- customEvents,
161
- ownerComponentId);
162
-
155
+ renderingLogic || {},
156
+ id,
157
+ input,
158
+ out,
159
+ typeName,
160
+ customEvents,
161
+ ownerComponentId
162
+ );
163
163
  if (isSplit || widgetState) {
164
164
  component.input = null;
165
165
  } else if (input.widgetProps) {
@@ -174,19 +174,19 @@ function createRendererFunc(templateRenderFunc, componentProps) {
174
174
  }
175
175
  Object.assign(component, oldComponent);
176
176
  beginComponent(
177
- componentsContext,
178
- component,
179
- key,
180
- ownerComponentDef,
181
- isSplit,
182
- false,
183
- this);
184
-
177
+ componentsContext,
178
+ component,
179
+ key,
180
+ ownerComponentDef,
181
+ isSplit,
182
+ false,
183
+ this
184
+ );
185
185
  } else {
186
186
  vComponentNode.i_ = component = registry._I_(
187
- typeName,
188
- component.id);
189
-
187
+ typeName,
188
+ component.id
189
+ );
190
190
  }
191
191
  this.i_ = component;
192
192
  }
@@ -201,13 +201,13 @@ function createRendererFunc(templateRenderFunc, componentProps) {
201
201
  // Render the template associated with the component using the final template
202
202
  // data that we constructed
203
203
  templateRenderFunc(
204
- input,
205
- out,
206
- componentDef,
207
- component,
208
- component.aA_,
209
- out.global);
210
-
204
+ input,
205
+ out,
206
+ componentDef,
207
+ component,
208
+ component.aA_,
209
+ out.global
210
+ );
211
211
 
212
212
  if (customEvents && componentDef.i_) {
213
213
  if (registry._L_) {
@@ -215,9 +215,9 @@ function createRendererFunc(templateRenderFunc, componentProps) {
215
215
  componentDef._a_ = ownerComponentId;
216
216
  } else {
217
217
  componentDef.i_.aB_(
218
- customEvents,
219
- ownerComponentId);
220
-
218
+ customEvents,
219
+ ownerComponentId
220
+ );
221
221
  }
222
222
  }
223
223