marko 6.0.9 → 6.0.11
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/debug/dom.js +97 -84
- package/dist/debug/dom.mjs +97 -84
- package/dist/debug/html.js +98 -70
- package/dist/debug/html.mjs +98 -70
- package/dist/dom/resume.d.ts +0 -1
- package/dist/dom.js +95 -104
- package/dist/dom.mjs +95 -104
- package/dist/html/writer.d.ts +8 -8
- package/dist/html.js +64 -28
- package/dist/html.mjs +64 -28
- package/dist/translator/index.js +41 -62
- package/dist/translator/util/is-only-child-in-parent.d.ts +2 -2
- package/dist/translator/visitors/tag/native-tag.d.ts +2 -2
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
@@ -1790,7 +1790,7 @@ var branchIdKey = Symbol();
|
|
1790
1790
|
function withBranchId(branchId, cb) {
|
1791
1791
|
return withContext(branchIdKey, branchId, cb);
|
1792
1792
|
}
|
1793
|
-
function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1793
|
+
function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1794
1794
|
const resumeBranch = serializeBranch !== 0;
|
1795
1795
|
const resumeMarker = serializeMarker !== 0;
|
1796
1796
|
if (resumeBranch) {
|
@@ -1818,16 +1818,18 @@ function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serialize
|
|
1818
1818
|
} else {
|
1819
1819
|
forOf(list, cb);
|
1820
1820
|
}
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1821
|
+
writeBranchEnd(
|
1822
|
+
scopeId,
|
1823
|
+
accessor,
|
1824
|
+
resumeMarker,
|
1825
|
+
parentEndTag,
|
1826
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1827
|
+
"]" /* BranchEnd */,
|
1828
|
+
scopeId + " " + accessor
|
1829
|
+
)
|
1830
|
+
);
|
1829
1831
|
}
|
1830
|
-
function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1832
|
+
function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1831
1833
|
const resumeBranch = serializeBranch !== 0;
|
1832
1834
|
const resumeMarker = serializeMarker !== 0;
|
1833
1835
|
let branchIds = "";
|
@@ -1851,16 +1853,18 @@ function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch,
|
|
1851
1853
|
} else {
|
1852
1854
|
forOf(list, cb);
|
1853
1855
|
}
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1856
|
+
writeBranchEnd(
|
1857
|
+
scopeId,
|
1858
|
+
accessor,
|
1859
|
+
resumeMarker,
|
1860
|
+
parentEndTag,
|
1861
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1862
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1863
|
+
scopeId + " " + accessor + branchIds
|
1864
|
+
)
|
1865
|
+
);
|
1862
1866
|
}
|
1863
|
-
function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1867
|
+
function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1864
1868
|
const resumeBranch = serializeBranch !== 0;
|
1865
1869
|
const resumeMarker = serializeMarker !== 0;
|
1866
1870
|
if (resumeBranch) {
|
@@ -1887,16 +1891,18 @@ function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeM
|
|
1887
1891
|
} else {
|
1888
1892
|
forIn(obj, cb);
|
1889
1893
|
}
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1894
|
+
writeBranchEnd(
|
1895
|
+
scopeId,
|
1896
|
+
accessor,
|
1897
|
+
resumeMarker,
|
1898
|
+
parentEndTag,
|
1899
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1900
|
+
"]" /* BranchEnd */,
|
1901
|
+
scopeId + " " + accessor
|
1902
|
+
)
|
1903
|
+
);
|
1898
1904
|
}
|
1899
|
-
function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1905
|
+
function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1900
1906
|
const resumeBranch = serializeBranch !== 0;
|
1901
1907
|
const resumeMarker = serializeMarker !== 0;
|
1902
1908
|
let branchIds = "";
|
@@ -1920,16 +1926,18 @@ function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch,
|
|
1920
1926
|
} else {
|
1921
1927
|
forIn(obj, cb);
|
1922
1928
|
}
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1929
|
+
writeBranchEnd(
|
1930
|
+
scopeId,
|
1931
|
+
accessor,
|
1932
|
+
resumeMarker,
|
1933
|
+
parentEndTag,
|
1934
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1935
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1936
|
+
scopeId + " " + accessor + branchIds
|
1937
|
+
)
|
1938
|
+
);
|
1931
1939
|
}
|
1932
|
-
function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1940
|
+
function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1933
1941
|
const resumeBranch = serializeBranch !== 0;
|
1934
1942
|
const resumeMarker = serializeMarker !== 0;
|
1935
1943
|
if (resumeBranch) {
|
@@ -1956,16 +1964,18 @@ function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch,
|
|
1956
1964
|
} else {
|
1957
1965
|
forTo(to, from, step, cb);
|
1958
1966
|
}
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
+
writeBranchEnd(
|
1968
|
+
scopeId,
|
1969
|
+
accessor,
|
1970
|
+
resumeMarker,
|
1971
|
+
parentEndTag,
|
1972
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1973
|
+
"]" /* BranchEnd */,
|
1974
|
+
scopeId + " " + accessor
|
1975
|
+
)
|
1976
|
+
);
|
1967
1977
|
}
|
1968
|
-
function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1978
|
+
function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1969
1979
|
const resumeBranch = serializeBranch !== 0;
|
1970
1980
|
const resumeMarker = serializeMarker !== 0;
|
1971
1981
|
let branchIds = "";
|
@@ -1989,16 +1999,18 @@ function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serial
|
|
1989
1999
|
} else {
|
1990
2000
|
forTo(to, from, step, cb);
|
1991
2001
|
}
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2002
|
+
writeBranchEnd(
|
2003
|
+
scopeId,
|
2004
|
+
accessor,
|
2005
|
+
resumeMarker,
|
2006
|
+
parentEndTag,
|
2007
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
2008
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
2009
|
+
scopeId + " " + accessor + branchIds
|
2010
|
+
)
|
2011
|
+
);
|
2000
2012
|
}
|
2001
|
-
function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker) {
|
2013
|
+
function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
2002
2014
|
const resumeBranch = serializeBranch !== 0;
|
2003
2015
|
const resumeMarker = serializeMarker !== 0;
|
2004
2016
|
const branchId = peekNextScopeId();
|
@@ -2015,16 +2027,18 @@ function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMark
|
|
2015
2027
|
["ConditionalScope:" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
|
2016
2028
|
});
|
2017
2029
|
}
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2030
|
+
writeBranchEnd(
|
2031
|
+
scopeId,
|
2032
|
+
accessor,
|
2033
|
+
resumeMarker,
|
2034
|
+
parentEndTag,
|
2035
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
2036
|
+
"]" /* BranchEnd */,
|
2037
|
+
scopeId + " " + accessor
|
2038
|
+
)
|
2039
|
+
);
|
2026
2040
|
}
|
2027
|
-
function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker,
|
2041
|
+
function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
2028
2042
|
const resumeBranch = serializeBranch !== 0;
|
2029
2043
|
const resumeMarker = serializeMarker !== 0;
|
2030
2044
|
const branchId = peekNextScopeId();
|
@@ -2036,13 +2050,27 @@ function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, ser
|
|
2036
2050
|
["ConditionalScope:" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
|
2037
2051
|
});
|
2038
2052
|
}
|
2053
|
+
writeBranchEnd(
|
2054
|
+
scopeId,
|
2055
|
+
accessor,
|
2056
|
+
resumeMarker,
|
2057
|
+
parentEndTag,
|
2058
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
2059
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
2060
|
+
scopeId + " " + accessor + (shouldWriteBranch ? " " + branchId : "")
|
2061
|
+
)
|
2062
|
+
);
|
2063
|
+
}
|
2064
|
+
function writeBranchEnd(scopeId, accessor, resumeMarker, parentEndTag, mark) {
|
2065
|
+
const endTag = parentEndTag || "";
|
2039
2066
|
if (resumeMarker) {
|
2040
|
-
|
2041
|
-
$chunk.
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2067
|
+
if (mark) {
|
2068
|
+
$chunk.writeHTML(mark + endTag);
|
2069
|
+
} else {
|
2070
|
+
$chunk.writeHTML(endTag + markResumeNode(scopeId, accessor));
|
2071
|
+
}
|
2072
|
+
} else {
|
2073
|
+
$chunk.writeHTML(endTag);
|
2046
2074
|
}
|
2047
2075
|
}
|
2048
2076
|
var writeScope = (scopeId, partialScope) => {
|
package/dist/debug/html.mjs
CHANGED
@@ -1705,7 +1705,7 @@ var branchIdKey = Symbol();
|
|
1705
1705
|
function withBranchId(branchId, cb) {
|
1706
1706
|
return withContext(branchIdKey, branchId, cb);
|
1707
1707
|
}
|
1708
|
-
function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1708
|
+
function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1709
1709
|
const resumeBranch = serializeBranch !== 0;
|
1710
1710
|
const resumeMarker = serializeMarker !== 0;
|
1711
1711
|
if (resumeBranch) {
|
@@ -1733,16 +1733,18 @@ function resumeForOf(list, cb, by, scopeId, accessor, serializeBranch, serialize
|
|
1733
1733
|
} else {
|
1734
1734
|
forOf(list, cb);
|
1735
1735
|
}
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1736
|
+
writeBranchEnd(
|
1737
|
+
scopeId,
|
1738
|
+
accessor,
|
1739
|
+
resumeMarker,
|
1740
|
+
parentEndTag,
|
1741
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1742
|
+
"]" /* BranchEnd */,
|
1743
|
+
scopeId + " " + accessor
|
1744
|
+
)
|
1745
|
+
);
|
1744
1746
|
}
|
1745
|
-
function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1747
|
+
function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1746
1748
|
const resumeBranch = serializeBranch !== 0;
|
1747
1749
|
const resumeMarker = serializeMarker !== 0;
|
1748
1750
|
let branchIds = "";
|
@@ -1766,16 +1768,18 @@ function resumeSingleNodeForOf(list, cb, by, scopeId, accessor, serializeBranch,
|
|
1766
1768
|
} else {
|
1767
1769
|
forOf(list, cb);
|
1768
1770
|
}
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1771
|
+
writeBranchEnd(
|
1772
|
+
scopeId,
|
1773
|
+
accessor,
|
1774
|
+
resumeMarker,
|
1775
|
+
parentEndTag,
|
1776
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1777
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1778
|
+
scopeId + " " + accessor + branchIds
|
1779
|
+
)
|
1780
|
+
);
|
1777
1781
|
}
|
1778
|
-
function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1782
|
+
function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1779
1783
|
const resumeBranch = serializeBranch !== 0;
|
1780
1784
|
const resumeMarker = serializeMarker !== 0;
|
1781
1785
|
if (resumeBranch) {
|
@@ -1802,16 +1806,18 @@ function resumeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeM
|
|
1802
1806
|
} else {
|
1803
1807
|
forIn(obj, cb);
|
1804
1808
|
}
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1809
|
+
writeBranchEnd(
|
1810
|
+
scopeId,
|
1811
|
+
accessor,
|
1812
|
+
resumeMarker,
|
1813
|
+
parentEndTag,
|
1814
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1815
|
+
"]" /* BranchEnd */,
|
1816
|
+
scopeId + " " + accessor
|
1817
|
+
)
|
1818
|
+
);
|
1813
1819
|
}
|
1814
|
-
function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1820
|
+
function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1815
1821
|
const resumeBranch = serializeBranch !== 0;
|
1816
1822
|
const resumeMarker = serializeMarker !== 0;
|
1817
1823
|
let branchIds = "";
|
@@ -1835,16 +1841,18 @@ function resumeSingleNodeForIn(obj, cb, by, scopeId, accessor, serializeBranch,
|
|
1835
1841
|
} else {
|
1836
1842
|
forIn(obj, cb);
|
1837
1843
|
}
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1844
|
+
writeBranchEnd(
|
1845
|
+
scopeId,
|
1846
|
+
accessor,
|
1847
|
+
resumeMarker,
|
1848
|
+
parentEndTag,
|
1849
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1850
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1851
|
+
scopeId + " " + accessor + branchIds
|
1852
|
+
)
|
1853
|
+
);
|
1846
1854
|
}
|
1847
|
-
function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker) {
|
1855
|
+
function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1848
1856
|
const resumeBranch = serializeBranch !== 0;
|
1849
1857
|
const resumeMarker = serializeMarker !== 0;
|
1850
1858
|
if (resumeBranch) {
|
@@ -1871,16 +1879,18 @@ function resumeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch,
|
|
1871
1879
|
} else {
|
1872
1880
|
forTo(to, from, step, cb);
|
1873
1881
|
}
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
+
writeBranchEnd(
|
1883
|
+
scopeId,
|
1884
|
+
accessor,
|
1885
|
+
resumeMarker,
|
1886
|
+
parentEndTag,
|
1887
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1888
|
+
"]" /* BranchEnd */,
|
1889
|
+
scopeId + " " + accessor
|
1890
|
+
)
|
1891
|
+
);
|
1882
1892
|
}
|
1883
|
-
function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker,
|
1893
|
+
function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1884
1894
|
const resumeBranch = serializeBranch !== 0;
|
1885
1895
|
const resumeMarker = serializeMarker !== 0;
|
1886
1896
|
let branchIds = "";
|
@@ -1904,16 +1914,18 @@ function resumeSingleNodeForTo(to, from, step, cb, by, scopeId, accessor, serial
|
|
1904
1914
|
} else {
|
1905
1915
|
forTo(to, from, step, cb);
|
1906
1916
|
}
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1917
|
+
writeBranchEnd(
|
1918
|
+
scopeId,
|
1919
|
+
accessor,
|
1920
|
+
resumeMarker,
|
1921
|
+
parentEndTag,
|
1922
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1923
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1924
|
+
scopeId + " " + accessor + branchIds
|
1925
|
+
)
|
1926
|
+
);
|
1915
1927
|
}
|
1916
|
-
function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker) {
|
1928
|
+
function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1917
1929
|
const resumeBranch = serializeBranch !== 0;
|
1918
1930
|
const resumeMarker = serializeMarker !== 0;
|
1919
1931
|
const branchId = peekNextScopeId();
|
@@ -1930,16 +1942,18 @@ function resumeConditional(cb, scopeId, accessor, serializeBranch, serializeMark
|
|
1930
1942
|
["ConditionalScope:" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
|
1931
1943
|
});
|
1932
1944
|
}
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1945
|
+
writeBranchEnd(
|
1946
|
+
scopeId,
|
1947
|
+
accessor,
|
1948
|
+
resumeMarker,
|
1949
|
+
parentEndTag,
|
1950
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1951
|
+
"]" /* BranchEnd */,
|
1952
|
+
scopeId + " " + accessor
|
1953
|
+
)
|
1954
|
+
);
|
1941
1955
|
}
|
1942
|
-
function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker,
|
1956
|
+
function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, serializeMarker, parentEndTag) {
|
1943
1957
|
const resumeBranch = serializeBranch !== 0;
|
1944
1958
|
const resumeMarker = serializeMarker !== 0;
|
1945
1959
|
const branchId = peekNextScopeId();
|
@@ -1951,13 +1965,27 @@ function resumeSingleNodeConditional(cb, scopeId, accessor, serializeBranch, ser
|
|
1951
1965
|
["ConditionalScope:" /* ConditionalScope */ + accessor]: writeScope(branchId, {})
|
1952
1966
|
});
|
1953
1967
|
}
|
1968
|
+
writeBranchEnd(
|
1969
|
+
scopeId,
|
1970
|
+
accessor,
|
1971
|
+
resumeMarker,
|
1972
|
+
parentEndTag,
|
1973
|
+
resumeMarker && (!parentEndTag || resumeBranch) && $chunk.boundary.state.mark(
|
1974
|
+
parentEndTag ? "=" /* BranchSingleNodeOnlyChildInParent */ : "|" /* BranchSingleNode */,
|
1975
|
+
scopeId + " " + accessor + (shouldWriteBranch ? " " + branchId : "")
|
1976
|
+
)
|
1977
|
+
);
|
1978
|
+
}
|
1979
|
+
function writeBranchEnd(scopeId, accessor, resumeMarker, parentEndTag, mark) {
|
1980
|
+
const endTag = parentEndTag || "";
|
1954
1981
|
if (resumeMarker) {
|
1955
|
-
|
1956
|
-
$chunk.
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1982
|
+
if (mark) {
|
1983
|
+
$chunk.writeHTML(mark + endTag);
|
1984
|
+
} else {
|
1985
|
+
$chunk.writeHTML(endTag + markResumeNode(scopeId, accessor));
|
1986
|
+
}
|
1987
|
+
} else {
|
1988
|
+
$chunk.writeHTML(endTag);
|
1961
1989
|
}
|
1962
1990
|
}
|
1963
1991
|
var writeScope = (scopeId, partialScope) => {
|
package/dist/dom/resume.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { type Scope } from "../common/types";
|
2
2
|
import type { Signal } from "./signals";
|
3
|
-
export declare let branchesEnabled: undefined | 1;
|
4
3
|
export declare function enableBranches(): void;
|
5
4
|
export declare function init(runtimeId?: string): void;
|
6
5
|
export declare let isResuming: undefined | 0 | 1;
|