@rindo/core 4.22.1 → 4.22.3-dev.1738537832.d58c5b1
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +13 -6
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +28 -18
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +28 -18
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -1
- package/internal/package.json +1 -1
- package/internal/rindo-public-runtime.d.ts +2 -0
- package/internal/testing/index.js +27 -17
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4 -1
- package/mock-doc/index.js +4 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +12 -12
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rindo Hydrate Platform v4.22.
|
|
2
|
+
Rindo Hydrate Platform v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -654,11 +654,17 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
654
654
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
655
655
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
656
656
|
} else if ("host" in styleContainerNode) {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
657
|
+
if (supportsConstructableStylesheets) {
|
|
658
|
+
const stylesheet = new CSSStyleSheet();
|
|
659
|
+
stylesheet.replaceSync(style);
|
|
660
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
660
661
|
} else {
|
|
661
|
-
styleContainerNode.
|
|
662
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
663
|
+
if (existingStyleContainer) {
|
|
664
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
665
|
+
} else {
|
|
666
|
+
styleContainerNode.prepend(styleElm);
|
|
667
|
+
}
|
|
662
668
|
}
|
|
663
669
|
} else {
|
|
664
670
|
styleContainerNode.append(styleElm);
|
|
@@ -1302,7 +1308,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
1302
1308
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1303
1309
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1304
1310
|
if (scopeIds.size) {
|
|
1305
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
1311
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
1306
1312
|
if (element["s-ol"] || iterateChildNodes) {
|
|
1307
1313
|
for (const childNode of Array.from(element.childNodes)) {
|
|
1308
1314
|
updateElementScopeIds(childNode, element, true);
|
|
@@ -1788,24 +1794,24 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1788
1794
|
var _a, _b;
|
|
1789
1795
|
const prototype = Cstr.prototype;
|
|
1790
1796
|
if (BUILD13.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
1791
|
-
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
|
|
1792
|
-
|
|
1797
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
1798
|
+
const originalFormAssociatedCallback = prototype[cbName];
|
|
1799
|
+
Object.defineProperty(prototype, cbName, {
|
|
1793
1800
|
value(...args) {
|
|
1794
1801
|
const hostRef = getHostRef(this);
|
|
1795
|
-
const
|
|
1796
|
-
const instance = BUILD13.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
1802
|
+
const instance = BUILD13.lazyLoad ? hostRef.$lazyInstance$ : this;
|
|
1797
1803
|
if (!instance) {
|
|
1798
|
-
hostRef.$onReadyPromise$.then((
|
|
1799
|
-
const cb =
|
|
1800
|
-
typeof cb === "function" && cb.call(
|
|
1804
|
+
hostRef.$onReadyPromise$.then((asyncInstance) => {
|
|
1805
|
+
const cb = asyncInstance[cbName];
|
|
1806
|
+
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
1801
1807
|
});
|
|
1802
1808
|
} else {
|
|
1803
|
-
const cb = instance[cbName];
|
|
1809
|
+
const cb = BUILD13.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;
|
|
1804
1810
|
typeof cb === "function" && cb.call(instance, ...args);
|
|
1805
1811
|
}
|
|
1806
1812
|
}
|
|
1807
|
-
})
|
|
1808
|
-
);
|
|
1813
|
+
});
|
|
1814
|
+
});
|
|
1809
1815
|
}
|
|
1810
1816
|
if (BUILD13.member && cmpMeta.$members$ || BUILD13.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1811
1817
|
if (BUILD13.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
|
|
@@ -2452,13 +2458,17 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
2452
2458
|
}
|
|
2453
2459
|
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
2454
2460
|
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
2461
|
+
let hasHostListenerAttached = false;
|
|
2455
2462
|
Object.assign(Cstr.prototype, {
|
|
2456
2463
|
__registerHost() {
|
|
2457
2464
|
registerHost(this, cmpMeta);
|
|
2458
2465
|
},
|
|
2459
2466
|
connectedCallback() {
|
|
2460
|
-
|
|
2461
|
-
|
|
2467
|
+
if (!hasHostListenerAttached) {
|
|
2468
|
+
const hostRef = getHostRef(this);
|
|
2469
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
2470
|
+
hasHostListenerAttached = true;
|
|
2471
|
+
}
|
|
2462
2472
|
connectedCallback(this);
|
|
2463
2473
|
if (BUILD18.connectedCallback && originalConnectedCallback) {
|
|
2464
2474
|
originalConnectedCallback.call(this);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal/hydrate",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.3-dev.1738537832.d58c5b1",
|
|
4
4
|
"description": "Rindo internal hydrate platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rindo Hydrate Runner v4.22.
|
|
2
|
+
Rindo Hydrate Runner v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -11972,6 +11972,9 @@ var MockAnchorElement = class extends MockHTMLElement {
|
|
|
11972
11972
|
this.setAttribute("href", value);
|
|
11973
11973
|
}
|
|
11974
11974
|
get pathname() {
|
|
11975
|
+
if (!this.href) {
|
|
11976
|
+
return "";
|
|
11977
|
+
}
|
|
11975
11978
|
return new URL(this.href).pathname;
|
|
11976
11979
|
}
|
|
11977
11980
|
};
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.3-dev.1738537832.d58c5b1",
|
|
4
4
|
"description": "Rindo internals only to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -1015,6 +1015,8 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1018
1020
|
crossOrigin?: string;
|
|
1019
1021
|
crossorigin?: string;
|
|
1020
1022
|
loop?: boolean;
|
|
@@ -1026,11 +1026,17 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1026
1026
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
1027
1027
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
1028
1028
|
} else if ("host" in styleContainerNode) {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1029
|
+
if (supportsConstructableStylesheets) {
|
|
1030
|
+
const stylesheet = new CSSStyleSheet();
|
|
1031
|
+
stylesheet.replaceSync(style);
|
|
1032
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
1032
1033
|
} else {
|
|
1033
|
-
styleContainerNode.
|
|
1034
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
1035
|
+
if (existingStyleContainer) {
|
|
1036
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
1037
|
+
} else {
|
|
1038
|
+
styleContainerNode.prepend(styleElm);
|
|
1039
|
+
}
|
|
1034
1040
|
}
|
|
1035
1041
|
} else {
|
|
1036
1042
|
styleContainerNode.append(styleElm);
|
|
@@ -1674,7 +1680,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
|
1674
1680
|
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
1675
1681
|
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
1676
1682
|
if (scopeIds.size) {
|
|
1677
|
-
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] =
|
|
1683
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
1678
1684
|
if (element["s-ol"] || iterateChildNodes) {
|
|
1679
1685
|
for (const childNode of Array.from(element.childNodes)) {
|
|
1680
1686
|
updateElementScopeIds(childNode, element, true);
|
|
@@ -2160,24 +2166,24 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
2160
2166
|
var _a, _b;
|
|
2161
2167
|
const prototype = Cstr.prototype;
|
|
2162
2168
|
if (import_app_data13.BUILD.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {
|
|
2163
|
-
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach(
|
|
2164
|
-
|
|
2169
|
+
FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {
|
|
2170
|
+
const originalFormAssociatedCallback = prototype[cbName];
|
|
2171
|
+
Object.defineProperty(prototype, cbName, {
|
|
2165
2172
|
value(...args) {
|
|
2166
2173
|
const hostRef = getHostRef(this);
|
|
2167
|
-
const
|
|
2168
|
-
const instance = import_app_data13.BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
2174
|
+
const instance = import_app_data13.BUILD.lazyLoad ? hostRef.$lazyInstance$ : this;
|
|
2169
2175
|
if (!instance) {
|
|
2170
|
-
hostRef.$onReadyPromise$.then((
|
|
2171
|
-
const cb =
|
|
2172
|
-
typeof cb === "function" && cb.call(
|
|
2176
|
+
hostRef.$onReadyPromise$.then((asyncInstance) => {
|
|
2177
|
+
const cb = asyncInstance[cbName];
|
|
2178
|
+
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
2173
2179
|
});
|
|
2174
2180
|
} else {
|
|
2175
|
-
const cb = instance[cbName];
|
|
2181
|
+
const cb = import_app_data13.BUILD.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;
|
|
2176
2182
|
typeof cb === "function" && cb.call(instance, ...args);
|
|
2177
2183
|
}
|
|
2178
2184
|
}
|
|
2179
|
-
})
|
|
2180
|
-
);
|
|
2185
|
+
});
|
|
2186
|
+
});
|
|
2181
2187
|
}
|
|
2182
2188
|
if (import_app_data13.BUILD.member && cmpMeta.$members$ || import_app_data13.BUILD.watchCallback && (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
2183
2189
|
if (import_app_data13.BUILD.watchCallback && Cstr.watchers && !cmpMeta.$watchers$) {
|
|
@@ -2824,13 +2830,17 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
2824
2830
|
}
|
|
2825
2831
|
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
2826
2832
|
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
2833
|
+
let hasHostListenerAttached = false;
|
|
2827
2834
|
Object.assign(Cstr.prototype, {
|
|
2828
2835
|
__registerHost() {
|
|
2829
2836
|
registerHost(this, cmpMeta);
|
|
2830
2837
|
},
|
|
2831
2838
|
connectedCallback() {
|
|
2832
|
-
|
|
2833
|
-
|
|
2839
|
+
if (!hasHostListenerAttached) {
|
|
2840
|
+
const hostRef = getHostRef(this);
|
|
2841
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
2842
|
+
hasHostListenerAttached = true;
|
|
2843
|
+
}
|
|
2834
2844
|
connectedCallback(this);
|
|
2835
2845
|
if (import_app_data18.BUILD.connectedCallback && originalConnectedCallback) {
|
|
2836
2846
|
originalConnectedCallback.call(this);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindo/core/internal/testing",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.3-dev.1738537832.d58c5b1",
|
|
4
4
|
"description": "Rindo internal testing platform to be imported by the Rindo Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Mock Doc (CommonJS) v4.22.
|
|
2
|
+
Rindo Mock Doc (CommonJS) v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -7844,6 +7844,9 @@ var MockAnchorElement = class extends MockHTMLElement {
|
|
|
7844
7844
|
this.setAttribute("href", value);
|
|
7845
7845
|
}
|
|
7846
7846
|
get pathname() {
|
|
7847
|
+
if (!this.href) {
|
|
7848
|
+
return "";
|
|
7849
|
+
}
|
|
7847
7850
|
return new URL(this.href).pathname;
|
|
7848
7851
|
}
|
|
7849
7852
|
};
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Mock Doc v4.22.
|
|
2
|
+
Rindo Mock Doc v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// src/runtime/runtime-constants.ts
|
|
@@ -7791,6 +7791,9 @@ var MockAnchorElement = class extends MockHTMLElement {
|
|
|
7791
7791
|
this.setAttribute("href", value);
|
|
7792
7792
|
}
|
|
7793
7793
|
get pathname() {
|
|
7794
|
+
if (!this.href) {
|
|
7795
|
+
return "";
|
|
7796
|
+
}
|
|
7794
7797
|
return new URL(this.href).pathname;
|
|
7795
7798
|
}
|
|
7796
7799
|
};
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED