@everymatrix/lottery-ticket 1.55.0 → 1.56.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.
@@ -24,7 +24,7 @@ const NAMESPACE = 'lottery-ticket';
24
24
  const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -381,31 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
381
381
  if (nonce != null) {
382
382
  styleElm.setAttribute("nonce", nonce);
383
383
  }
384
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
385
- if (styleContainerNode.nodeName === "HEAD") {
386
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
387
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
388
- styleContainerNode.insertBefore(styleElm, referenceNode2);
389
- } else if ("host" in styleContainerNode) {
390
- if (supportsConstructableStylesheets) {
391
- const stylesheet = new CSSStyleSheet();
392
- stylesheet.replaceSync(style);
393
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
394
- } else {
395
- const existingStyleContainer = styleContainerNode.querySelector("style");
396
- if (existingStyleContainer) {
397
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
398
- } else {
399
- styleContainerNode.prepend(styleElm);
400
- }
401
- }
402
- } else {
403
- styleContainerNode.append(styleElm);
404
- }
405
- }
406
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
407
- styleContainerNode.insertBefore(styleElm, null);
408
- }
384
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
409
385
  }
410
386
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
411
387
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -428,7 +404,7 @@ var attachStyles = (hostRef) => {
428
404
  const scopeId2 = addStyle(
429
405
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
430
406
  cmpMeta);
431
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
407
+ if (flags & 10 /* needsScopedEncapsulation */) {
432
408
  elm["s-sc"] = scopeId2;
433
409
  elm.classList.add(scopeId2 + "-h");
434
410
  }
@@ -497,11 +473,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
497
473
  if (memberName === "list") {
498
474
  isProp = false;
499
475
  } else if (oldValue == null || elm[memberName] != n) {
500
- if (typeof elm.__lookupSetter__(memberName) === "function") {
501
- elm[memberName] = n;
502
- } else {
503
- elm.setAttribute(memberName, n);
504
- }
476
+ elm[memberName] = n;
505
477
  }
506
478
  } else {
507
479
  elm[memberName] = newValue;
@@ -574,9 +546,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
574
546
  {
575
547
  updateElement(null, newVNode2, isSvgMode);
576
548
  }
577
- const rootNode = elm.getRootNode();
578
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
579
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
549
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
580
550
  elm.classList.add(elm["s-si"] = scopeId);
581
551
  }
582
552
  if (newVNode2.$children$) {
@@ -730,10 +700,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
730
700
  elm.textContent = "";
731
701
  }
732
702
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
733
- } else if (
734
- // don't do this on initial render as it can cause non-hydrated content to be removed
735
- !isInitialRender && BUILD.updatable && oldChildren !== null
736
- ) {
703
+ } else if (oldChildren !== null) {
737
704
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
738
705
  }
739
706
  } else if (oldVNode.$text$ !== text) {
@@ -1005,8 +972,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1005
972
  if (this.hasOwnProperty(propName)) {
1006
973
  newValue = this[propName];
1007
974
  delete this[propName];
1008
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1009
- this[propName] == newValue) {
975
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1010
976
  return;
1011
977
  } else if (propName == null) {
1012
978
  const hostRef = getHostRef(this);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5792d6e6.js');
5
+ const index = require('./index-d6e1a914.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {