@everymatrix/general-news-notification 1.56.0 → 1.56.3

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.
Files changed (32) hide show
  1. package/dist/cjs/{general-news-notification-aa2ee485.js → general-news-notification-cc63ab71.js} +15 -32
  2. package/dist/cjs/general-news-notification.cjs.entry.js +2 -2
  3. package/dist/cjs/general-news-notification.cjs.js +2 -2
  4. package/dist/cjs/{index-c68ec8a4.js → index-a2d41176.js} +71 -208
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +2 -2
  8. package/dist/collection/components/general-news-notification/general-news-notification.js +14 -51
  9. package/dist/esm/{general-news-notification-a1ae79a0.js → general-news-notification-56380f40.js} +15 -32
  10. package/dist/esm/general-news-notification.entry.js +2 -2
  11. package/dist/esm/general-news-notification.js +3 -3
  12. package/dist/esm/{index-0fb940ba.js → index-4f53ce97.js} +71 -208
  13. package/dist/esm/index.js +2 -2
  14. package/dist/esm/loader.js +2 -2
  15. package/dist/general-news-notification/general-news-notification.esm.js +1 -1
  16. package/dist/general-news-notification/index.esm.js +1 -1
  17. package/dist/general-news-notification/p-1e0da72c.js +1 -0
  18. package/dist/general-news-notification/p-3b72c03a.entry.js +1 -0
  19. package/dist/general-news-notification/p-b1020fc5.js +2 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-news-notification/.stencil/packages/stencil/general-news-notification/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-news-notification/.stencil/packages/stencil/general-news-notification/stencil.config.dev.d.ts +2 -0
  22. package/dist/types/stencil-public-runtime.d.ts +0 -6
  23. package/package.json +1 -1
  24. package/dist/general-news-notification/p-12d5ca70.js +0 -2
  25. package/dist/general-news-notification/p-62bd067b.entry.js +0 -1
  26. package/dist/general-news-notification/p-8d94285b.js +0 -1
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-news-notification/.stencil/packages/stencil/general-news-notification/stencil.config.d.ts +0 -2
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-news-notification/.stencil/packages/stencil/general-news-notification/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-news-notification/.stencil/tools/plugins/index.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-news-notification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-news-notification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-news-notification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-c68ec8a4.js');
3
+ const index = require('./index-a2d41176.js');
4
4
 
5
5
  const getDevice = () => {
6
6
  let userAgent = window.navigator.userAgent;
@@ -128,37 +128,6 @@ const GeneralNewsNotificationStyle0 = generalNewsNotificationCss;
128
128
  const GeneralNewsNotification = class {
129
129
  constructor(hostRef) {
130
130
  index.registerInstance(this, hostRef);
131
- /**
132
- * Animation types
133
- */
134
- this.animationType = 'static';
135
- /**
136
- * Default speed of the scroll animation in seconds
137
- */
138
- this.speed = 30;
139
- /**
140
- * Option to minimize
141
- */
142
- this.canMinimize = false;
143
- /**
144
- * Option to close the notification
145
- */
146
- this.canClose = false;
147
- /**
148
- * Client custom styling via string
149
- */
150
- this.clientStyling = '';
151
- /**
152
- * Client custom styling via url content
153
- */
154
- this.clientStylingUrl = '';
155
- /**
156
- * The translationurl
157
- */
158
- this.translationUrl = '';
159
- this.isMinimized = false;
160
- this.isClosed = false;
161
- this.isLoading = true;
162
131
  this.connectedCallback = () => {
163
132
  if (this.cmsEndpoint && this.language) {
164
133
  this.getNotificationMessage();
@@ -198,6 +167,20 @@ const GeneralNewsNotification = class {
198
167
  this.closeNotification = () => {
199
168
  this.isClosed = true;
200
169
  };
170
+ this.cmsEndpoint = undefined;
171
+ this.language = undefined;
172
+ this.animationType = 'static';
173
+ this.speed = 30;
174
+ this.canMinimize = false;
175
+ this.canClose = false;
176
+ this.mbSource = undefined;
177
+ this.clientStyling = '';
178
+ this.clientStylingUrl = '';
179
+ this.translationUrl = '';
180
+ this.message = undefined;
181
+ this.isMinimized = false;
182
+ this.isClosed = false;
183
+ this.isLoading = true;
201
184
  }
202
185
  watchEndpoint(newValue, oldValue) {
203
186
  if (newValue && newValue != oldValue && this.cmsEndpoint && this.language) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const generalNewsNotification = require('./general-news-notification-aa2ee485.js');
6
- require('./index-c68ec8a4.js');
5
+ const generalNewsNotification = require('./general-news-notification-cc63ab71.js');
6
+ require('./index-a2d41176.js');
7
7
 
8
8
 
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c68ec8a4.js');
5
+ const index = require('./index-a2d41176.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-news-notification.cjs.js', document.baseURI).href));
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-news-notification';
24
- const BUILD = /* general-news-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-news-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, 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.26.0 | 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) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/utils/constants.ts
36
- var SVG_NS = "http://www.w3.org/2000/svg";
37
- var HTML_NS = "http://www.w3.org/1999/xhtml";
38
-
39
- // src/client/client-host-ref.ts
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -165,6 +150,14 @@ var flush = () => {
165
150
  };
166
151
  var nextTick = (cb) => promiseResolve().then(cb);
167
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+ var SVG_NS = "http://www.w3.org/2000/svg";
157
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
158
+
159
+ // src/utils/helpers.ts
160
+ var isDef = (v) => v != null;
168
161
  var isComplexType = (o) => {
169
162
  o = typeof o;
170
163
  return o === "object" || o === "function";
@@ -342,40 +335,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
342
335
  }
343
336
  if (!appliedStyles.has(scopeId2)) {
344
337
  {
345
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
338
+ styleElm = doc.createElement("style");
346
339
  styleElm.innerHTML = style;
347
340
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
348
341
  if (nonce != null) {
349
342
  styleElm.setAttribute("nonce", nonce);
350
343
  }
351
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
352
- if (styleContainerNode.nodeName === "HEAD") {
353
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
354
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
355
- styleContainerNode.insertBefore(
356
- styleElm,
357
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
358
- );
359
- } else if ("host" in styleContainerNode) {
360
- if (supportsConstructableStylesheets) {
361
- const stylesheet = new CSSStyleSheet();
362
- stylesheet.replaceSync(style);
363
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
364
- } else {
365
- const existingStyleContainer = styleContainerNode.querySelector("style");
366
- if (existingStyleContainer) {
367
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
368
- } else {
369
- styleContainerNode.prepend(styleElm);
370
- }
371
- }
372
- } else {
373
- styleContainerNode.append(styleElm);
374
- }
375
- }
376
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
377
- styleContainerNode.insertBefore(styleElm, null);
378
- }
344
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
379
345
  }
380
346
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
381
347
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -398,25 +364,23 @@ var attachStyles = (hostRef) => {
398
364
  const scopeId2 = addStyle(
399
365
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
400
366
  cmpMeta);
401
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
367
+ if (flags & 10 /* needsScopedEncapsulation */) {
402
368
  elm["s-sc"] = scopeId2;
403
369
  elm.classList.add(scopeId2 + "-h");
404
370
  }
405
371
  endAttachStyles();
406
372
  };
407
373
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
408
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
374
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
409
375
  if (oldValue !== newValue) {
410
376
  let isProp = isMemberInElement(elm, memberName);
411
377
  let ln = memberName.toLowerCase();
412
378
  if (memberName === "class") {
413
379
  const classList = elm.classList;
414
380
  const oldClasses = parseClassList(oldValue);
415
- let newClasses = parseClassList(newValue);
416
- {
417
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
418
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
- }
381
+ const newClasses = parseClassList(newValue);
382
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
383
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
420
384
  } else if (memberName === "style") {
421
385
  {
422
386
  for (const prop in oldValue) {
@@ -469,13 +433,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
469
433
  if (memberName === "list") {
470
434
  isProp = false;
471
435
  } else if (oldValue == null || elm[memberName] != n) {
472
- if (typeof elm.__lookupSetter__(memberName) === "function") {
473
- elm[memberName] = n;
474
- } else {
475
- elm.setAttribute(memberName, n);
476
- }
436
+ elm[memberName] = n;
477
437
  }
478
- } else if (elm[memberName] !== newValue) {
438
+ } else {
479
439
  elm[memberName] = newValue;
480
440
  }
481
441
  } catch (e) {
@@ -497,44 +457,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
497
457
  }
498
458
  };
499
459
  var parseClassListRegex = /\s/;
500
- var parseClassList = (value) => {
501
- if (typeof value === "object" && value && "baseVal" in value) {
502
- value = value.baseVal;
503
- }
504
- if (!value || typeof value !== "string") {
505
- return [];
506
- }
507
- return value.split(parseClassListRegex);
508
- };
460
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
509
461
  var CAPTURE_EVENT_SUFFIX = "Capture";
510
462
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
511
463
 
512
464
  // src/runtime/vdom/update-element.ts
513
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
465
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
514
466
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
515
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
516
- const newVnodeAttrs = newVnode.$attrs$ || {};
467
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
468
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
517
469
  {
518
470
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
519
471
  if (!(memberName in newVnodeAttrs)) {
520
- setAccessor(
521
- elm,
522
- memberName,
523
- oldVnodeAttrs[memberName],
524
- void 0,
525
- isSvgMode2,
526
- newVnode.$flags$);
472
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
527
473
  }
528
474
  }
529
475
  }
530
476
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
531
- setAccessor(
532
- elm,
533
- memberName,
534
- oldVnodeAttrs[memberName],
535
- newVnodeAttrs[memberName],
536
- isSvgMode2,
537
- newVnode.$flags$);
477
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
538
478
  }
539
479
  };
540
480
  function sortedAttrNames(attrNames) {
@@ -546,10 +486,13 @@ function sortedAttrNames(attrNames) {
546
486
  attrNames
547
487
  );
548
488
  }
489
+
490
+ // src/runtime/vdom/vdom-render.ts
491
+ var scopeId;
549
492
  var hostTagName;
550
493
  var useNativeShadowDom = false;
551
494
  var isSvgMode = false;
552
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
495
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
553
496
  const newVNode2 = newParentVNode.$children$[childIndex];
554
497
  let i2 = 0;
555
498
  let elm;
@@ -570,6 +513,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
570
513
  {
571
514
  updateElement(null, newVNode2, isSvgMode);
572
515
  }
516
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
517
+ elm.classList.add(elm["s-si"] = scopeId);
518
+ }
573
519
  if (newVNode2.$children$) {
574
520
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
575
521
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -681,9 +627,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
681
627
  };
682
628
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
683
629
  if (leftVNode.$tag$ === rightVNode.$tag$) {
684
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
685
- leftVNode.$key$ = rightVNode.$key$;
686
- }
687
630
  return true;
688
631
  }
689
632
  return false;
@@ -710,10 +653,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
710
653
  elm.textContent = "";
711
654
  }
712
655
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
713
- } else if (
714
- // don't do this on initial render as it can cause non-hydrated content to be removed
715
- !isInitialRender && BUILD.updatable && oldChildren !== null
716
- ) {
656
+ } else if (oldChildren !== null) {
717
657
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
718
658
  }
719
659
  if (isSvgMode && tag === "svg") {
@@ -730,9 +670,8 @@ var nullifyVNodeRefs = (vNode) => {
730
670
  }
731
671
  };
732
672
  var insertBefore = (parent, newNode, reference) => {
733
- {
734
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
735
- }
673
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
674
+ return inserted;
736
675
  };
737
676
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
677
  const hostElm = hostRef.$hostElement$;
@@ -751,21 +690,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
751
690
  rootVnode.$flags$ |= 4 /* isHost */;
752
691
  hostRef.$vnode$ = rootVnode;
753
692
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
754
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
693
+ {
694
+ scopeId = hostElm["s-sc"];
695
+ }
696
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
755
697
  patch(oldVNode, rootVnode, isInitialLoad);
756
698
  };
757
699
 
758
700
  // src/runtime/update-component.ts
759
701
  var attachToAncestor = (hostRef, ancestorComponent) => {
760
702
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
761
- const index = ancestorComponent["s-p"].push(
762
- new Promise(
763
- (r) => hostRef.$onRenderResolve$ = () => {
764
- ancestorComponent["s-p"].splice(index - 1, 1);
765
- r();
766
- }
767
- )
768
- );
703
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
769
704
  }
770
705
  };
771
706
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -792,7 +727,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
792
727
  let maybePromise;
793
728
  if (isInitialLoad) {
794
729
  {
795
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
730
+ maybePromise = safeCall(instance, "componentWillLoad");
796
731
  }
797
732
  }
798
733
  endSchedule();
@@ -866,7 +801,7 @@ var postUpdateComponent = (hostRef) => {
866
801
  addHydratedFlag(elm);
867
802
  }
868
803
  {
869
- safeCall(instance, "componentDidLoad", void 0, elm);
804
+ safeCall(instance, "componentDidLoad");
870
805
  }
871
806
  endPostUpdate();
872
807
  {
@@ -890,14 +825,17 @@ var postUpdateComponent = (hostRef) => {
890
825
  }
891
826
  };
892
827
  var appDidLoad = (who) => {
828
+ {
829
+ addHydratedFlag(doc.documentElement);
830
+ }
893
831
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
894
832
  };
895
- var safeCall = (instance, method, arg, elm) => {
833
+ var safeCall = (instance, method, arg) => {
896
834
  if (instance && instance[method]) {
897
835
  try {
898
836
  return instance[method](arg);
899
837
  } catch (e) {
900
- consoleError(e, elm);
838
+ consoleError(e);
901
839
  }
902
840
  }
903
841
  return void 0;
@@ -956,68 +894,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
956
894
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
957
895
  members.map(([memberName, [memberFlags]]) => {
958
896
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
959
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
960
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
961
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
962
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
963
- Object.defineProperty(prototype, memberName, {
964
- get() {
965
- {
966
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
967
- return getValue(this, memberName);
968
- }
969
- const ref = getHostRef(this);
970
- const instance = ref ? ref.$lazyInstance$ : prototype;
971
- if (!instance) return;
972
- return instance[memberName];
973
- }
974
- },
975
- configurable: true,
976
- enumerable: true
977
- });
978
- }
979
897
  Object.defineProperty(prototype, memberName, {
898
+ get() {
899
+ return getValue(this, memberName);
900
+ },
980
901
  set(newValue) {
981
- const ref = getHostRef(this);
982
- if (origSetter) {
983
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
984
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
985
- newValue = ref.$instanceValues$.get(memberName);
986
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
987
- ref.$instanceValues$.set(memberName, currentValue);
988
- }
989
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
990
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
991
- setValue(this, memberName, newValue, cmpMeta);
992
- return;
993
- }
994
- {
995
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
996
- setValue(this, memberName, newValue, cmpMeta);
997
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
998
- ref.$onReadyPromise$.then(() => {
999
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1000
- ref.$lazyInstance$[memberName] = newValue;
1001
- }
1002
- });
1003
- }
1004
- return;
1005
- }
1006
- const setterSetVal = () => {
1007
- const currentValue = ref.$lazyInstance$[memberName];
1008
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1009
- ref.$instanceValues$.set(memberName, currentValue);
1010
- }
1011
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1012
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1013
- };
1014
- if (ref.$lazyInstance$) {
1015
- setterSetVal();
1016
- } else {
1017
- ref.$onReadyPromise$.then(() => setterSetVal());
1018
- }
1019
- }
1020
- }
902
+ setValue(this, memberName, newValue, cmpMeta);
903
+ },
904
+ configurable: true,
905
+ enumerable: true
1021
906
  });
1022
907
  }
1023
908
  });
@@ -1027,11 +912,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
912
  plt.jmp(() => {
1028
913
  var _a2;
1029
914
  const propName = attrNameToPropName.get(attrName);
1030
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
915
+ if (this.hasOwnProperty(propName)) {
1031
916
  newValue = this[propName];
1032
917
  delete this[propName];
1033
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1034
- this[propName] == newValue) {
918
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1035
919
  return;
1036
920
  } else if (propName == null) {
1037
921
  const hostRef = getHostRef(this);
@@ -1047,11 +931,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1047
931
  }
1048
932
  return;
1049
933
  }
1050
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1051
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1052
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1053
- this[propName] = newValue;
1054
- }
934
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1055
935
  });
1056
936
  };
1057
937
  Cstr.observedAttributes = Array.from(
@@ -1076,7 +956,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1076
956
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1077
957
  const bundleId = cmpMeta.$lazyBundleId$;
1078
958
  if (bundleId) {
1079
- const CstrImport = loadModule(cmpMeta, hostRef);
959
+ const CstrImport = loadModule(cmpMeta);
1080
960
  if (CstrImport && "then" in CstrImport) {
1081
961
  const endLoad = uniqueTime();
1082
962
  Cstr = await CstrImport;
@@ -1101,7 +981,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1101
981
  try {
1102
982
  new Cstr(hostRef);
1103
983
  } catch (e) {
1104
- consoleError(e, elm);
984
+ consoleError(e);
1105
985
  }
1106
986
  {
1107
987
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1136,7 +1016,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1136
1016
  schedule();
1137
1017
  }
1138
1018
  };
1139
- var fireConnectedCallback = (instance, elm) => {
1019
+ var fireConnectedCallback = (instance) => {
1140
1020
  };
1141
1021
 
1142
1022
  // src/runtime/connected-callback.ts
@@ -1176,26 +1056,20 @@ var connectedCallback = (elm) => {
1176
1056
  endConnected();
1177
1057
  }
1178
1058
  };
1179
- var disconnectInstance = (instance, elm) => {
1059
+ var disconnectInstance = (instance) => {
1180
1060
  {
1181
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1061
+ safeCall(instance, "disconnectedCallback");
1182
1062
  }
1183
1063
  };
1184
1064
  var disconnectedCallback = async (elm) => {
1185
1065
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1186
1066
  const hostRef = getHostRef(elm);
1187
1067
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1188
- disconnectInstance(hostRef.$lazyInstance$, elm);
1068
+ disconnectInstance(hostRef.$lazyInstance$);
1189
1069
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1190
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1070
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1191
1071
  }
1192
1072
  }
1193
- if (rootAppliedStyles.has(elm)) {
1194
- rootAppliedStyles.delete(elm);
1195
- }
1196
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1197
- rootAppliedStyles.delete(elm.shadowRoot);
1198
- }
1199
1073
  };
1200
1074
 
1201
1075
  // src/runtime/bootstrap-lazy.ts
@@ -1273,17 +1147,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1273
1147
  }
1274
1148
  disconnectedCallback() {
1275
1149
  plt.jmp(() => disconnectedCallback(this));
1276
- plt.raf(() => {
1277
- var _a3;
1278
- const hostRef = getHostRef(this);
1279
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1280
- if (i2 > -1) {
1281
- deferredConnectedCallbacks.splice(i2, 1);
1282
- }
1283
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1284
- delete hostRef.$vnode$.$elm$;
1285
- }
1286
- });
1287
1150
  }
1288
1151
  componentOnReady() {
1289
1152
  return getHostRef(this).$onReadyPromise$;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const generalNewsNotification = require('./general-news-notification-aa2ee485.js');
6
- require('./index-c68ec8a4.js');
5
+ const generalNewsNotification = require('./general-news-notification-cc63ab71.js');
6
+ require('./index-a2d41176.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c68ec8a4.js');
5
+ const index = require('./index-a2d41176.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []