@things-factory/auth-ui 10.1.79 → 10.1.80

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-ui",
3
- "version": "10.1.79",
3
+ "version": "10.1.80",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -37,6 +37,7 @@
37
37
  "@operato/moment-timezone-es": "^10.0.0",
38
38
  "@operato/p13n": "^10.0.0",
39
39
  "@operato/popup": "^10.15.0",
40
+ "@operato/shell": "^10.29.2",
40
41
  "@operato/styles": "^10.0.0",
41
42
  "@things-factory/auth-base": "^10.1.79",
42
43
  "@things-factory/component-ui": "^10.1.79",
@@ -44,5 +45,5 @@
44
45
  "base64url": "^3.0.1",
45
46
  "clipboard": "^2.0.6"
46
47
  },
47
- "gitHead": "94cde9ba17dfdddb0a16139b71e5a7e370977e4a"
48
+ "gitHead": "273178abe74b9328873b1e0788e6c146a9a275f0"
48
49
  }
@@ -83,3 +83,10 @@ describe('the person 360 sections', () => {
83
83
  expect(order(SECTIONS['open-work'])).toBeLessThan(order(SECTIONS.roles))
84
84
  })
85
85
  })
86
+
87
+ describe('signing out', () => {
88
+ it('★ takes this user\'s unsaved drafts out of the browser before the page leaves (ADR-0098)', () => {
89
+ const bootstrap = read('auth-ui/client/bootstrap.ts')
90
+ expect(bootstrap).toMatch(/auth\.on\('presignout', async \(\) => \{\s*const user = \(auth\.credential as any\)\?\.id\s*if \(user\) await removeDraftsOf\(user\)/)
91
+ })
92
+ })