@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Rindo Hydrate Platform v4.22.1 | MIT Licensed | https://rindojs.web.app
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
- const existingStyleContainer = styleContainerNode.querySelector("style");
658
- if (existingStyleContainer) {
659
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
657
+ if (supportsConstructableStylesheets) {
658
+ const stylesheet = new CSSStyleSheet();
659
+ stylesheet.replaceSync(style);
660
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
660
661
  } else {
661
- styleContainerNode.prepend(styleElm);
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"] = [...scopeIds]);
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
- (cbName) => Object.defineProperty(prototype, cbName, {
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 elm = BUILD13.lazyLoad ? hostRef.$hostElement$ : this;
1796
- const instance = BUILD13.lazyLoad ? hostRef.$lazyInstance$ : elm;
1802
+ const instance = BUILD13.lazyLoad ? hostRef.$lazyInstance$ : this;
1797
1803
  if (!instance) {
1798
- hostRef.$onReadyPromise$.then((instance2) => {
1799
- const cb = instance2[cbName];
1800
- typeof cb === "function" && cb.call(instance2, ...args);
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
- const hostRef = getHostRef(this);
2461
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
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.1",
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.1 | MIT Licensed | https://rindojs.web.app
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
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/internal",
3
- "version": "4.22.1",
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
- const existingStyleContainer = styleContainerNode.querySelector("style");
1030
- if (existingStyleContainer) {
1031
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1029
+ if (supportsConstructableStylesheets) {
1030
+ const stylesheet = new CSSStyleSheet();
1031
+ stylesheet.replaceSync(style);
1032
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1032
1033
  } else {
1033
- styleContainerNode.prepend(styleElm);
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"] = [...scopeIds]);
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
- (cbName) => Object.defineProperty(prototype, cbName, {
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 elm = import_app_data13.BUILD.lazyLoad ? hostRef.$hostElement$ : this;
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((instance2) => {
2171
- const cb = instance2[cbName];
2172
- typeof cb === "function" && cb.call(instance2, ...args);
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
- const hostRef = getHostRef(this);
2833
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
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.1",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rindo Mock Doc (CommonJS) v4.22.1 | MIT Licensed | https://rindojs.web.app
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.1 | MIT Licensed | https://rindojs.web.app
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
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/mock-doc",
3
- "version": "4.22.1",
3
+ "version": "4.22.3-dev.1738537832.d58c5b1",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core",
3
- "version": "4.22.1",
3
+ "version": "4.22.3-dev.1738537832.d58c5b1",
4
4
  "license": "MIT",
5
5
  "main": "./internal/rindo-core/index.cjs",
6
6
  "module": "./internal/rindo-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Rindo Screenshot v4.22.1 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Screenshot v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rindo/core/screenshot",
3
- "version": "4.22.1",
3
+ "version": "4.22.3-dev.1738537832.d58c5b1",
4
4
  "description": "Rindo Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Rindo Screenshot Pixel Match v4.22.1 | MIT Licensed | https://rindojs.web.app
2
+ Rindo Screenshot Pixel Match v4.22.3-dev.1738537832.d58c5b1 | MIT Licensed | https://rindojs.web.app
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;