@morscherlab/mint-sdk 1.4.0-beta.16 → 1.4.0-beta.17

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/dist/styles.css CHANGED
@@ -701,6 +701,22 @@ body {
701
701
  transition: background-color 0.15s, color 0.15s;
702
702
  }
703
703
 
704
+ /* No page-level rubber-band bounce or pull-to-refresh; overflow: hidden does
705
+ not stop it. Panels still scroll, and their overscroll stops at their own
706
+ edge. A browser tab keeps the horizontal swipe for back and forward; an
707
+ installed PWA has no history swipe, so it drops both axes. */
708
+ html,
709
+ body {
710
+ overscroll-behavior-y: none;
711
+ }
712
+
713
+ @media (display-mode: standalone) {
714
+ html,
715
+ body {
716
+ overscroll-behavior: none;
717
+ }
718
+ }
719
+
704
720
  code, pre {
705
721
  font-family: var(--font-mono);
706
722
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morscherlab/mint-sdk",
3
- "version": "1.4.0-beta.16",
3
+ "version": "1.4.0-beta.17",
4
4
  "description": "MINT Platform SDK — Vue 3 components, composables, and types for plugin development. MINT = Mass-spec INtegrated Toolkit.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,6 +20,14 @@ function rule(text: string, selector: string): string {
20
20
  const rem = (value: string): number => Number(value.replace('rem', '')) * 16
21
21
 
22
22
  describe('v2 audit style rules', () => {
23
+ it('should stop the page bounce in a tab vertically and in a PWA on both axes', () => {
24
+ const variables = css('variables.css')
25
+ expect(rule(variables, 'html,\nbody')).toMatch(/overscroll-behavior-y:\s*none/)
26
+ expect(variables).toMatch(
27
+ /@media \(display-mode: standalone\)\s*\{\s*html,\s*body\s*\{\s*overscroll-behavior:\s*none;\s*\}/,
28
+ )
29
+ })
30
+
23
31
  it('should keep the outermost cards at least 16px from the window edge', () => {
24
32
  const inset = /--mint-page-inset:\s*([\d.]+rem)/.exec(css('variables.css'))?.[1] ?? '0rem'
25
33
  expect(rem(inset)).toBeGreaterThanOrEqual(16)
@@ -393,6 +393,22 @@ body {
393
393
  transition: background-color 0.15s, color 0.15s;
394
394
  }
395
395
 
396
+ /* No page-level rubber-band bounce or pull-to-refresh; overflow: hidden does
397
+ not stop it. Panels still scroll, and their overscroll stops at their own
398
+ edge. A browser tab keeps the horizontal swipe for back and forward; an
399
+ installed PWA has no history swipe, so it drops both axes. */
400
+ html,
401
+ body {
402
+ overscroll-behavior-y: none;
403
+ }
404
+
405
+ @media (display-mode: standalone) {
406
+ html,
407
+ body {
408
+ overscroll-behavior: none;
409
+ }
410
+ }
411
+
396
412
  code, pre {
397
413
  font-family: var(--font-mono);
398
414
  }