marko 5.37.47 → 5.37.48
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/node_modules/@internal/components-entry/index.js +17 -10
- package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +3 -3
- package/dist/node_modules/@internal/components-registry/index-browser.js +33 -33
- package/dist/node_modules/@internal/components-registry/index.js +2 -2
- package/dist/node_modules/@internal/components-util/index-browser.js +16 -16
- package/dist/node_modules/@internal/components-util/index.js +4 -4
- package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
- package/dist/node_modules/@internal/create-readable/index.js +9 -9
- package/dist/node_modules/@internal/preserve-tag/index-browser.js +5 -5
- package/dist/node_modules/@internal/preserve-tag/index.js +1 -1
- package/dist/node_modules/@internal/set-immediate/index-browser.js +1 -1
- package/dist/node_modules/@internal/set-immediate/index-worker.js +2 -2
- package/dist/node_modules/@internal/set-immediate/index.js +2 -2
- package/dist/runtime/RenderResult.js +3 -3
- package/dist/runtime/components/Component.js +95 -95
- package/dist/runtime/components/ComponentDef.js +18 -18
- package/dist/runtime/components/ComponentsContext.js +3 -3
- package/dist/runtime/components/GlobalComponentsContext.js +3 -3
- package/dist/runtime/components/KeySequence.js +3 -3
- package/dist/runtime/components/ServerComponent.js +1 -1
- package/dist/runtime/components/State.js +19 -19
- package/dist/runtime/components/attach-detach.js +7 -7
- package/dist/runtime/components/dom-data.js +5 -5
- package/dist/runtime/components/event-delegation.js +9 -9
- package/dist/runtime/components/legacy/defineRenderer-legacy.js +11 -11
- package/dist/runtime/components/legacy/dependencies/index.js +7 -7
- package/dist/runtime/components/legacy/renderer-legacy.js +28 -28
- package/dist/runtime/components/renderer.js +27 -27
- package/dist/runtime/components/update-manager.js +4 -4
- package/dist/runtime/createOut.js +1 -1
- package/dist/runtime/dom-insert.js +5 -5
- package/dist/runtime/helpers/_change-case.js +2 -2
- package/dist/runtime/helpers/dynamic-tag.js +9 -9
- package/dist/runtime/helpers/render-tag.js +1 -1
- package/dist/runtime/helpers/serialize-noop.js +1 -1
- package/dist/runtime/helpers/style-value.js +1 -1
- package/dist/runtime/helpers/tags-compat/runtime-dom.js +23 -23
- package/dist/runtime/helpers/tags-compat/runtime-html.js +67 -24
- package/dist/runtime/html/AsyncStream.js +20 -20
- package/dist/runtime/html/BufferedWriter.js +2 -2
- package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
- package/dist/runtime/html/helpers/attr.js +2 -2
- package/dist/runtime/html/helpers/data-marko.js +1 -1
- package/dist/runtime/html/helpers/escape-xml.js +1 -1
- package/dist/runtime/html/index.js +1 -1
- package/dist/runtime/renderable.js +3 -3
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +83 -83
- package/dist/runtime/vdom/VComment.js +7 -7
- package/dist/runtime/vdom/VComponent.js +4 -4
- package/dist/runtime/vdom/VDocumentFragment.js +6 -6
- package/dist/runtime/vdom/VElement.js +36 -36
- package/dist/runtime/vdom/VFragment.js +9 -9
- package/dist/runtime/vdom/VNode.js +33 -33
- package/dist/runtime/vdom/VText.js +8 -8
- package/dist/runtime/vdom/helpers/const-element.js +3 -3
- package/dist/runtime/vdom/hot-reload.js +14 -14
- package/dist/runtime/vdom/index.js +1 -1
- package/dist/runtime/vdom/morphdom/fragment.js +5 -5
- package/dist/runtime/vdom/morphdom/helpers.js +5 -5
- package/dist/runtime/vdom/morphdom/index.js +68 -68
- package/dist/runtime/vdom/vdom.js +15 -15
- package/dist/translator/util/get-component-files.js +1 -1
- package/package.json +1 -1
- package/src/node_modules/@internal/components-entry/index.js +19 -12
- package/src/runtime/helpers/tags-compat/runtime-dom.js +3 -3
- package/src/runtime/helpers/tags-compat/runtime-html.js +66 -23
@@ -6,7 +6,7 @@ var dashToCamelLookup = Object.create(null);
|
|
6
6
|
/**
|
7
7
|
* Helper for converting camelCase to dash-case.
|
8
8
|
*/
|
9
|
-
exports.
|
9
|
+
exports.bj_ = function camelToDashCase(name) {
|
10
10
|
var nameDashed = camelToDashLookup[name];
|
11
11
|
if (!nameDashed) {
|
12
12
|
nameDashed = camelToDashLookup[name] = name.
|
@@ -24,7 +24,7 @@ exports.bi_ = function camelToDashCase(name) {
|
|
24
24
|
/**
|
25
25
|
* Helper for converting dash-case to camelCase.
|
26
26
|
*/
|
27
|
-
exports.
|
27
|
+
exports.bk_ = function dashToCamelCase(name) {
|
28
28
|
var nameCamel = dashToCamelLookup[name];
|
29
29
|
if (!nameCamel) {
|
30
30
|
nameCamel = dashToCamelLookup[name] = name.replace(
|
@@ -5,7 +5,7 @@
|
|
5
5
|
var ComponentDef = require("../components/ComponentDef");
|
6
6
|
var ComponentsContext = require("../components/ComponentsContext");
|
7
7
|
var serializeNOOP = require("../helpers/serialize-noop");
|
8
|
-
var w10NOOP = serializeNOOP.
|
8
|
+
var w10NOOP = serializeNOOP.aK_;
|
9
9
|
var w10ToJSON = serializeNOOP.V_;
|
10
10
|
var changeCase = require("./_change-case");
|
11
11
|
var getComponentsContext = ComponentsContext.S_;
|
@@ -37,7 +37,7 @@ customEvents)
|
|
37
37
|
var component = componentDef && componentDef.s_;
|
38
38
|
if (typeof tag === "string") {
|
39
39
|
if (renderBody) {
|
40
|
-
out.
|
40
|
+
out.bl_(
|
41
41
|
tag,
|
42
42
|
attrs,
|
43
43
|
key,
|
@@ -45,9 +45,9 @@ customEvents)
|
|
45
45
|
addEvents(componentDef, customEvents, props)
|
46
46
|
);
|
47
47
|
renderBody(out);
|
48
|
-
out.
|
48
|
+
out.bm_();
|
49
49
|
} else {
|
50
|
-
out.
|
50
|
+
out.bn_(
|
51
51
|
tag,
|
52
52
|
attrs,
|
53
53
|
key,
|
@@ -79,8 +79,8 @@ customEvents)
|
|
79
79
|
|
80
80
|
|
81
81
|
|
82
|
-
if (dynamicTag.
|
83
|
-
renderer = dynamicTag.
|
82
|
+
if (dynamicTag.bo_) {
|
83
|
+
renderer = dynamicTag.bo_(
|
84
84
|
renderer,
|
85
85
|
render,
|
86
86
|
args,
|
@@ -91,7 +91,7 @@ customEvents)
|
|
91
91
|
if (renderer) {
|
92
92
|
out.c(componentDef, key, customEvents);
|
93
93
|
renderer(attrs, out);
|
94
|
-
out.
|
94
|
+
out.aa_ = null;
|
95
95
|
} else {
|
96
96
|
var isFn = typeof render === "function";
|
97
97
|
|
@@ -115,7 +115,7 @@ customEvents)
|
|
115
115
|
var globalContext = componentsContext.p_;
|
116
116
|
componentsContext.o_ = new ComponentDef(
|
117
117
|
component,
|
118
|
-
parentComponentDef.id + "-" + parentComponentDef.
|
118
|
+
parentComponentDef.id + "-" + parentComponentDef.aO_(key),
|
119
119
|
globalContext
|
120
120
|
);
|
121
121
|
render.toJSON = w10ToJSON;
|
@@ -151,7 +151,7 @@ function attrsToCamelCase(attrs) {
|
|
151
151
|
var result = {};
|
152
152
|
|
153
153
|
for (var key in attrs) {
|
154
|
-
result[changeCase.
|
154
|
+
result[changeCase.bk_(key)] = attrs[key];
|
155
155
|
}
|
156
156
|
|
157
157
|
return result;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const {
|
1
|
+
"use strict";const { _m_ } = require("@internal/components-util");
|
2
2
|
const {
|
3
3
|
S_
|
4
4
|
} = require("../../components/ComponentsContext");
|
@@ -7,13 +7,13 @@ const { r: registerComponent } = require("../../components/registry");
|
|
7
7
|
const createRenderer = require("../../components/renderer");
|
8
8
|
const defaultCreateOut = require("../../createOut");
|
9
9
|
const morphdom = require("../../vdom/morphdom");
|
10
|
-
const {
|
10
|
+
const { _l_ } = require("../../vdom/morphdom/fragment");
|
11
11
|
const dynamicTag = require("../dynamic-tag");
|
12
12
|
const Component = require("../../components/Component");
|
13
|
-
const noopRenderer = require("../serialize-noop").
|
13
|
+
const noopRenderer = require("../serialize-noop").aK_;
|
14
14
|
|
15
15
|
exports.p = function (domCompat) {
|
16
|
-
dynamicTag.
|
16
|
+
dynamicTag.bo_ = function tagsToVdom(
|
17
17
|
renderer,
|
18
18
|
renderBody,
|
19
19
|
args,
|
@@ -33,17 +33,17 @@ exports.p = function (domCompat) {
|
|
33
33
|
return renderer;
|
34
34
|
};
|
35
35
|
|
36
|
-
Component.prototype.
|
37
|
-
Component.prototype.
|
38
|
-
Component.prototype.
|
36
|
+
Component.prototype.bp_ =
|
37
|
+
Component.prototype.aE_;
|
38
|
+
Component.prototype.aE_ = function (customEvents, scopeId) {
|
39
39
|
for (const customEvent of customEvents) {
|
40
40
|
customEvent[1] = domCompat.resolveRegistered(
|
41
41
|
customEvent[1],
|
42
|
-
this.
|
42
|
+
this.al_
|
43
43
|
);
|
44
44
|
}
|
45
45
|
|
46
|
-
this.
|
46
|
+
this.bp_(customEvents, scopeId);
|
47
47
|
};
|
48
48
|
|
49
49
|
const TagsCompatId = "tags-compat";
|
@@ -53,9 +53,9 @@ exports.p = function (domCompat) {
|
|
53
53
|
const tagsRenderer = domCompat.resolveRegistered(_.r, global);
|
54
54
|
const newNode = domCompat.render(out, component, tagsRenderer, input);
|
55
55
|
|
56
|
-
out.bf(
|
56
|
+
out.bf("1", component, !newNode);
|
57
57
|
if (newNode) {
|
58
|
-
out.node({
|
58
|
+
out.node({ bq_: () => newNode });
|
59
59
|
}
|
60
60
|
out.ef();
|
61
61
|
},
|
@@ -111,7 +111,7 @@ exports.p = function (domCompat) {
|
|
111
111
|
newRenderer = domCompat.createRenderer(
|
112
112
|
(scope, input) =>
|
113
113
|
renderAndMorph(scope, rendererFromAnywhere, renderer, input),
|
114
|
-
() =>
|
114
|
+
() => _l_()
|
115
115
|
);
|
116
116
|
rendererCache.set(renderer, newRenderer);
|
117
117
|
}
|
@@ -124,22 +124,22 @@ exports.p = function (domCompat) {
|
|
124
124
|
domCompat.init(noopRenderer);
|
125
125
|
|
126
126
|
function renderAndMorph(scope, renderer, renderBody, input) {
|
127
|
-
const out = defaultCreateOut();
|
127
|
+
const out = defaultCreateOut(scope.$global);
|
128
128
|
let host = domCompat.getStartNode(scope);
|
129
129
|
let rootNode = host.fragment;
|
130
130
|
if (!rootNode) {
|
131
|
-
const component = scope.
|
132
|
-
|
133
|
-
rootNode = component.
|
131
|
+
const component = scope.br_ =
|
132
|
+
_m_[scope.m5c];
|
133
|
+
rootNode = component._F_;
|
134
134
|
host = rootNode.startNode;
|
135
|
-
domCompat.setScopeNodes(host, rootNode.endNode);
|
135
|
+
domCompat.setScopeNodes(host, rootNode.startNode, rootNode.endNode);
|
136
136
|
}
|
137
|
-
const existingComponent = scope.
|
137
|
+
const existingComponent = scope.br_;
|
138
138
|
const componentsContext = S_(out);
|
139
139
|
const globalComponentsContext = componentsContext.p_;
|
140
140
|
let customEvents;
|
141
141
|
let normalizedInput;
|
142
|
-
globalComponentsContext.
|
142
|
+
globalComponentsContext.aA_ = existingComponent;
|
143
143
|
out.sync();
|
144
144
|
if (renderer) {
|
145
145
|
const [rawInput] = input;
|
@@ -165,16 +165,16 @@ exports.p = function (domCompat) {
|
|
165
165
|
}
|
166
166
|
|
167
167
|
domCompat.queueEffect(scope, () => {
|
168
|
-
const targetNode = out.
|
168
|
+
const targetNode = out.ai_().aB_;
|
169
169
|
morphdom(rootNode, targetNode, host, componentsContext);
|
170
|
-
const componentDefs = componentsContext.
|
170
|
+
const componentDefs = componentsContext.ag_(
|
171
171
|
getRootNode(host)
|
172
172
|
);
|
173
173
|
const component = componentDefs[0].s_;
|
174
|
-
component.
|
174
|
+
component._F_ = rootNode;
|
175
175
|
component.O_ = normalizedInput;
|
176
176
|
component.W_ = customEvents;
|
177
|
-
scope.
|
177
|
+
scope.br_ = component;
|
178
178
|
});
|
179
179
|
}
|
180
180
|
|
@@ -1,4 +1,7 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const {
|
2
|
+
_g_,
|
3
|
+
__
|
4
|
+
} = require("@internal/components-entry");
|
2
5
|
const {
|
3
6
|
S_
|
4
7
|
} = require("../../components/ComponentsContext");
|
@@ -7,17 +10,46 @@ const defaultCreateOut = require("../../createOut");
|
|
7
10
|
const dynamicTag5 = require("../dynamic-tag");
|
8
11
|
|
9
12
|
exports.p = function (htmlCompat) {
|
13
|
+
const outsByGlobal = new WeakMap();
|
10
14
|
const isMarko6 = (fn) => htmlCompat.isTagsAPI(fn);
|
11
15
|
const isMarko5 = (fn) => !isMarko6(fn);
|
12
16
|
const writeHTML = (result) => {
|
13
|
-
const
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
+
const { out } = result;
|
18
|
+
const $global = out.global;
|
19
|
+
const outs = outsByGlobal.get($global);
|
20
|
+
const writer = out._state.writer;
|
17
21
|
htmlCompat.write(writer._content);
|
22
|
+
writer._content = "";
|
23
|
+
if (outs) {
|
24
|
+
outs.push(out);
|
25
|
+
} else {
|
26
|
+
outsByGlobal.set($global, [out]);
|
27
|
+
}
|
18
28
|
};
|
19
29
|
|
20
|
-
|
30
|
+
htmlCompat.onFlush((chunk) => {
|
31
|
+
const { $global } = chunk.boundary.state;
|
32
|
+
const outs = outsByGlobal.get($global);
|
33
|
+
if (outs) {
|
34
|
+
chunk.render(() => {
|
35
|
+
const defs = [];
|
36
|
+
outsByGlobal.delete($global);
|
37
|
+
for (const out of outs) {
|
38
|
+
if (out.b_) {
|
39
|
+
__(out.b_, defs);
|
40
|
+
}
|
41
|
+
|
42
|
+
out._state.events.emit("c_", out._state.writer);
|
43
|
+
chunk.writeScript(out._state.writer._content);
|
44
|
+
chunk.writeScript(out._state.writer._scripts);
|
45
|
+
}
|
46
|
+
|
47
|
+
chunk.writeScript(_g_($global, defs));
|
48
|
+
});
|
49
|
+
}
|
50
|
+
});
|
51
|
+
|
52
|
+
dynamicTag5.bo_ = function tagsToVdom(
|
21
53
|
tagsRenderer,
|
22
54
|
renderBody,
|
23
55
|
args)
|
@@ -44,9 +76,16 @@ exports.p = function (htmlCompat) {
|
|
44
76
|
function (_, out, componentDef, component) {
|
45
77
|
const input = _.i;
|
46
78
|
const tagsRenderer = _.r;
|
47
|
-
const willRerender = componentDef._wrr;
|
48
|
-
out.bf(
|
49
|
-
htmlCompat.render(
|
79
|
+
const willRerender = componentDef._wrr || htmlCompat.isInResumedBranch();
|
80
|
+
out.bf("1", component, willRerender);
|
81
|
+
htmlCompat.render(
|
82
|
+
tagsRenderer,
|
83
|
+
willRerender,
|
84
|
+
out,
|
85
|
+
component,
|
86
|
+
input, "c_"
|
87
|
+
|
88
|
+
);
|
50
89
|
out.ef();
|
51
90
|
},
|
52
91
|
// eslint-disable-next-line no-constant-condition
|
@@ -64,8 +103,9 @@ exports.p = function (htmlCompat) {
|
|
64
103
|
);
|
65
104
|
|
66
105
|
htmlCompat.patchDynamicTag(function getRenderer(scopeId, accessor, tag) {
|
67
|
-
|
68
|
-
|
106
|
+
if (!tag || isMarko6(tag._ || tag.content || tag)) {
|
107
|
+
return tag;
|
108
|
+
}
|
69
109
|
|
70
110
|
const renderer5 =
|
71
111
|
tag._ ||
|
@@ -79,15 +119,15 @@ exports.p = function (htmlCompat) {
|
|
79
119
|
}
|
80
120
|
return (input, ...args) => {
|
81
121
|
const out = defaultCreateOut(htmlCompat.$global());
|
82
|
-
const branchId = htmlCompat.
|
122
|
+
const branchId = htmlCompat.nextScopeId();
|
83
123
|
let customEvents;
|
84
|
-
htmlCompat.nextScopeId();
|
85
124
|
|
86
125
|
if (renderer5) {
|
87
|
-
const
|
126
|
+
const originalInput = input;
|
127
|
+
input = {};
|
88
128
|
|
89
|
-
for (const key in
|
90
|
-
const value =
|
129
|
+
for (const key in originalInput) {
|
130
|
+
const value = originalInput[key];
|
91
131
|
if (/^on[-A-Z]/.test(key)) {
|
92
132
|
if (typeof value === "function") {
|
93
133
|
(customEvents || (customEvents = [])).push([
|
@@ -97,23 +137,26 @@ exports.p = function (htmlCompat) {
|
|
97
137
|
value.toJSON = htmlCompat.toJSON;
|
98
138
|
}
|
99
139
|
} else {
|
100
|
-
|
140
|
+
input[key === "content" ? "renderBody" : key] = value;
|
101
141
|
}
|
102
142
|
}
|
103
|
-
|
143
|
+
}
|
144
|
+
|
145
|
+
if (renderer5) {
|
146
|
+
renderer5(input, out);
|
104
147
|
} else {
|
105
148
|
renderBody5(out, input, ...args);
|
106
149
|
}
|
107
150
|
|
108
151
|
const componentsContext = S_(out);
|
109
|
-
const
|
110
|
-
if (
|
111
|
-
|
112
|
-
|
152
|
+
const componentDef = componentsContext.b_[0];
|
153
|
+
if (componentDef) {
|
154
|
+
componentDef.s_.W_ = customEvents;
|
155
|
+
componentDef._wrr = true;
|
156
|
+
componentDef.u_ |= 1; // FLAG_WILL_RERENDER_IN_BROWSER
|
157
|
+
htmlCompat.writeSetScopeForComponent(branchId, componentDef.id);
|
113
158
|
}
|
114
159
|
|
115
|
-
initComponentsTag({}, out);
|
116
|
-
|
117
160
|
let async;
|
118
161
|
out.once("finish", (result) => {
|
119
162
|
if (!async) {
|
@@ -9,7 +9,7 @@ var markoAttr = require("./helpers/data-marko");
|
|
9
9
|
var escapeXmlHelper = require("./helpers/escape-xml");
|
10
10
|
var StringWriter = require("./StringWriter");
|
11
11
|
var escapeXmlOrNullish = escapeXmlHelper.x;
|
12
|
-
var escapeXmlString = escapeXmlHelper.
|
12
|
+
var escapeXmlString = escapeXmlHelper.bs_;
|
13
13
|
var missingSetTimeout = typeof setTimeout !== "function";
|
14
14
|
|
15
15
|
function noop() {}
|
@@ -102,10 +102,10 @@ function AsyncStream(global, writer, parentOut) {
|
|
102
102
|
|
103
103
|
this.b_ = null; // ComponentsContext
|
104
104
|
|
105
|
-
this.a__ = null;
|
106
105
|
this.aa_ = null;
|
107
|
-
this.
|
108
|
-
this.
|
106
|
+
this.ab_ = null;
|
107
|
+
this.bd_ = null;
|
108
|
+
this.bt_ = false;
|
109
109
|
}
|
110
110
|
|
111
111
|
AsyncStream.DEFAULT_TIMEOUT = 10000;
|
@@ -126,11 +126,11 @@ AsyncStream.enableAsyncStackTrace = function () {
|
|
126
126
|
var proto = AsyncStream.prototype = {
|
127
127
|
constructor: AsyncStream,
|
128
128
|
B_: typeof document === "object" && document,
|
129
|
-
|
129
|
+
bu_: true,
|
130
130
|
|
131
131
|
[Symbol.asyncIterator]() {
|
132
|
-
if (this.
|
133
|
-
return this.
|
132
|
+
if (this.bv_) {
|
133
|
+
return this.bv_;
|
134
134
|
}
|
135
135
|
|
136
136
|
const originalWriter = this._state.writer;
|
@@ -222,7 +222,7 @@ var proto = AsyncStream.prototype = {
|
|
222
222
|
};
|
223
223
|
}
|
224
224
|
|
225
|
-
return this.
|
225
|
+
return this.bv_ = {
|
226
226
|
next: iteratorNextFn,
|
227
227
|
return: iteratorReturnFn,
|
228
228
|
throw: iteratorReturnFn,
|
@@ -279,7 +279,7 @@ var proto = AsyncStream.prototype = {
|
|
279
279
|
return this;
|
280
280
|
},
|
281
281
|
|
282
|
-
|
282
|
+
ai_: function () {
|
283
283
|
return this._state.writer.toString();
|
284
284
|
},
|
285
285
|
|
@@ -287,7 +287,7 @@ var proto = AsyncStream.prototype = {
|
|
287
287
|
* Legacy...
|
288
288
|
*/
|
289
289
|
getOutput: function () {
|
290
|
-
return this.
|
290
|
+
return this.ai_();
|
291
291
|
},
|
292
292
|
|
293
293
|
toString: function () {
|
@@ -345,7 +345,7 @@ var proto = AsyncStream.prototype = {
|
|
345
345
|
}
|
346
346
|
|
347
347
|
this._lastCount++;
|
348
|
-
newStream.
|
348
|
+
newStream.bt_ = true;
|
349
349
|
}
|
350
350
|
|
351
351
|
name = options.name;
|
@@ -465,7 +465,7 @@ var proto = AsyncStream.prototype = {
|
|
465
465
|
parentOut._handleChildDone(this);
|
466
466
|
}
|
467
467
|
} else {
|
468
|
-
if (childOut.
|
468
|
+
if (childOut.bt_) {
|
469
469
|
this._lastCount--;
|
470
470
|
}
|
471
471
|
|
@@ -645,7 +645,7 @@ var proto = AsyncStream.prototype = {
|
|
645
645
|
return newOut;
|
646
646
|
},
|
647
647
|
|
648
|
-
|
648
|
+
bn_: function (
|
649
649
|
tagName,
|
650
650
|
elementAttrs,
|
651
651
|
key,
|
@@ -684,7 +684,7 @@ var proto = AsyncStream.prototype = {
|
|
684
684
|
this.write(str);
|
685
685
|
},
|
686
686
|
|
687
|
-
|
687
|
+
bl_: function (
|
688
688
|
name,
|
689
689
|
elementAttrs,
|
690
690
|
key,
|
@@ -750,13 +750,13 @@ var proto = AsyncStream.prototype = {
|
|
750
750
|
}
|
751
751
|
},
|
752
752
|
|
753
|
-
|
753
|
+
ah_: function (host) {
|
754
754
|
var node = this._node;
|
755
755
|
|
756
756
|
if (!node) {
|
757
757
|
var nextEl;
|
758
758
|
var fragment;
|
759
|
-
var html = this.
|
759
|
+
var html = this.ai_();
|
760
760
|
if (!host) host = this.B_;
|
761
761
|
var doc = host.ownerDocument || host;
|
762
762
|
|
@@ -802,15 +802,15 @@ var proto = AsyncStream.prototype = {
|
|
802
802
|
},
|
803
803
|
|
804
804
|
c: function (componentDef, key, customEvents) {
|
805
|
-
this.
|
806
|
-
this.
|
807
|
-
this.
|
805
|
+
this.aa_ = componentDef;
|
806
|
+
this.ab_ = key;
|
807
|
+
this.bd_ = customEvents;
|
808
808
|
}
|
809
809
|
};
|
810
810
|
|
811
811
|
// alias:
|
812
812
|
proto.w = proto.write;
|
813
|
-
proto.
|
813
|
+
proto.bm_ = proto.endElement;
|
814
814
|
|
815
815
|
module.exports = AsyncStream;
|
816
816
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
const immediate = require("@internal/set-immediate");
|
4
|
-
const setImmediate = immediate.
|
5
|
-
const clearImmediate = immediate.
|
4
|
+
const setImmediate = immediate._k_;
|
5
|
+
const clearImmediate = immediate.af_;
|
6
6
|
const StringWriter = require("./StringWriter");
|
7
7
|
|
8
8
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
var attrHelper = require("./attr");
|
3
|
-
var notEmptyAttr = attrHelper.
|
4
|
-
var isEmptyAttrValue = attrHelper.
|
3
|
+
var notEmptyAttr = attrHelper.bw_;
|
4
|
+
var isEmptyAttrValue = attrHelper.bx_;
|
5
5
|
var classHelper = require("./class-attr");
|
6
6
|
var styleHelper = require("./style-attr");
|
7
7
|
|
@@ -19,7 +19,7 @@ function Template(typeName) {
|
|
19
19
|
Template.prototype.stream = require("@internal/create-readable");
|
20
20
|
|
21
21
|
var AsyncStream = require("./AsyncStream");
|
22
|
-
require("../createOut").
|
22
|
+
require("../createOut").bf_(
|
23
23
|
Template.prototype.createOut = function createOut(
|
24
24
|
globalData,
|
25
25
|
writer,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var extend = require("raptor-util/extend");
|
4
|
-
var setImmediate = require("@internal/set-immediate").
|
4
|
+
var setImmediate = require("@internal/set-immediate")._k_;
|
5
5
|
var defaultCreateOut = require("./createOut");
|
6
6
|
|
7
7
|
function safeRender(renderFunc, finalData, finalOut, shouldEnd) {
|
@@ -148,7 +148,7 @@ module.exports = function (target, renderer) {
|
|
148
148
|
var finalData;
|
149
149
|
var globalData;
|
150
150
|
var render = renderFunc || this._;
|
151
|
-
var shouldBuffer = this.
|
151
|
+
var shouldBuffer = this._W_;
|
152
152
|
var shouldEnd = true;
|
153
153
|
|
154
154
|
if (data) {
|
@@ -160,7 +160,7 @@ module.exports = function (target, renderer) {
|
|
160
160
|
finalData = {};
|
161
161
|
}
|
162
162
|
|
163
|
-
if (out && out.
|
163
|
+
if (out && out.bu_) {
|
164
164
|
finalOut = out;
|
165
165
|
shouldEnd = false;
|
166
166
|
extend(out.global, globalData);
|