@webqit/webflo 0.20.51 → 0.20.53

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/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "0.20.51",
15
+ "version": "0.20.53",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -566,11 +566,11 @@ export class WebfloClient extends AppRuntime {
566
566
  Observer.set(this.transition, 'rel', viewTransitionRel);
567
567
  // Trigger transition
568
568
  if (document.startViewTransition && this.withViewTransitions && !detail.hasUAVisualTransition) {
569
- const synthesizeWhile = window.webqit?.realdom?.synthesizeWhile || ((callback) => callback());
569
+ const synthesizeWhile = /*window.webqit?.realdom?.synthesizeWhile ||*/ ((callback) => callback());
570
570
  return new Promise(async (resolve) => {
571
571
  await synthesizeWhile(async () => {
572
572
  Observer.set(this.transition, 'phase', 'old');
573
- const viewTransition = document.startViewTransition({ update: updateCallback, styles: ['navigation', viewTransitionRel] });
573
+ const viewTransition = document.startViewTransition({ update: updateCallback, types: ['navigation', viewTransitionRel] });
574
574
  try { await viewTransition.updateCallbackDone; } catch (e) { console.log(e); }
575
575
  Observer.set(this.transition, 'phase', 'new');
576
576
  try { await viewTransition.ready; } catch (e) { console.log(e); }
@@ -34,7 +34,7 @@ export class WebfloRootClientA extends WebfloClient {
34
34
  #hmr;
35
35
 
36
36
  get withViewTransitions() {
37
- return document.querySelector('meta[name="webflo:viewtransitions"]')?.value;
37
+ return ['true', '1', 'yes'].includes(document.querySelector('meta[name="webflo:viewtransitions"]')?.content?.toLowerCase());
38
38
  }
39
39
 
40
40
  constructor(bootstrap, host) {
@@ -20,7 +20,7 @@ export class WebfloSubClient extends WebfloClient {
20
20
 
21
21
  get viewport() { return this.#superRuntime.viewport; }
22
22
 
23
- get withViewTransitions() { return this.host.hasAttribute('viewtransitions'); }
23
+ get withViewTransitions() { return ['true', '1', 'yes'].includes(this.host.getAttribute('viewtransitions')?.toLowerCase()); }
24
24
 
25
25
  constructor(superRuntime, host) {
26
26
  if (!(superRuntime instanceof WebfloClient)) {
@@ -1433,7 +1433,7 @@ export class ModalElement extends BaseElement {
1433
1433
  color: var(--header-color-default);
1434
1434
  background: var(--header-background);
1435
1435
 
1436
- z-index: 2;
1436
+ z-index: 3;
1437
1437
  }
1438
1438
 
1439
1439
  .header-box {
@@ -1482,7 +1482,7 @@ export class ModalElement extends BaseElement {
1482
1482
  color: var(--footer-color-default);
1483
1483
  background: var(--footer-background);
1484
1484
 
1485
- z-index: 3;
1485
+ z-index: 2;
1486
1486
  }
1487
1487
 
1488
1488
  footer .footer-bar {