@jxsuite/runtime 1.3.0 → 1.3.2
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/runtime.js +11 -3
- package/dist/runtime.js.map +4 -4
- package/package.json +3 -3
- package/src/runtime.ts +31 -1
package/dist/runtime.js
CHANGED
|
@@ -1925,7 +1925,7 @@ function isTemplateString(value) {
|
|
|
1925
1925
|
return typeof value === "string" && value.includes("${");
|
|
1926
1926
|
}
|
|
1927
1927
|
function bodyReturnsValue(body) {
|
|
1928
|
-
return /\breturn\b/.test(body);
|
|
1928
|
+
return /\breturn\b[^\S\n]*(?![;}\s]|$)/.test(body);
|
|
1929
1929
|
}
|
|
1930
1930
|
function paramNames(parameters) {
|
|
1931
1931
|
if (!parameters) {
|
|
@@ -2069,6 +2069,10 @@ var _serverFnConfig = { skip: false };
|
|
|
2069
2069
|
function setSkipServerFunctions(v) {
|
|
2070
2070
|
_serverFnConfig.skip = v;
|
|
2071
2071
|
}
|
|
2072
|
+
var _autoRequestConfig = { skip: false };
|
|
2073
|
+
function setSkipAutoRequests(v) {
|
|
2074
|
+
_autoRequestConfig.skip = v;
|
|
2075
|
+
}
|
|
2072
2076
|
var _resolveToken = null;
|
|
2073
2077
|
function setResolveToken(token) {
|
|
2074
2078
|
_resolveToken = token || null;
|
|
@@ -2432,6 +2436,9 @@ function renderNode(def2, state, options) {
|
|
|
2432
2436
|
return renderCustomElementWithProps(def2, localState, options, path);
|
|
2433
2437
|
}
|
|
2434
2438
|
if (def2.$props) {
|
|
2439
|
+
if (tagName.includes("-")) {
|
|
2440
|
+
return renderCustomElementWithProps(def2, localState, options, path);
|
|
2441
|
+
}
|
|
2435
2442
|
const { $props: _$props, ...rest } = def2;
|
|
2436
2443
|
return renderNode(rest, mergeProps(def2, localState), options);
|
|
2437
2444
|
}
|
|
@@ -2774,7 +2781,7 @@ async function resolvePrototype(def2, state, key, base) {
|
|
|
2774
2781
|
const s = ref(null);
|
|
2775
2782
|
const debounceMs = def2.debounce ?? 0;
|
|
2776
2783
|
let debounceTimer = null;
|
|
2777
|
-
if (!def2.manual) {
|
|
2784
|
+
if (!def2.manual && !_autoRequestConfig.skip) {
|
|
2778
2785
|
effect(() => {
|
|
2779
2786
|
let url;
|
|
2780
2787
|
if (isTemplateString(def2.url)) {
|
|
@@ -3608,6 +3615,7 @@ export {
|
|
|
3608
3615
|
setStampPropBindings,
|
|
3609
3616
|
setSkipServerFunctions,
|
|
3610
3617
|
setSkipContentResolution,
|
|
3618
|
+
setSkipAutoRequests,
|
|
3611
3619
|
setRootMedia,
|
|
3612
3620
|
setResolveToken,
|
|
3613
3621
|
setCanvasViewportTranspose,
|
|
@@ -3635,5 +3643,5 @@ export {
|
|
|
3635
3643
|
COLOR_SCHEME_ATTR
|
|
3636
3644
|
};
|
|
3637
3645
|
|
|
3638
|
-
//# debugId=
|
|
3646
|
+
//# debugId=6FDC0E14ACE1C87E64756E2164756E21
|
|
3639
3647
|
//# sourceMappingURL=runtime.js.map
|